Festo CTEU-PB Electronics Description page 99

Universal bus node, fieldbus protocol profibus-dp
Table of Contents

Advertisement

3. Diagnostics
Control system
SIMATIC S7/M7
SIMATIC S7/M7
Tab. 3/13: Possibilities for reading out the diagnostics for SIMATIC S7
STL
CALL SFC 13
REQ:=TRUE
LADDR:=W#16#03FE
RET_VAL:=MW100
RECORD:=P#M110.0 BYTE 64 Pointer at start of data range for diagnostics
BUSY:=M10.0
Fig. 3/5: Programming example in STL
Festo P.BE-CTEU-PB-OP+MAINT-EN en 1208NH English
Further details on error handling and response monitoring
can be found in the product documentation for the respective
controller
Possibilities for reading out the diagnostics
The diagnostics for PROFIBUS-DP are supported by function
blocks. These download the slave diagnostics and write them
into a data range of the user program.
Function block
SFC13 "DP NRM_DG"
FB125
Example for a STEP 7 user program:
Explanation
Read request
Pointer at diagnostic address, e.g. 1022
(see "DP slave properties" mask in HW Config)
If errors occur, output of error code
and maximum length of the diagnostic data
Read procedure finished
See ...
"System and Standard Functions"
reference manual
Siemens download in Internet
= 03FE
d
h
3-19

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents