EasyManua.ls Logo

Delta Electronics EXIO14RAE - Page 129

Delta Electronics EXIO14RAE
157 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix D Use of Application Instructions|DOP-EXIO Series
D-48
Revision March, 2008, Doc. Name: 2007PDD23000014
Mnemonic Operands Function
ROL D
D
n
Rotation Left
Bit Devices Word Devices
X Y M S K H KnX KnY KnM KnS T C D E F
D
n
y Note:
1. If D is used in device F, only 16-bit instruction is applicable.
2. If D is designated as KnY, KnM, and KnS, only K4 (16-bit) and K8
(32-bit) are valid.
3. Range of n: 1 ~ 16 (16-bit); 1 ~ 32 (32-bit)
16-bit instruction (5 Steps)
ROL
Continuous
execution
32-bit instruction (9 Steps)
DROL
Continuous
execution
y Flags: M1022 (Carry flag)
Operands:
D
: Device to be rotated
n
: Number of bits to be rotated in 1 rotation
Explanations:
This instruction rotates the device content designated by D to the left for n bits.
Program Example:
When X0 = OffOn, the 16 bits (4 bits as a group) in D10 will rotate to the left, as shown in the figure
below. The bit marked with
will be sent to carry flag M1022.
X0
D10 K4
111 11 100 0 0011 000
11000001100110111
16 bits
Rotate to the left
A
fter one rotation
to the left
Carry
flag
Carry
flag
D10
D10
lower bit
lower bit
higher bit
higher bit

Related product manuals