XY Gate Monitor 2Ch

The XY Gate Monitor 2Ch counts the amount of intersections of an XY input with a specified gate or its projection (straight line between the gate points) depending on the configured Gate Mode. The analysis period can be started with the inputs Start and Stop. The algorithm is direction sensitive, which means that just intersection in the right direction are counted. The direction interpretation depends on the order of the gate points (X1/Y1) and (X2/Y2). The possible intersection directions are visualized below.
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.
Directions of the intersection points:
The blue arrow represents the signal direction and the black lines illustrate the gate with its gate points (X1/Y1) and (X2/Y2). The direction of the intersection points is counted when the signal rotates counterclockwise around the first gate point (X1/Y1).

Configuration Options
- Gate Mode: Mode of the Gate Monitor:
- Intersect Gate: Determines if the XY signal intersects the gate in the configured direction. If there is an intersection during the analysis period, it will be classified as OK, otherwise NOK.
- Not Intersect Gate: Monitors if the XY signal does not intersect with the gate in the configured direction during the analysis period. Then it will be classified as OK, otherwise NOK.
- Intersect Projection: Determines if the XY signal intersects the projection of the gate in the configured direction. If there is an intersection during the analysis period, it will be classified as OK, otherwise NOK.
- Not Intersect Projection: Monitors if the XY signal does not intersect with the projection of the gate in the configured direction during the analysis period. Then it will be classified as OK, otherwise NOK.
- Intersect Gate Or Projection: Determines if the XY signal intersects the gate or its projection in the configured direction. If there is an intersection during the analysis period, it will be classified as OK, otherwise NOK.
- Gate 1 X: X position of the first gate point.
- Gate 1 Y: Y position of the first gate point.
- Gate 2 X: X position of the second gate point.
- Gate 2 Y: Y position of the second gate point.
Output values
- Gate Intersection: Indicates whether there is currently a gate intersection.
- Outlier Intersection: Indicates whether there is currently an outlier intersection (gate projection intersection).
- Position Intersection X: X-position of the last intersection.
- Position Intersection Y: Y-position of the last intersection.
- Count Gate Intersections: Indicates the total number of gate intersections.
- Count Outlier Intersections: Indicates the total number of outlier intersections.
- Time Intersection: Indicates the time of the last intersection event → the event can be dragged and dropped into the Scope chart to display it as a trigger-event.
- New Result: Indicates whether a new result was calculated or not.
- Executing: Indicates whether the algorithm is active or inactive.
- Classification: Indicates the classification result. OK or NOK. The classification depends on the gate mode, as can be seen above.
Standard HMI Controls
For the XY Gate Monitor 2Ch algorithm, the following HMI controls are available for generating an Analytics Dashboard:
1. The XYGateMonitor control visualizes the output values Gate Intersection, Outlier Intersection, Count Gate Intersections, Count Outlier Intersections and Last Intersection as well as the direction of the intersection points.

2. The Table Control or Multivalue Control visualizes all output values: Executing, Gate Intersection, Outlier Intersection, Position Intersection X, Position Intersection Y, Count Gate Intersections, Count Outlier Intersections, Last Intersection, Classification.



Alternatively, customer-specific HMI controls can be mapped in the XY Gate Monitor 2Ch algorithm using the Mapping Wizard.