Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 369

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

Advertisement

Processing details
• These instructions shift the (n1) bit(s) of data starting from the specified device to the left by (n2) bit(s).
Ex.
When (n1)=10 and (n2)=4
(d)+9
(d)+8
0
1
(SM700)
(d)+9
(d)+8
1
1
1
(1) Filled with 0s.
• Specify (n1) and (n2) so that the following condition is satisfied: (n1)>(n2). In the case of (n1)(n2), data is shifted by the
value of the remainder of (n2)(n1). However, if the remainder value is 0, no processing is performed.
• Specify (n1) within the range of 1 to 64.
• The (n2) bit(s) from the least significant bit is/are filled with 0(s). In the case of (n1)<(n2), the bits are filled with 0s by the
value of the remainder of (n2)(n1).
• If (n1) or (n2) is 0, no processing is performed.
Operation error
Error code
Description
(SD0)
3405H
The value specified by (n1) is out of the range, 0 to 64.
(n1)
(n2)
(d)+7
(d)+6
(d)+5
(d)+4
(d)+3
1
0
1
1
(d)+7
(d)+6
(d)+5
(d)+4
(d)+3
1
1
0
1
(d)+2
(d)+1
(d)
1
1
0
1
(d)+2
(d)+1
(d)
0
0
0
0
(1)
6 BASIC INSTRUCTIONS
367
6.5 Shift Instructions
6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents