Академический Документы
Профессиональный Документы
Культура Документы
cn
/ RLO
RLO 1 1 0 RLO 0
RLO 1
1 RLO 0, 1
RLO 1 0 RLO 0
0
STL /
R Reset
S Set
LAD /
1 0
BOOL RLO(result of
logic operation)
STL
A And
AN And Not
O Or
ON Or Not
www.PLCworld.cn
X Exclusive Or
XN Exclusive Or Not
= Assign
LAD
RLO BR
1.
CPU
2.
CPU
0 /FC 0
FC FC
1 RLO RLO=
RLO
RLO
2 A,AN,O,
=,S,R,
OR OR OR
OR 1
1
OV
OS OV
OS
JOS OS = 1
CC1 CC0 CC1 CC0
•
•
•
•
CC1 CC0
CC1 CC0
0 0 A == 0 =0
10A>0 >0
01A<0 <0
www.PLCworld.cn
BR 8
BR
BR ENO
BR 0 ENO 0
BR 1
ENO 1 FB/FC BR
BR 1 0 SAVE RLO BR BR
9-15
3.
STEP7 CC0/CC0
CPU
CPU
1 DB DBBO-DBB99 100 0
1 -1 0 0 MB200 100
-
--
S7-300
DLL w95_s7.dll
DLL PLC
DLL
Public Declare Function load_tool Lib "w95_s7.dll" (ByVal nr As Byte, ByVal dev
As String, adr As Type_PlcAddressType) As Long
20S
nr
1-4
dev ,SetPG/PC S7ONLINE adr
type:
Type Type_PlcAddressType
bytAddress As Byte' 2
bytPlcSegmentID As Byte'SegmentID 0
bytPlcSlotNo As Byte' 2
bytPlcRackNo As Byte'Rack 0
End Type
Public Declare Function new_ss Lib "w95_s7.dll" (ByVal nr As Byte) As Long
'
' no, amount, value
Public Declare Function d_field_read Lib "w95_s7.dll" (ByVal db As Long, ByVal nr
As Long, ByVal anz As Long, value As Byte) As Long
' DB
db DB DB10 10
nr DB10 4 4
anz
value
dim ReturnValue(20) as byte,
ReturnValue
Public Declare Function d_field_write Lib "w95_s7.dll" (ByVal db As Long, ByVal
nr As Long, ByVal anz As Long, value As Byte) As Long
DB
' no, amount, value
Public Declare Function e_field_read Lib "w95_s7.dll" (ByVal nr As Long, ByVal
anz As Long, value As Byte) As Long
nr
anz
value
dim ReturnValue(20) as byte,
ReturnValue
nr
www.PLCworld.cn
anz
value
Public Declare Function t_field_read Lib "w95_s7.dll" (ByVal nr As Long, ByVal
anz As Long, value As Integer) As Long
nr
anz
value
Public Declare Function z_field_read Lib "w95_s7.dll" (ByVal nr As Long, ByVal
anz As Long, value As Integer) As Long
nr
anz
value
Public Declare Function z_field_write Lib "w95_s7.dll" (ByVal nr As Long, ByVal
anz As Long, value As Integer) As Long
nr
anz
value
VB
0
www.PLCworld.cn
www.PLCworld.cn
2 C0 CC1 JZ
RLO
/FC
L MW2
L MW8
-I
JZ ZERO // 0 ZERO
// 0
ZERO: // 0
JZ C0 CC1
JC/JCN
3 Hilscher NTTAP
CRC CRC
1 EURO2408 MODBUS
CRC CRC
1 16#FFFF 16 CRC
2 CRC 8 8 CRC
3 CRC
4 1 CRC 16#A001 CRC
4 0 3
5 3 4 8
6 CRC 8 8 CRC
7 3 6 CRC 8
8 CRC CRC
8
8
4 1
A>0
CRC
4.
: S7-200 300
2 I0 0 3, 20
0 VW ?
2 I0 0
ob1
plc ob100
ob35
ob122
ob35
AI
FC2 OB35
ob35 plc
FC2 FC1
OB 35 100
100 OB 35 OB35 F
F OB35
-4CF00-0AB0 F 150 .
CPU Startup
www.PLCworld.cn
3:
PU
4 S7 CPU I/O ( )
( )
256 254
( CPU Properties )
5 S7 CPU
(GD)
GD CPU GD GD
CPU CPU GD
CPU CPU GD
CPU
10 PROFIBUS DP
11 S7 CPU
SFC 51RDSYSST
1 =
6 =
7 =
T")
SIMATIC_NET_CP CPU317-2PN/DP
SEND FETCH
www.PLCworld.cn
SIMODRIVE 611
TER
15 DP CPU ( )
CPU DP DP DX
T) ( )
SFC65 (X_SEND)
SFC66 (X_RCV)
76 S7-300 CPU
17 I/O
(SM/FM/CP) STEP 7
S7-300
18
STOP STOP
CPU
HW Config
www.PLCworld.cn
19
3 ( SFC52 WR_USMSG)
STOP ST
OP ( )
( )
20 MMC STEP 7
MMC
1 STEP 7 Windows (
3 MMC
21 CPU
CPU Flash-E
PROFIBUS
22 MPI CPU
CPU MPI
CPU MPI
S7-CPU
www.PLCworld.cn
23 OB
( 1) OB OB CPU ST
S7-CPU
( )
24 DP CPU315-2DP OBs
OB 82 OB OB 86 OB OB 122 I/O
1 OB82
4 OB82, CPU
OB SFC 39 - 42
2 OB86 DP I/O
CPU OB 86 OB 86 CP
U OB86 SFC 39 - 42
OB 122, CPU
25 ?
STEP 7
CPU
26 S7 300 CPU
27 CPU315-2DP CPU315-2DP
OB OB82_MDL_ADDR OB82
1 CPU315-2DP 422
2 CPU315-2DP
3 1022
28 S7-300 CPU DP
DP HW Config DP
S7 4 - PG/OP S
DP ( CP 343-1 )
MPI
CPU 318
29 S7-300 CPU
"8080h"
30
L 0 L
www.PLCworld.cn
31 CPU
S7-300 ( ) CPU
CPU CPU
32 S7 CPU S7 DP DP
, STEP 7 S7 CPU
DP DP
S7 CPU
DP
/ SIMATIC
SIMATIC Manager
>
7-300 CPU
DP , DP PROFIBUS I/O
33
CPU (MPI )
( MPI )
34 2 CPU
2 4 CPU 300C 2
www.PLCworld.cn
I = 4
CPU ( 4 ) ( 2 )
50mA( ) ( 2
PTC )
35 SM322-1HH01 24 V
24 V SM322-1HH01
36 SM322-1HF01
SM322-1HF01 17 V 8 mA
(10 V 5 mA)
24V (L+ / M)
39:SM323 ?
4 5 , 4 5
X X
8 SM
41: I/O
www.PLCworld.cn
S7-300 I/O ( )
hardware
42 SM321 DC 24V
43 STEP 7 SM374
SM374 16 16 8
8 /
SM374
SM 374 16 16 - SM 321: 6
ES7321-1BH01-0AA0
SM 374 16 16 - SM 322:
6ES7322-1BH01-0AA0
SM 374 / / ( 8 8 ) -
SM 323: 6ES7323-1BH01-0AA0
44 6ES7 331-1KF0.-0AB0 I+
6ES7 331-1KF0.-0AB0 I+
> 50 PTC
12V ( 1 ) 30V
45 CPU 2
D 1 20 2
CPU
46 S7-300
1.8
+/-1.8
www.PLCworld.cn
47
S5/S7 AD
20ms
48 S7-300 S+ S-
SM 332
SM 332 S+ S-
S+ S-
3 6
4 5
3-4 5-6
0.5 %
49 6ES7 331-1KF0-0AB0?
M+ M- S- M-
: 6K
V M M
50 PT100 SM331
PT100
PT100 4
2 S7-300
-0AB0)
3 PT100
250-Ohm
52 SM335
( ) Man
M Mana
53 S7-300F
(MLFB: 6ES7195-7KF00-0XA0)
(IM SM FM CP) E/
54 0 1 / S7-300 Ex(i)
0 / 1 /
0 / ( )
FM 355 ( )
www.PLCworld.cn
( ) IM 153-2 S
56 FM 352-5 FM 352-5
6ES7 352-5AH00-0AE0 M
57 PG FM353/FM354
FM353 (MLFB No. 6ES7 353-1AH01-0AE0) FM354 (MLFB No. 6ES7 354-1AH01-0AE0)
PG
FM (SDB >=1000) PG
CPU
57 FM 350-2 I/O
FM 350-2 I/O
I/O Word
59 FM357 2 ?
V3.4
1) FM357 2 ,
2) FM357 2
3) ,FM357 2
60 FM350-1 FM450-1
( ) FC CNT_CTRL
www.PLCworld.cn
DQ0
SET
FM 350-1 / FM 450-1 I2
Q0 ( FM 350-1 / FM 450-1)
RL FM
, ( 24V), ,FM350-1 ,
5V , , ,SF , ,
62 FM350 1 ?
FM350 1 ,
FM350 1 , (DI ),
, , OB40 FM350 1
63 FM350-1 , ?
FM350-1 CPU
, , : 1 , FM3
Q0) 28.1(DQ1),
64 FM350-2 , ?
S7 300CPU FM , , ,
FM , , FM350 2 DB1 ,
DB1.DBB2 ,
65 4-20 mA 4 mA ?
7FFF 16
66
1. FC164 x y
2. FC165 x y
3. FC166 x y
4. FC167 x y
67 S7 PLC
MPI S7 PLC GD
68: CPU
DP S7-300/400 C
RK 512 , 3
964(R) 3964(R) ( )
70: DP 0
DP OB86( S7-300/400)
1.
2. OB86 OB
3. OB86 71
www.PLCworld.cn
SM 331-7NF10-0AB0 4
Ex SM 331-7RD 72 plc
t
ows
yp xt
ous
-x- x x x
st --
sv --
ot s ot t
www.PLCworld.cn
--
- s
--
opy s o
--
x
x
ts
o v y o
- -
- -
- -
x -
x -
- -
t st
www.PLCworld.cn
--
ww
x-
-
x-
t
-
z
s z
s
- -
-
-
-
-
- - -
www.PLCworld.cn
--
ww
-
-
-- --
t oy t
t pt pt yst
www.PLCworld.cn
sp - sp -
--
www.PLCworld.cn
--
ww
ww
www.PLCworld.cn
www.PLCworld.cn
yy
yy
- - -
yy
tt
tp ststu -
tp soustu -
www.PLCworld.cn
--
www.PLCworld.cn
tst tst
tst
tst tst
tst u
tst
tst
two tst
tp
ov
put utput ut
www.PLCworld.cn
ytt
www.PLCworld.cn
tss t ss y ss
utputu utput vu
yp
putu put vu
tp
yp
tss
tp o tt ss t tpo sto
ut t ot o pot ytt
www.PLCworld.cn
tp tsto o tp v wt tt ss -t
utputu o output vu
tp s output vu to tt ss
tss
tp o tt ss t tpo sto
ut t ot o pot ytt
tp tsto o tp v wt tt ss -t
tp o output vu
utputu s output vu to tt ss
--
tp t ou
t ot tt
www.PLCworld.cn
o ous tt tt owowott
tt
owowott
tt
xpot ou
www.PLCworld.cn
sv
tt
xy
sou tt
sou
www.PLCworld.cn
--
ss pu
oto
w spy yo pstto
w
spy yo oto
syo t v to
t
www.PLCworld.cn
-
-
www.PLCworld.cn
pt
- - - t
ss ot o t ppto t t
sst pt
opts s t oy st o t us
o oto ot ssso t pt
t - -
- -
so
so
p-
p-
- -
-
-- -
-- -
www.PLCworld.cn
- -
-
p
s- p o
Z
- Z
- p
- Z
-
-
oy
oy
oy
- -
www.PLCworld.cn
ttpwwwssoowoussp -
www.PLCworld.cn
- -t
--
yt o o
-
- -
- -
-
ttpwwwssspuotoswo
- stp-
www.PLCworld.cn
wows
pous p stp p
-
-
-
- -
t ot stt s opt t v s to t o ss
postv xuto owt t postv owt s vut
t sttus pt s st to y os tt ou t t
sttus pts
stt oy tvt t s ot v t t pvous
ot stt s opt
www.PLCworld.cn
- - --
-- --
--
-
-
p
wtt
st
pso
- - -
-
-
-
www.PLCworld.cn
-
-
stop stp
--
wo
w
wsv
-
www.PLCworld.cn
stp opto
o t stp
pu
-
-
www.PLCworld.cn
- -
osstt t
- -
poss
poss
t ov
www.PLCworld.cn
w w
w w w w
- o oy
- o oy pu
- o oy o
yto oy t yt o
oy o yt - - o oy o
o oy t
wo oy
www.PLCworld.cn
- -
-
- -
- -
-
-
--
-
-v-v
www.PLCworld.cn
tp t ou
t ot tt
o ous tt tt owowott
tt
owowott
tt
xpot ou
Z
Z
- Z
- -
p p
p
www.PLCworld.cn
s sts st s
s st s p
oto o s
s
o oy
wo o
t
o
s
--
--
-- --
wwwss
y
www.PLCworld.cn
o us o s t oow t o oy -
u
yts --
yts --
yts --
yts --
yts --
yts --
pu
pu pu pu
- - - -
--
-
- -
- -
--
www.PLCworld.cn
ou us t oow pou to t t o o t
to t s sott t
t swt to o o v w o y pss
t ppopt utto
t wow you st t o o
t t os t o w you wt to t
t t y o you yo you ow t ss tt
syst utos ot t
ppo pw yt pz yt s p
yt pu
ossty ot t
www.PLCworld.cn
stp
- v v v
v v
pu p
pu p
po
www.PLCworld.cn