Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 652

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

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).
[Example] Executing the DBINDA(P) instruction when (s) is "-1234567890" and then executing another DBINDA(P) instruction when (s) is "-987654"
(1)
b31
∙∙∙
b16
(s)
-1234567890
(2)
b31
∙∙∙
b16
(s)
-987654
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.
(4)
b31
∙∙∙
b16
(s)
-1234567890
(6)
b31
∙∙∙
b16
(s)
-987654
7 APPLICATION INSTRUCTIONS
650
7.8 String Processing Instructions
(d)+0
31H (1) 2DH (-)
b15
∙∙∙
b0
(d)+1
33H (3) 32H (2)
(d)+2
35H (5) 34H (4)
(d)+3
37H (7) 36H (6)
(d)+4
39H (9) 38H (8)
(d)+5
(d)+0
39H (9) 2DH (-)
b15
∙∙∙
b0
(d)+1
37H (7) 38H (8)
(d)+2
35H (5) 36H (6)
(d)+3
(d)+4
39H (9) 38H (8)
(d)+5
(d)+0
31H (1) 2DH (-)
b15
∙∙∙
b0
(d)+1
33H (3) 32H (2)
(d)+2
35H (5) 34H (4)
(d)+3
37H (7) 36H (6)
(d)+4
39H (9) 38H (8)
(d)+5
(5)
(d)+0
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
(d)+0
39H (9) 2DH (-)
b15
∙∙∙
b0
(d)+1
37H (7) 38H (8)
(d)+2
35H (5) 36H (6)
(d)+3
(d)+4
(d)+5
00H
30H (0)
00H
34H (4)
(3)
00H
30H (0)
00H
30H (0)
00H
00H
00H
00H
00H
00H
00H
00H
00H
00H
00H
00H
00H
34H (4)
00H
00H
00H
00H
(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.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents