![Mitsubishi Electric FX3G SERIES Скачать руководство пользователя страница 301](http://html.mh-extra.com/html/mitsubishi-electric/fx3g-series/fx3g-series_programming-manual_238902301.webp)
299
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.3 FNC 32 – RCR / Rotation Right with Carry
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
2. 32-bit operation (DRCR and DRCRP)
"n" bits out of 32 bits of [
+1,
] and 1 bit (carry flag M8022) are rotated rightward.
Related device
→
For the carry flag use method, refer to Subsection 6.5.2.
Cautions
• In the case of continuous operation type instructions (RCR and DRCR)
Note that shift and rotation are executed every scan time (operation cycle).
• When a device with digit specification is specified as
Only K4 (16-bit instruction) or K8 (32-bit instruction) is valid (examples: K4Y010 or K8M0).
• Note that the 32-bit value [n+1, n] is valid when D or R is specified as "n" in a 32-bit instruction.
In the case of "DRCR D100 R0", "n" is [R1, R0].
Device
Name
Description
M8022
Carry
Turns ON when the bit shifted last from the lowest position is "1".
D
D
Before shift
b3
Carry flag M8022
When M8022 is OFF
0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0
1
Carry flag M8022
Low order
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
After the
instruction is
executed once
High order
0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0
b31b30b29b28b27b26b25b24b23b22b21b20b19b18b17b16
Before shift b31 to b4
High order
1 1 1 1 1 1 1 1 0 0 0 0
1
0 0 0
Low order
Rightward
rotation
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
b31b30b29b28b27b26b25b24b23b22b21b20b19b18b17b16
The status
of the final
bit b3 (bit
"n
−
1") is
stored.
"n" bits (in the case of K4)
"n" bits
0
Before shift
Carry flag M8022
Before
shift
b2 to b0
b2 (n
−
2) to b0 and the head bit
indicating the carry flag ON/OFF
status are moved.
Before
execution
After
execution
Command
input
FNC 32
DRCRP
n
D
D
Содержание FX3G SERIES
Страница 1: ...FX3G FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS PROGRAMMING MANUAL Basic Applied Instructions Edition ...
Страница 2: ......
Страница 947: ......