StartDelay
StartDelay (FB)
FUNCTION_BLOCK StartDelay
Short description
Generation of signals after each CPU restart. Use: Delayed enabling of actions after the CPU restart.
Representation

Interfaces
Outputs
xQ1
BOOL
Output 1
xQ1p
BOOL
Pulse output 1
xQ2
BOOL
Output 2
xQ2p
BOOL
Pulse output 2
Setpoints / Parameters
TimeQ2Puls
TIME
T#1s
Pulse duration - pulse output 2
TimeQ2
TIME
T#20s
Time delay - output 2
TimeQ1Puls
TIME
T#1s
Pulse duration - pulse output 1
TimeQ1
TIME
T#5s
Time delay - output 1
xTest
BOOL
FALSE
Simulation of CPU restart
Functional description
General
This function block is used to generate signals after each CPU restart. The CPU restart can be triggered by the simulation input xTest (= TRUE) independently of an actual CPU restart. The output xQ1 switches after each CPU restart with a time delay TimeQ1 from state FALSE permanently to state TRUE. At pulse output 1 xQ1p a one-time pulse with the pulse duration TimeQ1Puls is generated. The output xQ2 switches after each CPU restart with a time delay TimeQ2 from state FALSE permanently to state TRUE. At pulse output 2 xQ2p a one-time pulse with the pulse duration TimeQ2Puls is generated.

CODESYS
InOut:
Input Const
TimeQ2Puls
TIME
TIME#1s0ms
Input Const
TimeQ2
TIME
TIME#20s0ms
Input Const
TimeQ1Puls
TIME
TIME#1s0ms
Input Const
TimeQ1
TIME
TIME#5s0ms
Input Const
xTest
BOOL
FALSE
Output
xQ1
BOOL
Output
xQ1p
BOOL
Output
xQ2
BOOL
Output
xQ2p
BOOL
Last updated

