10
« on: February 22, 2016, 08:31:18 PM »
Hello Everyone,
I'm a grad student working on a 3D printing research project for my university. The machine uses a 3D gantry controlled by GCode run from Mach4 in combination with a welder (for additive use) controlled by by a separate Python interface. The problem I face is coming up with a way to communicate between the GCode, using M commands, and the Python script. Ideally, we'd be able to call an M command, M23 for example, which would communicate with the welder script that the welder needs to be turned on. The script would then be able to return a success value of some sort to indicate that the GCode should proceed. I decided that the use of sockets would allow two-way communication and be relatively hassle free.
However, I am not sure how to implement this in Mach4. If this were normal Lua, I'd use the LuaSocket library, but I feel as though it won't be as simple as that. I'm now thinking that developing my own plugin would be a better path for me. Is this feasible to do within the bounds of a plugin? If so, how would I gain access to the SDK? I assume I'd have to contact ArtSoft somehow and sign an NDA, but would this be through a help ticket or are there other means of contact?
I'd appreciate any advice or questions on the matter.
-Alex