For the complete documentation index, see llms.txt. This page is also available as Markdown.

DeviceSimple2

DeviceSimple2 (FB)

FUNCTION_BLOCK DeviceSimple2

Short description

Representation

Interfaces

Inputs

Name
Data type
Value range
Initial value
Function

xEn

BOOL

Device request

xForce

BOOL

FALSE

Forced override after manual override

xFb

BOOL

Device operating message

xAlarmIn

BOOL

Device fault message

eAOO

HVACTYPES.eManBin

HVACTYPES.eManBin.Auto, HVACTYPES.eManBin.ManOff, HVACTYPES.eManBin.ManOn

HVACTYPES.eManBin.Auto

Operating mode of the manual override - hardware

xQuit

BOOL

FALSE

Reset of the operating supervision fault message

Outputs

Name
Data type
Value range
Initial value
Function

xHB

BOOL

* FALSE: Manual output: device not enabled * TRUE: Manual output: device enabled

xAB

BOOL

* FALSE: Automatic output: device not enabled * TRUE: Automatic output: device enabled

xEnergyRequest

BOOL

* FALSE: Energy generation request not enabled * TRUE: Energy generation request enabled

xAlarmFb

BOOL

* FALSE: Operating supervision fault message not enabled * TRUE: Operating supervision fault message enabled

tOffDelay

TIME

Remaining run-on time of the device

dtLastFb

DATE_AND_TIME

Date / time of the device's last operation

dtAbsLastOn

DATE_AND_TIME

Date / time of the last anti-blocking operation

udiOperatingHours

UDINT

Operating hours of the device

udiCountFb

UDINT

Number of switch-ons of the device

xAlarm

BOOL

* FALSE: Collective fault message not enabled * TRUE: Collective fault message enabled

xAuto

BOOL

* FALSE: Collective automatic operation message not enabled * TRUE: Collective automatic operation message enabled

Setpoints / Parameters

Name
Data type
Value range
Initial value
Function

xAlarmControl

BOOL

FALSE

* FALSE: xHb from xAlarm independent * TRUE: xHb is when xAlarm locked when = TRUE

udiFbControlTime

UDINT

0 … 300s

60s

Duration of the operating supervision

xFbControl

BOOL

TRUE

* FALSE: Operating supervision not enabled * TRUE: Operating supervision enabled

xForceOption

BOOL

TRUE

* FALSE: Output xHB with forced override OFF * TRUE: Output xHB with forced override ON

tAbsTime

UDINT

0 … 600s

120s

Duration of the anti-blocking operation

tAbsTime

TOD

00:00:00 - 23:59:59

08:00:00

Time of the anti-blocking operation

eAbsDay

eDoW

eDoW.Monday … eDoW.Sunday

eDoW.Monday

Day of the week of the anti-blocking operation

eOffDelayTimeBase

eTime

eTime.Second, eTime.Minute, eTime.Hour

eTime.Second

Scaling of the run-on time (seconds / minutes / hours)

udiOffDelay

UDINT

0 … 60min

120s

Run-on time duration of the device

eManModeB

eMANBIN

eMANBIN.Auto, eMANBIN.ManOff, eMANBIN.ManOn

eMANBIN.Auto

Operating mode of the manual override for the digital output xHB

Functional description

Automatic output xAB

The digital automatic output xAB is influenced by the input xEn, the output xAlarm, the run-on module and the anti-blocking protection module.

xEn

xAlarm

xAlarmControl

Run-on module

Anti-blocking protection module

xAB

Notes

X

TRUE

TRUE

X

X

FALSE

Shutdown via collective fault enabled

FALSE

X

FALSE

FALSE

FALSE

FALSE

Automatic operation Off

TRUE

x

FALSE

FALSE

FALSE

TRUE

Automatic operation On

X

X

FALSE

TRUE

X

TRUE

Run-on operation

X

x

FALSE

X

TRUE

TRUE

Anti-blocking operation

Legend: X = any With the parameter xAlarmControl the behavior of the output can xAB be influenced in the event of a fault. If xAlarmControl = TRUE, in the event of a fault (xAlarm = TRUE) the automatic output xAB is switched off; if the manual override module is in automatic mode, then the output xHB is also switched off. If xAlarmControl = FALSE, there is no reaction.

Manual output xHB

The digital manual output xHB corresponds to the digital automatic output xAB, additionally extended by a manual override module and by a forced override.

xAB

eMANBIN

xForce

xForceOption

xHB

Notes

FALSE

eMANBIN.Auto

FALSE

X

FALSE

Manual override module in automatic mode

TRUE

eMANBIN.Auto

FALSE

X

TRUE

Manual override module in automatic mode

X

eMANBIN.ManOn

FALSE

X

TRUE

Manual override module in manual mode On

X

eMANBIN.ManOff

FALSE

X

FALSE

Manual override module in manual mode Off

X

X

TRUE

FALSE

FALSE

Forced override Off

X

X

TRUE

TRUE

TRUE

Forced override On

Legend: X = any

Request - energy generation xEnergyRequest

The digital output xEnergyRequest is influenced by the input xFb, the run-on module and the anti-blocking protection module.

xFB

Run-on module

Anti-blocking protection module

xEnergyRequest

Notes

FALSE

X

X

FALSE

Circulation pump is not in operation

TRUE

FALSE

FALSE

TRUE

Circulation pump is in operation

TRUE

TRUE

X

FALSE

Run-on module is in operation

TRUE

X

TRUE

FALSE

Anti-blocking protection module is in operation

Legend: X = any

Run-on module

The run-on module is implemented by a switch-off delay with adjustable duration. The input of the run-on module is active if the enable ‘xEn’ is active and at the same time the collective fault message xAlarm is not active.

Anti-blocking protection module

The anti-blocking protection module is implemented by the binary anti-blocking protection module with adjustable duration. The duration tAbsTime, the time tAbsTime and the weekday eAbsDay are adjustable. The timestamp (date / time) of the last anti-blocking operation dtAbsLastOn is available.

Output xAlarm

xAlarmIn

xAlarmFb

xAlarm

Notes

FALSE

FALSE

FALSE

Collective fault is inactive

TRUE

FALSE

TRUE

External hardware fault is active

FALSE

TRUE

TRUE

Operating supervision fault is active

TRUE

TRUE

TRUE

Both faults are active

Legend: X = any

Collective automatic operation message xAuto

The collective automatic operation message xAuto is activated (= TRUE) if the input eAOO contains the value HVACTYPES.eManBin.Auto and the setpoint / parameter eManModeB contains the value eMANBIN.Auto. In all other cases, the collective automatic operation message xAuto is not activated (= FALSE).

Forced override xForce

The forced override acts directly on the output xHB. With the parameter xForceOption it is determined which state the output xHB assumes when TRUE is at the input xForce .

Operating hours counter

The operating hours counter is active if the circulation pump is in operation (xFb = TRUE) and at the same time the collective fault xAlarm is not active (xAlarm = FALSE). The number of operating hours udiOperatingHours, and the number of switch-ons udiCountFb are output at the corresponding outputs. The timestamp (date / time) of the operation of the circulation pump dtLastFb is available.

Write access to the counter values

Via the path ‘InstanceName._OperatingHours.udiOperatingHours’ or ‘InstanceName._OperatingHours.udiCountFb’, write access to both counter values is possible.

Operating supervision

The operating supervision monitors the proper function of the circulation pump. The supervision can generally be enabled (xFbControl = TRUE) or locked (xFbControl = FALSE). Automatic operation of the circulation pump must also be active (eAOO = HVACTYPES.eManBin.Auto). The input xFb and the output xHB are continuously compared with each other. If the states are always different during an adjustable period of time udiFbControlTime always unequal (i.e. pump enabled but no operating feedback), then the fault message of the operating supervision xAlarmFb is activated. The fault message of the operating supervision xAlarmFb is reset if the enable of the supervision xFbControl is locked, or the reset input xQuit is active, or automatic operation of the circulation pump (eAOO = HVACTYPES.eManBin.Auto) is activated.

Visualization

Representation

Interfaces visualization element

Name
Data type
Type
Initial value
Function

FB_Pump

Pump

VAR_IN_OUT

Enter FB Pump here, e.g. PRG.Pump

rRotation

INT

VAR_INPUT

The rotation of the pump graphic can be entered here as a degree value. E.g. 90 corresponds to a rotation of 90 degrees to the right. -90 degrees corresponds to a rotation of 90 degrees to the left.

Note: VAR_IN_OUT interfaces must be assigned; VAR_INPUT is optional.

CODESYS

InOut:

Scope
Name
Type
Initial

Input

xEn

BOOL

Input

xForce

BOOL

FALSE

Input

xFb

BOOL

Input

xAlarmIn

BOOL

Input

eAOO

eManBin

eManBin.Auto

Input

xQuit

BOOL

FALSE

Output

xHB

BOOL

Output

xAB

BOOL

Output

xAlarmFb

BOOL

Output

dtLastFb

DT

Output

udiOperatingHours

UDINT

Output

udiCountFb

UDINT

Output

xAlarm

BOOL

Output

xAuto

BOOL

Input Const

udiFbControlTime

UDINT

60

Input Const

xFbControl

BOOL

TRUE

Input Const

xForceOption

BOOL

FALSE

Input Const

eManModeB

eMANBIN

eMANBIN.Auto

Methods:

mQuit

mResetOperatingHours

Structure:

  • mQuit (Method)

  • mResetOperatingHours (Method)

Last updated