Programming Examples - Siemens DP/AS-Interface Link 20E Manual

Plc processors
Table of Contents

Advertisement

Data Exchange Between the DP Master and AS-i Slave
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
L
DB40.DBW
T
DB40.DBW
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
-
62
Explanation
10
//Slave 6, input channel 2
32
//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
DP/AS-Interface Link 20E
Release 11/2002
C79000-G8976-C138–04

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents