Owner's manual

ASCII I/O Module Tutorial
Chapter 4
442
RADIX
= %A ST
AR
T = WO006:0000
WORD #
00000
0
00H00H
1
00H00H
23456
A
7
S 2
00010
3 A
S 4 00H00H 00H00H 00H00H 00H00H 00H00H 00H00H
RADIX = %H ST
AR
T = WO006:0000
WORD #
00000
0
0000
1
0000
2
2020
3
2020
4
2020
5
2020
6
2041
7
5332
00010 3341 5334 0000 0000 0000 0000 0000 0000
This feature does not allow your program to add data characters in place
of fill characters removed from the string. This feature changes the
position of the data.
When header and trailing characters are removed from a data string, only
the balance is counted as data in the string. Trailing characters are not
removed until the data string exceeds the set string length. The first
characters of the string are counted by the module as header characters
and can be removed regardless of the number of characters in the string.
1. Set the number of header characters (three) and trailing characters
(four) to be removed be setting IW4(00-03) and IW4(04-07) to 3 hex
and 4 hex, respectively. Use the procedure in section titled
“Demonstrating End-of-String Delimiter”, P. 3-9. Retain previous
initialization data.
Display The initialization word file is displayed in hex and binary,
respectively, as follows:
RADIX
= %H ST
AR
T = WO007:0000
WORD #
00000
0
0000
1
0000
2
0003
3
0015
4
0D00
5
2F43
STAR
T = WO007:0000
WORD #
00000
2
000000000000010
3
0000000000010101
4
0000110100001000
5
0010111100000000
NOTE:
Binary words 0 and 1 were omitted for brevity
.
2. Enter: 0123456789012345678901[ENTER]
Refer to procedures in section titled “Reading Data From Your ASCII
Device” (P. 1-28), if necessary.
Removing Header and Trailing
Characters