Display command
3.29.2 ASCII code conversion command ... ASC
Bit devices
X
ASC
D
Conversion command
Functions
Convert the specified alphanumeric characters to the ASCII code, and save it to the
four devices specified by
Before execution
ASC
CAUTION
•If the data is larger than the storable size of the applicable devices, the
exceeded data will modify other devices although no error will occur. Before
storing data, make sure to have enough devices available to store the data.
REMARKS
• Always use four devices for the ASC command.
If the set characters are less than 8 characters, the blank area is filled with spaces to make
up to 8 characters in total.
• Because of how GX Developer operates, the symbol [ " ] and lower-case English characters
cannot be specified. To display these symbol and characters, specify with ASCII code
directly.
198
Usable Devices
Word (16-bit)
devices
Y
M
T
ASCII characters
ASC
(8 characters)
.
D
ABCDEFGH
D9
Conversion into ASCII code
Constants Level
C
D
K
H
Set data
The first character of the device
D
where the ASCII code is saved
D
After execution
Upper
8 bits
D9
4 2 ( B)
D10
4 4 ( D)
4 6 ( F)
D11
D12
4 8 ( H)
ASCII code to be stored (hexadecimal)
Digit
Designation
(M9010,
N
M9011)
Lower
8 bits
4 1 ( A)
4 3 ( C)
4 5 ( E)
4 7 ( G)
Error
Flag