Mitsubishi Electric M800VW Series Programming Manual page 309

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.7 Rotation Instructions
SFR, SFRP, SFL, SFLP: n-bit shift to right or left of 16-bit data
Setting
Bit devices
data
X
Y
M
L
F
D
n
△ : Index qualification is not available for constant K/H.
[Instruction symbol] [Execution condition]
SFR, SFL
SFLP, SFLP
 Setting data
Setting data
D
Head No. of the device where shift data is being stored
n
Number of shifts (0 to 15)
 Functions
SFR
 Causes a shift to the right by n bits of the 16-bit data from the device designated at "D".
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 1
D
When n=6
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 0 0 0 0 0 1 1 1 0 1 1 1 0 1 1
D
Becomes 0
 A total of n bits from the upper level become 0.
 A shift by the data of the specified digit is conducted when a bit device has been designated at "D".
(Refer to the program example "program shifts the contents of Y10 to Y1B to the right by the number of bits designated by
D0 when X20 goes ON")
 Specify any of "0" to "15" as "n". If the value specified as "n" is "16" or greater, operations will be as follows:
- When "n" is "16", the value becomes the one when 16-bit rotation was executed.
- When "n" is "17" or above, the value of D becomes indefinite.
IB-1501667-B
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
Carry flag
(SM12)
1
288
Digit
Pointer
designa-
Index
tion
H
P
indicates the signs SFR/SFL
D
n
P
D
n
Data type
BIN 16 bits

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents