Machsupport Forum

Mach Discussion => Mach SDK plugin questions and answers. => Topic started by: dg123 on March 13, 2013, 02:52:31 PM

Title: Reading data from outside, generating G code and executing it
Post by: dg123 on March 13, 2013, 02:52:31 PM
I have a need to read data from outside system generating x y z coordinates, generating G code line, executing it in MACH and repeating this loop.

Can somebody point me in the right direction.
Thanks
Title: Re: Reading data from outside, generating G code and executing it
Post by: poppabear on March 31, 2013, 11:34:56 PM
ok, have your outside source write a plain text file of coordinates, (or what ever else).
open/read that file into your plugin, process your lines into G-code, push that into
a cstring block. Push that block into the Gcode editor via mach3 calls, then run the code.....

:)
Title: Re: Reading data from outside, generating G code and executing it
Post by: dg123 on April 02, 2013, 08:22:44 AM
Thank you for your kind advice.