MinOnOffTime (FB)¶
FUNCTION_BLOCK MinOnOffTime
“warp clock”-enabled minimum on-/off-time.
If xInput is TRUE MinOnOffTime set xOutput to TRUE for at least tMinOn. After xInput is set to FALSE and a new rising edge of xInput happens, xOutput doesnt follow xInput until tMinOff is expired.
“Warp clock”-enabled¶
Certain application domains base their functionality / algorithms on real world wall clock date/time. To develop such functionality it is helpful to have control over the application timeline to speedup testing or doesnt loose control on the timeline sitting on breakpoints. WarpClock and “warp clock”-enabled function blocks provides such a control if needed. For more details about “warp” time see WarpClock.
To use “warp” time connect an accordingly configured WarpClock to itfDateTimeProvider.
- InOut:
- Scope - Name - Type - Initial - Comment - Input - xInput- BOOL- FALSE - Input - tMinOn- TIME- TIME#0ms - Minimum on-time - tMinOff- TIME- TIME#0ms - Minimum off-time - xReset- BOOL- FALSE - Reset - itfDateTimeProvider- Util.IDateTimeProvider- Globals.g_dtpDateTimeProvider - Source for the current date and time information in milliseconds since 1.1.1970 00:00:00.000 - Output - xOutput- BOOL- Output - xError- BOOL- Error indication - eErrorID- Error ID 
