Control2Seq
Control2Seq (FB)
FUNCTION_BLOCK Control2Seq
Short description
Sequence control with switch-on / switch-off threshold for an analog input signal The direction of action (inverted / direct) can also be configured.
Representation

Interfaces
Inputs
rIn
REAL
Analog input value
Outputs
xY
BOOL
Binary output signal
Setpoints / Parameters
rSwitchOffPoint
REAL
3.0
Switch-off threshold
rSwitchOnPoint
REAL
7.0
Switch-on threshold
eAction
eControlMode
eControlMode.Direct
Direction of action of the sequence control (Inverted = heating, Direct = cooling)
Functional description
Digital output xY
The digital output xY is influenced by the direction of action eAction, the analog input value rIn and the two switching thresholds rSwitchOffPoint and rSwitchOnPoint is influenced. If the direction of action eControlMode.Direct is selected, then the switch-on threshold must rSwitchOnPoint be greater than the switch-off threshold rSwitchOffPoint be selected. If the direction of action eControlMode.Inverted is selected, then the switch-on threshold must rSwitchOnPoint be smaller than the switch-off threshold rSwitchOffPoint be.
eAction
rIn
xY
Notes
eControlMode.Direct
rIn < rSwitchOnPoint and rIn* > rSwitchOffPoint
unchanged
Direction of action = Direct: Actual value does not exceed any thresholds
eControlMode.Inverted
rIn > rSwitchOnPoint and rIn* < rSwitchOffPoint
unchanged
Direction of action = Inverted: Actual value does not exceed any thresholds
eControlMode.Direct
rIn >= rSwitchOnPoint
TRUE
Direction of action = Direct: Actual value exceeds switch-on threshold
eControlMode.Direct
rIn <= rSwitchOffPoint
FALSE
Direction of action = Direct: Actual value falls below switch-off threshold
eControlMode.Inverted
rIn <= rSwitchOnPoint
TRUE
Direction of action = Inverted: Actual value falls below switch-on threshold
eControlMode.Inverted
rIn >= rSwitchOffPoint
FALSE
Direction of action = Inverted: Actual value exceeds switch-off threshold
CODESYS
InOut:
Input
rIn
REAL
Input Const
rSwitchOffPoint
REAL
2
Input Const
rSwitchOnPoint
REAL
6
Input Const
eAction
eControlMode
eControlMode.Direct
Output
xY
BOOL
Last updated

