Rockwell Automation 5370-CMPK Color CVIM Module MATH-PAK User Manual
Page 29

Chapter 4
Defining Formulas
4–14
Table 4.C (part 1 of 3)
Operand Definitions
Key
Operand
Type
*Operand Symbol
*Sub-code (s)
Type of Data Returned to Formula
CNT
Counter
CNT.s
(s = 0 to 2)
.0
.1
.2
Total number of triggers.
Number of missed triggers.
Number of master range faults.
G
Gage
GAGEn.s
(n = 1 to 64)
(s = 0 to 9)
.0
.1
.2
.3
.4
.5
.6
.7
.8
.9
Gage measurement value (# of pixels, # of edges, etc.).
Pass/fail condition for warning range (1 = pass, 0 = fail).
Pass/fail condition for fault range (1 = pass, 0 = fail).
Second coordinate value (Y coordinate for X Position gage;
X coordinate for Y Position gage).
Number of faults detected.
Nominal value.
Fault range high.
Fault range low.
Warning range high.
Warning range low.
W
Window
WINn.s
(n = 1 to 48)
(s = 0 to 19)
.0
.1
.2
.3
.4
.5
.6
.7
.8
.9
1,2
.10
1,2
.11
1,2
.12
1,2
.13
1,2
.14
1,2
.15
1,2
.16
1,2
.17
1,2
.18
1,2
.19
1,2
Window measurement value (# of pixels, # of objects, etc.).
Pass/fail condition for warning range (1 = pass, 0 = fail).
Pass/fail condition for fault range (1 = pass, 0 = fail).
Number of faults detected.
Nominal value.
Fault range high.
Fault range low.
Warning range high.
Warning range low.
Total number of objects counted before target filtering.
Perimeter value of first counted object.
Area value of first counted object.
X center value of first counted object.
Y center value of first counted object.
Inertial value of first counted object.
Theta value of first counted object.
Min radius value of first counted object.
Max radius value of first counted object.
H size value of first counted object.
L size value of first counted object.
*The letter n = tool or formula number (as appropriate). The letter s = operand subcode.
1
Window sub-codes 9-19 pertain to the object–counting operation only. The “first counted object” is the object which, among those that satisfy the filter
parameters, is closest to the upper-left corner of the window.
2
If a filter parameter is not enabled for the window, a result of –1000 is returned for that parameter.