Delta CT2000 Series User Manual page 505

Table of Contents

Advertisement

Chapter 16 PLC Function CT2000 Series
API
ROR
D
30
Bit device
X
Y
M
D
n
Notes on operand usage:
Only K4 (16-bit) will be valid if the operand D is designated as KnY
or KnM.
n operand n=K1-K16 (16-bit)
Rotates the device designated by
This command is ordinarily used as a pulse execution type command (RORP).
13. When X0=Off→On, 4 of the 16 bits in D10 specify a right rotation; the content of
the bit indicated with * (see figure below) will be sent to the carry flag signal
M1022.
D
n
P
Word device
K
H
KnX KnY KnM
D
: Device to be rotated.
X0
Rotate to the right
upper bit
D10
0 1 1
1
1 0
upper bit
D10
0
1
0
1 0 1 1
*
Right rotation
16-bit command (5 STEP)
ROR
T
C
D
32-bit command (9 STEP)
DROR
Flag signal: M1022
n
: Number of bits for one rotation.
D
to the right
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
16-64
Continuous
RORP
execution type
execution type
Continuous
DRORP
execution type
execution type
Carry flag
n
bits.
Carry
flag
0
0
Carry
flag
Pulse
Pulse

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents