FB_BA_Cont4Steps

FB_BA_Cont4Steps 1:

The template determines the resulting control steps of a 4-level aggregate, depending on the continuous input signal fIn.

FB_BA_Cont4Steps 2:

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

Block diagram

FB_BA_Cont4Steps 3:

Syntax

FUNCTION_BLOCK FB_BA_Cont4Steps EXTENDS FB_BA_View
VAR_INPUT
  bEn           : BOOL := TRUE;
  fIn           : REAL;
END_VAR
VAR_OUTPUT
  bQ01          : BOOL;
  bQ02          : BOOL;
  bQ03          : BOOL;
  bQ04          : BOOL;
END_VAR
VAR_INPUT CONSTANT
  SwitchOn01    : FB_BA_AV_Op;
  SwitchOn02    : FB_BA_AV_Op;
  SwitchOn03    : FB_BA_AV_Op;
  SwitchOn04    : FB_BA_AV_Op;
  Hys           : FB_BA_AV_Op;
  ActiveStep    : FB_BA_MV_Op;
END_VAR
VAR  ContStp    : FB_BA_ContStp;
END_VAR

FB_BA_Cont4Steps 4: Inputs

Name

Type

Description

bEn

BOOL

General enable of the template. If bEn is FALSE, all message outputs bQ0x are also FALSE.

fIn

REAL

Continuous input value from which the switching states are derived.

FB_BA_Cont4Steps 5: Outputs

Name

Type

Description

bQ01

BOOL

Shows status level 01

bQ02

BOOL

Shows status level 02

bQ03

BOOL

Shows status level 03

bQ04

BOOL

Shows status level 04

FB_BA_Cont4Steps 6: Inputs CONSTANT

Name

Type

Description

SwitchOn01

FB_BA_AV_Op

AV object for entering the switch-on point step 01.

SwitchOn02

FB_BA_AV_Op

AV object for entering the switch-on point step 02.

SwitchOn03

FB_BA_AV_Op

AV object for entering the switch-on point step 03.

SwitchOn04

FB_BA_AV_Op

AV object for entering the switch-on point step 04.

Hys

FB_BA_AV_Op

AV object for entering the hysteresis for the switch-on points.

ActiveStep

FB_BA_AV_Op

MV object for displaying how many steps are switched on.

Variables

Name

Type

Description

ContStp

FB_BA_ContStp

The function block determines the resulting control steps of a multi-stage aggregate depending on the continuous input signal fIn and is the core of this template

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.2.1.0