II. Programs
(Continued)
TABLE 10. Basic Velocity Mode Move with
Breakpoints Program
(Continued)
Port
Bytes
Command
Comments
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 1.0 rev/sec
2
.
Busy-bit Check Module
d
00
HB
acceleration data word (low)
d
11
LB
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 2.0 rev/s.
Busy-bit Check Module
d
0C
HB
velocity data word (low)
d
4A
LB
Busy-bit Check Module
c
01
STT
Start motion control.
Busy-bit Check Module
c
1F
LTRJ
This command initiates loading the trajectory parameters input buffers.
Busy-bit Check Module
d
d
18
0C
HB
LB
These two bytes are the trajectory control word. A 18 hex HB programs forward
direction velocity mode operation. A 0C hex LB indicates only velocity will be loaded
and it will be a relative value.
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 2.0 rev/s. Because this is a relative value, the current velocity will be
increased by 2.0 rev/s. The resultant velocity will be 4.0 rev/s.
Busy-bit Check Module
d
0C
HB
velocity data word (low)
d
4A
LB
wait
This wait represents the host processor waiting for an LM628 breakpoint interrupt.
c
01
STT
Start motion control.
Busy-bit Check Module
c
1D
RSTI
Reset interrupts.
Busy-bit Check Module
d
xx
HB
don’t care
d
00
LB
Zeros in bits one through six reset
all
interrupts.
Busy-bit Check Module
c
20
SPBA
This command initiates loading an absolute breakpoint.
Busy-bit Check Module
d
d
00
02
HB
LB
A breakpoint is loaded in two data words. These two bytes are the high data word. In
this case, the breakpoint is 160,000 counts absolute.
Busy-bit Check Module
d
71
HB
breakpoint data word (low)
d
00
LB
wait
This wait represents the host processor waiting for an LM628 breakpoint interrupt.
“Smooth” Stop Module
AN-693
www.national.com
16