EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 577

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
575
7
When the number of characters is specified for n, the range of characters designated by (S) as well as the device range
designated by (D) in which the BIN data will be stored are automatically decided.
Accurate processing will be conducted even in cases where the range of devices where the ASCII code to be converted is
being stored overlaps with the range of devices that will store the converted BIN data.
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.
If the number of characters designated by n is "0", conversion processing will not be conducted.
ASCII code that can be designated by (S) includes from "30H" to "39H" and from "41H" to "46H".
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 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.
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 "30H" to "39H" and "41H" to
"46H") have been set in the device specified by (S).
The character numbers designated by n are those other than 0 to 16383.

4101 The range of the device specified by (S) exceeds the range from (S) to (S) +
the number of characters specified in n (including (S)).
The range of the device specified by (D) exceeds the range from (D) to (D) +
the number of characters specified in n (including (D)).
n is negative.

[Ladder Mode] [List Mode]
[Operation]
D12
D13
D11
D12
D13
D14
D11
31
H
(1)32
H
(2)
33
H
(3)34
H
(4)
35
H
(5)36
H
(6)
37
H
(7)38
H
(8)
41
H
(A)
39
H
(9)
D10
0 0
H
A
H
9
H
8
H
H
7
H
6
H
5
H
4
H
3
H
2
H
1
H
b15 b8b7 b0
b15
b12
b8b11 b7 b4 b0b3
+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
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

Table of Contents

Related product manuals