XPulseR

XPulseR (FB)

FUNCTION_BLOCK XPulseR

Short description

Generation of an exclusive pulse with adjustable duration and reset capability.

Representation

Interfaces

Inputs

Name
Data type
Value range
Initial value
Function

xIN

BOOL

Binary input (FALSE > TRUE)

tPT

TIME

T#1s

Pulse output duration in s

xReset

BOOL

Binary reset input (FALSE > TRUE)

Outputs

Name
Data type
Value range
Initial value
Function

xQ

BOOL

Pulse output (FALSE = Off, TRUE = On)

tET

TIME

0 … tPT

Current pulse duration at xQ in s

Set values / parameters

Name
Data type
Value range
Initial value
Function

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:

Scope
Name
Type
Initial

Input

xIN

BOOL

Input

tPT

TIME

TIME#1s0ms

Input

xReset

BOOL

Input Const

xTest

BOOL

FALSE

Output

xQ

BOOL

Output

tET

TIME

Last updated