FB_BA_Blink

FB_BA_Blink 1:

The function block FB_BA_Blink is an oscillator with adjustable pulse and pause time, nTiOn and nTiOff [ms]. It is enabled with a TRUE signal at bEn and starts with the pulse phase.

FB_BA_Blink 2:

nTiNextSwi is a countdown [s] to the next change of bQ.

FB_BA_Blink 3: Inputs

VAR_INPUT
  bEn          : BOOL;
  nTiOn        : UDINT;
  nTiOff       : UDINT;
END_VAR

Name

Type

Description

bEn

BOOL

Function block enable

nTiOn

UDINT

Pulse time [ms]

nTiOff

UDINT

Pause time [ms]

FB_BA_Blink 4: Outputs

VAR_OUTPUT
  bQ              : BOOL;
  nTiNextSwi      : UDINT;
END_VAR

Name

Type

Description

bQ

BOOL

Oscillator output

nTiNextSwi

UDINT

Countdown to next change of bQ [s]

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.22

Tc3_BA2 from v5.2.5.0