EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 575

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
573
7
If an odd number of characters has been designated by n, the ASCII code "00H" will be automatically stored in the upper 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.
If the number of characters designated by n is "0", conversion processing will not be conducted.
Operation error
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
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.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 The character numbers designated by n are those other than 0 to 16383. 
4101 The range for the number of characters designated by n following the device
number designated by (S) exceeds the relevant device range.
The range for the number of characters designated by n following the device
number designated by (D) exceeds the relevant device range.

[Ladder Mode] [List Mode]
[Operation]
42
H
(B)32
H
(2)
41
H
(A)31
H
(1)
42
H
(B)00
H
B
1A2
B
+1
Stored automatically
+1
+2
b15 b8b7
b0
b15 b12 b8b11 b7 b4 b0b3
S
S
S D
D
D
S
S
Instruction
Device
Step
39
H
(9)
32
H
(2)
37
H
(7)
43
H
(C)
46
H
(F)
41
H
(A)
35
H
(5)30
H
(0)
32
H
(2)32
H
(2)
D1
D2
D11
D12
D13
D14
D0
D10
2
H
2
H
0
H
5
H
A
H
F
H
C
H
7
H
2
H
9
H
0
H
0
H
b15 b8
b7
b0b15 b12 b8b11
b7
b4 b0b3

Table of Contents

Related product manuals