Timespan Compare 1Ch

The Timespan Compare 1Ch compares the input value with a reference value and returns the result of this comparison operation. A timespan with a resolution of 1 ns is supported as an input. The operator, the reference value and the count mode can be configured individually.
Optionally, a Boolean signal can be selected for the Enable Execution input so that the algorithm is only active if the value of the selected signal is TRUE.
Configuration options
- Operator: specifies whether the input value should be greater than, greater than or equal to, less than or equal to, less than or not equal to the reference value.
- Reference: Reference timespan for the comparison operation.
- Count Mode: Mode of the result counter.
OnChange: The counter counts every time the result changes to TRUE.
Cyclic: The counter increments every cycle when the condition is TRUE. - Use Absolute Values: If the checkbox is checked, the absolute value of the input signal is used.
Output values
- Operation Out: Result of the comparison operation.
- Count: Incremented when the output value is TRUE. The behavior depends on the parameter Count Mode.
- Last Event: Indicates the time of the last triggered event → the event can be dragged and dropped into the Scope chart to display it as a trigger-event
Standard HMI Controls
For the Timespan Compare 1Ch algorithm, the following HMI controls are available for generating an Analytics Dashboard:
1. The Table Control visualizes all output values: Operation Out, Count, Last Event.
Alternatively, customer-specific HMI controls can be mapped in the Timespan Compare 1Ch algorithm using the Mapping Wizard.