Author Topic: Reading data from outside, generating G code and executing it  (Read 2719 times)

0 Members and 1 Guest are viewing this topic.

Offline dg123

  • Active Member
  • Posts: 3
    • View Profile
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

Offline poppabear

  • Global Moderator
  • *
  • Posts: 2,231
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
Re: Reading data from outside, generating G code and executing it
« Reply #1 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.....

:)
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/

Offline dg123

  • Active Member
  • Posts: 3
    • View Profile
Re: Reading data from outside, generating G code and executing it
« Reply #2 on: April 02, 2013, 08:22:44 AM »
Thank you for your kind advice.