EasyManuals Logo

Mitsubishi FX3G Series Programming Manual

Mitsubishi FX3G Series
944 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #292 background imageLoading...
Page #292 background image
290
FX3G/FX3U/FX3GC/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.2 FNC 31 – ROL / Rotation Left
2. 32-bit operation (DROL and DROLP)
"n" bits out of 32 bits of [ +1, ] are rotated leftward.
The final bit is stored in the carry flag (M8022).
In a device with digit specification, K8 (32-bit instruction) is valid.
Related device
For the carry flag use method, refer to Subsection 6.5.2.
Cautions
In the case of continuous operation type instructions (ROL and DROL)
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 "DROL D100 R0", "n" is [R1, R0].
Device Name Description
M8022 Carry Turns ON when the bit shifted last from the highest position is "1".
D
D
Command
input
FNC 31
DROLP
nD
High order
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1
Low order
High order Low order
Leftward
rotation
b31b30b29b28b27b26b25b24b23b22b21b20b19b18b17b16
Before shift
b31 to b28
After the
instruction is
executed once
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
b31b30b29b28b27b26b25b24b23b22b21b20b19b18b17b16
1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
Before shift
b27 to b0
1
Carry
flag
M8022
Carry
flag
M8022
The contents of
b28 are stored.
"n" bits (in the case of K4)
b28 (32
n) to b31 are moved.
"n" bits
The status of
the bit "32
n"
is copied.
"16
n" bits
Before
execution
After
execution
D

Table of Contents

Other manuals for Mitsubishi FX3G Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX3G Series and is the answer not in the manual?

Mitsubishi FX3G Series Specifications

General IconGeneral
ModelFX3G Series
Power SupplyAC 100-240V or DC 24V
Program Capacity32, 000 steps
Execution Speed0.21 µs/basic instruction
Communication OptionsRS-422, USB, Ethernet
Expansion ModulesAnalog, digital, communication
Programming LanguageLadder Logic, Instruction List
Built-in FunctionsHigh-speed counters, pulse output
Analog I/OAvailable via expansion modules

Related product manuals