Hello Guest it is April 21, 2019, 06:40:13 PM

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

891
Galil / Re: Position or torque mode?
« on: January 04, 2011, 10:32:50 PM »
Ah ha!!!  You have slaving enabled in Mach and you don't have all of the axes mapped in the plugin config.  Only the first 3 are mapped but mach thinks you are using 4.

Steve

892
Galil / Re: Position or torque mode?
« on: January 04, 2011, 09:34:40 PM »
Which plugin is this?  The one I sent you or the release from the download site?  There is definitely something wrong with the commas.  On almost every command sent!

Steve

893
If your CAM is only producing 3 axes, then you are going to have a problem.  There is nothing in Mach that can take one Z movement and split it into two separate axis movements.  As far as the Galil is concerned, it is going to do what Mach tells it to do.  So no help there.

As Rob suggested, you can do this manually by editing your Gcode.  But there is nothing automatic going to happen for you if you can't do this from you CAM software.

Steve

894
Galil / Re: Spindle Basic Setup
« on: January 04, 2011, 12:48:26 PM »
Like I said, that subject is waaaay beyond the scope of this Galil support forum.  You might try posting in the General forum and get some help.  There are also video tutorials on Brains.  But bear in mind, you are wanting to do what almost no one has wanted to do in the past.  So there is not going to be a drop in solution.  It may not even be possible.

I will try and put something in the plugin that will make it easier.  But I'm really having trouble figuring out how I would get that information back to Mach.  I might just have to place that information into a user DRO or something.  But that will not be in the plugin until I get finished with the new API (no idea when at the moment).  So it you want the RPM feedback sooner, then you will need to investigate other options.

Steve

895
Contec / Re: Which Contec cards work with the plugin and which don't
« on: January 04, 2011, 12:36:34 AM »
Sorry, no.  That is not an option.  It's an I/O plugin only.  Have a look at the Smooth Stepper for a nice stepper motor controller that doesn't use the parallel port.

Steve

896
Galil / Re: Spindle Basic Setup
« on: January 03, 2011, 03:25:35 AM »
There is no problem.  Typically, Mach commands the spindle to a certain value.  If you set the spindle speed to 1000 RPM, then Mach expects the spindle speed to be 1000 RPM.  There is no PID loop from Mach controlling the spindle for external motion plugins, so there is no need for RPM feedback.

Feedback from the galil is in counts because, after all, it reads an encoder.  You could possibly write a brain to sample the counts of the spindle encoder and do the required math to calculate RPM based on your encoder counts per revolution.  But that is a subject waaaaaay beyond the scope of this Galil forum.

Why do you need spindle speed feedback?  If you just want to check that the spindle is doing the commanded speed, then put a tachometer on it temporarily.

Steve

897
Galil / Re: Position or torque mode?
« on: January 03, 2011, 02:24:36 AM »
You have mid-move stutters when the Galil is doing the slaving?  If so, then there is a mechanical problem.  Mach should be driving the X axis and the slaved axis should just follow it.

PM me your email address.  I have a new plugin for you to try.  MPG may be buggy in this plugin, as I just re-vamped the MPG code.  But it should do the right thing for slaving if the master axis is configured as a stepper axis.

Steve

898
Galil / Re: Position or torque mode?
« on: January 02, 2011, 11:04:59 PM »
I took a look at the debug file.  I didn't see any MPG commands in it.  It does show that you are using Mach to slave your Galil D axis to your Galil A axis.

The Galil plugin was developed primarily to enable the use of analog servos in Mach.  You are using your servos like steppers.  That being said, there is support for stepper motors in the Galil.  However, support for stepper motors is very lacking in the plugin, as none of the developers of the plugin have any stepper motors.  Stepper motors seem to work fine with a basic config.  But slaving is not the same command with steppers, as you have discovered.  

If you enable slaving in Mach, then the galil plugin is going to send a GA,,,X, as this is the proper thing to do with servos.  This basically negates your previous command of GA,,,CA.  So...  you need to disable slaving in Mach and do it all on the Galil.  These commands are what you will be needing in the GalilInit.txt file.  Remember, no slaving in Mach!

GA,,,CA  // slave axis D to master axis
GR,,,1    // gear ratio 1:1
GM,,,1   // gantry mode

(Leave the comments out of the file.)

This way, Mach only controls axes A, B, and C.  The Galil does all of the slaving.  But...  you will have to make sure that the gantry axis is square before Initializing the Galil from the plugin.  When Mach homes the gantry axis, it will think it is only homing 1 axis.  Mach will have no notion what so ever that there is a slave configuration.  This is fine, as long as you realize that none of the Mach slaving controls will be useful.

I updated the plugin code to take a look at the master axis motor type and do the right thing if it is a stepper motor.  However, that will not be available until the next release.  (I don't know when that will be at the moment.)  Maybe this will get you going until then.

Steve

899
Galil / Re: Position or torque mode?
« on: January 02, 2011, 06:03:26 PM »
Make a file called GalilInit.txt, put your GA,,,CA command in it, and place the file in the plugins directory.  When the plugin initializes the Galil, it will send the contents of that file to the controller.  You can put more than one command in that file if needed.  One command per line.

BTW, if you think position mode is fast, try velocity or torque mode.  The full version of Galil Tools provides a tuning function for the servos.  It will get you in the ball park.  Well worth the price of admission if you have never tuned servos before.

Steve

900
Mach SDK plugin questions and answers. / Re: PLUG IN WRITERS
« on: January 01, 2011, 07:07:02 PM »
Sorry...  I didn't get the notifications that people had responded.  They got caught up in my spam filter.  I have sent the plugin to all that have provided email addresses.

Steve