Edge Counter 1Ch
The Edge Counter 1Ch counts the amount of raised events. An event is raised when the signal of the input channel passes the configured edge at a specific threshold.
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.
- Tolerance (optional): Tolerance value for the Equal / NotEqual comparisons.
Output values
- Edge: Indicates TRUE at the time the event is triggered, otherwise FALSE.
- Count: Counts the number of triggered events.
- 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 Edge Counter 1Ch algorithm, the following HMI controls are available for generating an Analytics Dashboard:
1. The SingleValue control visualizes the output values Count and Last Event.
2. The Table Control or Multivalue Control visualizes all output values: Edge, Count, Last Event.
Alternatively, custom HMI controls can be mapped in the Edge Counter 1Ch algorithm using the Mapping Wizard.