EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 652

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...
650
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
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 DBINDA(P)(_U) 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)+5 before executing the DBINDA(P)(_U)
instruction.
[Example] Executing the DBINDA(P) instruction when (s) is "-1234567890" and then executing another DBINDA(P) instruction when (s) is "-987654"
(1) "-1234567890" is converted into a string.
(2) "-987654" is converted into a string.
(3) A part of the previous conversion result remains in (d)+4 and
(d)+5.
(4) "-1234567890" is converted into a string.
(5) (d)+0 to (d)+5 are cleared.
(6) "-987654" is converted into a string.
b31 b16
-1234567890
(s)
(1)
b15 b0
31H (1) 2DH (-)(d)+0
33H (3) 32H (2)(d)+1
35H (5) 34H (4)(d)+2
37H (7) 36H (6)
39H (9) 38H (8)(d)+4
00H 30H (0)(d)+5
(d)+3
b31 b16
-987654
(s)
(2)
b15 b0
39H (9) 2DH (-)(d)+0
37H (7) 38H (8)(d)+1
35H (5) 36H (6)(d)+2
00H 34H (4)
39H (9) 38H (8)(d)+4
00H 30H (0)(d)+5
(d)+3
(3)
b31 b16
-1234567890
(s)
(4)
b15 b0
31H (1) 2DH (-)(d)+0
33H (3) 32H (2)(d)+1
35H (5) 34H (4)(d)+2
37H (7) 36H (6)
39H (9) 38H (8)(d)+4
00H 30H (0)(d)+5
(d)+3
(5)
00H 00H(d)+0
00H 00H(d)+1
00H 00H(d)+2
00H 00H
00H 00H(d)+4
00H 00H(d)+5
(d)+3
b31 b16
-987654
(s)
(6)
b15 b0
39H (9) 2DH (-)(d)+0
37H (7) 38H (8)(d)+1
35H (5) 36H (6)(d)+2
00H 34H (4)
00H 00H(d)+4
00H 00H(d)+5
(d)+3

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals