Ascii character set, Command structure – Rockwell Automation 5370 Color CVIM Communications Manual User Manual

Page 75

Advertising
background image

Chapter 5
Using the RS–232 Ports

5–7

Note: Some commands cause a continuous flow of returned data. To stop the
flow of data you should send another command (valid or invalid). We
recommend using a [CR] to stop the transmission of data.

The Color CVIM module recognizes the following ASCII characters; all
other characters are ignored.

Upper and lowercase letters A through Z (case is insignificant).

Symbols:

> (greater than)
* (star)
, (comma)
– (dash)
(space) represented by __

Nonprintable control characters:

CR (carriage return)
LF (line feed)
XON
XOFF

Numbers 0 through 9

Each command the host device sends to the Color CVIM module consists of
an ASCII string of characters beginning with > and terminated with a [CR].
Characters in between are separated into fields by commas. The following
shows the structure of a typical command:

> OPERATION (X times), (OBJECT), (DATA) CR

( ) Indicates Optional Information

Header

Field 1

Field 2

Field 3

Trailer

Note: The x times modifier is only used with certain commands to indicate
the number of times the command is to be performed. The range for this
value is between 0 and 255. A value of 0 indicates infinity. If you do not
specify a value, a default of 1 is provided.

ASCII Character Set

Command Structure

Advertising