DMC-1500
Chapter 7 Application Programming
•
119
VE=VP-_TPX
Find position error
VEL=VE*20 Compute
velocity
JG VEL
Change velocity
JP #Loop
Change velocity
EN End
Example Applications
Wire Cutter
An operator activates a start switch. This causes a motor to advance the wire a distance of 10". When
the motion stops, the controller generates an output signal which activates the cutter. Allowing 100 ms
for the cutting completes the cycle.
Suppose that the motor drives the wire by a roller with a 2" diameter. Also assume that the encoder
resolution is 1000 lines per revolution. Since the circumference of the roller equals 2
π
inches, and it
corresponds to 4000 quadrature, one inch of travel equals:
4000/2
π
= 637 count/inch
This implies that a distance of 10 inches equals 6370 counts, and a slew speed of 5 inches per second,
for example, equals 3185 count/sec.
The input signal may be applied to input 1, for example, and the output signal is chosen as output 1.
The motor velocity profile and the related input and output signals are shown in Fig. 7.1.
The program starts at a state that we define as #A. Here the controller waits for the input pulse on I1.
As soon as the pulse is given, the controller starts the forward motion.
Upon completion of the forward move, the controller outputs a pulse for 20 ms and then waits an
additional 80 ms before returning to #A for a new cycle.
Instruction Function
#A Label
AI1
Wait for input 1
PR 6370
Distance
SP 3185
Speed
BGX Start
Motion
AMX
After motion is complete
SB1
Set output bit 1
WT 20
Wait 20 ms
CB1
Clear output bit 1
WT 80
Wait 80 ms
JP #A
Repeat the process
Summary of Contents for DMC-1510
Page 6: ......
Page 18: ...6 Chapter 1 Overview DMC 1500 THIS PAGE LEFT BLANK INTENTIONALLY...
Page 88: ...76 Chapter 6 Programming Motion DMC 1500 Figure 6 7 Motion intervals in the Home sequence...
Page 90: ...78 Chapter 6 Programming Motion DMC 1500 THIS PAGE LEFT BLANK INTENTIONALLY...
Page 137: ...DMC 1500 Chapter 7 Application Programming 125 THIS PAGE LEFT BLANK INTENTIONALLY...
Page 157: ...DMC 1500 Chapter 10 Theory of Operation 145 THIS PAGE LEFT BLANK INTENTIONALLY...
Page 160: ...148 Appendices DMC 1500 Card Level Layout...
Page 180: ...168 Appendices DMC 1500...
Page 198: ...186 Appendices DMC 1500 THIS PAGE LEFT BLANK INTENTIONALLY...