MPulse (FB)¶
FUNCTION_BLOCK MPulse
Short Descritpion¶
Edge-controlled impulse generation with adjustable minimum duration
Portrayal¶
Interfaces¶
Inputs¶
Name Datatype
Range
Init-Value
Function
xIN BOOL Binary input
tPT TIME T#1s Minimum duration of the output impulse
Outputs¶
Name Datatype
Range
Init-Value
Function
xQ BOOL Impulse output
tET TIME Time difference between minimum time duration and duration of the impulse at xQ
Functional Description¶
General¶
At impulse output xQ, a impulse with a minimum time duration tPT is generated at the binary input xIN
after a positive edge.

time output tET¶
If the impulse output xQ is active, the time difference between the minimum duration tPT and the duration of the impulse at xQ is displayed.
of the impulse at xQ is displayed. If the impulse output xQ is inactive, the value T#0s is always displayed.
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
Codesys¶
- InOut:
Scope Name Type Initial Comment Input xIN BOOL Binary input
tPT TIME TIME#10s0ms Minimum duration of the output impulse
Output xQ BOOL Impulse output
tET TIME Time difference between minimum time duration and duration of the impulse at xQ