7HVWLQJIXQFWLRQVDQG'LDJQRVWLFV
S7-300 Automation System, Hardware and Installation: CPU 312IFM - 318-2 DP
11-18 A5E00203919-01
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.
'LDJQRVWLFDGGUHVVHV
With CPU 31x-2 you assign diagnostic addresses for the PROFIBUS DP. Make DP
diagnostic addresses are assigned to the DP master and to the DP slave sure
during configuration.
CPU as DP master
CPU as DP slave
During configuration you must specify two diagnostic addresses:
PROFIBUS DP
Diagnostic address
Diagnostic address
Figure 11-5 Diagnostic addresses for DP masters and DP slaves