ASCII I/O Module Tutorial
Chapter 4
445
Results The file displays the 15 data characters, which include ASCII
characters and BCD values segregated by delimiters.
RADIX = %H START = WO006:0000
WORD #
00000
0
0000
1
0000
2
4142
3
4344
4
002F
5
1234
6
2F35
7
3641
00010
4243
0000
0000
0000
0000
0000
0000
0000
RADIX = %A START = WO006:0000
WORD #
00000
0
00H00H
1
00H00H
2
A B
3
C D
4
00H /
5
12H 4
6
/ 5
7
6 A
00010
B C
00H00H 00H00H
00H00
00H00H 00H00H 00H00H 00H00H
Notice the following:
The BCD delimiter is stored as a character in the string.
The number of characters transferred is 15.
The data is stored in seven words.
The ASCII display did not correctly present BCD digits (see hex
display). The industrial terminal cannot correctly display BCD values
in an ASCII display.
3.
For comparison of data storage, enter the following. The BCD
delimiter segregates five digits instead of four.
Enter ABCD/12345/6ABC[ENTER]
Results The file displays 15 data characters, which include ASCII
characters and BCD values segregated by delimiters.
RADIX = %H START = WO006:0000
WORD #
00000
0
0000
1
0000
2
4142
3
4344
4
002F
5
0001
6
2345
7
2F36
00010
4142
4300
0000
0000
0000
0000
0000
0000
RADIX = %A START = WO006:0000
WORD #
00000
0
00H00H
1
00H00H
2
A B
3
C D
4
00H /
5
00H01H
6
# E
7
/ 6
00010
A B C
00H
00H00H
00H00
00H00H 00H00H 00H00H 00H00H
StockCheck.com