Integration into the User Program
4-28
C7-613 Control System
A5E00138934-03
4.6 FB “HMI EVENT” for the message output
Function
The “HMI EVENT” FB manages the incoming operational messages and fault
messages and checks the acknowledgement of fault messages.
If a fault message exists, it is output at the display as it was created by you by
using the configuration interface. Operational messages are not output directly, but
are just displayed in the message level.
Operational and fault messages are entered in the event buffer.
The FB “HMI API” has to be called cyclically or time-controlled in your program.
Generation
In SIMATIC Manager, open the “C7 613” library and copy the “HMI EVENT” FB to
the block container of your project.
Structure and Description
Table 4-7 Parameters of the “HMI EVENT” FB
Parameter
Declaration Data Type Memory
area
Description
API_DB INPUT BLOCK_DB DB Number of the instance DB of the
“HMI API” FB.
Needed for synchronization of
“HMI EVENT” FB and “HMI API”
FB.
EVENTS INPUT ANY M, D, L, E Pointer to the message area.
The bit address of the message
area must be “0”. You must
specify the same length for the
message area and the
acknowledgement area.
Additional information is provided
in Section 4.6.1
ACKS INPUT ANY M, D, L, E Pointer to the acknowledgement
area.
The bit address of the
acknowledgement area has to be
“0”. You must specify the same
length for the acknowledgement
area and the message area.
Additional information is provided
in Section 4.6.1
RETVAL OUTPUT INT M, D, L, A Return value; provides
information about possible errors.
The return values are described
in Appendix B.1