Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 660

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

Advertisement

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).
[Example] Executing the DBINHA(P) instruction when (s) is "13AC625E" and then executing another DBINHA(P) instruction when (s) is "F9E8D"
(1)
b31
∙∙∙
b16
(s)
13AC625E
(2)
b31
∙∙∙
b16
(s)
F9E8D
To avoid this, create a program to clear the entire data storage areas (d)+0 to (d)+3 before executing the DBINHA(P)
instruction.
(4)
b31
∙∙∙
b16
(s)
13AC625E
(6)
b31
∙∙∙
b16
(s)
F9E8D
7 APPLICATION INSTRUCTIONS
658
7.8 String Processing Instructions
(d)+0
33H (3) 31H (1)
b15
∙∙∙
b0
(d)+1
43H (C) 41H (A)
(d)+2
32H (2) 36H (6)
(d)+3
45H (E) 35H (5)
(d)+4
(d)+0
39H (9) 46H (F)
b15
∙∙∙
b0
(d)+1
38H (8) 45H (E)
(d)+2
(d)+3
45H (E) 35H (5)
(d)+4
(d)+0
33H (3) 31H (1)
b15
∙∙∙
b0
(d)+1
43H (C) 41H (A)
(d)+2
32H (2) 36H (6)
(d)+3
45H (E) 35H (5)
(d)+4
(5)
(d)+0
(d)+1
(d)+2
(d)+3
(d)+4
(d)+0
39H (9) 46H (F)
b15
∙∙∙
b0
(d)+1
38H (8) 45H (E)
(d)+2
(d)+3
(d)+4
00H
00H
44H (D)
(3)
00H
00H
00H
00H
00H
00H
00H
00H
00H
00H
00H
00H
44H (D)
00H
00H
00H
(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.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents