EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 353

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.5 Shift Instructions
351
6
Processing details
These instructions shift the 16-bit binary data in the device specified by (d) to the right by (n) bit(s). The (n) bit(s) from the
most significant bit is/are filled with 0(s).
Ex.
When (n)=6
When (d) is a bit device, bits are shifted to the right within the device range specified by digit specification.
Ex.
When (n)=4
The number of bits actually to be shifted is the remainder of (n)(specified number of bits). For example, when (n) is 15 and
the specified number of bits is 8, 7 bits are shifted because 15 divided by 8 equals 1 with a remainder of 7.
Specify any value between 0 and 15 for (n). If a value 16 or bigger is specified, bits are shifted by the remainder value of
n16. For example, when (n) is 18, 2 bits are shifted to the right because 18 divided by 16 equals 1 with a remainder of 2.
Operation error
There is no operation error.
1110111011101110
0000001110111011
b15 b8 b0
b7
b0
b7
b15 b8
1
b14
b13
b12 b11
b10 b9 b6
b5 b4
b3
b2 b1
b14
b13
b12 b11
b10 b9 b6
b5 b4
b3
b2 b1
(d)
(d)
(SM700)
0
10 10 10 10 10 10
0000
1
0
1
0
1
0
1
0
Y18 Y10Y17
Y10Y17Y18
1
Y1B Y14 Y13
Y1B Y14 Y13
  
  
(SM700)
0

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals