II. Programs
(Continued)
The reference system uses an 8 MHz clock. The sample
period of the reference system is determined.
The number of samples during acceleration (and decelera-
tion) is determined.
Using the number of counts traveled during acceleration and
the number of samples during acceleration, acceleration is
determined.
Total counts traveled while at maximum velocity is four-fifths
the total counts traveled.
Note 7:
Average velocity during acceleration and deceleration periods is
one-half the maximum velocity.
TABLE 9. Simple Relative Position Move Program
Port
Bytes
Command
Comments
Initialization Module
Filter Programming Module
c
1F
LTRJ
This command initiates loading the trajectory parameters input buffers.
Busy-bit Check Module
d
d
00
2B
HB
LB
These two bytes are the trajectory control word. A 2B hex LB indicates all three
parameters will be loaded and both acceleration and velocity will be absolute values
while position will be a relative value.
Busy-bit Check Module
d
d
00
00
HB
LB
Acceleration is loaded in two data words. These two bytes are the high data word. In
this case, the acceleration is 17 counts/sample
2
.
Busy-bit Check Module
d
d
00
11
HB
LB
acceleration data word (low)
Busy-bit Check Module
d
d
00
02
HB
LB
Velocity is loaded in two data words. These two bytes are the high data word. In this
case, velocity is 161,087 counts/sample.
Busy-bit Check Module
d
d
75
3F
HB
LB
velocity data word (low)
Busy-bit Check Module
d
d
FF
FE
HB
LB
Position is loaded in two data words. These two bytes are the high data word. In this
case, the position loaded is −120,000 counts. This results in a move of thirty revolutions
in the reverse direction.
Busy-bit Check Module
d
d
2B
40
HB
LB
position data word (low)
Busy-bit Check Module
c
01
STT
STT must be issued to execute the desired trajectory.
AN-693
www.national.com
13