7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
673
7
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 DBCDDA(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 to (d)+3 before executing the DBCDDA(P)
instruction.
Error code
(SD0)
Description
3401H
Data in the device specified by (s) is out of the range, 0 to 99999999.
[Example] Executing the DBCDDA(P) instruction when (s) is "91234056H" and then executing another DBCDDA(P) instruction when (s) is "00001234H"
(1) "91234056" is converted into a string.
(2) "1234" is converted into a string.
(3) A part of the previous conversion result remains in (d)+3.
(4) "91234056" is converted into a string.
(5) (d)+0 to (d)+3 are cleared.
(6) "1234" is converted into a string.
b31 b28
∙∙∙
9
(1)
b27 b24
∙∙∙
1
b23 b20
∙∙∙
2
(s)+1
(s)
b19 b16
∙∙∙
3
31H (1) 39H (9)
(d)+0
33H (3) 32H (2)
(d)+1
30H (0) 34H (4)
(d)+2
36H (6) 35H (5)
(d)+3
(d)+4
00H
b15 b12
∙∙∙
4
b11
b8
∙∙∙
0
b7
b4
∙∙∙
5
b3
b0
∙∙∙
6
b31 b28
∙∙∙
0
(2)
b27 b24
∙∙∙
0
b23 b20
∙∙∙
0
(s)+1
(s)
b19 b16
∙∙∙
0
32H (2) 31H (1)
(d)+0
34H (4) 33H (3)
(d)+1
00H
(d)+2
36H (6) 35H (5)
(d)+3
(d)+4
00H
b15 b12
∙∙∙
1
b11
b8
∙∙∙
2
b7
b4
∙∙∙
3
b3
b0
∙∙∙
4
(3)
b31 b28
∙∙∙
9
(4)
b27 b24
∙∙∙
1
b23 b20
∙∙∙
2
(s)+1
(s)
b19 b16
∙∙∙
3
31H (1) 39H (9)
(d)+0
33H (3) 32H (2)
(d)+1
30H (0) 34H (4)
(d)+2
36H (6) 35H (5)
(d)+3
(d)+4
00H
b15 b12
∙∙∙
4
b11
b8
∙∙∙
0
b7
b4
∙∙∙
5
b3
b0
∙∙∙
6
(5)
00H
00H
(d)+0
00H
00H
(d)+1
00H
00H
(d)+2
00H
00H
(d)+3
(d)+4
00H
b31 b28
∙∙∙
0
(6)
b27 b24
∙∙∙
0
b23 b20
∙∙∙
0
(s)+1
(s)
b19 b16
∙∙∙
0
32H (2) 31H (1)
(d)+0
34H (4) 33H (3)
(d)+1
00H
(d)+2
00H
00H
(d)+3
(d)+4
00H
b15 b12
∙∙∙
1
b11
b8
∙∙∙
2
b7
b4
∙∙∙
3
b3
b0
∙∙∙
4
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......