Delta C200 Series User Manual page 338

Intelligent vector control drive
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents