14.4 AHEX (Conversion: Hexadecimal ASCII → HEX)
■
Ladder diagram
■
Available operation units (●: Available)
Operatio
bit
n unit
i
■
List of operands
Operand
Description
S1
Starting number of the area that stores an ASCII code
The area that stores the number of ASCII codes (number of characters) to be converted, or the
S2
constant
D
Starting number of the area that stores the hexadecimal figure as the conversion result
■
Available devices (●: Available)
Operan
d
W
W
X
Y
S1
●
●
S2
●
●
D
●
●
(Note 1)
Can be specified only when the operation unit is signed integer (SS, SL).
(Note 2)
Can be specified only when the operation unit is unsigned integer (US, UL).
■
Outline of operation
● This instruction converts the ASCII code string into a hexadecimal figure.
● The ASCII code stored in the area specified by [S1] is converted into a hexadecimal figure
and stored in the area specified by [D].
● The number of ASCII codes (number of characters) to be converted is specified by [S2].
● The conversion results are stored in byte units.
● If the number of characters to be converted is an odd number, Bits 0 to 3 of the final data
(bytes) of the conversion result are padded with '0'.
WUME-FP7CPUPGR-12
14.4 AHEX (Conversion: Hexadecimal ASCII → HEX)
US
●
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
●
●
●
●
●
●
●
●
●
●
●
●
●
●
SS
UL
●
●
32-Bit
device:
TS
TE
U
W
WI
C
C
M
O
S
E
SL
SF
●
Real
Integer
numbe
r
K
U
(N
(N
D
IX
H
SF
F
ote
ote
1)
2)
●
●
●
DF
St
rin
g
Index
modifie
r
" "
●
●
●
14-13