Error and system messages
4.4 Diagnostics with STEP 7
IM151-1 FO STANDARD interface module (6ES7151-1AB05-0AB0)
40
Manual, 02/2010, A5E01075965-03
Example of reading out S7 diagnostics using SFC 13 "DP NRM_DG"
Here, you will find an example of how to use SFC 13 to read out the slave diagnostics for a
DP slave in the STEP 7 user program.
For the purpose of this STEP 7 user program, the following is assumed:
●
The diagnostic address of the ET 200S is 1022 (3FE
H
).
●
The slave diagnostics are to be stored in DB 82: Starting from address 0.0, length = 64
bytes.
●
The slave diagnostics consist of a maximum of 64 bytes (IM151-1 FO STANDARD in
DPV0 mode).
STEP 7 user program
STL Description
CALL SFC 13
REQ
:=TRUE
Read request
LADDR
:=W#16#3FE
Diagnostic address of the ET 200S
RET_VAL :=MW0
RET_VAL of SFC 13
RECORD
:=P#DB82.DBX 0.0 BYTE 64
Data record for the diagnostics in DB 82
BUSY
:=M2.0
The read process runs through several OB 1 cycles
Summary of Contents for 6ES7151-1AB05-0AB0
Page 59: ......