Reading Out The Event Message (Mac_Event) - Siemens SIMATIC S5 Manual

Interface of the programmable controller
Hide thumbs Also See for SIMATIC S5:
Table of Contents
Start-Up, Tests, and Diagnostics
3.4.9

Reading Out the Event Message (MAC_EVENT)

This FMA service is for reading out fault events. It is useful for testing during start-up.
Principle of Operation (represented in Figure 3-16)
Errors recognized by the communications processor (e.g., double token, frame errors) are
indicated automatically. There is no need for a service request.
A pending error indication is displayed in the status byte (STB) at job number A-NR 200.
An error indication is fetched by means of integral FB L2-RECEIVE (FB253) via job number
A-NR 200 .
PLC
Control
processor
Operating system
User program
STEP 5 data
elements
Figure 3-16. Sequence Principle of FMA service MAC_EVENT
The indication consists of a maximum of 58 bytes. Bytes 0 to 7 are assigned to the header. The
error indications are stored in the sequence of their occurrence starting with byte 8 (up to 50 errors
can be recorded). Figure 3-17 shows the structure of the MAC_EVENT indication block.
The parameter values are stored in the MAC_EVENT indication block as follows:
Relevant
parameters
Figure 3-17. Structure of the MAC_EVENT Indication Block
3-26
Communications
processor
Bus
FB L2-RECEIVE
monitoring
with indication
and
diagnostics
function
Indication Block
Byte
0
com_class
FMA_Indication=02
event indication
(
1
irrelevant
2
service_code
Type of service provided:
MAC-EVENT=20H
3-7
irrelevant
8
Event parameter block
(see Table 3-10)
9
......
H
)
S5-95U, SINEC L2
EWA 4NEB 812 6112-02
Table of Contents
loading

This manual is also suitable for:

Sinec l2S5-95u

Table of Contents