Hello Guest it is March 28, 2024, 02:53:21 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 - mythal

Pages: 1
1
General Mach Discussion / Re: VB DoButton + Referance All Axis
« on: September 19, 2011, 12:42:15 PM »
SUPER!

Thank you! Hood.

2
General Mach Discussion / VB DoButton + Referance All Axis
« on: September 19, 2011, 11:45:19 AM »
Hi

I'm trying to make a button works as:

1.reference 4 AXIS (X/Y/A/B).
2.go to position X200, y100, A200, B100.


so I make a button and code it as :
DoButton(22)
DoButton(23)
DoButton(25)
DoButton(26)
code("G00 X200")
code("G00 Y100")
code("G00 A200")
code("G00 B100")


However, it's working as go to that position first, then reference axis later.


(but if I run the code line by line, It works all good)

Is there any help can correct my code?

thx!

3
Super!

I tick the "Ignore M Calls While Loading" and it works !

Thank you zealous.



4
Hi

I'm trying to semi auto my Mach3 by adding a file-loading Macro(M555) at initialization string.

and wish to have Mach3 to run a Macro (M159) to call a App.exe at the end of my Gcode

However, when I press the RESET button to initial the Mach3, Mach3 run M555 correctly , but launch M159 at same time (which I wish to be run at the very end of the process)


Is there anyone can give me some suggestion to get this right?

Thanks!


here are the codes I use:

M555:
LoadFile ("C:\Sample.NC")

M159:(referenced from http://www.machsupport.com/forum/index.php/topic,13960.0.html)

Option Explicit

Dim CmdString As String

Const Filename = "C:\Run.exe"
Const AppFQFN = "C:\windows\system32\CMD.exe"

CmdString = """" & APPFQFN & """" & " " & """" & FileName & """"
Shell(CmdString) 


my Gcode-Sample.NC:
G00 G49 G40.1 G17 G80 G50 G90
G21
M6 T1
M5 M9
M159
M30





Pages: 1