Rol (Fnc 31) - Mitsubishi FX1S Series Programming Manual

Melsec-f
Hide thumbs Also See for FX1S Series:
Table of Contents

Advertisement

FX Series Programmable Controlers
5.4.2

ROL (FNC 31)

Mnemonic
ROL
FNC 31
(Rotation
left)

16 BIT OPERATION
Function
The bit pattern of
KnY, KnM, KnS,
the destination
T, C, D, V, Z
device is rotated
Note:
'n' places to the
16 bit operation
left on every
Kn= K4,
execution
32 bit operation
Kn= K8
32 BIT OPERATION
Operands
S
K, H,
)
Note:
16 bit operation n ≤ 16
32 bit operation n≤ 32
PULSE-P
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 copied to the carry
flag M8022.
The example shown left is based on the instruction
noted above it, where the bit pattern represents the
contents of D0.
Applied Instructions 5
FX
FX
FX
1N
2N
1S
Program steps
D
ROL,ROLP:
5 steps
DROL,
DROLP:
7 steps
Flags
Carry M8022
5-44
FX
2NC

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx1n seriesFx2nc seriesFx2n series

Table of Contents