Read inspection results (cont’d) – Rockwell Automation 5370 Color CVIM Communications Manual User Manual

Page 86

Advertising
background image

Chapter 5
Using the RS–232 Ports

5–18

After executing a command, the Color CVIM module will return: [CR][LF]
followed by the data. If you do not have the proper command structure, the
Color CVIM module will return: ?[CR][LF]. After reading the results, the
Color CVIM module will return the requested data. The format of the
requested data is in an ASCII representation of the specified block(s) in
bytes.

If you requested results blocks, each byte is represented by two
hexadecimal characters (00 through FF) followed by a space. Twenty
bytes of data are transmitted in a line terminated with a [CR][LF]. Since
the results blocks are 128 bytes in size, each block requires seven lines.
Refer to Appendix C for block descriptions. The following is an example
of the returned data format:

Figure 5.5
Numerical Results Block Returned Data Format

[CR] [LF]

61_01_04_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00~00_[CR][LF]

00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00~00_[CR][LF]

00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_01_00_00_[CR][LF]

00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_32_00_00_00_00_[CR][LF]

00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_[CR][LF]

00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_[CR][LF]

00_00_00_00_00_00_00_CC_[CR][LF]

If you requested discrete bit information, the returned data will contain
two counters and the discrete bit results. Each counter has 12 positions
(10 characters, 2 spaces) reserved for a maximum value of 4,294,967,295.

Note: Counters are decimal values. All other fields are hexadecimal values.

The counter data is left justified and the remaining field is filled with
spaces. The first counter contains the total number of triggers processed.
The second counter contains the total number of faults. Both counters are
expressed as decimal values. The results bit information (128 bits per
comment, or 256 bits total), which follows the counters, is 16 bytes long.
Each byte is represented by two hexadecimal characters (00 through FF)
followed by a space. The following is an example of the returned data
format:

Figure 5.3
Discrete Bit Results Returned Data Format

[CR][LF]

1234567890__1234567890__80_00_00_00_00_00_00_00_00_00_00_00_00_00_00_00_[CR][LF]

Refer to Appendix B for a description of the returned bytes.

Read Inspection Results
(cont’d)

Advertising