Input with Range Monitoring and Value Transformation (v1.2)

Lib.Mervis.v1_2.SafeInputWithTransform

The auxiliary block is used for monitoring the range of the input variable, filtering it, and potentially switching to a backup value. The output value is recalculated using linear transformation.

  • Lib.Mervis
program test
    var
        inp: lib.mervis.v1_2.SafeInputWithTransform;
    end_var

    inp();
end_program
Inputs Name Data TypeRetainMandatory Connection Meaning
AlarmPriority AlarmPriorityTypeNo No Class of generated alarm
Input real No Yes Input value
MeasuredMin real No No Minimum measured value
MeasuredMax real No No Maximum measured value and upper alarm threshold
RealMin real No No Real value corresponding to MeasuredMin
RealMax real No No Real value corresponding to MeasuredMax
SafeValue real No No Backup value in case of failure
FilterTimeConstanttime No No Time constant of the filter for value filtering
MinimumCorrection real No No Subtracted value from MeasuredMin determining the lower alarm threshold
Override bool No No Input for forced switching to backup value
OutputsName Data Type Meaning
Alarm AlarmTriggerTrigger variable for alarm
Output real Output

The block is used to handle the value, for example from sensors, where in case of its failure it is replaced by a safe value to prevent inappropriate action by the following blocks. If the Override input is true, it forces a switch to the safe value and simultaneously triggers an alarm state.

  • © Energocentrum Plus, s.r.o. 2017 - 2024