Mitsubishi MELSEC Q Series Programming Manual page 421

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

Advertisement

The number of bits by which a shift is executed is the remainder of n/(specified number of
bits).
For example, when n
1 is "7", and the data is shifted 7 bits.
(3) Specify any of 0 to 15 as n. If the value specified as n is 16 or greater, the remainder of n/16
is used for a shift to the right.
For example, when n
1 is 2.
SFL
(1) Shifts 16-bit data at device designated by
Bits starting from the lowest bit to n bit are filled with 0s.
Carry flag
(SM700)
1
(2) When a bit device is designated for
by digit specification.
The number of bits by which a shift is executed is the remainder of n/(specified number of
bits). For example, when n
15/8
1 is "7", and the data is shifted 7 bits.
(3) Specify any of 0 to 15 as n. If the value specified as n is 16 or greater, the remainder of n/16
is used for a shift to the left.
For example, when n
1 is "2".
Operation Error
(1) There are no operation errors associated with the SFR(P) or SFL(P) instructions.
15 and (specified number of bits)
18, the data is shifted 2 bits to the right since the remainder of 18/16
D
b15
b14 b13 b12 b11b10 b9
1
1
1
1
0
0
1
b15
b14 b13 b12 b11b10 b9
0
0
0
0
1
1
1
, a left shift is executed within the device range specified
D
X17
0
0
1
Carry flag
(SM700)
X17
1
1
0
0
15 and (specified number of bits)
18, the data is shifted 2 bits to the left since the remainder of 18/16
8 bits, the remainder of 15/8
n bits to the left.
b8
b7
b6 b5 b4 b3 b2 b1
1
0
0
0
0
1
1
1
b8
b6 b5 b4 b3 b2 b1
b7
1
0
0
0
0
0
0
0
Filled with 0s.
X14
X13
X10
1
0
0
1
1
X14 X13
X12
X10
1
1
0
0
0
Filled with 0s.
8 bits, the remainder of
SFR(P),SFL(P)
b0
1
D
When n=8:
b0
D
0
7-47
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents