Hello Guest it is April 27, 2024, 05:34:31 AM

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

691
Andre,

How are you running this code?  Is it button code attached to the set tool zero button?  I have found it very hard to make this work properly.  As an alternative, you could try the following.  Copy your code into Notepad; save it as a Mach3 macro, i.e. with the file extension .m1s, in the Macros folder in the Mach3 directory, making sure to avoid the macro numbers up to 100 that are used internally.  You could for example save it as M900.m1s which is the filename I used.  Now the button script you need to call this is just Code"M900".  I used this approach and it works just fine.

I'm not sure you need the "Exit sub" line at the end of your code - this doesn't seem to be a requirement for Cypress Basic.

And just a thought, trying to zero a tool onto a workpiece by eye is very hard as you have found out.  Much better is to slow jog onto a feeler gauge until it is just nipped between the tool and the material.  But probing is even better!

I've now got scripts on all the tool setting buttons that call probing macros in this way for setting tool height and also X and Y references, and they work fine.

John.

692
General Mach Discussion / Re: Text wizard/engraving issues
« on: April 10, 2013, 04:36:13 AM »
It might just be worth checking that backlash compensation is indeed turned off....and could your problem be caused by uncorrected backlash in the screws?

693
General Mach Discussion / Re: Text wizard/engraving issues
« on: April 09, 2013, 01:57:33 AM »
Do you have backlash compensation turned on or off?  If on, is it accurately set to the actual value for your screws?  You could try an alternative engraving package to see if that gives the same problem - F-Engrave is free, and I have used it successfully to engrave text.  It has the nice feature that it deals with multiple lines.  It generates g-code that you can then import into Mach to run, this will check if the problem is in the Mach wizard or your setup.

694
General Mach Discussion / Re: Help with digitizing/probing
« on: March 24, 2013, 11:58:35 AM »
Sorry, I misunderstood.  I though the spurious trigger was on your active low touch plate, but re-reading the OP I see it is on the active high probe.  This is probably noise from the x or y drives getting in through an earth loop.  The fact that you don't see it with the touch plate suggests that the z drive is not the problem.  Needs attention to single point earthing perhaps?

Within the probe, I assume that the signal is held low by a short to earth, so a pull down resistor will not help.  Since there is a spurious signal even when there is a low impedance to earth through this short, it indicates more inductive noise pickup from the stepper drive wiring.

695
General Mach Discussion / Re: Help with digitizing/probing
« on: March 22, 2013, 12:06:12 PM »
If you use a cap, yes it will stay high longer, but whether that is significant depends on how fast your probing move is.  One approach is to move until probe triggers, then withdraw a tiny bit and move much slower until it triggers again.  The significance of any delay the second time will be much less.

696
VB and the development of wizards / Re: Tool zeroing macro help
« on: March 15, 2013, 12:04:41 PM »
OK, glad you're sorted!

697
General Mach Discussion / Re: What Ratio Do I use
« on: March 15, 2013, 12:03:08 PM »
...up to a point! 

698
VB and the development of wizards / Re: Tool zeroing macro help
« on: March 15, 2013, 11:09:25 AM »
Did you find out how to do this?  Should be very easy, I have written macros to set tool zero using a probe and it's trivial.

699
General Mach Discussion / Re: What Ratio Do I use
« on: March 15, 2013, 10:59:35 AM »
5:1 would be very high!  Sizing will depend on the machine - what are you trying to drive?  My small Denford mill has a 2:1 reduction and is quite happy with small type 23 steppers.  My Myford lathe has a larger, still type 23 stepper, but direct drive on the X-slide and I think 2:1 on the leadscrew IIRC. 

Better resolution comes from using microstepping on the drivers.  On the mill, the screw pitch is 5mm, so one full step is 5/(2x200) = .0125 mm.  Then I use 8 microsteps per step, so the theoretical resolution is .0125/8 = ~1.6 micron.

700
OK, well the mystery is beyond me for the moment!

As for my macro, I have removed the "goto label" horror as the feature didn't seem to be needed anyway and done some other tidying up.  It now basically works as a macro called from G code or the MDI.  Pasting the code as button code still didn't work UNLESS it was single stepped, in which case it worked perfectly.  Maybe there is a timing issue when running CB code from a button?  So I tried an alternative approach, and wrote one line of button code that called the macro (correctly this time!) and now it works perfectly from the button too.

Now to write some edge-finding macros to zero the X and Y axes...

Thanks for yoyr help,

John.