Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 491

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

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.
b15
∙∙∙
(s)
(s)+1
(s)+2
(n)
(s)+3
(s)+(n)-1
(1)
: th byte data
(1) The upper byte data are ignored.
*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.
b15
∙∙∙
(s)
00H
(s)+1
00H
(1)
(s)+2
00H
00H
(s)+3
00H
(s)+4
(1) (n)=5
(2) Filled with 00H.
• 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.
Range of the device where the combination target data is
stored
(s)+0 to (s)+(n)-1
Ex.
When the lower 8 bits of D11 to D16 are stored in D12 to D14
b15
b8
b7
∙∙∙
D11
00H
D12
00H
D13
00H
D14
00H
D15
00H
00H
D16
Operation error
There is no operation error.
b8
b7
∙∙∙
b0
1
2
3
4
n
b8
b7
∙∙∙
b0
12H
34H
56H
78H
FEH
b0
∙∙∙
31H
D11
32H
D12
D13
33H
D14
34H
35H
D15
36H
D16
b15
∙∙∙
(d)
2
(d)+1
4
(n)
*1
(d)+(
-1)
n
2
b15
∙∙∙
b8
b7
(d)
34H
(d)+1
78H
(d)+2
00H
(2)
Range of the device for storing the combined data
(n)
(d) to (d)+(
-1)
2
b15
b8
b7
∙∙∙
00H
32H
34H
36H
00H
00H
6.6 Data Conversion Instructions
b8
b7
∙∙∙
b0
1
3
n-1
∙∙∙
b0
12H
56H
FEH
b0
∙∙∙
31H
31H
33H
35H
35H
36H
6 BASIC INSTRUCTIONS
6
489

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents