EasyManua.ls Logo

Siemens DP/AS-Interface Link 20E

Siemens DP/AS-Interface Link 20E
160 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
-

Table of Contents

Related product manuals