FB_BA_Blink
Simple oscillator function block
Functional description
This function block is an oscillator with configurable pulse and pause time, udiTiOn and udiTiOff [ms]. It is enabled with a TRUE signal at bEn and starts with the pulse phase.
udiTiNextSwi is a countdown value [s] to the next change of bQ.
Inputs/outputs
VAR_INPUT
bEn : BOOL;
udiTiOn : UDINT;
udiTiOff : UDINT;
bEn: function block enable
udiTiOn: pulse time [ms]
udiTiOff: pause time [ms]
VAR_OUTPUT
bQ : BOOL;
udiTiNextSwi : UDINT;
bQ: oscillator output.
udiTiNextSwi: countdown to next change of bQ [s]
Requirements
Development environment | Target system | required library | required supplement |
---|---|---|---|
TwinCAT 2.11 R3/x64 | PC/CX | TcBA library from V1.0.0 | TS8040 | TwinCAT Building Automation from V1.0.0 |