StartDelay
StartDelay (FB)
StartDelay (FB)FUNCTION_BLOCK StartDelay
Short description
Generation of signals after each CPU restart. Use: Delayed release 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
Set values / 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 the CPU restart
Function 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 changes after each CPU restart with a time delay TimeQ1 from the state FALSE permanently to the state TRUE. At pulse output 1 xQ1p a single pulse with the pulse length TimeQ1Puls is generated. The output xQ2 changes after each CPU restart with a time delay TimeQ2 from the state FALSE permanently to the state TRUE. At pulse output 2 xQ2p a single pulse with the pulse length 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

