PulseShift (FB)

FUNCTION_BLOCK PulseShift

Short Descritpion

Edge-controlled, delayed impulse generation with adjustable impulse duration


Portrayal

../_images/PulseShift_FB.png

Interfaces

Inputs

Name

Datatype

Range

Init-Value

Function

xIN BOOL    

Binary input

tShift TIME   T#1s

Delay time

tPT TIME   T#1s

Time duration of the output impulse

Outputs

Name

Datatype

Range

Init-Value

Function

xQ BOOL    

Impulse output

tET TIME    

Time difference between the target time duration and the duration of the impulse on xQ

Setpoints/parameters

Name

Datatype

Range

Init-Value

Function

xTest BOOL   FALSE

Simulation of the Input xIN

Functional description

General

After a positive edge at the binary input xIN and a subsequent delay time tShift,
a impulse with a time duration tPT is generated at the impulse output xQ. Alternatively, impulse generation can also be triggered by the setpoint / parameter
xTest.

../_images/PulseShift_Bild_1.png

Time output tET

If the impulse output xQ is active, the time difference between the target duration tPT and the time duration of the impulse on
xQ is displayed. If pulse output xQ is inactive, the value T#0s is always displayed.

Visualisation




Information

Element

Authors

Date

Version

Information

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

Codesys

InOut:
Scope Name Type Initial Comment
Input xIN BOOL  

Binary input

tShift TIME TIME#1s0ms

Delay time

tPT TIME TIME#1s0ms

Time duration of the output impulse

xTest BOOL FALSE

Simulation of the Input xIN

Output xQ BOOL  

Impulse output

tET TIME  

Time difference between the target time duration and the duration of the impulse on xQ