Mitsubishi MELSEC Q Series Programming Manual page 426

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

SFTBR(P),SFTBL(P)
SFTBL(P)
(1) This instruction shifts the n1 bits data in the devices starting from the device specified by
to the left by n2 bits.
n1=10, n2=4
Carry flag
(SM700)
1
(2) n1 and n2 are specified under the condition that n1 is larger than n2. If the value of n2 is
equal to or larger than the value of n1, the remainder of n2 / n1 (n2 devided by n1) is used
for a shift.
However, if the remainder of n2 / n1 is 0, the instruction will be not processed.
(3) This instruction specifies n1 ranged from 1 to 64.
(4) Bits starting from the lowest bit to n2th bit are filled with 0s. If the value of n2 is larger than
the value of n1, the remainder of n2 / n1 will be 0.
(5) If the value specified by n1 or n2 is 0, the instruction will be not processed.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
• The value specified by n1 is other than 0 to 64.
• The value data specified by n2 is negative.
• The range of devices specified by n1 exceeds the range of devices specified by
7-52
n2
D
+8
D
+7
D
+6
D
+5
1
1
0
1
D
+8
D
+7
D
+6
D
+5
1
1
1
0
n1
D
+4
D
+3
D
+2
D
+1
1
1
1
0
D
+4
D
+3
D
+2
D
+1
1
0
0
0
Filled with 0s
(Error code: 4100)
(Error code: 4100)
(Error code: 4101)
D
D
1
D
0
.
D

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents