781
General Mach Discussion / Re: Run Batch G-Code with hold between files
« on: October 26, 2020, 02:43:10 AM »
how to run Subroutines is explained here: https://www.machsupport.com/forum/index.php?topic=7684.0
macro language will be VB
example to run files with different names:
example if file names are numbered:
code example not tested just written down.
macro language will be VB
example to run files with different names:
Code: [Select]
Sub Main()
LoadRun("C:\Mach3\Gcode\file1234.tap")
Code "M00"
LoadRun("C:\Mach3\Gcode\fileabc.tap")
'and so on
Code"M30"
End Sub
example if file names are numbered:
Code: [Select]
Sub Main()
For i = 1 To 120
LoadRun("C:\Mach3\Gcode\file" & i & ".tap")
If i <> 120 Then
Code "M00"
Else
Code"M30"
End If
Next i
End Sub
code example not tested just written down.