Read configuration block command – Rockwell Automation 5370 Color CVIM Communications Manual User Manual

Page 111

Advertising
background image

Chapter 5
Using the RS–232 Ports

5–43

This example will read the status of all fourteen outputs. FF sets all bits in
byte 3 (outputs 1 though 8) and 3F sets bits 0 through 5 of byte 4 (outputs 9
through 14).

One byte is returned to indicate the status of the output (1 = ON and 0 =
OFF). The output bytes are transmitted in numerical order (output #1 then
output #2, etc.). The amount of data returned depends upon the number of
outputs being read.

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.

Use the read configuration command to read configuration data for the
specified object. The command has the following structure:

06 07 Flags (27 Bytes)

This function can only be executed once per command. The only valid object
for this command are the configuration blocks.

The flags indicate which of the 213 configuration blocks are going to be
read. Set the bits in bytes 3 through 29 of the command to specify the
block(s). Use the following chart to determine which bits to set:

Read Output Status (cont’d)

Read Configuration
Block Command

Advertising