Hello Guest it is October 05, 2024, 08:43:47 PM

Author Topic: Simple Zero VB script runs in VB but dose nothing in my G-Code...  (Read 5046 times)

0 Members and 1 Guest are viewing this topic.

I have made a very simple script to call button 1007 so that it will automatically Zero my program co-ords during my g-code. The problem is that when i call it from the VB editor it works fine, but just skips over it in the G-code when i call it. Any help would be great!

VB script:
Sub ZeroAll()
           DoOEMButton(1007)
End Sub

I saved it as M650.m1s M999.m1s and a bunch of other to see if it worked and same thing. All im doing to call it is typing the M650 or M999 into my g-code script. Is this correct?

Thanks!

Offline jimpinder

*
  •  1,232 1,232
  • Wakefield, West Yorks, UK
Re: Simple Zero VB script runs in VB but dose nothing in my G-Code...
« Reply #1 on: August 28, 2008, 05:08:10 AM »
Where did you save it - it needs to be in the Macros folder - then Mach 3 turn or Mach3 mill - whichever.
Not me driving the engine - I'm better looking.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: Simple Zero VB script runs in VB but dose nothing in my G-Code...
« Reply #2 on: August 28, 2008, 05:44:12 AM »

I have a very similar macro on my coil winder for zeroing the A Axis, If I call M2222 it will zero my A axis and it works well. The macro is in the macro folder and I called it M2222
Hood