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
rInREALInput value
rInMinREALMinimum input value
rInMaxREALMaximum input value
rOutMinREALCorresponding minimum output value
rOutMaxREALCorresponding maximum output value
rOutUnderflowREALOptional output value for rIn underflow
xOutUnderflowBOOLFALSE
Enable rOutUnderflow
rOutOverflowREALOptional output value for rIn overflow
xOutOverflowBOOLFALSE
Enable rOutOverflow
Output
rOutREALOutput value