Справочник Пользователя для Mitsubishi Electronics FX2NC

Скачать
Страница из 382
FX Series Programmable Controlers
Applied Instructions 5
5-36
5.4.3
RCR (FNC 32)
Operation:
The bit pattern of the destination device (D)is rotated
n bit places to the right on every operation of the
instruction.
The status of the last bit rotated is moved into the
carry flag M8022. On the following operation of the
instruction M8022 is the first bit to be moved back
into the destination device.
The example shown left is based on the instruction
noted above it, where the bit pattern represents the
contents of D0.
5.4.4
RCL (FNC 33)
Operation:
The bit pattern of the destination device (D)is rotated
n bit places to the left on every operation of the
instruction.
The status of the last bit rotated is moved into the
carry flag M8022. On the following operation of the
instruction M8022 is the first bit to be moved back
into the destination device.
The example shown left is based on the instruction
noted above it, where the bit pattern represents the
contents of D0.
Mnemonic
Function 
Operands
Program steps
D
n
RCR
FNC 32
(
Rotation
right with
carry)
The contents of
the destination
device are rotated
right with 1 bit
extracted to the
carry flag
KnY, KnM, KnS,
T, C, D, V, Z
Note:
16 bit operation 
Kn= K4,
32 bit operation
Kn=K8
K, H,
Note:
16 bit operation n
≤ 
16
32 bit operation n
≤ 
32
RCR,RCRP:
5 steps
DRCR,
DRCRP:
7 steps
Mnemonic
Function 
Operands
Program steps
S
D
RCL
FNC 33
(Rotation
left with
carry)
The contents of
the destination
device are 
rotated
left with 1 bit
extracted to the
carry flag
KnY, KnM, KnS,
T, C, D, V, Z
Note:
16 bit operation Kn= K4,
32 bit operation Kn= K8
K, H,
Note:
16 bit operation n
≤ 
16
32 bit operation n
≤ 
32
RCL, RCLP:
5 steps
DRCL,
DRCLP:
9 steps
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
FLAGS Carry M8022
[ D ]
[ n ]
X0
D 0
K 4
RCR
M8022
0
Carry
M8022
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
0
0
0
0
1
1
1
1
1
1
1
1
1
0
0
0
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
FLAGS Carry M8022
X0
D 0
[ D ]
K 4
[ n ]
RCL 
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 0 1 1 1
M8022
1
Carry
M8022