Mitsubishi MELSEC-Q/L Programming Manual page 486

Table of Contents

Advertisement

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.
b15
b8b7
S
32
(2)
H
S
+1
31
(1)
H
S
+2
43
(C)
H
(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
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.
Error
code
Characters other than those outside the hexadecimal character string
(characters that are not in the range between "30
4100
to "46
") have been set in the device specified by
H
The range of the device specified by
+ the number of characters specified in n (including
4101
The range of the device specified by
+ the number of characters specified in n (including
n is negative.
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]
[Operation]
b15
b8b7
D0
42
(B)
H
D1
32
(2)
H
D2
37
(7)
H
D3
33
(3)
H
D4
39
(9)
H
484
b0
D
42
(B)
H
+1
41
(A)
D
H
38
(8)
H
includes from "30
S
Error details
" to "39
H
.
S
exceeds the range from
S
).
S
exceeds the range from
D
).
D
[List Mode]
Step
b0
b15
36
(6)
2
H
35
(5)
3
H
41
(A)
0
H
31
(1)
H
37
(7)
H
b15
b12
b11
b8
b7
b4
1
A
2
0
0
0
Value "0" is automatically stored in
the area outside the range of the
designated number of characters.
" to "39
" and from "41
" to "46
H
H
H
Q00J/
Q00/
QnH
Q01
" and "41
"
––
H
H
to
S
S
––
to
D
D
Instruction
Device
b12
b11
b8
b7
b4
b3
5
B
6
H
H
H
H
1
7
A
H
H
H
H
0
9
7
H
H
H
H
b3
b0
B
8
".
H
QnPH QnPRH
QnU
LCPU
b0

Advertisement

Table of Contents
loading

Table of Contents