![Mitsubishi Electric FX3G SERIES Programming Manual Download Page 305](http://html.mh-extra.com/html/mitsubishi-electric/fx3g-series/fx3g-series_programming-manual_238902305.webp)
303
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.5 FNC 34 – SFTR / Bit Shift Right
11
FN
C30
-FN
C3
9
R
ota
tion and
Shi
ft
12
FN
C40-FN
C49
D
ata O
perati
on
13
FNC
50-FNC
59
High-Speed
Proc
essing
14
FM
C60-FN
C69
H
andy
In
struction
15
FN
C70-FN
C79
E
xternal
F
X
I/O
De
vice
16
FNC
80-FNC
89
External
FX
Dev
ice
17
FNC1
00-
FNC10
9
Dat
a
Transfer 2
18
FNC1
10-
FNC139
Fl
oa
ting Poi
nt
19
FNC14
0-F
N
C
149
Da
ta
Operation 2
20
FNC1
50-
FNC159
Pos
itioning
Control
Explanation of function and operation
1. 16-bit operation (SFTR and SFTRP)
For "n1" bits (shift register length) starting from
, "n2" bits are shifted rightward ([1] and [2] shown below).
After shift, "n2" bits from
are transferred to "n2" bits from
+n1-n2 ([3] shown below).
Caution
Note that "n2" bits are shifted every time the command input turns from OFF to ON in the SFTRP instruction, but that
"n2" bits are shifted in each scan time (operation cycle) in SFTR instruction.
Error
If the transfer source
is equivalent to the shifted device
in FX
3U
/FX
3UC
PLCs, an operation error occurs
(error code: K6710).
An operation error does not occur in FX
3G
PLCs.
D
S
D
Command
input
FNC 34
SFTRP
n1
n2
D
S
+2
+8
Before
execution
After
execution
+2
n2 (in the case of "n2=3")
n1 (in the case of "n1=9")
[1]
Overflow (data to
be deleted)
S
+1
+7
D
+6 +5 +4 +3
D
+1
+8
D
+7 +6 +5
D
+4
D
+3
D
+2
D
+1
D
D
[3] Copy
[2]
"n2" bits are
shifted rightward
(n2=3).
+2 to before shift (n2=3)
S
S
D
D
D
D
D
D
D
D
D
+8 to +3 before shift (n2=3)
D
D
S
S
S
D