1-Bit Shift To Right Or Left Of N-Bit Data (Bsfr(P),Bsfl(P)) - Mitsubishi MELSEC Q Series Programming Manual

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

Advertisement

7.3.2

1-bit shift to right or left of n-bit data (BSFR(P),BSFL(P))

BSFR(P),BSFL(P)
BSFR, BSFL
BSFRP, BSFLP
Setting
Data
D
n
Function
BSFR
(1) Shifts the data in n points from the device designated by
D
+(n-1)
1
+(n-1)
D
0
(2) The device designated by
BSFL
(1) Shifts the data in n points from the device designated by
Carry flag
(SM700)
1
(2) The device designated by
Command
Command
: Head number of the devices to be shifted (bits)
D
n
: Number of devices to which shift is executed (BIN 16 bits)
Internal Devices
R, ZR
Bit
Word
n
+2
D
+(n-2)
D
+(n-3)
D
1
0
1
+(n-2)
+(n-3)
+2
D
D
D
1
1
0
Filled with 0
+ (n
D
+(n-2)
+(n-1)
D
D
D
1
1
+(n-2)
D
+(n-1)
D
D
1
0
is filled with 0.
D
High
Basic
performance
indicates an instruction symbol of BSFR/BSFL.
J
\
U
\G
Bit
Word
––
to the right by one bit.
D
D
+1
D
1
0
Carry flag
D
+1
D
(SM700)
1
1
1) is filled with 0.
to the left by one bit.
D
+(n-3)
+2
+1
D
D
0
0
1
+(n-3)
+2
+1
D
D
0
1
1
BSFR(P),BSFL(P)
Process
Redundant Universal
LCPU
n
D
P
n
D
Constants
Zn
Other
K, H
––
––
0
D
1
D
0
Filled with 0
7-49
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