FB_BA_Blink
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.
nTiNextSwi is a countdown [s] to the next change of bQ.
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] |
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 |