hit counter script

Mitsubishi Electric FX3G SERIES Programming Manual page 297

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
2. 32-bit operation (DROR and DRORP)
"n" bits out of 32 bits of [
Command
input
FNC 30
DRORP
• The final bit is stored in the carry flag (M8022).
• In a device with digit specification, K8 (32-bit instruction) is valid.
High order
b31b30b29b28b27b26b25b24b23b22b21b20b19b18b17b16
Before
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
execution
"n" bits
High order
b31b30b29b28b27b26b25b24b23b22b21b20b19b18b17b16
After
0
0 0 0 1 1 1 1 1 1 1 1 0 0 0 0
execution
Before shift
b3 to b0
Related device
Device
M8022
Cautions
• In the case of continuous operation type instructions (ROR and DROR)
Note that shift and rotation are executed in 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 "DROR D100 R0", "n" is [R1, R0].
+1,
] are rotated rightward.
D
D
D
n
Rightward
rotation
Name
Carry
Turns ON when the bit shifted last from the lowest position is "1".
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.1 FNC 30 – ROR / Rotation Right
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1 1 1 1 1 1 1 1 0 0 0 0
After the
The status of
instruction is
the bit "n−1" is
executed once
copied.
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0
Before shift
b31 to b4
→ For the carry flag use method, refer to Subsection 6.5.2.
Description
D
"n" bits (in the case of K4)
Low order
Carry flag
M8022
0
0 0 0
b0 to b3 (n−1)
are moved.
The status of the bit "n−1" is
copied.
Low order
0
Carry flag
M8022
The contents of
b3 are stored.
295
11
12
13
14
15
16
17
18
19
20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents