Galil DMC-13X8 user manual Speed Control by Joystick

Models: DMC-13X8

1 210
Download 210 pages 31.17 Kb
Page 145
Image 145

Y

 

 

 

 

 

R=2

 

4

 

 

 

 

B

C

 

A

 

 

X

0

4

9.3

Figure 7.2 - Motor Velocity and the Associated Input/Output signals

Speed Control by Joystick

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

USER MANUAL

Chapter 7 Application Programming • 145

Page 145
Image 145
Galil DMC-13X8 user manual Speed Control by Joystick