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

Page 91

Advertising
background image

Chapter 5
Using the RS–232 Ports

5–23

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. This command must
be sent by the system host (SYS).

The set statistics command has the following structure:

>SSn,d,d,etc.[CR]

(Set command)

Where n = Number of samples

Note: If n is 0, the Color CVIM module will continue to use the sample
count configured during setup. Any other value will change the sample count
(if this port is the SYS host).

Where d =

G1, G2, G3, G1–G3, etc. (specifies Gages)
WI, W2, W3, W2–5, etc. (specifies Windows)
RW1, RW2, RW3

(specifies Reference
Windows)

LP

(specifies Light
Probe)

The read statistics command has the following structure:

> RSn [CR]

(Read Statistics Command)

Where n = Number of times statistics block is read.

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

Examples of Set Statistics Command:

>SS50,LP,RW2[CR]

This example sets the
number of samples to 50,
configures the block to
contain light probe and
reference window #2
statistics.

>SS100,G5,W12[CR]

This example sets the
number of samples to
100, configures the block
to contain gage #5 and
window #12 statistics.

Set/Read Configurable
Statistics

Advertising