![Galil Motion Control DMC-42 0 Series User Manual Download Page 147](http://html1.mh-extra.com/html/galil-motion-control/dmc-42-0-series/dmc-42-0-series_user-manual_3267467147.webp)
VS 40000
BGS
AMS
PR,,80000
Raise Z
BGZ
AMZ
VP -37600,-16000
Return XY to start
VE
VS 200000
BGS
AMS
EN
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
The corresponding velocity for the motor is assigned to the VEL variable.
Instruction
#A
JG0
BGX
#B
VIN=@AN[1]
VEL=VIN*20000
JG VEL
JP #B
EN
Chapter 7 Application Programming ▫ 143
DMC-42x0 User Manual
Summary of Contents for DMC-42 0 Series
Page 195: ...ICM 2900 PCB Layout Appendices 191 DMC 42x0 User Manual...
Page 205: ...CB 50 100 Drawings Appendices 201 DMC 42x0 User Manual...
Page 206: ...Appendices 202 DMC 42x0 User Manual...
Page 207: ...Appendices 203 DMC 42x0 User Manual...
Page 208: ...Appendices 204 DMC 42x0 User Manual...
Page 209: ...Appendices 205 DMC 42x0 User Manual...
Page 210: ...Appendices 206 DMC 42x0 User Manual...
Page 211: ...Appendices 207 DMC 42x0 User Manual...
Page 214: ...CB 50 80 Drawing Appendices 210 DMC 42x0 User Manual...