Control2Seq (FB)¶
FUNCTION_BLOCK Control2Seq
Short Descritpion¶
Sequence control with switch-on/switch-off threshold for an analog input signalThe direction of the action (inverted / direct) is also adjustable.
Portrayal¶
Interfaces¶
Inputs¶
Name Datatype
Range
Init-Value
Function
rIn REAL Analog input value
Outputs¶
Name Datatype
Range
Init-Value
Function
xY BOOL Binary output signal
Setpoints / Parameters¶
Name Datatype
Range
Init-Value
Function
rSwitchOffPoint REAL 3.0 Switch-off threshold
rSwitchOnPoint REAL 7.0 Switch-on threshold
eAction eControlMode eControlMode.Direct Direction of action of sequence control (inverted = heating, direct = cooling)
Functional Description¶
Digital output xY¶
eAction rIn xY Notes
eControlMode.Direct rIn < rSwitchOnPoint und rIn* > rSwitchOffPoint unchanged
Direction of action = Direct: actual value doesn’t exceed thresholds
eControlMode.Inverted rIn > rSwitchOnPoint und rIn* < rSwitchOffPoint unchanged
Direction of action = Inverted: actual value doesn’t exceed thresholds
eControlMode.Direct rIn >= rSwitchOnPoint TRUE Direction of action = Direct: actual value exceed switch-on thresholds
eControlMode.Direct rIn <= rSwitchOffPoint FALSE Direction of action = Direct: actual value fallen below switch-off thresholds
eControlMode.Inverted rIn <= rSwitchOnPoint TRUE Direction of action = Inverted: actual value fallen below switch-on thresholds
eControlMode.Inverted rIn >= rSwitchOffPoint FALSE Direction of action = Inverted: actual value exceed switch-on thresholds
Visualization¶
Information¶
Element Authors
Date
Version Notes
Function
Alexander Halter 08.2016 1.0 Initial version
Programming
Alexander Halter 08.2016 1.0 Initial version
Test Jochen Reu 11.2017 1.0 Initial version
Documentation
Jochen Reu 11.2017 1.0 Initial version
Codesys¶
- InOut:
Scope Name Type Initial Comment Input rIn REAL Analog input value
rSwitchOffPoint REAL 3 Switch-off threshold
rSwitchOnPoint REAL 7 Switch-on threshold
eAction eControlMode eControlMode.Direct Direction of action of sequence control (inverted = heating, direct = cooling)
Output xY BOOL Binary output signal