1-Bit Shift To Right Of N-Bit Data, 1-Bit Shift To Left Of N-Bit Data - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

1-bit shift to right of n-bit data, 1-bit shift to left of n-bit data

BSFR(P), BSFL(P)
High
Basic
Process
performance
BSFR, BSFL
BSFRP, BSFLP
(D): Head number of the devices to be shifted (bits)
n:
Number of devices to which shift is executed (BIN 16 bits)
Setting
Internal device
data
Bit
(D)
n
Processing details
■BSFR
• Shifts the data in n points from the device designated by (D) to the right by one bit.
D
+(n-1)
D
+(n-2)
D
1
1
+(n-1)
+(n-2)
D
D
D
0
1
Filled with 0
• The device designated by (D)+(n-1) is filled with 0.
■BSFL
• Shifts the data in n points from the device designated by (D) to the left by one bit.
D
Carry flag
D
(SM700)
1
• The device designated by (D) is filled with 0.
7 APPLICATION INSTRUCTIONS
394
7.3 Shift Instructions
Redundant Universal
LCPU
R, ZR
Word
n
+2
+(n-3)
D
D
+1
0
1
1
+(n-3)
+2
D
D
+1
1
0
1
+(n-1)
+(n-2)
+(n-3)
D
D
1
1
0
+(n-1)
+(n-2)
+(n-3)
D
D
1
0
0
Command
Command
J\
Bit
Word
D
0
Carry flag
D
(SM700)
0
1
+2
+1
D
D
D
0
1
1
+2
+1
D
D
D
1
1
0
indicates an instruction symbol of BSFR/BSFL.
D
P
D
U\G
Zn
Filled with 0
n
n
Constant
Others
K, H

Advertisement

Table of Contents
loading

Table of Contents