Manual programming and looping Gcode

Hey everyone.  I'm a CNC programmer fooling around with the 3d printing platform and Repetier host for a custom application.  It's a solid little Gcode interpreter.  I'm pretty impressed.  The machine I built uses  the frame, steppers and computer of an older solidoodle.  I think it's a Solidoodle 2.  Not sure, but it's actually not really that important if I can get this done in code.  At any rate, I've been programming this machine and I have a quandary.  I need to loop the program.  The machine I built on this platform only needs to run a few lines of code to complete it's process.  But it would be nice to have it loop.  I've copied and pasted the code, over and over so it loops, but it would be really nice and really easy to fine tune the code if I only had to change a few things, rather than the entire 1000 lines of code I would need if I have to run it without a loop.

Any tips or tricks on how to do this in the Gcode interpreter for Repetier host?, if not, any tips or tricks to run another arduino based cnc controller that I could interface with that solidoodle? 

Thanks in advance!

Scot

Comments

  • Hey Scot,

    I'm in the same situation you were, since no one answered, did you manage to get a solution?

    Thanks in Advance,

    Jocelyn
  • That is not how host works. It just sends the gcode line by line to firmware. So no loopings are possible. Only thing is adding host commands ;@ for special tasks, but that won't help here.
  • I don't know much about host commands, is that possible to run a .g file with such a task?

    Jocelyn
  • No, they are used inside gcode to trigger some actions on the host side instead of being send to printer like add ing a pause.
  • Scot, have you tried using the "GOTO" command?
  • There is no goto. Firmware and hosts do not support loops.
Sign In or Register to comment.