Description
Limits a value to a preset range.
Function
If the input is less than the minimum value, it takes the minimum value. If the input is greater than the maximum value, it takes the maximum value. If the input is within the preset range, it takes the input value.
Input
PIN | Description |
|---|---|
INPUT | Analog input requiring a limit operation |
Limit1 | Preset limit 1 |
Limit2 | Preset limit 2 |
Output
PIN | Description |
|---|---|
Output | Output value calculated from the limit operation |
Input value
PIN | Data type | Unit | Default value | Range |
|---|---|---|---|---|
INPUT | Analog | N/A | N/A | -999999...999999 |
Limit1 | Analog | N/A | N/A | -999999...999999 |
Limit2 | Analog | N/A | N/A | -999999...999999 |
Output value
PIN | Data type | Unit | Default value | Range |
|---|---|---|---|---|
Output | Analog | N/A | N/A | -999999...999999 |
Example
Y is limited to a value between b and a (a > b); if x < b, Y = b; if x > a, Y = a; if b ≤ x ≤ a, Y = x.