ASCII I/O Module Tutorial
Chapter 4
440
RADIX = %A START = WO006:0000
WORD #
00000
0
00H00H
1
00H00H
2
0 1
3
2 3
4
4 5
5
6 7
6
8 9
7
0 1
00010
2 3 4 00H00H 00H00H 00H00H 00H00H 00H00H 00H00H
RADIX = %H START = WO006:0000
WORD #
00000
0
0000
1
0000
2
3031
3
3233
4
3435
5
3637
6
3839
7
3031
00010
3233
3420
0000
0000
0000
0000
0000
0000
The second transfer occurred when you pressed [ENTER] and transferred
the balance of data from the module’s input buffer. The balance of data is
displayed in ASCII or hex, respectively, as follows:
RADIX = %A START = WO006:0000
WORD #
00000
0
00H00H
1
00H00H
2
5 6
3
7 8
4
9
5
6
7
00010
00H00H 00H00H 00H00H 00H00H 00H00H 00H00H
RADIX = %H START = WO006:0000
WORD #
00000
0
0000
1
0000
2
3536
3
3738
4
3920
5
2020
6
2020
7
2020
00010
2020
2020
0000
0000
0000
0000
0000
0000
Your program must include instructions for processing new data read
from the module. If not, data in your read block transfer file will be
written over in the next read block transfer.
Your program does this by moving new data from the read block transfer
file into storage file MVF O6:0 in rung RM17 (Figure 3.6). The rung
moves only new data when transferred from the module.
Whenever the module encounters the ASCII character that you defined in
IW4(10-16) as the fill character to be removed, the module removes it
from the string. Select a fill character to be removed that is identical to
the fill character of your ASCII device. Then the module transfers only
data, justifies the data, and adds its own fill character equal in number to
those it removed. (Refer to section titled “Your ASCII Module Inserts Fill
Characters,” (P. 2-22). If your ASCII device uses fill characters for
positioning data, remove them with caution because their positioning
value can be nullified.
In this demonstration you will select a fill character and observe how the
module removes it.
Removing the Fill Character
StockCheck.com