Continuous Piece Counter 1Ch
The Continuous Piece Counter 1Ch counts the number of pieces within the configured interval. The counter is increased 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. The algorithm provides the amount of pieces, the minimal and the maximal number of pieces as well as the time values of minimum and maximum.
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 counter increments when the signal passes this threshold.
- Interval: Time interval in which the values are to be calculated.
- Tolerance (optional): Tolerance value for the Equal / NotEqual comparisons.
Output Values
- Num Interval: Shows the number of intervals.
- Count Last Interval: Shows the amount of pieces in the last interval.
- Count Current Interval: Shows the amount of pieces in the current interval.
- Count Min: Shows the minimal number of pieces in an interval.
- Count Max: Shows the maximal number of pieces in an interval.
- Time Count Min: Shows the time value of the minimum.
- Time Count Max: Shows the time value of the maximum.
- Current Interval Time: Shows the time of the current interval.
Standard HMI Controls
For the Continuous 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 Continuous Piece Counter 1Ch algorithm using the Mapping Wizard.