Speed Control By Joystick - Galil Motion Control DMC-1000 User Manual

Table of Contents

Advertisement

Y
4
A
0
Figure 7.2 - Motor Velocity and the Associated input/output signals
The speed of a motor is controlled by a joystick. The joystick produces a signal in the range between -
10V and +10V. The objective is to drive the motor at a speed proportional to the input voltage.
Assume that a full voltage of 10 Volts must produce a motor speed of 3000 rpm with an encoder
resolution of 1000 lines or 4000 count/rev. This speed equals:
3000 rpm = 50 rev/sec = 200000 count/sec
The program reads the input voltage periodically and assigns its value to the variable VIN. To get a
speed of 200,000 ct/sec for 10 volts, we select the speed as
Speed = 20000 x VIN
The corresponding velocity for the motor is assigned to the VEL variable.
Instruction
#A
JG0
BGX
#B
VIN=@AN[1]
VEL=VIN*20000
DMC-1000
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
R=2
B
4

Speed Control by Joystick

Interpretation
Label
Set jog speed of zero
Begin jogging (at speed zero)
Label
Set variable, VIN, to value of analog input 1
Set variable, VEL to multiple of variable of VIN
C
9.3
Chapter 7 Application Programming • 121
X

Advertisement

Table of Contents
loading

Table of Contents