ASCII I/O Module Tutorial
Chapter 4
434
Results The example 15-character data string is displayed in ASCII or
hex, respectively, as follows:
RADIX = %A START = WO006:0000
WORD #
00000
0
10H
1
00H00H
2
A
3
L L
4
E N
5
B
6
R A
7
D L
00010
E Y
1
00H00H 00H00H 00H00H 00H00H 00H00H 00H00H
RADIX = %H START = WO006:0000
WORD #
00000
0
2010
1
0000
2
2041
3
4C4C
4
454E
5
2042
6
5241
7
444C
4559
2031
0000
0000
0000
0000
0000
0000
The number of characters transferred was 15, the value you set in
IW2(00=13).
The module added a fill character, blank in ASCII or 20 in hex, in the first
data word (display word 2) ahead of the data string due to right
justification of data.
Block Transfer Error
If characters were not displayed when you entered them, examine the
BTR and BTW instructions for an error. You clear an error by resetting
control word FB004:0000 bits 03 and 13. Press
DD, B4:0
0[ENTER][CANCEL COMMAND]
Initialization Error
If characters were not displayed when you entered them, but the display
of transferred data contained only the code X4XX in status word one, you
have an initialization error. Repeat the procedure in section titled “Setting
Bits in Initialization Words” exactly as shown, setting IW1(00-01)=10 in
binary or 2 in hex. A setting of IW1(00-01)=11 in binary or 3 in hex will
not work in this example.
The module justifies data before it transfers this data to the processor data
table. The module left justifies data by placing the first character in the
upper byte of the first word address of the file. The module right justifies
Justifying Data
StockCheck.com