Delta Electronics AH500 Manual page 166

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

Advertisement

API
Instruction code
33
D
RCL
Device
X
Y
M
D
n
E xp la nat io n
E xa mple
5 - 5 1
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 leftwards with a carry flag.
th
The n
bit from the left is transmitted to a carry flag.
Generally, the pulse instructions RCLP and DRCLP are used.
If the operand D is KnM/KnS, Kn in KnM/KnS must be K4 (16 bits) or K8
(32 bits).
If KnM/KnS is used, it is suggested that M device numbers/S device
numbers should start from a number which is a multiple of 16 in the
decimal numeral system, e.g. K4M0 and K4S16 (decimal numeral
system).
16-bit instruction: 1≤n≤16; 32-bit instruction: 1≤n≤32
SM1066 is the carry flag in an Ox motion subroutine, and SM22 is a
carry flag.
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 leftwards with
a carry flag. (The bit marked with ※ is transmitted to the carry flag.)
X0.0
Carr y flag
Hi gh byte
Carr y flag
Ch ap te r 5 Ap plie d Instruc tions
Rotating bits leftwards
D, n
with a carry flag
KnM KnS
D
W
RCLP
D10
K4
Rotating the bits in D10 leftwards
Hi gh byte
1 1 1
1
1 1
1
1 0 0
0 0
Rotating the
16 bits in D10
1
1 1
1 0 0 0
0
0 0
0
Function
T
C
V
Z
Low by te
D10
0
0
0 0
Low by te
D10
0
0
1
1
1

Advertisement

Table of Contents
loading

Table of Contents