Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: gvfeng on September 21, 2018, 07:19:27 AM

Title: automatic loading of a program on startup
Post by: gvfeng on September 21, 2018, 07:19:27 AM
hello I am trying to use mach 3 as a single use machine, what I need is to start mach 3 with a g code pre loaded, I have seen online someone has done it using the reset button and a macro call in the general configuration / initialization string, example:-

m777  in initialization string
m777.m1s saved in macro folder
written in m777    loadfile ("C:\Mach3\GCode\roadrunner.tap")

this doesn't work what am I doing wrong?
also I would like to switch off the shut down message when closing the program

thanks  Martin.
Title: Re: automatic loading of a program on startup
Post by: rcaffin on October 07, 2018, 05:26:17 AM
Not sure, but you could try:
Move Roadrunner.tap from the Gcode folder to the Subroutines folder and change the loadfile string to just "Roadrunner.tap". The default directory for this is the Subroutines one.
OR
Change the loadfile string to ("-C:\Mach3\GCode\roadrunner.tap"). There is a '-' sign at the start.

Cheers
Roger