Event Timing Analysis 2Ch

The Event Timing Analysis 2Ch measures time differences between on- and off-event and counts the amount of raised events. An on-event is raised when the signal of the first input channel passes the configured edge at a specific on-threshold and an off-event is raised when the off-threshold is passed by the signal of the second channel.
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
- Type of the edge: Specifies whether the edge counter should respond to a rising or falling edge.
- Threshold On: Threshold of the signal at the respective edge. The On event is triggered when the signal passes this threshold.
- Reset On Multiple On: If the checkbox is checked, the "Count On" counter increments with every On event. Otherwise, the On events are only counted after a counter reset (Off event).
- Threshold Off: Threshold of the signal at the respective edge. The Off event is triggered when the signal passes this threshold.
- Init With Threshold: If the value is TRUE, the algorithm uses a threshold to initialize the internal state, instead of waiting for an edge.
- Tolerance (optional): Tolerance value for the Equal / NotEqual comparisons.
Output values
- Is On: Indicates TRUE within the timespan between the On event and the Off result, otherwise FALSE.
- Current Interval: Indicates the time of the current interval.
- Last On Interval: Timespan of the last completed interval between On event and Off event.
- Last Off Interval: Timespan of the last completed interval between Off event and the On event.
- On Min: Minimum time between On event and Off event.
- On Max: Maximum time between On event and Off event.
- On Avg: Average time between On event and Off event.
- On Total: Total time between On events and Off events.
- Off Min: Minimum time between Off event and On event.
- Off Max: Maximum time between Off event and On event.
- Off Avg: Average time between Off event and On event.
- Off Total: Total time between Off events and On events.
- Count On: Counts the number of triggered On events.
Standard HMI Controls
For the Event Timing Analysis 2Ch algorithm, the following HMI controls are available for generating an Analytics Dashboard:
1. The EventTiming control visualizes the output values Is On, Count On, Current Interval, On Min, On Max, On Avg, On Total, Off Min, Off Max, Off Avg and Off Total.

2. The SingleValue control visualizes the output value Count On.

3. The Table Control or Multivalue Control visualizes all output values: Is On, Count On, Current Interval, On Min, On Max, On Avg, On Total, Off Min, Off Max, Off Avg, Off Total.



Alternatively, customer-specific HMI controls can be mapped in the Event Timing Analysis 2Ch algorithm using the Mapping Wizard.