-

ALM_ALARM_PARAM

TypeFunction block
DescriptionThe function block is used to send alarm states with user-defined parameters to the OPC UA server. The user-defined structure connected to PARAMETERS holds the parameters to be published to the OPC UA server. The user-defined structure can contain a maximum of 10 parameters with elementary data types or strings. The values of the structure elements are sent with the alarm state. Before this function block can be used, the alarm with its parameters must be registered with the ALM_REGISTER_PARAM function block.

With each change of the ACTIVE input, the alarm state with the user-defined parameters is sent to the OPC UA server. The function block has to be executed until the DONE output is set to TRUE. The DONE output is set to FALSE if, for example, many alarms are sent simultaneously.

The AUTO_ACK and AUTO_CONF inputs can be used to determine whether the alarms require an acknowledgment (AUTO_ACK) or confirmation (AUTO_CONF). If both inputs are TRUE, the alarm is removed as soon as the ACTIVE input switches to FALSE. If an alarm acknowledgment or confirmation is required, the function block has to process the alarms, i.e., it has to be further executed.
NotesFunction blocks have to be instantiated. The instance name of the function block has to be declared in the 'Variables' table of the POU where the FB is going to be used. The instance name must be unique within the POU.
ParametersInputs

ACTIVE

MESSAGE

AUTO_ACK

AUTO_CONF

RESET

Input/Output

ALARM

PARAMETERS

Outputs

DONE

RETAIN_STATE
ALM_STATE structure ALM_STATE structure elements