EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 660

Mitsubishi Electric MELSEC iQ-R Series
2110 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...
658
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
Operation error
There is no operation error.
Precautions
When SM705 (Number of conversion digits selection) is on, the operation result is stored in (d) for the effective number of
digits. Therefore, when the DBINHA(P) instruction is executed successively and the operation result for each execution is
stored in the same device, a part of the previous operation result may not be overwritten by the succeeding result and can
remain in (d).
To avoid this, create a program to clear the entire data storage areas (d)+0 to (d)+3 before executing the DBINHA(P)
instruction.
[Example] Executing the DBINHA(P) instruction when (s) is "13AC625E" and then executing another DBINHA(P) instruction when (s) is "F9E8D"
(1) "13AC625E" is converted into a string.
(2) "F9E8D" is converted into a string.
(3) A part of the previous conversion result remains in (d)+3.
(4) "13AC625E" is converted into a string.
(5) (d)+0 to (d)+3 are cleared.
(6) "F9E8D" is converted into a string.
b31 b16
13AC625E
(s)
(1)
b15 b0
33H (3) 31H (1)(d)+0
43H (C) 41H (A)(d)+1
32H (2) 36H (6)(d)+2
45H (E) 35H (5)
00H(d)+4
(d)+3
00H(d)+4
b31 b16
F9E8D
(s)
(2)
b15 b0
39H (9) 46H (F)(d)+0
38H (8) 45H (E)(d)+1
00H 44H (D)(d)+2
45H (E) 35H (5)(d)+3
(3)
b31 b16
13AC625E
(s)
(4)
b15 b0
33H (3) 31H (1)(d)+0
43H (C) 41H (A)(d)+1
32H (2) 36H (6)(d)+2
45H (E) 35H (5)
00H(d)+4
(d)+3
(5)
00H 00H(d)+0
00H 00H(d)+1
00H 00H(d)+2
00H 00H
00H(d)+4
(d)+3
00H(d)+4
b31 b16
F9E8D
(s)
(6)
b15 b0
39H (9) 46H (F)(d)+0
38H (8) 45H (E)(d)+1
00H 44H (D)(d)+2
00H 00H(d)+3

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals