FB_BA_Toggle

FB_BA_Toggle 1:

The function block is used to switch an actuator on or off.

The input bEn is used for enabling the function block.
A positive edge at the input bOn results in setting of output bQ. The output is reset by a rising edge at the bOff input. If a rising edge is presented to bToggle, the output is negated; i.e., if On it goes Off, and if Off it goes On.

VAR_INPUT

bEn     : BOOL;
bOn     : BOOL;
bOff    : BOOL;
bToggle : BOOL;

bEn: Function block enable.

bOn: Switches the output on.

bOff: Switches the output off.

bToggle: Negates the current output state.

VAR_OUTPUT

bQ    : BOOL;

bQ: Control output.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.7

Tc3_BA from v1.1.6.0