CommandVariable (FB)¶
FUNCTION_BLOCK CommandVariable
Command variable
This function block provides a transformation of an input (command) variable to an output range. Underflow / overflow of input can be transformed into separate output value (instead of clipping to end of output range).
- InOut:
Scope
Name
Type
Initial
Comment
Input
rIn
REAL
Input value
rInMin
REAL
Minimum input value
rInMax
REAL
Maximum input value
rOutMin
REAL
Corresponding minimum output value
rOutMax
REAL
Corresponding maximum output value
rOutUnderflow
REAL
Optional output value for rIn underflow
xOutUnderflow
BOOL
FALSE
Enable rOutUnderflow
rOutOverflow
REAL
Optional output value for rIn overflow
xOutOverflow
BOOL
FALSE
Enable rOutOverflow
Output
rOut
REAL
Output value