Hello Guest it is April 26, 2024, 01:03:22 AM

Author Topic: Run a script when Mach loads  (Read 3543 times)

0 Members and 1 Guest are viewing this topic.

Offline ftec

*
  •  88 88
    • View Profile
Run a script when Mach loads
« on: May 12, 2011, 09:18:24 AM »
Is it possible and how to run a macro from file when Mach loads?

Thanks,
/Risto

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Run a script when Mach loads
« Reply #1 on: May 12, 2011, 11:30:41 AM »
Not sure, but you can add it to the initialization string and run it the first time you press reset.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline ftec

*
  •  88 88
    • View Profile
Re: Run a script when Mach loads
« Reply #2 on: May 12, 2011, 11:51:43 AM »
Wonderful workaround, thanks Gerry!

/Risto
Re: Run a script when Mach loads
« Reply #3 on: May 12, 2011, 01:12:53 PM »
HI,
If you are using a recent mach release, there is a script that is loaded (if it is present) whenever mach loads a screen set.

For more info get the programmer's ref manual from here
http://machsupport.com/docs/Mach3_V3.x_Macro_Prog_Ref.pdf

and look up ScreenSetLoad.

Dave
Author of the MachStdMill Extensions for Mach3
www.CalypsoVentures.com

Offline ftec

*
  •  88 88
    • View Profile
Re: Run a script when Mach loads
« Reply #4 on: May 12, 2011, 02:03:25 PM »
Could be what I'm looking after, Thanks Dave!

/Risto