beautypg.com

Rockwell Automation 5370 CVIM Communications Manual User Manual

Page 106

background image

Chapter 5

Using the RS–232 Ports

5–36

For example: To read configuration blocks 49 and 50 you would send:

06(hex) for byte 1–

Indicates a read command.

07(hex) for byte 2–

Specifies the configuration blocks.

00(hex) for bytes 4 through 8.

03(hex) for byte 9–

Sets the first two bits of byte 9 to indicate blocks 49
and 50.

00(hex) for bytes 10 through 19.

Refer to Appendix C for a description of the configuration blocks. You
cannot use this command while the CVIM module is in the SETUP mode.

Example:

This example reads configuration blocks 1 and 17.

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
valid, the CVIM module will execute the command and return the data. If the
command structure is invalid, the CVIM module will not execute the
command or respond.

Read Configuration
Block Command (cont’d)