Trigger operation command – Rockwell Automation 5370 CVIM Communications Manual User Manual
Page 116

Chapter 5
Using the RS–232 Ports
5–46
The block signature is 2 bytes long. The number of samples is a 2 byte
integer. The maximum and minimum values are each 4 bytes. The format of
the data depends upon the operation (e.g. pixel count is an integer and linear
gaging is a 16.16 fixed point value). Refer to page C–24 for data formats.
The average and standard deviation are also 4 bytes each but are always
16.16 fixed point values.
Therefore, each tool statistic consists of 18 bytes with the exception of
reference windows 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. The statistics block is read once for every number of
specified samples. This means that if you read the statistics block five times
with a sample number of 50, 250 triggers will have to be processed before
the five reads are completed. The following shows the format of the returned
data:
Statistics Block Returned Data Format*
*Data is transmitted without spaces, spacing added for clarity.
Use the trigger operation command to initiate an inspection by a toolset. Use
the following commands:
09
04
Triggers an inspection using toolset 1.
09
05
Triggers an inspection using toolset 2.
This function can only be executed once per command.
If the BCC is not valid, the CVIM module will respond with a DLE NAK
and the command will not be executed.
If the BCC is valid, the CVIM module will respond with a DLE ACK. Then
the CVIM module will validate the command structure. If the command is
Set/Read Configurable
Statistics (cont’d)
Trigger Operation Command