Thread: Tile / Repeat G-Code?
Threaded View
-
24-01-2013 #7
Work offsets will still need the G-Code repeating but with the relevant work offset added. Workoff sets are ok if just few parts needed but not ideal if for instance you wanted say the Word "Jazz" cutting 100 times. There are better ways.
One better way to do it if just a few is to put your main code in a subroutine then call the subroutine using M98 p#. You can then either use incremental moves for the offset and recall the subroutine or like John says use Workoff sets in the main program and then call the subroutine like this. (also see attached file for G91 incremental move way which will draw 8 squares 50mm apart using same code)
G21 (metric units)
G54 (Default work offset)
G0 z10 (move to position)
x0y0
(Main program will write whats in subroutine at each Work offset location)
M98 p1000 (Call subroutine)
G55 (Work offset 1 )
M98 p1000 (Call subroutine)
G56 (Work offset 2 )
M98 p1000 (Call subroutine)
M30 ( End and rewind)
o1000 (Sub routine)
Pretend this is G-code and writes
G1 "John S is an Old Twat . .LMAO"
M99 (End sub)
Even better way is to put the G-code you want cut in a Macro file and using parameters for the start location which you then feed from the main program. This is getting a bit more involved so won't go into it but just search parameteric G-code amd macro.
Look here G-Code Tutorial: Parameterized Programming
Last edited by JAZZCNC; 24-01-2013 at 11:21 AM.
Thread Information
Users Browsing this Thread
There are currently 6 users browsing this thread. (0 members and 6 guests)
Similar Threads
-
Anyone got some 2.5D G-code please ?
By dudz in forum Programmers CornerReplies: 5Last Post: 22-06-2013, 11:21 PM -
Cambium Code Web Tools – Parametric G-code Generation
By CambiumMachines in forum Manufacturer NewsReplies: 0Last Post: 09-01-2013, 04:56 AM -
Mach3 Using a physical button to repeat current gcode
By RLKS Rob in forum Artsoft Mach (3 & 4)Replies: 2Last Post: 12-08-2012, 01:30 PM -
Use a tile cutter as a hobby table saw?!!!
By HankMcSpank in forum General DiscussionReplies: 10Last Post: 21-07-2009, 06:56 PM -
G Code help
By moose007 in forum Programmers CornerReplies: 4Last Post: 22-05-2009, 11:39 AM
Bookmarks