For the complete documentation index, see llms.txt. This page is also available as Markdown.

XPulse

XPulse (FB)

FUNCTION_BLOCK XPulse

Short description

Generation of a single 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 from the start of the pulse

Setpoints / Parameters

Name
Data type
Value range
Initial value
Function

xTest

BOOL

FALSE

Input simulation xIN

Functional description

General

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

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