Statistics block – Rockwell Automation 5370 Color CVIM Communications Manual User Manual

Page 199

Advertising
background image

Appendix C
Numerical Results Data

C–20

The statistics block can only be formatted through the Remote I/O port, but
can be read through either the BAckplane or Remote I/O port. The statistics
block has user defined contents, and may contain up to 64 words of data.
See Table C.8.

Table C.8
Statistics Block

Word#

Bit#

Function

Notes

0

0–15

Block Transfer Signature

1–63

0–15

User Defined Statistics Data

Each type of statistic requires a specific number of words. Use the following
as a guideline when setting up a programmable block transfer:

Block Signature

= 1 word

Number of Samples

= 1 word (2 Byte Integer)

Minimum and Maximum Values

= 4 bytes

Window (Object & Pixel)

32 Bit Integer

Window(Luminance)

16 Point 16

Window (Color Match)

32 Bit Integer

Window (Color ID)

32 Bit Integer

Window (Gradient)

32 Bit Integer

Brightness Probe

16 Point 16

Reference Window

16 Bit Integer & 16 Point 16

Gage (Linear Measure)

16 Point 16

Gage (Edge, Pixel, Object)

32 Bit Integer

Average

= 4 Bytes

(16 Point 16 for fixed point values)
(24 Point 8 for integers)

Standard Deviation

= 4 bytes (16 Point 16)

Each tool statistic consists of 18 bytes with the exception of reference
windows and brightness probe which contain 18 bytes for each feature or a
total of 54 bytes. The statistics block is transmitted as two hexadecimal
characters for each byte. The total number of bytes including the block
signature should not exceed 128 bytes.

If you request more results than will fit into 63 words, the Color CVIM will
truncate the data and set an error bit in word 1.

Statistics Block

Advertising