Hello Guest it is March 29, 2024, 08:41:34 AM

Author Topic: Sending External Commands to Mach4  (Read 470 times)

0 Members and 1 Guest are viewing this topic.

Sending External Commands to Mach4
« on: August 15, 2022, 11:56:52 AM »
I'm running Mach4 with an ESS and it is working good.

Is it possible to send some basic commands to the running Mach4 like
Home(Ref All), Load Gcode File, Start  from my Program and receive some status call backs on these commands?

In my reading, I feel this is possible but am not understanding how to go about it.

I would appreciate being pointed in the right direction, or told it's not possible or a bad idea.  Thanks
Re: Sending External Commands to Mach4
« Reply #1 on: August 15, 2022, 01:25:52 PM »
can send comand ,but feedback its not so easy ,forexample to get status you can read registry or even write from gcode  with m function to text file
but forexample generate file(each time mach load ) i didnt find any way to get from mach signal when its finish regenate it and i can give the comand run
Re: Sending External Commands to Mach4
« Reply #2 on: August 15, 2022, 05:00:31 PM »
Thanks for sharing.  What language did you use to talk to it and any other getting started info?

Is it possible/easier if using LUA externally to send the commands?
Re: Sending External Commands to Mach4
« Reply #3 on: August 15, 2022, 11:35:48 PM »
I use c# ,I prefer c# so I never try Lua
But also with c# you need use extern method because c# it's unmanaged ,one point very important you must deployed the application x86 not 64 bit ,Mach can't run 64 and if you use onther language then English also not for API