Rockwell Automation 5370 CVIM Communications Manual User Manual
Page 83

Chapter 5
Using the RS-232 Ports
5–13
The read operation can be executed more than once per command by
specifying an x times value. The data in the read results block commands
indicate which results block (1, 2, 3, or 4) is being read (refer to Appendix
C).
>RR0,TS1[CR]
This command continuously reads
the first discrete bit results for toolset 1.
(24 bytes returned)
>RR,TS2RB,3[CR]
This command reads results block 3 for
toolset 2. This operation is only performed
once in this example. (128 bytes returned)
>RRx,TS1RL,1[CR]
Reads the results of toolset 1 reference line
#1. (4 bytes returned)
>RRx,TS2RW,3[CR]
Reads the results of toolset #2 reference
window #3. (28 bytes returned)
>RRx,TS1G,21[CR]
Reads the results of toolset #1 gage #21.
(4 bytes returned)
>RRx,TS2W,11[CR]
Reads the results of Toolset #2 window #11.
(4 bytes returned)
>RRx,TS1LP[CR]
Reads the results of toolset #1 light probe.
(12 bytes returned)
>RRx,S[CR]
Reads the CVIM module status.
(2 bytes returned)
Note: Refer to Appendix B, Table B.1, RS–232 word 0 for a definition of
CVIM module status.
After executing a command, the CVIM module will return: [CR][LF]
followed by the data. If you do not have the proper command structure, the
CVIM module will return: ?[CR][LF]. After reading the results, the 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: