beautypg.com

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

Page 112

background image

ASCII I/O Module Tutorial

Chapter 4

4Ć38

Results The file displays the five character string in ASCII or in hex,
respectively. The data is left justified.

RADIX = %A START = WO006:0000

WORD #

00000

0

00H00H

1

00H00H

2

3

4

5

6

7

00010

00H00H 00H00H 00H00H 00H00H 00H00H 00H00H

RADIX = %H START = WO006:0000

WORD #

00000

0

0000

1

0000

2

3132

3

3334

4

3520

5

2020

6

2020

7

2020

00010

2020

2020

0000

0000

0000

0000

0000

0000

Notice the following:

The data string of five characters was transferred when you entered the

end-of-string delimiter.

The end-of-string delimiter was not transferred to the data table.
The data was left justified.
The module added fill characters, blanks in ASCII or 20 in hex, in

display words 4 (lower byte), 5, 6, 7, 20, and 11 to complete the string.

String Length Greater Than Module's String Length

When the module receives a string of data greater than the set string
length, it does the following:

Immediately transfers the number of characters equal to its set string

length to the processor.

Sets bit 14 in status word one, Input String > Maximum, SW1(14). The

bit is immediately reset when the processor confirms receipt of data.

Retains the balance of data in its input buffer.
Transfers the balance of data with new data when it receives enough

new data to complete the string, or when the new data contains an
end-of-string delimiter.