Вы находитесь на странице: 1из 57

www.PLCworld.

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 /

 ---( S ) Set Coil

 ---( R ) Reset Coil

 SR Set-Reset Flip Flop SR

 RS Reset-Set Flip Flop RS

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

 NOT Negate RLO RLO

 SET Set RLO (=1) RLO=1

 CLR Clear RLO (=0) RLO=0

 SAVE Save RLO in BR Register RLO BR

LAD

 ---| |--- Normally Open Contact (Address)

 ---|/|--- Normally Closed Contact (Address)

 ---(SAVE) Save RLO into BR Memory

RLO BR

 XOR Bit Exclusive OR


www.PLCworld.cn

 ---( ) Output Coil

 ---( # )--- Midline Output

 ---|NOT|---Invert Power Flow RLO

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

Public Declare Function unload_tool Lib "w95_s7.dll" () As Long


www.PLCworld.cn

'
' 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

Public Declare Function a_field_read Lib "w95_s7.dll" (ByVal nr As Long, ByVal


anz As Long, value As Byte) As Long

Public Declare Function a_field_write Lib "w95_s7.dll" (ByVal nr As Long, ByVal


anz As Long, value As Byte) As Long

nr
anz
value
Public Declare Function m_field_read Lib "w95_s7.dll" (ByVal nr As Long, ByVal
anz As Long, value As Byte) As Long
M
nr
anz
value
Public Declare Function m_field_write Lib "w95_s7.dll" (ByVal nr As Long, ByVal
anz As Long, value As Byte) As Long

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

1 200 LD SM0.1 300


www.PLCworld.cn

2 I0 0 3, 20

0 VW ?

:1 200 LD SM0.1 300 ? 0b100

2 I0 0

3, 200 VW ?mw db dbw

ob1

plc ob100

ob35

ob122

ob35

OB35 0.1S OB35

AI

FC1 AI OB1 FC1 FC2

FC2 OB35

ob35 plc

FC2 FC1

1: CPU 315F ET 200S

CPU S7 315F ET 200S DI/DO OB35

OB 35 100

F I/O F 100 100 I/O

100 OB 35 OB35 F

F OB35

S7 V5.2 SP1 6ES7138-4FA00-0AB0 6 ES7138-4FB00-0AB0 6ES7138

-4CF00-0AB0 F 150 .

2: DP PROFIBUS S7-300 CPU

CPU PROFIBUS DP PROFIBUS

CPU Startup
www.PLCworld.cn

3:

( S7 400) CPU OB81

OB81 BATT.INDIC S7-400 OB

81 OB81 CPU STOP OB81 C

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 (SFB FB FC)

6 S7-400 CPU 318-2DP

6ES7951-1K... (Flash EPROM) 6ES7951-1A... (RAM) >

7 LED CPU 31xC 124 125

CPU 24V 1 LED 1 24V


www.PLCworld.cn

313C (6ES7 313-5BE0.-0AB0),313C-2DP (6ES7 313-6CE0.-0AB0),313C-2PTP (6ES7 313-6BE0.-0

AB0), 314C-2DP (6ES7 314-6CF0.-0AB0),314C-2PTP (6ES7 314-6BF0.-0AB0)

8 CPU 31x-2 PN/DP PN PROFINET

(PROFINET) ( 100 Mbit/s

CPU > Properties > Diagnostics/Clock >

CPU

10 PROFIBUS DP

plc SFC14 DPRD_DAT SFC15 DPWR_DAT

FC1 DP_SEND FC2 DP_RECV

11 S7 CPU

SFC 51RDSYSST

CPU SFC 51 SSL ID 0111

1 =

6 =

7 =

12 CPU 317-2PN/DP S7-300 FB14("GET") FB15("PU

T")

S7 CPU 317-2PN/DP S7-300 S7

NetPro < S7 FB14("GET") CPU

FB15("PUT") CPU STEP 7 V5.3

CPU 317-2PN/DP FB14("GET") FB15("PUT")

FB14 FB15 OB1 REQ FB14

FB15 DONE NDR ERROR PUT GET

SIMATIC_NET_CP CPU317-2PN/DP

13 CPU 313C-2 PtP CPU 314-2 PtP

SEND FETCH
www.PLCworld.cn

SEND (SFB 63) (DONE ERROR) FETCH (SFB 64)(

REQ=0 ) FETCH (SFB 64) (DONE ERROR) SEND

(SFB 63)( REQ=0 ) (SEND SFB 63 FETCH SFB

64) (SERVE SFB 65)

14 MICROMASTER 420 440 ( ) CPU 317T

SIMODRIVE 611

U MASTERDRIVES MC SINAMICS S CPU 317T MICROMAS

TER

15 DP CPU ( )

CPU DP DP DX

16 SFC65 SFC66 SFC67 SFC68

SFC67 (X_GET) SFC68(X_PU

T) ( )

SFC65 (X_SEND)

SFC66 (X_RCV)

76 S7-300 CPU

8 S7-400 CPU S7-200 S7-200

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 (

2 CPU "PLC > Module Information > Memory" " Load me

mory RAM + EPROM"

3 MMC

21 CPU

CPU Flash-E

PROM (MC) (MMC) (CPU 3

12 IFM ) MPI MPI/DP CPU

PROFIBUS

PG/PC CPU MPI MPI/DP

22 MPI CPU

CPU MPI "Set PG/PC interface"

CPU MPI

" " CPU CPU

CPU MPI

S7-CPU
www.PLCworld.cn

23 OB

( 1) OB OB CPU ST

OP( OB70 72 7 3 81)

S7-CPU

( )

24 DP CPU315-2DP OBs

CPU315-2DP STEP7 OB I/O

OB 82 OB OB 86 OB OB 122 I/O

1 OB82

CPU OB82 OB82

4 OB82, CPU

OB SFC 39 - 42

2 OB86 DP I/O

CPU OB 86 OB 86 CP

U OB86 SFC 39 - 42

3 I/O OB122 CPU OB 122

CPU OB 122 OB 122

OB 122, CPU

25 ?

STEP 7

CPU

26 S7 300 CPU

S7 300 CPU RAM

" " ( OB86 DP )

CPU , RAM " "


www.PLCworld.cn

27 CPU315-2DP CPU315-2DP

CPU315-2DP S7 H/W CONFIG

OB OB82_MDL_ADDR OB82

1 CPU315-2DP 422

2 CPU315-2DP

3 1022

28 S7-300 CPU DP

CPU I-Slave CPU S7

DP HW Config DP

" Commissioning/Test operation" "Programming, status/modify..."

S7 4 - PG/OP S

DP ( CP 343-1 )

MPI

CPU 318

29 S7-300 CPU

CPU 312IFM 316-2DP SFC2, SFC3 SFC4

"B#16#0" " RETVAL"

"8080h"

CPU "B#16#0" (OB1, O

B35) SFC2 "SET_RTM" OB(OB100)

30

L 0 L
www.PLCworld.cn

31 CPU

S7-300 ( ) CPU

CPU CPU

CPU CPU CPU 318

S7-400 CPU CPU

32 S7 CPU S7 DP DP

, STEP 7 S7 CPU

PROFIBUS-DP > CPU 31x-2 DP

DP DP

S7 CPU

DP

S7-300 CPU GSD PROFIBUS GSD

/ SIMATIC

SIMATIC Manager

> GSD... GSD ( HW Config

>

DP PROFIBUS-DP > > SPS S

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)

37 24V (6ES7 321-xBxxx- ...)

24V (L+ / M)

38: ET200M SM321 (DI16 x 24V)

SM321 (MLFB 6ES7 321-7BH00-0AB0) ET200M CPU 31x-2DP DP

CP CP342-5 DP ET200M S7-400

CP443-5 S7-400 CPU

39:SM323 ?

SM323 16 (6ES7 323-1BL00-0AA0) 8 (6ES7 323-1BH00-0AA0) 1

6 X X+1 SM323 4 ( X=4 5),

4 5 , 4 5

X X

8 SM

323 4, I 4.0 I 4.7 Q 4.0 Q 4.7

40: SM321-1CH20 SM321-1CH80

SM321-1CH20 SM321-1CH80 SM321-1CH80

41: I/O
www.PLCworld.cn

S7-300 I/O ( )

hardware

42 SM321 DC 24V

MLFB 6ES7 321-1BH02-0AA0 SM 321 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

:S7-300 AI 8 x RTD +/-1.0

+/-1.8
www.PLCworld.cn

47

S5/S7 AD

"50Hz" 8 SM331-7KF02-0AB0 180ms

20ms

48 S7-300 S+ S-

SM 332

SM 332 S+ S-

S+ S-

3 6

4 5

3-4 5-6

(S+ S-) 140 mV ( 10V) g

0.5 %

49 6ES7 331-1KF0-0AB0?

M+ M- S- M-

: 6K

V M M

50 PT100 SM331

PT100

Ic+ Ic- SM331 M+ M-

PT100 4

1 3 SM331 MLFB 6ES7 331-7Kxxx-0AB0 b "

2 S7-300

4 SM331(MLFB 6ES7 331-7PF00


www.PLCworld.cn

-0AB0)

3 PT100

51 HART SIMATIC S7-300

HART HART S7-300

6ES7 331-7KF0x-0AB0 4 ( 6ES7 331-7RD00-0AB0)

16.66ms 20ms 100ms

250-Ohm

( SIMATIC PDM) HART

HART ( 6ES7 331-7TB00-0AB0 6ES7 332-5TB00-0AB0)

52 SM335

MLFB / 6ES7335-7HG00-0AB0 6ES7335-7HG01-0AB0

( ) Man

a ( 6) M0( 10) M1( 12) M2( 14) M 3( 16) (CGP)

M Mana

53 S7-300F

S7-300F E/A ET200M

(MLFB: 6ES7195-7KF00-0XA0)

(IM SM FM CP) E/

54 0 1 / S7-300 Ex(i)

0 / 1 /

Ex(i) [EEx ib] IIC [EEx ia]

0 / ( )

55 SIMATIC PCS 7 FM 355 FM 355-2

ET 200M FM 355 FM 355-2

FM 355 ( )
www.PLCworld.cn

6ES7 153-2BA00-0XB0 IM 153-2 HF

( ) IM 153-2 S

M/FM/CP ( 6ES7 195-7Hxxx-0XA0)

56 FM 352-5 FM 352-5

FM352-5 6ES7 352-5AH10-0AE0 P

6ES7 352-5AH00-0AE0 M

: 2,2 kOhm / 0,5 W. 100 kH

57 PG FM353/FM354

FM353 (MLFB No. 6ES7 353-1AH01-0AE0) FM354 (MLFB No. 6ES7 354-1AH01-0AE0)

PG

FM353 V2.1 FM354 V2.1 STEP 7 V3.1

FM (SDB >=1000) PG

SDB FM (DB/ , ) SDB CPU

CPU

57 FM 350-2 I/O

FM 350-2 I/O

I/O Word

Dword Dword Word

L PIW Word L PID Dword

59 FM357 2 ?

FM357 2 V3.2/V3.3 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

DBX 27.0 DBX 27.1 ( CTRL_DQ0) 1

SET

FM 350-1 / FM 450-1 I2

Q0 ( FM 350-1 / FM 450-1)

DBD 14(LOAD_VAL) ( L#0)

DBD18 (CMP_V1) FC FC CNT_CT

RL FM

FM350-1 24V , ,SF ,FM350 1 ?

, ( 24V), ,FM350-1 ,

5V , , ,SF , ,

62 FM350 1 ?

FM350 1 ,

FM350 1 , (DI ),

, , OB40 FM350 1

63 FM350-1 , ?

FM350-1 CPU

, , : 1 , FM3

50-1 , DB(UDT ) 18( 1) 22( 2), DINT, 28.0(D

Q0) 28.1(DQ1),

64 FM350-2 , ?

S7 300CPU FM , , ,

FM , , FM350 2 DB1 ,

12 DB1.DBB0 , 200 DB1.DBD52 , FC3 ,

200, 10 ,DB1.DBB0 ,DB1.


www.PLCworld.cn

DBD52 , 100 4 ,101 4 ,

DB1.DBB2 ,

65 4-20 mA 4 mA ?

4ma -1 3.9995mA, 1.185 mA -4864

(10 ) 1.185mA, 8000 16

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

GD S7 300 ,S7 300 S7 400 MPI MPI

S7-300 S7-300 400 S7-300/400 S7 200 PLC

OB35( 100ms) , OB1( )

68: CPU

DP S7-300/400 C

PU CPU 50ms 100ms CPU

OB86 OB122 CPU

69: 3964(R) RK 512

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

MANA : M- MANA MANA

0 - 20/ + -20mA. COMP+/COMP-. IC+ / IC-

MANA : M- M-. UCM > 2.5V

M- cpu . 0 - 20/ + -20mA.

COMP+/COMP-. IC+ / IC-

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 s s t oto put tvts ot stt


o t ot v st wt t
oow otos ust t t ot v s
ust t o
y swt o t ust st to o -
you t t outo wt you ow o u ot stt
ust o oto pvt ot stt

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

Вам также может понравиться