FB_BA_H_OpMod

FB_BA_H_OpMod 1:

The FB_BA_H_OpMod template represents the operation mode and enable of a heating circuit.

The OpModSwi priority switch prioritizes various events or commands such as heating circuit fault, requests from the schedule or requests from the plant selector switch and writes a resulting operation mode or system status to the eOpMode variable.

eOpMode

Value

Operation mode1

E_BA_EnergyLvl.eProtection

1

Protection

E_BA_EnergyLvl.eEconomy

2

Economy

E_BA_EnergyLvl.eComfort

3

Comfort

FB_BA_H_OpMod 2:

The initialization of the template takes place within the method FB_Init.

Block diagram

FB_BA_H_OpMod 3:

Syntax

FUNCTION_BLOCK FB_BA_H_OpMod EXTENDS FB_BA_View
VAR_INPUT
  bDst             : BOOL;
  bHtgLmt          : BOOL;
  bTWthLowLimit    : BOOL;
END_VAR
VAR_OUTPUT
  eOpMod           : E_BA_EnergyLvl;
  bRls             : BOOL;
END_VAR
VAR_INPUT CONSTANT
  OpModMan         : FB_BA_MV_Op;
  Sched            : FB_BA_SchedM;
  OpModPr          : FB_BA_MV_Op;
  Rls              : FB_BA_BV_Op;
END_VAR
VAR
  OpModSwi         : FB_BA_PrioSwi_UDI08;
  RlsMMux          : FB_BA_MMUX_B04;
END_VAR

FB_BA_H_OpMod 4: Inputs

Name

Type

Description

bDst

BOOL

Heating circuit fault input.

bHtgLmt

BOOL

Heating mode enable input.

bTWthLowLimit

BOOL

The variable indicates that the outside temperature has fallen below the lower limit and the frost protection function is active.

FB_BA_H_OpMod 5: Outputs

Name

Type

Description

eOpMode

E_BA_EnergyLvl

Display of the current operation mode of the heating circuit.

bRls

BOOL

Heating circuit enable output depending on the multiplexer RlsMMux.

FB_BA_H_OpMod 6: Inputs CONSTANT

Name

Type

Description

OpModMan

FB_BA_MV_Op

The MV object serves as plant selector switch. The following operation modes can be set: Auto, Protection, Economy and Comfort.

The Auto operation mode means that the Sched schedule specifies the operation mode.

Sched

FB_BA_SchedM

Schedule for switching between the Protection, Economy and Comfort operation modes.

OpModPr

FB_BA_MV_Op

Current operation mode of the heating circuit.

Rls

FB_BA_BV_Op

Indicates the enable of the heating circuit.

Variables

Name

Type

Description

OpModSwi

FB_BA_PrioSwi_UDI08

Priority switch for the operation modes of the heating circuit.

RlsMMux

FB_BA_MMUX_B04

The multiplexer converts the eOpMod operation mode into the bRls enable.