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: Shows TRUE within the time range between on-event and off-event, otherwise FALSE.
- Current Interval: Shows the time of the current interval.
- On Min: Shows the minimal time the "Is On"-value is TRUE.
- On Max: Shows the maximal time the "Is On"-value is TRUE.
- On Avg: Shows the average time the "Is On"-value is TRUE.
- On Total: Shows the total time the "Is On"-value is TRUE.
- Off Min: Shows the minimal time the "Is On"-value is FALSE.
- Off Max: Shows the maximal time the "Is On"-value is FALSE.
- Off Avg: Shows the average time the "Is On"-value is FALSE.
- Off Total: Shows the total time the "Is On"-value is FALSE.
- Count On: Counts the amount of raised 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.