Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - smurph

821
Galil / Re: limits not being disabled
« on: February 18, 2011, 06:26:58 PM »
You have your + and - limits swapped.  When a limit is triggered, you can only move the axis AWAY from the switch.  Otherwise, you will get error 22. 

In your case, when the axis hit the limit, the homing routines reverse the motion.  But the the Galil thinks that the reversed motion is toward the switch!

Just re-wire to swap the limits.

Steve

822
Galil / Re: Galil registry in Windows 7
« on: February 17, 2011, 12:19:35 AM »
For you guys with Win7 64bit, I have been working on getting this to work.  I re-wrote the code to work with either SmartTerm or GalilTools.  

I have not tested SmartTerm and Win7 64bit.  In theory, it should work as long as you are not driving a bus based controller.  Meaning Ethernet controllers should work.  But like I said...  I have not tested it.  

Here is the link for a very experimental version of the Galil plugin that you can try if you want to.  I have not tested this with Win 7 or Win 7 64 bit.  I simply don't have a computer with either OS on it.  

http://www.smcomp.com/~smurph/galil/Galil.zip

This version of the plugin does not require any Galil software on your computer to operate a Galil Ethernet controller.  You only need the Galil software for the terminal program or bus based controllers.  You do not need to register the controller in SmartTerm (if you are using it) but SmartTerm will require you to do so if you wish to use SmartTerm with the controller.  The down side is that you need set the IP address as DC described above.

Also keep in mind that if you are using a crossover Ethernet cable to the Galil that the 21x3 series controllers are 10Mbit.  So you may need to explicitly tell your computer's Ethernet adapter to use 10Mbit.  It seems that switches are better at negotiating the correct speed than the Ethernet controllers in today's machines are.  The symptoms are being able to connect to the controller but losing connection intermittently.

Steve

823
Galil / Re: Mach3 with a DMC-2162 (Aero)
« on: February 16, 2011, 07:36:45 PM »
I bet there is still a VFD config issue.  What is the model number of the VFD?  I'll see what I can dig up.

Steve

824
Galil / Re: Need help with basic MPG set-up and 1750 card
« on: February 16, 2011, 01:30:37 PM »
Jim,

Enable debug in the plugin config dialog and do some MPG moves.  Then send me the resulting GalilDebug.txt file.  My email address is in the plugin documentation.

Steve

825
Galil / Re: Mach3 with a DMC-2162 (Aero)
« on: February 15, 2011, 07:49:55 PM »
You need to have the stepper jumper removed from the E axis on the Galil and the E axis motor type set to "servo" in the plugin configuration.  Check that and then do this in the Galil terminal (do not enter the //<comments> I put in, just the commands):

MTE=1    // set axis E to servo motor
KPE=0    // set axis E PID to 0
KIE=0
KDE=0
OFE=9.998  // command 10v to axis E MOCMD

This should get you +10v between MOCMDX and GND.

OFE=5.0

Should get you +5v, etc...

The plugin is not programmed to do rigid tapping on anything but a servo style input.  The reason is that we use the Galil gearing to gear the spindle to the Z axis axis.  Meaning Mach has no control over the spindle while the rigid tapping operation is in progress.  When the Z axis reaches the bottom of it's movement and starts back up, the spindle needs to immediately change direction.  This requires a servo style +-10v on the spindle axis.

Steve


Steve

826
Galil / Re: Mach3 with a DMC-2162 (Aero)
« 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

827
Galil / Re: Mach3 with a DMC-2162 (Aero)
« 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

828
Galil / Re: Mach3 with a DMC-2162 (Aero)
« 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

829
Galil / Re: Mach3 with a DMC-2162 (Aero)
« 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

830
Galil / Re: Fanuc 3 axis drive
« on: February 13, 2011, 03:07:16 PM »
Unfortunately, no one has done this to my knowledge.  So everything here is pure speculation.  And I have no idea what those motors require.  There are a couple of guys on the CNCZone that may be able to answer your questions about the drives and the motors.

Steve