Rockwell Automation 5370 Color CVIM Communications Manual User Manual

Page 85

Advertising
background image

Chapter 5
Using the RS–232 Ports

5–17

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, 4, 5, or 6) is being read (refer to
Appendix C).

>RR0,P1 [CR]

This command continuously reads
the first discrete bit results.
(24 bytes returned)

>RR,RB, 3[CR]

This command reads results block 3.
This operation is only performed
once in this example.
(128 bytes returned)

>RRx,RL,1[CR]

Reads the results of reference line #1.
(4 bytes returned)

>RRx,RW,3[CR]

Reads the results of reference window #3.
(28 bytes returned)

>RRx,G,21[CR]

Reads the results of gage #21.
(4 bytes returned)

>RRx,W,11[CR]

Reads the results of window
#11. (4 bytes returned)

>RRx,LP[CR]

Reads the results of light
probe. (12 bytes returned)

>RRx,S[CR]

Reads the Color CVIM module status.
(2 bytes returned)

Note: Refer to Appendix B, Table B.1, RS–232 word 0 for a definition of
Color CVIM module status.

Read Inspection Results
(cont’d)

Advertising