&RPPLVVLRQLQJ
S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x
9-30
A5E00105492-03
6DPSOHSURJUDP
Below you will see a small sample program for data exchange between DP master
and DP slave. The addresses used in the example are found in the table above.
,QWKH'3VODYH&38
,QWKH'3PDVWHU&38
L 2
T MB
6
L IB
0
//Data pre-
processing in
the
DP slave
T MB
7
L MW
6
T PQW
310
// Forward data
to the
DP master
L PIB 222
T MB
50
L PIB 223
// processing data
received
in the DP master
.
L B#16#3
+ I
T MB
51
L
10
//Data preparation in
DP master
+ 3
T MB
60
CALL SFC
15
//Send data to
DP slave
LADDR:= W#16#0
RECORD:= P#M60.0 Byte 20
RET_VAL:=MW 22
CALL SFC 14
LADDR:=W#16#D
//receive data
from DP master
RET_VAL:=MW
20
RECORD:=P#M30.0 byte 20
L MB
30
L MB
7
+ I
//Reprocess
received data
T MW
100
Содержание CPU 312
Страница 10: ... RQWHQWV S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x x A5E00105492 03 ...
Страница 76: ... RQILJXULQJ S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x 5 50 A5E00105492 03 ...
Страница 146: ... RPPLVVLRQLQJ S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x 9 34 A5E00105492 03 ...
Страница 232: ... ORVVDU S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x 13 16 A5E00105492 03 ...