15 Applied Instructions (External Device (optional device))
15.3 ASCI / Hexadecimal to ASCII Conversion
398
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Devices after
(D100)=0ABCH
(D101)=1234H
(D102)=5678H
Number of digits (characters) specified and result of conversion
Bit composition in the case of n=K2
• When issuing as BCD data by printer or the like, before execution of this instruction, you must convert from
BIN to BCD.
Cautions
1) The instruction is provided in the FXU PLC Ver. 3.07 or later.
The instruction is provided in the FX
0N PLC Ver. 1.20 or later.
2) Instructions of pulse operation type are not provided in the FX
0N PLC.
To execute pulse operation, make the instruction execution condition pulse type.
3) Some restrictions to applicable devices.
S1: The FX
3S, FX3G, FX3GC, FX3U and FX3UC PLCs only are applicable.
S2: The FX
3G, FX3GC, FX3U and FX3UC PLCs only are applicable.
S3: The FX3U and FX3UC PLCs only are applicable.
K1 K2 K3 K4 K5 K6 K7 K8 K9
D 200C)B)A)0)4)3)2)1)8)
D 201 C)B)A)0)4)3)2)1)
D 202 C)B)A)0)4)3)2)
D 203 C)B)A)0)4)3)
D 204 C) B) A) 0) 4)
D 205 C) B) A) 0)
D 206 Not changed C) B) A)
D 207 C) B)
D 208 C)
0011110101010000
D 100=0ABCH
ASCII code of D200=B=42H
ASCII code of D201=C=43H
0ABC
0100001000000000
42
1100001000000000
43
ASCII code
0)=30H
A)=41H
B)=42H
C)=43H
1)=31H
2)=32H
3)=33H
4)=34H
5)=35H
6)=36H
7)=37H
8)=38H