GOTO and/or G41
Would there be any way to add the "GOTO" command to the list of commands you can program into Gcode?
Example code:
N1 G1 E1 F500
N2 G0 X1 Y2 Z1
N3 G0 X2 Y1 Z2
N3 GOTO N1
If that could be written into the firmware or the main program, this feature would make Repetier a very powerful tool for hackers to use on machines that aren't primarily 3d printers.
I posted a question about it in the tips and tricks section of this forum, but I figured I would post another question in this section, because this feature makes it really easy to build your own code without having to model it and slice it, then edit it. Not everyone can use this, but in some instances, one could program many small parts to print and with an offset, they can make, write and use small batches of code for repetitious processes. I'm personally using Repetier host to run a custom machine that does the same 5 to 10 lines of code, over and over.
If there is something I'm missing, let me know.
Thanks,
Scot
Example code:
N1 G1 E1 F500
N2 G0 X1 Y2 Z1
N3 G0 X2 Y1 Z2
N3 GOTO N1
If that could be written into the firmware or the main program, this feature would make Repetier a very powerful tool for hackers to use on machines that aren't primarily 3d printers.
I posted a question about it in the tips and tricks section of this forum, but I figured I would post another question in this section, because this feature makes it really easy to build your own code without having to model it and slice it, then edit it. Not everyone can use this, but in some instances, one could program many small parts to print and with an offset, they can make, write and use small batches of code for repetitious processes. I'm personally using Repetier host to run a custom machine that does the same 5 to 10 lines of code, over and over.
If there is something I'm missing, let me know.
Thanks,
Scot
Comments
Perhaps there is another Gcode interpreter that can. I guess I'm on a journey for arduino, cnc, rather than arduino 3d printing. I guess GRBL is the closest thing, but still not sure if it can do that code juggle.
Any pointers would really help. I'm not new to CNC, just to the 3d printer controllers. They're awesome. But a bit limited in some ways. Then again, it's a printer, not a mill.
From what I see, this platform has very real potential in basic robotics for small scale things. I used to make tiny screws on CNC lathes. This would be perfect for things like sorting, counting, packaging, etc.
Anyway, I'll be looking into scripts, but if there is any shortcuts to doing it right, let me know!
might be better to generate a file f.e. in excel .
I am happily using Repetier Host with my STARTT3D (clone of TRONXY XY-100) with repetier 0.92 firmware. I am currently doing a small upgrade to the printer with a custom small drill, mounted on the cursor. This is used to help me in doing PCB prototypes of course. I was able to program the printer to drill all holes (exported from an Excellon file by FlatCAM), and the result was very nice.
Now I would like to try to "Cut" the board with a mill but I need to perform multiple passes for the profile of the PCB, with very small increments of the Z axis. I mean 20 or more passes. So I was interested in a way to implement a "loop" in the code.
Since the g-code is sent line by line from the editor of the host to the controller, it would be possible to implement host-specific codes, like for example @execute command param1 param2 to define a label in the source code, a counter and a conditional statement to perform a loop, something like this:
This is inspired by a typical assembly approach when implementing a controlled loop, but I think it could be possible and not that much difficult to implement. Maybe this could be a start point for more complex workflows. I really hope that this could be done
Francesco.
Exactly, so the script can check for example the position and modify the flow accordingly. For the loop thing, maybe a starting point could be to be able to execute one of the custmizable scripts n times. Maybe a specific text box can contain the numeric value that the used can edit, then by clicking on the icon of a script the host sends the program n times...