FB_BA_DlyOff

FB_BA_DlyOff 1:

The template implements a switch-off delay and can be used for the overrun control of pumps.

FB_BA_DlyOff 2:

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

Block diagram

FB_BA_DlyOff 3:

Syntax

FUNCTION_BLOCK FB_BA_DlyOff EXTENDS FB_BA_View
VAR_INPUT
  bVal         : BOOL;
END_VAR
VAR_OUTPUT
  bQ           : BOOL;
  nRT          : UDINT;
END_VAR
VAR_INPUT CONSTANT
  TiDly        : FB_BA_AV_Op;
END_VAR
VAR
  tofDlyOff    : TOF;
END_VAR

FB_BA_DlyOff 4: Inputs

Name

Type

Description

bVal

BOOL

A falling edge activates the switch-off delay.

FB_BA_DlyOff 5: Outputs

Name

Type

Description

bQ

BOOL

State of the switch-off delay.

nRT

UDINT

Remaining time of the switch-off delay. After this time has elapsed, bQ is set to FALSE.

FB_BA_DlyOff 6: Inputs CONSTANT

Name

Type

Description

TiDly

FB_BA_AV_Op

AV object for entering the value of the switch-off delay.

Variables

Name

Type

Description

tofDlyOff

TOF

The timing element is the core of this template for switch-off delay.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0