Input with Range Monitoring and Value Transformation (v1.2)
Full Name
Lib.Mervis.v1_2.SafeInputWithTransform
Description
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.
Required Project References
- Lib.Mervis
Usage in ST
program test var inp: lib.mervis.v1_2.SafeInputWithTransform; end_var inp(); end_program
Input and Output Description
Inputs | Name | Data Type | Retain | Mandatory Connection | Meaning |
AlarmPriority | AlarmPriorityType | No | 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 | |
FilterTimeConstant | time | 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 |
Outputs | Name | Data Type | Meaning |
Alarm | AlarmTrigger | Trigger variable for alarm | |
Output | real | Output |
Detailed Function Description
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.