FB_BA_DlyOn

FB_BA_DlyOn 1:

The template implements a start-up delay.

FB_BA_DlyOn 2:

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

Block diagram

FB_BA_DlyOn 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
  tonDlyOn    : TON;
END_VAR

FB_BA_DlyOn 4: Inputs

Name

Type

Description

bVal

BOOL

A rising edge activates the start-up delay.

FB_BA_DlyOn 5: Outputs

Name

Type

Description

bQ

BOOL

State of the start-up delay.

nRT

UDINT

Remaining time of the start-up delay. After this time has elapsed, bQ is set to TRUE.

FB_BA_DlyOn 6: Inputs CONSTANT

Name

Type

Description

TiDly

FB_BA_AV_Op

AV object for entering the value of the start-up delay.

Variables

Name

Type

Description

tofDlyOn

TON

The timing element is the core of this template for start-up delay.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0