StartDelay (FB)¶
FUNCTION_BLOCK StartDelay
Short Description¶
Generation of signals after each CPU restartUse case: Delayed release of actions after CPU restart
Portrayal¶
Interfaces¶
Outputs¶
Name Datatype
Range
Init-Value
Function
xQ1 BOOL Output 1
xQ1p BOOL Impulse output 1
xQ2 BOOL Output 2
xQ2p BOOL Impulse output 2
Setpoints / Parameters¶
Name Datatype
Range
Init-Value
Function
TimeQ2Puls TIME T#1s Impulse duration - impulse output 2
TimeQ2 TIME T#20s Time delay - output 2
TimeQ1Puls TIME T#1s Impulse duration - impulse output 1
TimeQ1 TIME T#5s Time delay - output 2
xTest BOOL FALSE Simulation of the CPU-Restart
Functional Description¶
General¶
These Functionblock is used for the generation of signals after each cpu-restart. the cpu-restart can be triggerd by the simulation input xTest (= TRUE)
independently of an actual CPU restart.
The output xQ1 changes permanently from FALSE to TRUE after each CPU restart with a time delay of TimeQ1.
At impulse output 1 xQ1p, a single impulse with the pulse length TimeQ1Pulse is generated during this status change.
The output xQ2 changes permanently from FALSE to TRUE after each CPU restart with a time delay of TimeQ2.
At impulse output 2 xQ2p, a single impulse with the pulse length TimeQ2Pulse is generated during this status change.

Visualization¶
Information¶
Element Authors
Date
Version Note
Function
Adam Bartod 04.2016 1.0 Initial version
Programming
Adam Bartod 04.2016 1.0 Initial version
Test Jochen Reu 05.2017 1.0 Initial version
Dcoumentation
Jochen Reu 10.2017 1.0 Initial version
Codesys¶
- InOut:
Scope Name Type Initial Comment Input TimeQ2Puls TIME TIME#1s0ms Impulse duration - impulse output 2
TimeQ2 TIME TIME#20s0ms Time delay - output 2
TimeQ1Puls TIME TIME#1s0ms Impulse duration - impulse output 1
TimeQ1 TIME TIME#5s0ms Time delay - output 2
xTest BOOL FALSE Simulation of the CPU-Restart
Output xQ1 BOOL Output 1
xQ1p BOOL Impulse output 1
xQ2 BOOL Output 2
xQ2p BOOL Impulse output 2