6.3
Example of Re-assigning Parameters to an ASi Slave with S7
Introduction
Below you will find an example program for assigning parameters to the DP/
ASi link using an S7. It shows you how you can read out lists and flags of the
ASi slave.
Cyclic program
You use data record 140 to read the lists and flags of the ASi slaves. To do
this, call SFC 59 "RD_REC" using data record 140, for example in the cyclic
program (OB1):
STL
CALL "RD_REC"
SFC59 ––Read Data Record
REC
:=M0.0
IOID
:=B#16#54
LADDR
:=W#16#0
RECNUM :=B#16#8C
RET_VAL :=MW100
BUSY
:=M102.0
RECORD :=P#DB59.DBX 0.0 BYTE 22
Distributed I/O System DP/ASi Link
EWA 4NEB 710 6055-02b
Description
Call SFC 59
Read data record enabled via M0.0
DP/ASi link is a hybrid module
Logical module address
Data record No. DR140
Error code while executing SFC59
Read status (1:Read operation still being
processed)
Destination area of DR140 (in DB59, from byte
0 onward)
DP/ASi Link to S7
6-7
Need help?
Do you have a question about the SIMATIC Distributed I/O System DP/ASi Link and is the answer not in the manual?