7. APPLICATION INSTRUCTIONS
7 − 57
MELSEC-A
7.4.7 ASCII code conversion
(ASC)
Available Device
Bit device Word (16-bit) device Constant Pointer
Level
Carry
flag
Error
flag
X Y M L S B F T C D W R A0 A1 Z V K H P I N
Digit specification
Index
M9012 (M9010, M9011)
(D) O O O O O O O
Function Converts the specified alphanumeric characters into the ASCII code and stores the
result into devices of four points which begin with the device specified at (D).
Executed Conditions
Applicable
CPU
All CPUs
(D)
Head number of device
which will store ASCII
code
Setting data
Conversion command
(D)
ASC
ASCII characters
(8 characters)
Before execution
Conversion into ASCII code
After execution
Lower
8 bits
Upper
8 bits
ASCII code to be stored
hexadecimal
OFF
ON
Conversion command
ASC
Executed
only once
Executed
only once