Technical data

Table Of Contents
SFCs for Diagnostics
System Software for S7-300/400 System and Standard Functions - Volume 1/2
A5E00709327-01
13-11
Station Not Logged On
If a user-defined diagnostic message is to be sent (SEND = TRUE) and no station
is logged on,
The user-defined diagnostic event is entered in the diagnostic buffer,
The parameter RET_VAL indicates that no station is logged on
(RET_VAL = W#16#8091 or W#16#8091. The value W#16#8091 appears with
older versions of the CPU).
General Structure
The internal structure of an element in the diagnostic buffer is as follows:
Byte Contents
1 and 2 Event ID
3 Priority class
4 OB number
5 and 6 Reserved
7 and 8 Additional information 1
9, 10, 11, and 12 Additional information 2
13 to 20 Time stamp
Event ID
An event ID is assigned to every event.
Additional Information
This is additional information about the event. The additional information can be
different for each event. When you create a diagnostic event, you can decide on
the content of these entries yourself.
When you send a user-defined diagnostic message, you can integrate the
additional information as associated values in the (event ID-specific) message text.
Time Stamp
The time stamp is of the type Date_and_Time.
Parameter Declaration Data Type Memory Area Description
SEND INPUT BOOL I, Q, M, D, L,
constant
Enable the sending of the user-defined
diagnostic message to all logged-on
stations
EVENTN INPUT WORD I, Q, M, D, L,
constant
Event ID - You assign the event ID. This is
not assigned by the message server.
INFO1 INPUT ANY I, Q, M, D, L Additional information 1 word long
INFO2 INPUT ANY I, Q, M, D, L Additional information 2 words long
RET_VAL OUTPUT INT I, Q, M, D, L Error information