The structure of the entry in the diagnostic buffer is as follows:
Byte Contents
1, 2 Event ID
3 Priority class
4 OB number
5, 6 reserved
7, 8 Additional information 1
9, 10, 11, 12 Additional information 2
13 ... 20 Time stamp:
The data type of the time stamp is Date_and_Time.
Every event is assigned to an event ID.
The additional information contains more specific information about the event. This infor-
mation differs for each event. When a diagnostic event is generated the contents of these
entries may be defined by the user.
When a user defined diagnostic message is sent to the partners this additional informa-
tion may be integrated into the (event-ID specific) message text as an associated value.
Parameters
Parameter Declaration Data type Memory block Description
SEND INPUT BOOL I, Q, M, D, L,
constant
Enable sending of user defined diagnostic mes-
sages to all registered partners.
EVENTN INPUT WORD I, Q, M, D, L,
constant
Event-ID. The user assigns the event-ID. This is
not preset by the message server.
INFO1 INPUT ANY I, Q, M, D, L Additional information, length 1 word
INFO2 INPUT ANY I, Q, M, D, L Additional information, length 2 words
RET_VAL OUTPUT INT I, Q, M, D, L The return value contains an error code if an
error is detected when the function is being pro-
cessed.
When SEND is set to 1 the user defined diagnostic message is sent to all partners that
have registered for this purpose. Sending is only initiated when one or more partners
have registered and the send buffer is not full. Messages are sent asynchronously with
respect to the application program.
The event ID of the user event is entered into EVENTN. Event IDs must be of the format
8xyzh , 9xyzh, Axyzh and Bxyzh. Here the IDs of format 8xyzh and 9xyzh refer to prede-
fined events and IDs of format Axyzh and Bxyzh refer to user-defined events.
An event being activated is indicated by x = 1,
an event being deactivated by x = 0.
The contents of an entry
Event ID
Additional information
SEND
EVENTN
VIPA SPEED7
Integrated Standard
System Functions > SFC 52 - WR_USMSG - Write user entry into diagnostic buffer
HB00 | OPL_SP7 | Operation list | en | 18-30 688