Ascii protocol, Overview – Rockwell Automation 5370 Color CVIM Communications Manual User Manual

Page 74

Advertising
background image

Chapter 5
Using the RS–232 Ports

5–6

10 Select the trigger source menu <Trigger Source>.

11 Select either <I/O>, <Hosted>, or <Auto Trigger> trigger source. Select

hosted trigger if you are using the RS–232 trigger commands. Use I/O
trigger if you are using the discrete I/O inputs as a trigger.

Note: The next section of this chapter describes ASCII protocol followed by
a description of DF1 protocol.

In describing the ASCII Protocol we use the following conventions:

Non–printable ASCII control characters are represented as follows:

[CR] = Carriage Return
[LF] = Line Feed
___ = Space

ASCII commands are provided in large bold characters:

>RR, RB,3 [CR]

Unless _ is specified, there are no spaces between characters. Some
commands have fields which can contain variable data such as number of
times a command is repeated, block numbers, data, etc. These fields are
shown using lowercase lettering:

>W,CBn,d [CR]

In this example, the letters n and d indicate data which is variable. The
other characters indicate fixed data.

After you have made the equipment connections and configured the Color
CVIM module for RS–232 communications, all ASCII strings generated by
the host will be interpreted as commands. The Color CVIM module will then
validate the command structure. If the command has an acceptable structure
the Color CVIM module will reply: [CR][LF]. Refer to Appendix E for an
ASCII conversion chart. If the command has an incorrect structure the Color
CVIM module will respond: ? [CR] [LF]. The Color CVIM module will
process all validated commands and discard any invalid commands. Data
may or may not be returned with a command depending upon the type of
command that was sent.

Note: A simple way to test the RS–232 links is to send the Color CVIM
module a [CR]. If you have the port properly connected and the Color CVIM
module configured for RS232, the Color CVIM module should send a ?
[CR][LF] in response. If no response is provided, check your connections
and Color CVIM module configuration.

ASCII Protocol

Overview

Advertising