EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 656

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...
654
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 BINHA(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 and (d)+1 before executing the BINHA(P)
instruction.
[Example] Executing the BINHA(P) instruction when (s) is "2A6F" and then executing another BINHA(P) instruction when (s) is "9"
(1) "2A6F" is converted into a string.
(2) "9" is converted into a string.
(3) A part of the previous conversion result remains in (d)+1.
(4) "2A6F" is converted into a string.
(5) (d)+0 to (d)+1 are cleared.
(6) "9" is converted into a string.
b15 b0
2A6F(s)
(1)
41H (A) 32H (2)(d)+0
46H (F) 36H (6)(d)+1
(d)+2 00H
b15 b0
9(s)
(2)
(3)
00H 39H (9)(d)+0
46H (F) 36H (6)(d)+1
(d)+2 00H
b15 b0
2A6F(s)
(4)
41H (A) 32H (2)(d)+0
46H (F) 36H (6)(d)+1
(d)+2 00H
(5)
00H 00H(d)+0
00H 00H(d)+1
(d)+2 00H
b15 b0
9(s)
(6)
00H 39H (9)(d)+0
00H 00H(d)+1
(d)+2 00H

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals