484
HEX, HEXP
(4) If the number of characters designated by n is not divisible by 4, "0" will be automatically stored after the designated
number of characters in the final device number of the devices which are storing the converted BIN values.
(5) If the number of characters designated by n is "0", conversion processing will not be conducted.
(6)
ASCII code that can be designated by includes from "30
H
" to "39
H
" and from "41
H
" to "46
H
"
.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Program Example
(1) The following program converts the character string being stored from D0 to D4 to BIN data and stores the result from
D10 to D14 when X0 goes ON.
[Ladder Mode] [List Mode]
[Operation]
Error
code
Error details
Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100
Characters other than those outside the hexadecimal character string
(characters that are not in the range between "30
H
" to "39
H
" and "41
H
"
to "46
H
") have been set in the device specified by .
––
4101
The range of the device specified by exceeds the range from to
+ the number of characters specified in n (including ).
The range of the device specified by exceeds the range from to
+ the number of characters specified in n (including ).
n is negative.
––
+1
42
H
(B)32
H
(2)
41
H
(A)31
H
(1)
38
H
(8)
43
H
(C)
0008
Value "0" is automatically stored in
the area outside the range of the
designated number of characters.
+1
+2
1A2
B
S
D
b15 b12 b8b11 b7 b4 b0b3
b15 b8
b7
b0
S
S
D
S
S
S S S
S
D D D
D
Instruction
Device
Step
D1
D2
D3
D4
36
H
(6)42
H
(B)
35
H
(5)32
H
(2)
41
H
(A)37
H
(7)
31
H
(1)33
H
(3)
39
H
(9)
37
H
(7)
D0
0
H
0
H
9
H
7
H
3
H
1
H
7
H
A
H
2
H
5
H
B
H
6
H
b15 b8b7 b0
b15 b12 b8b11 b7 b4 b0b3