456
6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
■
Setting method of (s) for when SM705 (Number of conversion digits selection) is on
Set decimal ASCII data with a desired number of digits (including 00H (NULL code)) in (s). Note that 00H (NULL code) is not
required to be set for the maximum number of digits (8 digits).
The following table lists the setting method of (s).
• The ASCII data in the device specified by (s) to (s)+3 is within the range from 0 to 99999999.
• The data of (s)+4 or later is ignored.
• A value from 30H to 39H can be set in each place of ASCII code.
• If a value 20H is set in each place of ASCII code, the value is processed as 30H. If a value 00H is set, the value is
processed as the end of the decimal ASCII data.
Operation error
Value to be set
in (s)
Data of (s) to (s)+3
Value to be set
in (s)
Data of (s) to (s)+3
• 0 to 9
• Set 00H in the upper byte of (s).
• The data of (s)+1 or later is ignored.
• 10 to 99
• Set 00H in the lower byte of (s)+1.
• The data of the upper byte of (s)+1 or later is
ignored.
• 1000000 to
9999999
• Set 00H in the upper byte of (s)+3.
• The data of (s)+4 or later is ignored.
• 10000000 to
99999999
• The data of (s)+4 or later is ignored.
ASCII 10
7
: Ten-millions place of ASCII code
ASCII 10
6
: Millions place of ASCII code
ASCII 10
5
: Hundred-thousands place of ASCII code
ASCII 10
4
: Ten-thousands place of ASCII code
ASCII 10
3
: Thousands place of ASCII code
ASCII 10
2
: Hundreds place of ASCII code
ASCII 10
1
: Tens place of ASCII code
ASCII 10
0
: Ones place of ASCII code
Error code
(SD0)
Description
3401H
Invalid data that cannot be converted are input in (s).
• A character other than 0 to 9 exists in the data.
(s)+1
(s)+2
(s)+3
(s)
b15
b0
∙∙∙
∙∙∙
b7
b8
00H
ASCII 10
0
(s)+1
(s)+2
(s)+3
(s)
b15
b0
∙∙∙
∙∙∙
b7
b8
ASCII 10
1
00H
ASCII 10
0
(s)+1
(s)+2
(s)+3
(s)
b15
b0
∙∙∙
∙∙∙
b7
b8
00H
ASCII 10
5
ASCII 10
6
ASCII 10
3
ASCII 10
4
ASCII 10
1
ASCII 10
2
ASCII 10
0
(s)+1
(s)+2
(s)+3
(s)
b15
b0
∙∙∙
∙∙∙
b7
b8
ASCII 10
7
ASCII 10
5
ASCII 10
6
ASCII 10
3
ASCII 10
4
ASCII 10
1
ASCII 10
2
ASCII 10
0
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: ......