Rockwell Automation 5370-CUPK Color CVIM USER-PAK Option User Manual

Page 94

Advertising
background image

Chapter 8

Defining Strings for Serial Ports and Viewports

8 – 5

Table 8.A (pt. 1 of 3)
Data Codes

Data Code

Subcodes (.s)

Description of field

Gn.0

Gage measurement value (# of pixels, # of edges, etc.)

Gn.1

Pass/fail condition for warning range (1 = pass, 0 = fail).

Gn.2

Pass/fail condition for fault range (1 = pass, 0 = fail).

Gn.s

(n = 1 to 64)

Gn.3

Second coordinate value (Y coordinate for X Position gage;
X coordinate for Y Position gage).

(n = 1 to 64)

(s = 0 to 9)

Gn.4

Number of faults detected.

(For Gages)

Gn.5

Nominal value

(For Gages)

Gn.6

Fault range high.

Gn.7

Fault range low.

Gn.8

Warning range high.

Gn.9

Warning range low.

Wn.0

Window measurement value (# of pixels, # of objects, etc.).

Wn.1

Pass/fail condition for warning range (1 = pass, 0 = fail).

Wn.2

Pass/fail condition for fault range (1 = pass, 0 = fail).

Wn.3

Number of faults detected.

Wn.4

Nominal value.

Wn.5

Fault range high.

Wn.6

Fault range low.

Wn.7

Warning range high.

Wn.s

(n = 1 to 48)

Wn.8

Warning range low.

(s = 0 to 19)

Wn.9

Total number of objects counted before target filtering.

(For Windows)

Wn.10

Perimeter value of first counted object.

Wn.11

Area value of first counted object.

Wn.12

X center value of first counted object.

Wn.13

Y center value of first counted object.

Wn.14

Inertial value of first counted object.

Wn.15

Theta value of first counted object.

Wn.16

Min radius value of first counted object.

Wn.17

Max radius value of first counted object.

Wn.18

H size value of first counted object.

Wn.19

L size value of first counted object.

The letter n = tool or formula number (as appropriate). The letter s = operand

subcode.

Window subcodes 9 to 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. If a filter parameter is not enabled for
the window, a result of –1000 is returned for that parameter.

Advertising