Siemens CPU 313C Hardware And Installation Manual page 174

S7-300 automation system
Hide thumbs Also See for CPU 313C:
Table of Contents

Advertisement

7HVWLQJ )XQFWLRQV 'LDJQRVWLFV DQG )DXOW (OLPLQDWLRQ
$VVXPSWLRQV UHJDUGLQJ WKH 67(3  XVHU SURJUDP
For this 67(3  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.
67(3  XVHU SURJUDP
67/
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
1RWH
Data is only returned to the target area if BUSY is reset to 0 and if no negative
RET_VAL has occurred.
11-18
//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
S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x
is to be read.
H
'HVFULSWLRQ
A5E00105492-03

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents