Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 656

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 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).
[Example] Executing the BINHA(P) instruction when (s) is "2A6F" and then executing another BINHA(P) instruction when (s) is "9"
(1)
b15
∙∙∙
(s)
2A6F
(2)
b15
∙∙∙
(s)
9
To avoid this, create a program to clear the entire data storage areas (d)+0 and (d)+1 before executing the BINHA(P)
instruction.
(4)
b15
∙∙∙
(s)
2A6F
(6)
b15
∙∙∙
(s)
9
7 APPLICATION INSTRUCTIONS
654
7.8 String Processing Instructions
(d)+0
41H (A) 32H (2)
b0
(d)+1
46H (F) 36H (6)
(d)+2
(d)+0
00H
b0
(d)+1
46H (F) 36H (6)
(d)+2
(d)+0
41H (A) 32H (2)
b0
(d)+1
46H (F) 36H (6)
(d)+2
(5)
(d)+0
00H
(d)+1
00H
(d)+2
(d)+0
00H
b0
(d)+1
00H
(d)+2
(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.
00H
39H (9)
(3)
00H
(4) "2A6F" is converted into a string.
(5) (d)+0 to (d)+1 are cleared.
(6) "9" is converted into a string.
00H
00H
00H
00H
39H (9)
00H
00H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents