Data Exchange Between the DP Master and AS-i Slave
62
DP/AS-Interface Link 20E
Release 11/2002
C79000-G8976-C138–04
2.4.3
Programming Examples
Example of Programming for a SIMATIC S7
An analog input value of AS-i analog slave 6 is transferred as an analog output
value to AS-i analog slave 9:
Table 2-5
STL
Explanation
L
DB40.DBW 10
T
DB40.DBW 32
CALL
SFC 59
REQ
:=TRUE
IOID
:=B#16#54
LADDR
:=W#16#120
RECNUM
:=B#16#8D
RET_VAL :=MW130
BUSY
:=M129.0
RECORD
:=P#DB40.DBX 0.0 BYTE 32
CALL
SFC 58
REQ
:=TRUE
IOID
:=B#16#54
LADDR
:=W#16#120
RECNUM
:=B#16#8E
RECORD
:=P#DB40.DBX 32.0 BYTE 32
RET_VAL :=MW132
BUSY
:=M129.1
//Slave 6, input channel 2
//Slave 9, output channel 1
//RD_REC
//Fixed value
//Start of cyclic input data
//DS141 (slave 5 and following)
//Return parameter
//Return parameter
//Receive buffer (slaves 5...8)
//WR_REC
//Fixed value
//Start of cyclic input data
//DS142 (slave 9 and following)
//Send buffer (slaves 9...12)
//Return parameter
//Return parameter
-
Summary of Contents for DP/AS-Interface Link 20E
Page 6: ...Preface 6 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...
Page 10: ...Contents 10 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...
Page 124: ...Using the Command Interface 124 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...
Page 132: ...Slave Diagnostics 132 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...
Page 150: ...Notes on the CE Mark 150 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...