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

Chapter 5
Using the RS-232 Ports
5–17
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.
The set statistics command has the following structure:
>SSn,TSxd,TSxd,etc.[CR]
(Set command)
Where n = Number of samples
Note: If n is 0, the CVIM module will continue to use the sample count
configured during setup. Any other value will change the sample count.
Where
x = 1 or 2
(
specifies toolset #1 or #2)
d = G1, G2, G3, G1–G3, etc.
(specifies Gages)
W1, W2, W3, W2–5, etc.
(specifies Windows)
RL1, RL2, etc.
(specifies Reference Lines)
RLW, RW2, etc.
(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 number of samples for each
toolset are accumulated separately. For example, if the latest toolset
specified is toolset #2, the statistics are accumulated based upon the number
of triggers for toolset #2.
Examples of Set Statistics Command:
>SS50,TS1LP,TS1RW2[CR]
This example sets the number of
samples to 50,configures the block
to contain light probe and reference
window #2 statistics (both from
toolset #1).
>SS100,TS2G5,TS2W12[CR]
This example sets the number of
samples to 100, configures the block
to contain gage #5 and window #12
statistics (both from toolset #2.
Set/Read Configurable
Statistics