XPulse

XPulse (FB)

FUNCTION_BLOCK XPulse

Short description

Generation of an exclusive pulse with adjustable duration.

Representation

Interfaces

Inputs

Name
Data type
Value range
Initial value
Function

xIN

BOOL

Input

tPT

TIME

T#1s

Pulse duration

Outputs

Name
Data type
Value range
Initial value
Function

xQ

BOOL

Output

tET

TIME

0 … tPT

Time difference to pulse start

Set values / parameters

Name
Data type
Value range
Initial value
Function

xTest

BOOL

FALSE

Simulation of the input xIN

Function description

General

This function block is used to generate a pulse of defined duration (tPT) after a rising edge at the input xIN. The generation of the pulse can also be triggered independently by the simulation input xTest (rising edge). The time difference to the pulse start is displayed at the output tET (value range: 0 … tPT) .

CODESYS

InOut:

Scope
Name
Type
Initial

Input

xIN

BOOL

Input

tPT

TIME

TIME#1s0ms

Input Const

xTest

BOOL

FALSE

Output

xQ

BOOL

Output

tET

TIME

Last updated