Interval Piece Counter 1Ch
The Interval Piece Counter 1Ch counts the amount of raised events within a configured interval, which starts when the value of the start interval flag is TRUE. An event is raised when the signal of the input channel passes the configured edge at a specific threshold. The calculation restarts when the time of the interval has elapsed and the value of the start interval flag is True again.
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: Threshold of the signal at the respective edge. The event is triggered when the signal passes this threshold.
- Reset On Multiple Start: If the checkbox is checked, the interval restarts when the Start Interval flag becomes TRUE again. Otherwise, the interval restarts automatically when the time has elapsed.
- Interval: Time interval in which the values are to be calculated.
- Tolerance (optional): Tolerance value for the Equal / NotEqual comparisons.
Output values
- Executing Interval: Indicates True if the calculation is active and the interval is running, otherwise False.
- Num Intervals: Indicates the number of intervals.
- Count Last Interval: Indicates the number of triggered events in the last interval.
- Count Current Interval: Indicates the number of triggered events in the current interval or, if the calculation is currently inactive, the number of triggered events in the last interval.
- Count Min: Indicates the minimum of triggered events in an interval.
- Count Max: Indicates the maximum of triggered events in an interval.
- Time Count Min: Indicates the time value of the minimum → the event can be dragged and dropped into the Scope chart to display it as a trigger-event.
- Time Count Max: Indicates the time value of the maximum → the event can be dragged and dropped into the Scope chart to display it as a trigger-event.
- Current Interval Time: Indicates the time of the current interval → the event can be dragged and dropped into the Scope chart to display it as a trigger-event.
Standard HMI Controls
For the Interval Piece Counter 1Ch algorithm, the following HMI controls are available for generating an Analytics Dashboard:
1. The PieceCounter control visualizes the output values Num Intervals, Count Last Interval, Count Current Interval, Count Min, Count Max, Time Count Min, Time Count Max and Time Current Interval.
2. The Table Control or Multivalue Control visualizes all output values: Num Intervals, Count Last Interval, Count Current Interval, Count Min, Count Max, Time Count Min, Time Count Max, Time Current Interval.
Alternatively, customer-specific HMI controls can be mapped in the Interval Piece Counter 1Ch algorithm using the Mapping Wizard.