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

Interfaces
Inputs
xIN
BOOL
Binary input (FALSE > TRUE)
tPT
TIME
T#1s
Pulse output duration in s
xReset
BOOL
Binary reset input (FALSE > TRUE)
Outputs
xQ
BOOL
Pulse output (FALSE = Off, TRUE = On)
tET
TIME
0 … tPT
Current pulse duration at xQ in s
Set values / parameters
xTest
BOOL
FALSE
Binary test input (FALSE > TRUE)
Function description
General
At the pulse output xQ a pulse is generated after every rising edge (FALSE > TRUE) at the binary input xIN and/or at the setpoint / parameter xTest with a duration of tPT generated (precondition: xReset = FALSE). Every rising edge (FALSE > TRUE) at the reset input xReset immediately resets the pulse output xQ to FALSE). Edge detection (FALSE > TRUE) at the inputs xIN or xTest has priority over edge detection at 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

