PRSERV 04E Analyzing Diagnostic Data
PRSERV 04E Analyzing Diagnostic Data
PRSERV 04E Analyzing Diagnostic Data
Example:
W#16#8081 is an SFC specific error code.
W#16#823A is a general error code; the error was caused by parameter
no. 2.
CPU Station
e.g. PG, OP
Send buffer
SEND =
TRUE
1 2
SFC 52
Sending
Diagnostic buffer
SEND INPUT BOOL I, Q, M, D, L, Const. Enabling the sending of the user-defined diagnostic
message to all logged on stations (PG/OP)
EVENTN INPUT WORD I, Q, M, D, L, Const. Event ID. This message number defines the text
that is entered in the diagnostic buffer, or is sent
to a display device.
INFO1 INPUT ANY I, Q, M, D, L Additional information 1 (1 word) as wildcard
in the message text
INFO2 INPUT ANY I, Q, M, D, L Additional information 2 (1 double word) as
wildcard in the message text
RET_VAL OUTPUT INT I, Q, M, D, L Error information
Data type
Byte and
Bit address
ID
Pointer
CMP>R
M 0.1 SEND
#dummy INFO 1
EVENTN 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
SFC 52
M 90.1
P
I 0.6 EN
M 0.1 SEND
MW 208 INFO 1
Q 9.2 (Q 5.2)
index index
Led_on Led_on Data record
1
Led_blink Led_blink
index
Led_on Data record
2
Led_blink
index
Array with
Led_on Data record 4 elements
3 of the UDT type
Led_blink
index
Led_on Data record
4
Led_blink
Declaration view
Data view
Module-specific
0 4 bytes
diagnostic data
Test the program by setting a voltage You can analyze additional diagnostic
4 > 13V at an analog channel. Interpret data.
the data record by reading out the DB 59.