FB_BA_OpMod1St

FB_BA_OpMod1St 1:

The template maps a single-stage plant selector switch with the operating modes Auto, Manual Off and Manual On.

A plant can be switched on or off via the input bValPgm in the operating mode Auto.

FB_BA_OpMod1St 2:

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

Block diagram

FB_BA_OpMod1St 3:

Syntax

FUNCTION_BLOCK FB_BA_OpMod1St EXTENDS FB_BA_View
VAR_INPUT
  bValPgm     : BOOL;
END_VAR
VAR_INPUT CONSTANT
  OpModMan    : FB_BA_MV_Op;
  OpModPr     : FB_BA_MV_Op;
END_VAR
VAR_OUTPUT
  eOpMod      : E_BA_OnOff;
  bCmd        : BOOL;
END_VAR

FB_BA_OpMod1St 4: Inputs

Name

Type

Description

bValPgm

BOOL

A plant can be switched on or off via the input in the operating mode "Auto".

FB_BA_OpMod1St 5: Inputs CONSTANT

Name

Type

Description

OpModMan

FB_BA_MV_Op

The Multistate-Value object represents an operating mode switch with the operating modes "Auto", "Manual Off" and "Manual On".

OpModPr

FB_BA_MV_Op

The Multistate-Value object indicates the state of the currently valid plant operating mode.

FB_BA_OpMod1St 6: Outputs

Name

Type

Description

eOpMod

E_BA_OnOff

Displays the state of the currently valid plant operating mode.

bCmd

BOOL

The output shows the state of the currently valid plant operating mode.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0