Delta C2000 series User Manual page 486

Classical field oriented. control ac motor drive
Hide thumbs Also See for C2000 series:
Table of Contents

Advertisement

API
ROL
31
P
Bit Devices
X
Y
M
K
D
n
Operands:
D: if in KnY and KnM, only K4 (16-bit) is valid
n: n=K1~K16 (16-bit)
1.
E xplanation
2.
3.
When X0 goes from Off to On, the 16-bit (4 bits as a group) in D10 will rotate to
Example
the left, as shown in the figure below. The bit marked with
flag M1022.
D
n
Word Devices
H KnX KnY KnM T
D: Device to be rotated; n: Number of bits to be rotated in 1 rotation
This instruction rotates the device content designated by D to the left for
n bits.
This instruction adopts pulse execution instructions (ROLP).
X0
upper bit
1 1 1
Carry
flag
upper bit
1
1
Carry
flag
Chapter 16 PLC Function |C2000 Series
Rotate to the Left
16-bit command (5 STEPS)
ROL
C
D
32-bit command
Flag signal: M1022 Carry flag
D10
K4
Rotate to the left
1
1 1
1
1 0 0
16 bits
After one rotation
to the left
1 1
1 0 0 0
0
0 0
16-63
ROLP
will be sent to carry
lower bit
0 0
0
0
0 0
D10
lower bit
0
0
1 1
1
1
D10

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents