Rockwell Automation 1771-DA,D17716.5.13 U MNL 1771-DA ASCII I/O MODULE User Manual
Page 115
![background image](/manuals/579280/115/background.png)
ASCII I/O Module Tutorial
Chapter 4
4Ć41
1.
Increase the number of initialization words to four by setting
appropriate bits. Set IW1=0003. Use procedure in section titled
“String Length Less Than Module’s String Length”, P. 3-10.
2.
Select the slash symbol (/) as the fill character to be removed using
procedure in section titled “Setting Bits In Initialization Words”, P.
3-30. The ASCII / is 2F in hex. Set IW4 = 2F00.
Display The initialization word file is displayed in hex and binary,
respectively, as follows:
RADIX = %H START = WO007:0000
WORD #
00000
0
0000
1
0000
2
0003
3
0015
4
0D00
5
2F00
START = WO007:0000
WORD #
00000
2
000000000000010
3
0000000000010101
4
0000110100001000
5
0010111100000000
NOTE: Binary words 0 and 1 were omitted for brevity.
3.
Enter: //AS//23//AS//4[ENTER]
Refer to procedures in section titled “Reading Data From Your ASCII
Device” (P. 1-28).
Procedure P1
Connect the 1770ĆCB cable, and set your industrial
terminal to alphanumeric mode (check parameters)
Initialize the module by changing PLCĆ3 operation mode
3[ENTER]2[ENTER]
Procedure P2
Enter your data
Procedure P3
Connect the 1775ĆCAT cable, and set your industrial
terminal to PLCĆ3 mode
Procedure P4
Observe how the data string is stored in data table file O6:0
Results The module transferred the data characters, extracted the fill
character, added its own fill character, and right justified the data.