Control2Seq (FB)

FUNCTION_BLOCK Control2Seq

Short Descritpion

Sequence control with switch-on/switch-off threshold for an analog input signal
The direction of the action (inverted / direct) is also adjustable.

Portrayal

../_images/Control2Seq_FB.png

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

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.
If eControlMode.Direct is selected, the switch-on threshold rSwitchOnPoint must be greater than the switch-off threshold rSwitchOffPoint.
If eControlMode.Inverted is selected, the switch-on threshold rSwitchOnPoint must be smaller than the switch-off threshold rSwitchOffPoint.
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