beautypg.com

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

Page 82

background image

ASCII I/O Module Tutorial

Chapter 4

4Ć8

Display Your file-to-file move instruction displays your setting as
follows:

File Data

POSITION Hex Binary

003

0008 00000000 000010000

2.

Repeat step 2 of section titled “Changing the String Length.”

Results The read block transfer file displays the 15 data characters in
positions 003 thru 010 with the data left justified (Table 3.C).

Table 3.C

String Length, Left Justified

POSITION

FILE DATA

ASCII Equivalent

001

002

003

004

005

006

007

008

009

010

E010

0000

414C

4C45

4E20

4252

4144

4C45

5920

3120

status word one

status word two

A L

L E

N

B R

A D

L E

Y

1

The module placed the space (20) in position 010 because it left justified
the data.

Displaying Right Justified Data

In this demonstration, assume that your margin justification bit IW3(03)
had been reset for right justification (in data mode, only), and that
initialization words one and two are set as follows: IW1=0002 and
IW2=0015.

1.

Use file-to-file move instruction to store data you want write block
transferred to your industrial terminal for display. Load your
file-to-file move instruction (rung 15) exactly as shown (Table 4.D)
starting in position 001. Use the procedure in section titled “Writing
Data to Your ASCII Device”, P. 1-14.

Procedure P3 Set your industrial terminal to PLCĆ2 mode

Procedure P5 Load data into the fileĆtoĆfile move instruction