Hello Guest it is May 22, 2019, 01:22:04 PM

Author Topic: Mach3 through Command line in Windows  (Read 2271 times)

0 Members and 1 Guest are viewing this topic.

Mach3 through Command line in Windows
« 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

Offline BR549

*
  •  6,865 6,865
    • View Profile
Re: Mach3 through Command line in Windows
« Reply #1 on: May 29, 2014, 02:30:23 PM »
What exactly are you trying to do ??

(;-) TP
Re: Mach3 through Command line in Windows
« Reply #2 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

Offline BR549

*
  •  6,865 6,865
    • View Profile
Re: Mach3 through Command line in Windows
« Reply #3 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