Shifting N-Bit Data To The Right By One Bit - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

Shifting n-bit data to the right by one bit

BSFR(P)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions shift the n points of data starting from the specified device to the right by one bit.
Ladder
(d)
FBD/LD
EN
ENO
n
d
■Execution condition
Instruction
BSFR
BSFRP
Setting data
■Description, range, data type
Operand
Description
(d)
Shift target device
(n)
Number of bits to be shifted
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
*1
(d)
(n)
*1 T, C, and ST cannot be used.
6 BASIC INSTRUCTIONS
354
6.5 Shift Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(n)
Execution condition
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
ST
ENO:=BSFR(EN,n,d);
ENO:=BSFRP(EN,n,d);
Range
0 to 65535
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
Data type
Data type (label)
Bit
ANY_BOOL
16-bit unsigned binary
ANY16
Bit
BOOL
Bit
BOOL
Constant
specification
LZ
K, H E
Others
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents