Delta Electronics AH500 Manual page 163

Motion control module
Hide thumbs Also See for AH500:
Table of Contents

Advertisement

A H 5 00 M o ti on C on tr ol M od ul e Ma nua l
API
Instruction code
30
D
ROR
Device
X
Y
M
D
n
E xp la nat io n
E xa mple
Operand
P
S
K
16#
F
Pulse instruction 16-bit instruction (5 steps) 32-bit instruction (6 steps)
D: Device which is rotated; n: Number of bits forming a group
The bits in D are divided into groups (n bits as a group), and these
groups are rotated rightwards.
th
The n
bit from the right is transmitted to a carry flag.
Generally, the pulse instructions RORP and DRORP are used.
If the operand D is KnM/KnS, Kn in KnM/KnS must be K4 (16 bits) or K8
(32 bits).
16-bit instruction: 1≤n≤16; 32-bit instruction: 1≤n≤32
SM1066 is the carry flag in an Ox motion subroutine, and SM970 is the
carry flag in O100.
When X0.0 is turned from OFF to ON, the bits in D10 are divided into
groups (four bits as a group), and these groups are rotated rightwards.
(The bit marked with ※ is transmitted to a carry flag.)
X0.0
RORP
Rotating the bits in D10 rightwards
Hi gh byte
D10
0 1 1
1
1 0
1
1 0 1
Rotating the
16 bits in D10
Hi gh byte
D10
0
1
0
1 0 1 1
1
*
D, n
KnM KnS
D
W
D10
K4
Low by te
0 0
0
1
0 1
Low by te
1 0
1
1
0 1
0
0
Function
Rotating bits
rightwards
T
C
V
Z
Carr y flag
Carr y flag
0
5 - 4 8

Advertisement

Table of Contents
loading

Table of Contents