Mitsubishi FX3U Series Programming Manual page 274

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
2. 32-bit operation (DROL and DROLP)
"n" bits out of 32 bits of [
Command
input
FNC 31
DROLP
• The final bit is stored in the carry flag (M8022).
• In a device with digit specification, K8 (32-bit instruction) is valid.
Carry
flag
Before
M8022
execution
The status of
the bit "32−n"
is copied.
After
execution
1
Carry
flag
M8022
The contents of
b28 are stored.
Related device
Device
M8022
Cautions
1. In the case of continuous operation type instructions (ROL and DROL)
Note that shift and rotation are executed in every scan time (operation cycle).
2. 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).
272
+1,
] are rotated leftward.
D
D
D
n
"n" bits (in the case of K4)
High order
b31b30b29b28b27b26b25b24b23b22b21b20b19b18b17b16
1 1 1
1
1 1 1 1 0 0 0 0 0 0 0 0
"16−n" bits
High order
b31b30b29b28b27b26b25b24b23b22b21b20b19b18b17b16
1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1
Name
Carry
Turns ON when the bit shifted last from the highest position is "1".
11 Rotation and Shift Operation – FNC 30 to FNC 39
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
After the
instruction is
executed once
Leftward
rotation
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1 1 1 1 0 0 0 0 0 0 0 0 1 1 1
Before shift
b27 to b0
→ For the carry flag use method, refer to Subsection 6.5.2.
Description
D
11.2 FNC 31 – ROL / Rotation Left
Low order
b28 (32−n) to b31 are moved.
"n" bits
Low order
Before shift
b31 to b28
1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents