FB_BA_Analog3Pnt

FB_BA_Analog3Pnt 1:

The template converts a continuous control signal for the positioning of a 3-point actuator into the binary switching commands Open/Close.

FB_BA_Analog3Pnt 2:

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

Block diagram

FB_BA_Analog3Pnt 3:

Syntax

FUNCTION_BLOCK FB_BA_Analog3Pnt EXTENDS FB_BA_View
VAR_INPUT
  fValPgm     : REAL;
END_VAR
VAR_OUTPUT
  bOpn        : BOOL;
  bCls        : BOOL;
END_VAR
VAR_INPUT CONSTANT
  HysPos      : FB_BA_AV_Op;
  TiOpn       : FB_BA_AV_Op;
  TiCls       : FB_BA_AV_Op;
  Pos         : FB_BA_AV_Op;
END_VAR
VAR
  Anlg3Pnt    : FB_BA_Anlg3Pnt;
END_VAR

FB_BA_Analog3Pnt 4: Inputs

Name

Type

Description

fValPgm

REAL

Control value for the position of the actuator.

FB_BA_Analog3Pnt 5: Outputs

Name

Type

Description

bOpn

BOOL

Output for opening the actuator.

bCls

BOOL

Output for closing the actuator.

FB_BA_Analog3Pnt 6: Inputs CONSTANT

Name

Type

Description

HysPos

FB_BA_AV_Op

AV object for entering the hysteresis value to start the position change.

TiOpn

FB_BA_AV_Op

AV object for entering the opening time value.

TiCls

FB_BA_AV_Op

AV object for entering the closing time value.

Pos

FB_BA_AV_Op

Display of the calculated position.

VAR

Name

Type

Description

Anlg3Pnt

FB_BA_Anlg3Pnt

The function block is the core of the template and intended for controlling the three-point actuator. It converts an analog positioning signal into the binary open/close commands.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0