Trang 1
LI M U
t v
nay, ng hoa lan
lan
lan
Trang 2
Hoa Lan
Nhim v
i
Trang 3
u khin h th
lan
Mu
WinCC
u
Trang 4
Nu
dung sau:
-200.
lan.
Trang 5
CHO PLC S7-200
1.1. TNG QUAN
ay
Trang 6
1.2. PLC S7-200
1.2.1.
+
+
+
1.2.2.
+ -2.
+ -
+
+
+
+
1.2.3.
+
+
+
Trang 7
+
+ .
+
+
+ .
+
1.2.4.
+
+
+
+
+
+ VDC
+
+
+
+ RUN
+ STOP
Trang 8
+ TERM
1.2.5.
-
38.400 bauds.
1.1:
- -
32/RS485, theo 2:
1 GND
2 24 VDC
3
(RxD/TxD+)
4
5 GND
6 +5 VDC
7
8 (RxD/TxD-)
9 C
Trang 9
1.2-
1.2.6. M rng c
7 module theo B1.2:
1.2
Trang 10
-Interface.
1.2.7. t
+
+
+
+
+
+
+
+
PLC S7-
+ alog
+
+
+
+
+
+
+
+
Trang 11
+ - 10V
+
+
+
+
+
+ -
ra Output
+ - 10V
+
+
-
-
+
-
-
Trang 12
1.3
-, B+, B-, C+, C-
.
Trang 13
1.4
+
+
+
+
+
1.2.8. lhot ng
1.2.8.1.
Trang 14
.5:
.6:
Trang 15
1.3. 200
+
+
+
1.7:
-
-
Trang 16
-
+
-
-
+
+
+
Trang 17
1.4. C 200
-
1.4.1. Cu tun t
1.8:
1.8.
Trang 18
1.4.2. Tp ln s7 - 200
1.4.2.1.
Q0.0
I0.0
LD I0.0
= Q0.0
Q0.
0
I0.0
LDN I0.0
= Q0.0
Trang 19
1.9:
Output ( ):
LAD
n
n: I, Q, M,
SM, T, C
(bit)
n
n: Q (bit)
1.4.2.2.
Trang 20
Q0.0
I0.0
s
5
Q0.0
I0.0
R
5
STL LAD
S S-bit n
S bit n
-
bit
S-bit: I, Q, M,
SM, T,
C,V(bit)
n (byte): IB,
QB, MB,
SMB, VB, AC
R S-bit n
S bit n
-
S-
SI S-bit
n
S bit n
-bit
S-bit: Q (bit)
n(byte): IB,
QB, MB,
SMB, VB, AC
RI S-bit
n
S bit n
-bit
Trang 21
1.4.3. i s Boolean:
AND (A)
Q0.0
I0.0
I0.1
LD I0.0
A I0.1
= Q0.0
AND NOT (AN)
Q0.0
I0.0
I0.1
LD I0.0
AN I0.1
= Q0.0
Trang 22
OR (O).
I0.0
I0.1
Q0.0
LD I0.0
O I0.1
= Q0.0
OR NOT (ON)
I0.0
Q0.0
I0.1
LD I0.0
O I0.1
= Q0.0
1.4.4. nh v tic bit:
NOT N P
Trang 23
I0.0
Q0.0
P
I0.0
Q0.1
N
I0.0
Q0.2
NOT
LD I0.0
EU
= Q0.0
LD I0.0
ED
= Q0.1
LD I0.0
NOT
= Q0.2
Q0.0
Q0.2
Q0.1
I0.0
1.10:
Trang 24
+
+
+
+
1.4.5. lnh thi gian (Timer)
S7-200
+ -
TON.
+ tive On-
TONR.
+ -
Trang 25
LAD
-
Txx (Word)
CPU 214: 32-
63,
96-127
PT: VW, T,
(Word) C, IW,
QW, MW,
IN
PT
TON-Txx