6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
489
6
Processing details
• These instructions combine the (n) bytes of lower 8 bits of 16-bit binary data in the device specified by (s) and later in units
of words, and store the combined data in the device specified by (d) and later.
• The (n) bytes of upper 8 bits of 16-bit binary data in the device specified by (s) and later are ignored. When (n) is an odd
number, the upper 8 bits of the device where 'n'th-byte data is stored are filled with 0s.
*1 Values after the decimal point are rounded up.
Ex.
When (n) is 5, the lower 8 bits of the data in the device specified by (s) to (s)+4 are combined and stored in the device
specified by (d) to (d)+2.
• Setting the number of bytes for (n) automatically determines the range of byte data in the device specified by (s) and the
range of the device specified by (d) for storing the combined data.
• If (n) is 0, no processing is performed.
• The upper 8 bits in the device specified by (s) and later are ignored, and only the lower 8 bits are processed.
• Even when the ranges of the device where the combination target data is stored and the device for storing the combined
data overlap, the processing is performed normally.
Ex.
When the lower 8 bits of D11 to D16 are stored in D12 to D14
Operation error
There is no operation error.
:
th byte data
(1) The upper byte data are ignored.
(1) (n)=5
(2) Filled with 00H.
Range of the device where the combination target data is
stored
Range of the device for storing the combined data
(s)+0 to (s)+(n)-1
(d)+1
(d)
(d)+( -1)
*1
2
(n)
∙∙∙
b0
b7
∙∙∙
b8
b15
∙∙∙
b0
b7
∙∙∙
b8
b15
(s)
(s)+1
(s)+2
(s)+3
(s)+(n)-1
∙∙∙
∙∙∙
∙∙∙
∙∙∙
(n)
1
2
3
4
n
1
2
3
4
n
n-1
(1)
(d)+1
(d)+2
(d)
∙∙∙
b0
b7
∙∙∙
b8
b15
∙∙∙
b0
b7
∙∙∙
b8
b15
(s)
(s)+1
(s)+2
(s)+3
(s)+4
00H
00H
00H
00H
00H
12H
34H
56H
78H
FEH
34H
78H
00H
12H
56H
FEH
(1)
(2)
(d) to (d)+( -1)
2
(n)
D12
D13
D11
∙∙∙
b0
b7
∙∙∙
b8
b15
∙∙∙
b0
b7
∙∙∙
b8
b15
D11
D12
D13
D14
D15
D16
D14
D15
D16
00H
32H
34H
36H
00H
31H
31H
33H
35H
00H
35H
36H
31H
32H
33H
34H
35H
36H
00H
00H
00H
00H
00H
00H
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: ......