EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 355

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
353
6
Processing details
This instruction shifts the 16-bit binary data in the device specified by (d) to the left by (n) bit(s). The (n) bit(s) from the least
significant bit is/are filled with 0(s).
Ex.
When (n)=8
When (d) is a bit device, bits are shifted to the left within the device range specified by digit specification.
Ex.
When (n)=5
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 larger is specified, the value is shifted by the remainder value of
n16 to the left. For example, when (n) is 18, 2 bits are shifted to the left because 18 divided by 16 equals 1 with a
remainder of 2.
Operation error
There is no operation error.
1111001100001111
0000
1111
00000000
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
00
11
00
11
100 11000
X14 X13
X13X14
1
X17 X10
X17 X10X12
 
 
(SM700)
0

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals