Technical data

Table Of Contents
Generating Block-Related Messages
System Software for S7-300/400 System and Standard Functions - Volume 2/2
24-16
A5E00739858-01
24.6 Generating Block-Related Messages without
Associated Values for Eight Signals with SFB 34
"ALARM_8"
Description
SFB 34 "ALARM_8" is identical to SFB 35 "ALARM_8P" except that it does not
have the associated values SD_1 through SD_10.
Parameter Declaration Data Type Memory Area Description
EN_R INPUT BOOL I, Q, M, D, L,
constant
Control parameter enabled to receive
that decides whether the output
ACK_STATE is updated (EN_R=1) when
the block is called or not (EN_R=0).
SIG_i, 1<i<8 INPUT BOOL I, Q, M, D, L i(th) signal to be monitored
ID INPUT WORD I, Q, M, D, L,
constant
Data channel for messages:
W#16#EEEE ID is only evaluated at the
first call.
EV_ID INPUT DWORD I, Q, M, D, L,
constant
Message number (0 not permitted)
EV_ID is only evaluated at the first call.
Subsequently, the message number
used for the first call applies to every call
of SFB 34 with the corresponding
instance DB.
STEP 7 assigns the message number
automatically to ensure consistency of
the message numbers. The message
numbers within a user program must be
unique.
SEVERITY INPUT WORD I, Q, M, D, L,
constant
Weighting of the event
Possible values: 0 through 127 (value 0
means highest weighting)
This parameter is irrelevant processing
this message.
DONE OUTPUT BOOL I, Q, M, D, L DONE status parameter: Generation of
message completed
ERROR OUTPUT BOOL I, Q, M, D, L ERROR status parameter
ERROR=TRUE indicates that an error
has occurred during processing. For
details refer to parameter STATUS.
STATUS OUTPUT WORD I, Q, M, D, L STATUS parameter: Displays error
information