XPulseR
XPulseR (FB)
FUNCTION_BLOCK XPulseR
Short description
Generation of a single pulse with adjustable duration and reset capability.
Representation

Interfaces
Inputs
xIN
BOOL
Binary input (FALSE > TRUE)
tPT
TIME
T#1s
Duration of the output pulse in s
xReset
BOOL
Binary reset input (FALSE > TRUE)
Outputs
xQ
BOOL
Pulse output (FALSE = Off, TRUE = On)
tET
TIME
0 … tPT
Current duration of the pulse at xQ in s
Setpoints / parameters
xTest
BOOL
FALSE
Binary test input (FALSE > TRUE)
Function description
General
At the pulse output xQ is after each rising edge (FALSE > TRUE) at the binary input xIN and/or at the setpoint / parameter xTest a pulse with a duration tPT generated (precondition: xReset = FALSE). Each rising edge (FALSE > TRUE) at the reset input xReset resets the pulse output xQ immediately (= FALSE). The edge detection (FALSE > TRUE) on the inputs xIN or xTest has a higher priority compared to the edge detection on the input xReset (FALSE > TRUE). This results in the fact that despite simultaneous edge detection a pulse with a duration tPT is generated at the output xQ . The setpoint / parameter xTest is cyclically deactivated (= FALSE).

CODESYS
InOut:
Input
xIN
BOOL
Input
tPT
TIME
TIME#1s0ms
Input
xReset
BOOL
Input Const
xTest
BOOL
FALSE
Output
xQ
BOOL
Output
tET
TIME
Last updated

