Control2Seq

Control2Seq (FB)

FUNCTION_BLOCK Control2Seq

Short description

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

Representation

Interfaces

Inputs

Name
Data type
Value range
Initial value
Function

rIn

REAL

Analog input value

Outputs

Name
Data type
Value range
Initial value
Function

xY

BOOL

Binary output signal

Setpoints / Parameters

Name
Data type
Value range
Initial value
Function

rSwitchOffPoint

REAL

3.0

Switch-off threshold

rSwitchOnPoint

REAL

7.0

Switch-on threshold

eAction

eControlMode

eControlMode.Direct

Action sense of the sequence control (Inverted = Heating, Direct = Cooling)

Function description

Digital output xY

The digital output xY is influenced by the action sense eAction, the analog input value rIn and the two switching thresholds rSwitchOffPoint and rSwitchOnPoint is influenced. If the action sense eControlMode.Direct is selected, then the switch-on threshold must be rSwitchOnPoint greater than the switch-off threshold rSwitchOffPoint be. If the action sense eControlMode.Inverted is selected, then the switch-on threshold must be rSwitchOnPoint less than the switch-off threshold rSwitchOffPoint be.\

eAction

rIn

xY

Notes

eControlMode.Direct

rIn < rSwitchOnPoint and rIn* > rSwitchOffPoint

unchanged

Action sense = Direct: Actual value does not exceed any thresholds

eControlMode.Inverted

rIn > rSwitchOnPoint and rIn* < rSwitchOffPoint

unchanged

Action sense = Inverted: Actual value does not exceed any thresholds

eControlMode.Direct

rIn >= rSwitchOnPoint

TRUE

Action sense = Direct: Actual value exceeds switch-on threshold

eControlMode.Direct

rIn <= rSwitchOffPoint

FALSE

Action sense = Direct: Actual value falls below switch-off threshold

eControlMode.Inverted

rIn <= rSwitchOnPoint

TRUE

Action sense = Inverted: Actual value falls below switch-on threshold

eControlMode.Inverted

rIn >= rSwitchOffPoint

FALSE

Action sense = Inverted: Actual value exceeds switch-off threshold

CODESYS

InOut:

Scope
Name
Type
Initial

Input

rIn

REAL

Input Const

rSwitchOffPoint

REAL

2

Input Const

rSwitchOnPoint

REAL

6

Input Const

eAction

eControlMode

eControlMode.Direct

Output

xY

BOOL

Last updated