====== Alarm Trigger for Real Variables (v1.1) ====== {{:en:mervis-ide:35-help:real_to_alrtrig.png}} ==== Full Name ==== Lib.Mervis.v1_1.real_to_alrtrig ==== Required Project References ==== * Lib.Mervis ===== Description ===== Auxiliary block used for generating an alarm from a real variable. ===== Usage in ST ===== program test var alrTrig: lib.mervis.v1_1.real_to_alrtrig; end_var alrTrig(); end_program ===== Inputs ===== |Name |Data Type|Retain|Required to Connect|Meaning| |Input |bool |No |Yes |Input value | | |Priority |[[..:..:alarms_alarmprioritytype.htm|AlarmPriorityType]] |No |No |Alarm class | | |LowLimit |real |No |No |Lower allowable value | | |HighLimit |real |No |No |Upper allowable value | | |Hysteresis |real |No |No |Hysteresis around limit values| | |Delay |time |No |No |Alarm delay | | |TriggerType|[[..:realalarmtriggertype.htm|RealAlarmTriggerType]] |No |No |Type of monitored event | | ===== Outputs ===== |Name |Data Type|Meaning| |Alarm |[[..:alarmtrigger.htm|AlarmTrigger]]|Output | | ===== Detailed Function Description ===== The block generates an alarm if the //Input// is outside the defined range. The alarm is activated when the condition specified by the //TriggerType// parameter is met. |Condition |Condition for Activation |Condition for Deactivation | |LowAndHigh|//Input// < //LowLimit// or //Input// > //HighLimit//|//Input// > //LowLimit + Hysteresis// and //Input// < //HighLimit - Hysteresis//| |Low |//Input// < //LowLimit// |//Input// > //LowLimit + Hysteresis// | |High |//Input// > //HighLimit// |//Input// < //HighLimit - Hysteresis// | If a delay is set, the condition for activation must be met for at least this defined period. ===== Versions ===== {{indexmenu>.020-real_to_alrtrig#2}}