Echoing data, Enable/disable outputs – Rockwell Automation 5370 Color CVIM Communications Manual User Manual

Page 77

Advertising
background image

Chapter 5
Using the RS–232 Ports

5–9

Use the echo command to check the communications link. This command
will return the same same string of characters that are sent out with the
command. This command has the following structure:

>Ex,d [CR]

Where

x

specifies the number of times the Color CVIM module will echo the

data field back to the host device. If you fail to specify an

x

value, a default

value of 1 is assumed.

d

is the data that is to be echoed. The command is

valid at any time.

For example:

>E2,HELLO [CR]

This example will cause the Color CVIM module to return the string:

[CR] [LF]
HELLO [CR] [LF]
HELLO [CR] [LF]

If you do not have the proper command structure the Color CVIM module
will return:

?[CR] [LF]

Use this command to enable or disable outputs on the Local I/O Board
(Catalog No. 2801–JMB). Use the following commands:

> EO [CR]

This command enables the outputs.

> DO [CR]

This command disables the outputs.

After executing the command, the Color CVIM module will return: [CR]
[LF]
. No data is returned. If you do not have the proper command structure,
the Color CVIM module will return: ?[CR][LF].

Echoing Data

Enable/Disable Outputs

Advertising