Use the Alarm function block to define alarm conditions for analog parameters from other function blocks. You can choose the alarm detection type (High or Low) and the alarm limit. The block provides enable and delay parameters for the alarm you configure.
The LSALM function block contains the following configurable parameters:
ALM_TYPE - Indicates if the Alarm Detection Type is High or Low.
ALM_ENAB - Enables and disables processing for the alarm condition. The default value is Enabled (1).
When ALM_ENAB is 0 (alarm detection is disabled):
ALM_DELAY_ON - Delays the time it takes for ALM_ACT to be set to Active (1) after the alarm condition is detected. If the alarm condition clears before the delay time is reached, the ALM_ACT parameter remains Inactive (0) and the timer is reset. The timer resets every time the alarm condition clears.
ALM_DELAY_OFF - Delays the time it takes for ALM_ACT to be set to Inactive (0) after the alarm condition clears. If the alarm condition reoccurs before the delay time is reached, the ALM_ACT parameter remains Active (1) and the timer is reset. The timer resets every time the alarm condition is detected.
ALM_ENAB_DELAY - The time before alarm condition processing begins immediately after the alarm is enabled (ALM_ENAB becomes True). The ALM_ACT parameter is forced to 0 for the time specified. The timer resets whenever ALM_ENAB goes from Disabled (0) to Enabled (1).
ALM_HYS - Used as a deadband when resetting alarm conditions for analog values.