Rockwell Automation 5370 CVIM Communications Manual User Manual
Page 81

Chapter 5
Using the RS-232 Ports
5–11
This function can only be executed once per command.
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.
Examples:
>RC,CB135[CR]
Reads configuration block 135.
>RC,CB99,CB7,CB1[CR]
Reads configuration blocks 1, 7, then 99.
>RC,CB1–135[CR]
Reads all the of configuration blocks
(excluding templates).
>RC,CB*[CR]
Reads all the of configuration blocks
(including templates).
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]. The format of the requested data is
an ASCII representation of the specified block(s) in bytes. Each byte is
represented by two hexadecimal characters (00 through FF) followed by a
space. The first two words are the signature word indicating block type and
number (Refer to Appendix D). Twenty bytes of data are transmitted in a
line terminated with a [CR][LF]. The size of the configuration block(s)
determines the number of lines that are returned. The template data (CB136)
is the only configuration block size that can exceed 128 bytes and therefore
may require more than a single block to output the data.
Note: When you specify CB136, you are reading all of the template blocks.
Word1, bits 8-15 of the first template block indicates the number of template
blocks that are transmitted (all blocks except last block are 128 bytes long).
Refer to Appendix D for block description and sizes. The following is an
example of how the returned data appears for command >RC, CB-1–2 [CR]:
Configuration Block Returned Data Format*
[CR] [LF]
48_01_02_00_00_00_00_00_44_65_66_61_75_6C_74_00_00_00_00_00_[CR][LF]
00_00_00_00_00_03_00_00_00_00_00_00_04_00_00_01_00_01_00_00_[CR][LF]
00_02_06_01_00_00_00_00_00_00_00_00_00_00_00_00_00_00_06_01_[CR][LF]
00_00_00_01_00_00_00_00_00_00_00_00_00_00_00_01_01_00_01_01–[CR][LF]
00_0D_FC_5F_9A_0A_00_19_FB_D1_[CR][LF]
48_02_FF_02_01_00_00_00_00_FA_00_10_00_01_01_00_00_00_00_00_[CR][LF]
00_00_00_3F_00_00_00_00_00_00_00_3F_00_00_00_00_00_00_00_64_[CR][LF]
00_32_01_2C_00_96_0A_62_00_01_00_00_00_01_00_00_00_01_00_00_[CR][LF]
00_01_00_00_00_01_00_00_00_01_00_00_00_64_00_32_01_2C_00_96_[CR][LF]
0A_62_00_01_00_00_00_01_00_00_00_00_80_00_00_00_00_00_00_00_[CR][LF]
00_00_00_00_00_00_00_01_00_00_00_00_00_00_00_00_00_00_00_01_[CR][LF]
00_00_00_00_00_00_49_CC_[CR][LF]
Space Added Between Blocks for Clarity