Position Control By Joystick; Backlash Compensation By Sampled Dual-Loop - Galil Motion Control DMC-1600 Series User Manual

Table of Contents

Advertisement

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
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

Position Control by Joystick

This system requires the position of the motor to be proportional to the joystick angle.
Furthermore, the ratio between the two positions must be programmable. For example, if the
control ratio is 5:1, it implies that when the joystick voltage is 5 Volts, corresponding to 1028
counts, the required motor position must be 5120 counts. The variable V3 changes the position
ratio.
Instruction
#A
V3=5
DP0
JG0
BGX
#B
V1=@AN[1]
V2=V1*V3
V4=V2-_TPX-_TEX
V5=V4*20
JG V5
JP #B
EN

Backlash Compensation by Sampled Dual-Loop

The continuous dual loop, enabled by the DV1 function is an effective way to compensate for
backlash. In some cases, however, when the backlash magnitude is large, it may be difficult to
stabilize the system. In those cases, it may be easier to use the sampled dual loop method
described below.
This design example addresses the basic problems of backlash in motion control systems. The
objective is to control the position of a linear slide precisely. The slide is to be controlled by a
rotary motor, which is coupled to the slide by a lead screw. Such a lead screw has a backlash of 4
micron, and the required position accuracy is for 0.5 micron.
156 • Chapter 7 Application Programming
Speed = 20000 x VIN
Function
Label
Initial position ratio
Define the starting position
Set motor in jog mode as zero
Start
Read analog input
Compute the desired position
Find the following error
Compute a proportional speed
Change the speed
Repeat the process
End
DMC-1600

Advertisement

Table of Contents
loading

Table of Contents