SetWithin
Function - Force a value when inside an interval
Inputs
|
Input |
Data type |
Description |
|
IN |
ANY |
Input. |
|
MIN |
ANY |
Low limit of the interval. |
|
MAX |
ANY |
High limit of the interval. |
|
VAL |
ANY |
Value to apply when inside the interval. |
Outputs
|
Output |
Data type |
Description |
|
Q |
ANY |
Result. |
Truth table
|
IN |
Q |
|
IN < MIN |
IN |
|
IN > MAX |
IN |
|
MIN < IN < MAX |
VAL |
Remarks
The output is forced to VAL when the IN value is within the [MIN .. MAX] interval. It is set to IN when outside the interval.
SetWithin |
|
IEC 61131-3 Automation platform > Programming - Reference guide > Arithmetic operations > SetWithin |
Created with the Personal Edition of HelpNDoc: Elevate Your Documentation Process with HelpNDoc's Advanced Features

