Technical data

Table Of Contents
Generating Block-Related Messages
System Software for S7-300/400 System and Standard Functions - Volume 2/2
24-32
A5E00739858-01
24.14 Querying the Acknowledgment Status of the Last
ALARM_SQ/ALARM_DQ Entering Event Message with
SFC 19 "ALARM_SC"
Description
With SFC 19 "ALARM_SC" you can query the following:
The acknowledgment status of the last ALARM_SQ/ALARM_DQ entering state
message and the status of the signal that triggered the message the last time
that SFC 17 "ALARM_SQ"/SFC 107 "ALARM_DQ" was called, or
The status of the signal that triggered the message the last time SFC 18
"ALARM_S"/SFC 108 "ALARM_D" was called.
Assuming that you assigned the message numbers during message configuration,
the message or signal is referenced with a unique message number SFC 19
"ALARM_SC" accesses the temporarily occupied memory of SFC 17 or
SFC 18/SFC 107/SFC 108.
Parameter Declaration Data Type Memory Area Description
EV_ID INPUT DWORD I, Q, M, D, L,
constant
Message number for the signal state at
the last SFC call or the acknowledgment
status of the last entering state message
(only with SFC 17 and SFC 107!) that you
want to query.
RET_VAL OUTPUT INT I, Q, M, D, L Error information
STATE OUTPUT BOOL I, Q, M, D, L State of the signal that triggered the
message at the last SFC call
Q_STATE OUTPUT BOOL I, Q, M, D, L If the specified EV_ID parameter belongs
to an SFC 18/SFC 108 call: 1
If the specified EV_ID parameter belongs
to an SFC 17/SFC 107 call:
acknowledgment status of
the last entering state message:
0: Not acknowledged
1: Acknowledged
Error Information
Error Code (W#16#...) Explanation
0000 No error occurred.
8081 The specified EV_ID is outside the permitted range.
8082 No memory is currently occupied for this EV_ID (possible cause: the
corresponding signal state was not yet 1, or the signal state has already
returned to 0).
8xyy General error information, see Evaluating Errors with Output Parameter
RET_VAL