Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: gautamgtm on May 29, 2014, 04:50:25 AM

Title: Mach3 through Command line in Windows
Post by: gautamgtm on May 29, 2014, 04:50:25 AM
Is it possible to control Mach3 using Command line in Windows?
I have a VBScript stored in the folder as
c:\mach3\code.m1s

I know it is possible to load a profile in Mach3 using the command
c:\mach3\mach3.exe /p smoothstepper

But then I have to run the VBScript myself using the VBScript from the UI manually.
I want to knoiw if I can do that through command line, so that I can automate that using a script.

Thanks in advance

Gautam
Title: Re: Mach3 through Command line in Windows
Post by: BR549 on May 29, 2014, 02:30:23 PM
What exactly are you trying to do ??

(;-) TP
Title: Re: Mach3 through Command line in Windows
Post by: gautamgtm on May 30, 2014, 01:27:30 AM
For controlling a machine, generally we have to load our profile in mach3 and then we can control the stepper motor through the interface or through VBscript.
But we have to first open the mach3 application and then load the VBscript by our-self.
I want to know if I can run the VBscript through command prompt, so that I need not open mach3 by myself.

Thank you in advance.
Guatam
Title: Re: Mach3 through Command line in Windows
Post by: BR549 on May 30, 2014, 03:20:05 AM
IF the VB script is always the same you can create a Mcode from the script and then Call that Mcode from the Initiation line on start up.  When you open Mach3 it automatically will load and run the Mcode.

Just a thought(;-) TP