74
« on: August 26, 2014, 09:59:37 AM »
Hi,
This is a copy of the post I put on the Mach3 group.
There are quite a few things at play here.
Firstly, you cannot test the linearity of the G540 output using the KBIC's as
the supply for the G540 analog circuitry.
If you want to test the linearity properly you need to use a stable supply. A
9V battery is a good choice. Connect the battery to the 10V+ and the Agnd
terminals on the G540. Then
1. in Mach3 set the spindle speed to max (10,000rpm in your case)
2. Measure the analog output between Aout and Agnd on the G540.
3. Multiply the measured voltage by 100 and enter that as the max pulley speed
into the Mach3 pulley setting. So a measured voltage of 8.90 would mean that
the max pulley setting entered is 890rpm.
4. Now you can test the G540 linearity. Enter 100rpm and the voltage should be
1.00V. Enter 250rpm and the measure voltage should be 2.50V
You should find that the linearity is very good.
Now on to your setup. If you are powering the G540 Analog supply from the
KBIC-120 connecting it in place of the 5K pot (which is exactly what I do) The
voltage supply is about 15V.
WARNING!!!! This 15V supply is LETHAL. Terminal P3 is at mains potential
110V,220V,etc. P1 is 15V less than that. P2 varies between the two. If you are
not qualified to work on mains voltage, use someone who is. (a qualified
electrician)
Jeff's document instructs you to use the voltage following input setup which
not the same as just replacing the manual speed potentiometer with the G540
analog output.
I have always controlled the KBIC controllers by connecting to the three
potentiometer terminals, P1,P2,P3
I have done this with all my DigiSpeed Products and the G540.
One of the problems you are encountering is that the 15V supply is a diode
shunt regulator, capable of only supplying a few milliamps. Further more, the
MAX trimpot is just a potentiometer that is in series with the 15V supply.
Also the G540's dynamic impedance (load) that is across this supply varies
with the PWM signal. So as you vary the Mach3 speed setting, the supply
voltage to the G540 analog setting varies because of the voltage divider set
up by the MAX pots resistance causing a non-linearity in the 15V voltage
supply to the G540.
If you want to use the voltage following input as Jeff suggests you need to
power the G540's analog circuity from a separate isolated 7V supply and not
the 15V supply for the potentiometer.
And another issue to deal with is the non-linearity of the spindle motor. At
very low speeds, the motor needs to overcome the friction and drag in the
motor and drive train, so the actual speed will be less than the commanded speed.
Then at the top end, the spindle speed of the DC motor saturates (flattens
out) after about 95% of top speed. So in essence, the DC motors response is
actually an S curve, not a straight line. So when you are setting the Max
pulley you need to use the estimated speed that it would have reached if it
did not flatten out.
What this means that you should have very linear response is the 15%-85% speed
range. Above 85% you usually just want to go flat-out so the non-linearity in
that part is not usually a problem.
So to set up your spindle,
1. Connect the G540 analog lines in place of the P1,P2 and P3 potentiometer
terminals of the KBIC-120
2. Wind the MAX pot fully clockwise to reduce any non-linearity from it.
3. Run the spindle for 15 minutes to warm up so as to reduce drag in the
drive-train.
4. Set the Max pulley speed to the max speed that the spindle would reach if
it did not flatten out.
5. Adjust the Max pulley speed so that you get a linear response in the main
working speed range of your spindle.
Hopefully this will get you close. If you are not happy with the result you
may need to replace it with a Closed loop spindle control system such as a VFD
or servo.
Cheers,
Peter