Siemens SIMATIC S7-300 Hardware And Installation Manual page 189

Hide thumbs Also See for SIMATIC S7-300:
Table of Contents

Advertisement

Agreement for the STEP 7 user program
For this STEP 7 user program it is assumed that:
• Diagnostic data for the input module at address 200
• Data record 1 is to be read out.
• Data record 1 is to be stored in DB 10.
STEP 7 User Program
STL
CALL SFC 59
REQ
:=TRUE
IOID
:=B#16#54
LADDR:= W#16#200
RECNUM
:=B#16#1
RET_VAL :=MW2
BUSY
:=MO.0
RECORD
:=P# DB10.DBX 0.0 BYTE 240
Note
data is only returned to the target area if BUSY is reset to 0 and if no negative
RET_VAL has occurred.
S7-300 Programmable Controller Hardware and Installation
A5E00105492-02
Testing functions, Diagnostics and Fault Elimination
Description
//Request to read
//Identifier of the address area, here the I/O input
//Logical address of the module
//Data record 1 is to be read
//An error code is output if an error occurs
//Read operation not finished
//DB 10 is target area for the read data record 1
is to be read.
H
11-19

Advertisement

Table of Contents
loading

Table of Contents