4.
USER SCREEN MODE
Guide to Screen Objects
Storage in word devices
ASCll codes are stored in programmable controller word devices (T, C, D). The data stored in
the lower
8
bits is displayed first, as shown below.
Example 1. Displaying two one-byte characters (ASCII codes)
...
D O 1-word designation
The required ASCll codes (taken from the
[
I
ASCll code table in the appendix) are:
How the data is stored:
Upper bits
Lower bits
DO(H)
(
4
(
2
(
4
(
1
I
-
The first data displayed is that of the lower bits.
8
A
Example 2. Displaying a user-defined character ... DO I-word designation
The required ASCII code (takenfrom the
ASCll code table in the appendix) is:
=
HF053
The order of storage
How the data is stored:
dlgits and lower iwo
Upper bits
Lower bits
5
1
3
1
F
1
0
0
Example 3. Display of one two-byte character and two one-byte characters
...
DO 2-word
designation
1
The required ASCll codes (taken from the
ASCll code table in the appendix) are:
C
=
H43 (one-byte character; 8 bits)
=
HF053 (two-byte character; 16 bits)
D
=
H44 (one-byte character; 8 bits)
How the data is stored:
Order of display of data
Upper bits
Lower bits
The upper two digits and lower two digits
of the two-byte ASCll code are stored in
reverse
order.
Note: I f the ASCll code H O (two-byte or one-byte) is designated the character that follows
it will not be displayed on the screen.
T O enter a space i n a character string, designate H8140 for a two-byte space, or HZ0
for a one-byte space, for storage in a word device.