Hello Guest it is April 19, 2024, 04:10:44 PM

Author Topic: Mach3 with a DMC-2162 (Aero)  (Read 26616 times)

0 Members and 1 Guest are viewing this topic.

Re: Mach3 with a DMC-2162 (Aero)
« Reply #20 on: February 14, 2011, 02:19:59 PM »
Also when I go to Motor Tuning and try to run it, it locks Mach3 up.

Aero

Offline smurph

*
  • *
  •  1,546 1,546
  • "That there... that's an RV."
    • View Profile
Re: Mach3 with a DMC-2162 (Aero)
« Reply #21 on: February 14, 2011, 03:52:39 PM »
The spindle in the Galil plugin uses a +-10 signal (just like a servo drive) when an encoder on the spindle is specified.  If your spindle drive is 0 to 10v, then there will be issues reversing speed. 

If your spindle runs away, then swap the A & B encoder signals and try it again.  In the Galil, we use the JG command to control the spindle speed when there is an encoder on the spindle.  So it's operating like a servo, which requires that the encoder signal track the correct direction of the motor.  Otherwise, the following error increases and the PID loop ramps the voltage up to try and decrease the following error.  So if the encoder tracking is backwards, the following error always increases.

Steve
Re: Mach3 with a DMC-2162 (Aero)
« Reply #22 on: February 14, 2011, 04:43:01 PM »
OK that was a good idea, when I read what you said I was like DUH!! :P Anyway I switch the wires and now it goes forward and reverse, back and forth getting faster the longer I leave it on. I disabled the M3 and M4 relay and edited my m3 macro to turn that relay on.


Aero
Re: Mach3 with a DMC-2162 (Aero)
« Reply #23 on: February 14, 2011, 04:47:48 PM »
BTW the spindle is +/- 10v


Aero

Offline smurph

*
  • *
  •  1,546 1,546
  • "That there... that's an RV."
    • View Profile
Re: Mach3 with a DMC-2162 (Aero)
« Reply #24 on: February 14, 2011, 04:59:24 PM »
You will want to set your spindle acceleration to something other than 0.  That may be why it gets faster as you leave it on.  It's simply taking forever to reach the target speed.

Steve
Re: Mach3 with a DMC-2162 (Aero)
« Reply #25 on: February 14, 2011, 05:52:32 PM »
I put 50 in the accel, but it doesn't seem to change anything. And also when I have the spindle on I don't see any RPM in the "Spindle Speed" window on the first page.


Aero
Re: Mach3 with a DMC-2162 (Aero)
« Reply #26 on: February 14, 2011, 07:03:59 PM »
OK, I set the PID's in the Galil to 0. Now it turns REALLY slow, no matter what m3s I put in.


Aero

Offline smurph

*
  • *
  •  1,546 1,546
  • "That there... that's an RV."
    • View Profile
Re: Mach3 with a DMC-2162 (Aero)
« Reply #27 on: February 14, 2011, 10:51:11 PM »
If the PID is good, the encoder counts are correct and you have the accel value set, then all should work.  It's really as simple as doing:

ACE=<accel>
DCE=<accel>
JGE=<cps>
BGE

from the Galil terminal.  Which is exactly what the output is if you will take a look at your GalilDebug.txt file that you posted.  The only problem I saw was there was no accel value set.  So get it functioning from the Galil terminal and then plugi the numbers into the plugin. 

The accel/decel value is in rev/sec. which is encoder counts/sec.  AC and DC values are in cnts/sec^2.

Steve
Re: Mach3 with a DMC-2162 (Aero)
« Reply #28 on: February 15, 2011, 10:01:56 AM »
I just got off the phone with Yaskawa, and that Varispeed is 0-10v. I have an output that is for spinforward, so I'm assuming that when that is on it is CW and when it's off it's CCW. Going to test this soon. I will let you know what I find out.


Thanks,

Aero

Offline smurph

*
  • *
  •  1,546 1,546
  • "That there... that's an RV."
    • View Profile
Re: Mach3 with a DMC-2162 (Aero)
« Reply #29 on: February 15, 2011, 03:06:26 PM »
In that case, you can't use the encoder.  So uncheck that box in the plugin config.  The plugin will then use the OF (offset) command to drive the analog voltage from 0 to 10 volts on E axis.  You would then need to configure outputs to Start/Stop and Fwd/Rev the VFD.

To sync the analog out, apply 10v to the VFD and read the RPM of the spindle.  Then, load that RPM value into the Mach Spindle Pulley config.  Do this for each pulley set that you need.  (You may note have but 1)  Then, the plugin can calculate the correct voltage to output for any given speed.

Steve