Rockwell Automation 1771-DA,D17716.5.13 U MNL 1771-DA ASCII I/O MODULE User Manual

Page 124

Advertising
background image

ASCII I/O Module Tutorial

Chapter 4

4Ć50

For example, suppose that you want to display a column of 8-digit
diagnostic codes that indicate the status of system operation. The
diagnostic codes are the variable that your program moves into your
message file at the appropriate addresses.

To display the following diagnostic codes

12345678
ABCD4321
FACEBAC2

you will load your message file in hex as follows. Do this later in step 2.

RADIX = %A START = WO006:0000

WORD #

00000

0

0000

1

0000

2

1041

3

1038

4

3B36

5

413A

6

1234

7

5678

00010

3A00

1038

3B37

413A

ABCD

4321

3A00

1038

00020

3B36

413A

FACE

BAC2

3A0D

0000

0000

0000

Notice the following:

The home position of the cursor (1041) appears once before you

specify line and column numbers.

The column numbers remained constant at 31 in this example.
The line numbers advanced by one (31, 32, 33,...) in this example.
The BCD delimiter (3A) precedes and follows the variable.
The end-of-string delimiter (0D) is placed at the end of this single

string.

Normally, you would enter zeros for variables (diagnostic codes) when
setting up your file, and your program would move real values into the
storage words for the variables. In this example, you will load the
diagnostic codes into the file.

Advertising