EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 491

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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)

b0b7

b8b15

b0b7

b8b15
(s)
(s)+1
(s)+2
(s)+3
(s)+(n)-1




(n)
1
2
3
4
n
12
34
n
n-1
(1)
(d)+1
(d)+2
(d)

b0b7

b8b15

b0b7

b8b15
(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

b0b7

b8b15

b0b7

b8b15
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

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals