FB_BA_Dmp2P

FB_BA_Dmp2P 1:

The template is for the control of a two-point damper with integrated monitoring of both end positions.

It essentially consists of the base class FB_BA_ActuatorCmd for controlling a binary aggregate and collecting all safety-related faults. The two templates MonitOpn and MonitCls are used to monitor the end positions.

FB_BA_Dmp2P 2:

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

Block diagram

FB_BA_Dmp2P 3:

Syntax

FUNCTION_BLOCK FB_BA_Dmp2P EXTENDS FB_BA_ActuatorCmd
VAR_OUTPUT
  bSwiOpn       : BOOL;
  bSwiCls       : BOOL;
END_VAR
VAR_INPUT CONSTANT
  SwiOpn        : FB_BA_BI_Raw;
  SwiCls        : FB_BA_BI_Raw;
  MonitOpen     : FB_BA_FdbBinary;
  MonitClose    : FB_BA_FdbBinary;
END_VAR

FB_BA_Dmp2P 4: Outputs

Name

Type

Description

bSwiOpn

BOOL

End position "Open" has been reached.

bSwiCls

BOOL

End position "Closed" has been reached.

FB_BA_Dmp2P 5: Inputs CONSTANT

Name

Type

Description

SwiOpn

FB_BA_BI_Raw

Binary input object is used to process the limit switch "Open".

SwiCls

FB_BA_BI_Raw

Binary input object is used to process the limit switch "Closed".

MonitOpen

FB_BA_FdbBinary

The template monitors the "Open" end position.

MonitClose

FB_BA_FdbBinary

The template monitors the "Closed" end position.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0