Hello,
As you know, Mach3 loads a G-Code file (e.g. test.tap) and starts its Cycle.
In the G-Code file, you can use Macros (e.g. M333) after making M333.m1s file written by VB Script.
The problem is that Mach3 doesn’t read some files including Macros, displaying
“Please wait…Generating Path….”, and never retrieve.
Or it sometimes reads, but stops at the Macro (e.g. M333), and never retrieve.
As you know, Mach3 has the VB Script Editor and Debugger..
From the debugger, the program runs perfect.
The program is shown as follows: (just a sample)
''Using G01 instead of G31
Code( "G01 X100 F200" )
While GetOEMLED( 825 )=0
Wend 'until Probe LED on
SetVar( 1000, GetABSPosition(0) )
DoOEMButton( 1003 ) 'press stop
While IsMoving()
Wend
Code( "G01 X0 F2000" )
Any basic suggestions on how to run VB Script in Mach3 would be greatly appreciated.
/E