Set/read configurable statistics – Rockwell Automation 5370 Color CVIM Communications Manual User Manual

Page 122

Advertising
background image

Chapter 5
Using the RS–232 Ports

5–54

Use the read command to read statistical data for the light probe, reference
windows, gages, and windows. Use the separate set command to set the
number of samples and configure the statistics block. Remember that only
the system (SYS) host can change the sample numbers.

The set configurable statistics command has the following structure:

16 00

nn

Flags (16 Bytes)

Where nn specifies the number of samples.

Note: If nn is 00, the Color CVIM module will continue to use the sample
count configured during setup. Any other value will change the sample
count.

The flags indicate which items are placed in the statistics block. Refer to
Table C.5 in Appendix C. Set the bits to 1 for the statistics you need.

The read configurable statistics command has the following structure:

Where nn specifies the number of times the statistics block is read.

Statistics are accumulated until the number of samples is reached, at which
point the statistics begin to reaccumulate.

Example of Set Command:

Flags (16 Bytes)

This example sets the number of samples to 50.

Example of Read Command:

This example reads the statistics block five times.

Set/Read Configurable
Statistics

Advertising