XPulse (FB)

FUNCTION_BLOCK XPulse

Short Description

Generation of an exclusive impulse with adjustable time duration


Portrayal

../_images/XPulse_FB.png

Interfaces

Inputs

Name

Datatype

Range

Init-Value

Function

xIN BOOL    

Input

tPT TIME   T#1s

Impulse time duration

Outputs

Name

Datatype

Range

Init-Value

Function

xQ BOOL    

Output

tET TIME 0 ... tPT  

Time difference to beginning of impulse

Setpoints / Parameters

Name

Datatype

Range

Init-Value

Function

xTest BOOL   FALSE

Simulation of the Input xIN

Functional Description

General

These function block is used to generate an impulse with a defined time duration (tPT) after a triggered rising edge at the input xIN.
The generation of the impulses can be simulated independently by a triggered raising edge from the simulation input xTest.
The time difference to the start of the impulse is displayed at output tET (value range: 0... tPT).

../_images/XPulse_Bild_1.png

Visualization




Information

Element

Authors

Date

Version

Notes

Function

Adam Bartod 10.2017 1.0

Initial version

Programming

Adam Bartod 10.2017 1.0

Initial version

Test Jochen Reu 11.2017 1.0

Initial version

Documentation

Jochen Reu 11.2017 1.0

Initial version

Documentation

Lukas Pfänder 11.2017 0.1.3.0 Revision

Codesys

InOut:
Scope Name Type Initial Comment
Input xIN BOOL  

Input

tPT TIME TIME#1s0ms

Impulse time duration

xTest BOOL FALSE

Simulation of the Input xIN

Output xQ BOOL  

Output

tET TIME  

acutal state of the time function