EasyManua.ls Logo

Siemens CPU 313C

Siemens CPU 313C
238 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...
7HVWLQJ)XQFWLRQV'LDJQRVWLFVDQG)DXOW(OLPLQDWLRQ
S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x
11-18 A5E00105492-03
$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
H
is to be read.
• Data record 1 is to be read out.
• Data record 1 is to be stored in DB 10.
67(3XVHUSURJUDP
67/ 'HVFULSWLRQ
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
//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
1RWH
Data is only returned to the target area if BUSY is reset to 0 and if no negative
RET_VAL has occurred.

Table of Contents

Other manuals for Siemens CPU 313C

Related product manuals