Rockwell Automation 5370 Color CVIM Communications Manual User Manual

Page 113

Advertising
background image

Chapter 5
Using the RS–232 Ports

5–45

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 29.

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

Example:

This example reads configuration blocks 1 and 17.

If the BCC is not valid, the Color CVIM module will respond with a DLE
NAK and the command will not be executed.

If the BCC is valid, the Color CVIM module will respond with a DLE ACK.
Then the Color CVIM module will validate the command structure. If the
command is valid, the Color CVIM module will execute the command and
return the data. If the command structure is invalid, the Color CVIM module
will not execute the command or respond.

After reading the selected blocks, the Color CVIM module will return the
requested data. Each word of a configuration block is sent as two bytes with
the high byte transmitted first. A DLE (10 hex) is converted to DLE DLE (10
hex 10 hex). Refer to Appendix D for block descriptions and sizes. The
following is an example of how the returned data appears (each pair of digits
represents a single byte):

Read Configuration
Block Command (cont’d)

Advertising