Mitsubishi MELSEC-Q/L Programming Manual page 484

Table of Contents

Advertisement

ASC, ASCP
(3) Processing will be performed accurately even if the device range where BIN data to be converted is being stored
overlaps with the device range where the converted ASCII data will be stored.
b15
b12
b11
b8
b7
D11
4
3
H
H
D12
8
7
H
H
D13
(4) If an odd number of characters has been designated by n, the ASCII code "00
8 bits of the final device in the range where the character string is to be stored.
When 5 characters have been designated by n.
b15
b12
b11
b8
S
1
A
S
+1
(5) If the number of characters designated by n is "0", conversion processing will not be conducted.
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
The range for the number of characters designated by n following the
device number designated by
4101
The range for the number of characters designated by n following the
device number designated by
Program Example
(1) The following program reads the BIN data being stored at D0 as hexadecimal values, converts them to a character
string, and stores the result from D10 to D14 when X0 is turned ON.
[Ladder Mode]
[Operation]
b15
b12
b11
b8
b7
D0
C
7
H
H
D1
0
5
H
H
D2
0
0
H
H
482
b4
b3
b0
2
1
H
H
6
5
H
H
A
9
H
H
b7
b4
b3
b0
2
B
B
Error details
exceeds the relevant device range.
S
exceeds the relevant device range.
D
[List Mode]
Step
b4
b3
b0
D10
2
9
H
H
D11
A
F
H
H
D12
2
2
H
H
D13
D14
b15
b8b7
D10
32
H
D11
34
H
D12
36
H
D13
38
H
D14
41
H
" will be automatically stored in the upper
H
b15
b8b7
S
D
32
(2)
H
S
D
31
(1)
+1
H
S
D
00
+2
H
Stored automatically
Q00J/
Q00/
QnH
Q01
––
Instruction
Device
b15
b8b7
32
(2)
39
H
43
(C)
37
H
41
(A)
46
H
30
(0)
35
H
32
(2)
32
H
b0
31
H
33
H
35
H
37
H
39
H
b0
42
(B)
H
41
(A)
H
42
(B)
H
QnPH QnPRH
QnU
b0
(9)
H
(7)
H
(F)
H
(5)
H
(2)
H
LCPU

Advertisement

Table of Contents
loading

Table of Contents