7HVWLQJ)XQFWLRQV'LDJQRVWLFVDQG)DXOW(OLPLQDWLRQ
S7-300 Automation System, Hardware and Installation: CPU 31xC and CPU 31x
11-18
A5E00105492-03
$VVXPSWLRQVUHJDUGLQJWKH67(3XVHUSURJUDP
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(3XVHUSURJUDP
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.
Содержание CPU 312
Страница 10: ... RQWHQWV S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x x A5E00105492 03 ...
Страница 76: ... RQILJXULQJ S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x 5 50 A5E00105492 03 ...
Страница 146: ... RPPLVVLRQLQJ S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x 9 34 A5E00105492 03 ...
Страница 232: ... ORVVDU S7 300 Automation System Hardware and Installation CPU 31xC and CPU 31x 13 16 A5E00105492 03 ...