Fnc 33 - Rcl / Rotation Left With Carry - Mitsubishi Electric FX3G SERIES Programming Manual

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
11.4
FNC 33 – RCL / Rotation Left with Carry
Outline
This instruction shifts and rotates the bit information leftward by the specified
number of bits together with the carry flag.
1. Instruction format
FNC 33
D
RCL
2. Set data
Operand Type
D
n
*1.
Do not set a negative value to the number of bits to be rotated.
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
D
n
: In 16-bit operations, K4Y
In 32-bit operations, K8Y
Explanation of function and operation
1. 16-bit operation (RCL and RCLP)
"n" bits out of 16 bits of
Command
input
FNC 33
RCLP
Before
b15 to b12
execution
(16−n) are
moved.
After
The status
execution
of the final
bit b12 (bit
"16−n") is
stored.
The carry flag is intervened in the rotation loop. If M8022 has been set to ON or OFF before the rotation instruction, the
carry flag is transferred to the destination.
300
Mnemonic
16-bit Instruction
P
RCL
5 steps
RCLP
Word device number storing data to be rotated leftward
Number of bits to be rotated
[n ≤ 16 (16-bit instruction), n ≤ 32 (32-bit instruction)]
Digit Specification
, K4M
, K8M
and 1 bit (carry flag M8022) are rotated leftward.
D
D
n
"n" bits (in the case of K4)
High order
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1 1 1
0
1 1 1 1 0 0 0 0 0 0 0 0
1
Carry flag
When M8022
is ON
Leftward
rotation
High order
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 1
Before shift b11 to b0
Carry flag M8022
0
Before shift b12
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.4 FNC 33 – RCL / Rotation Left with Carry
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
*1
Word Devices
Special
System User
Unit
V
and K4S
are valid.
and K8S
are valid.
Low order
After the
instruction is
executed once
"n" bits
Low order
Before shift b15 to b13
Before shift
Carry flag M8022
Mnemonic
Operation Condition
Continuous
DRCL
9 steps
Operation
Pulse (Single)
DRCLP
Operation
Data Type
16- or 32-bit binary
16- or 32-bit binary
Others
Con-
Real
Charac-
Index
stant
Number
ter String
Z Modify K H
E
b15 to b13 (16−n+1) and the head
bit indicating the carry flag ON/OFF
status are moved.
Pointer
" "
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents