. .

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Quote Originally Posted by John S View Post
    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


    Attached Files Attached Files
    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

  1. Anyone got some 2.5D G-code please ?
    By dudz in forum Programmers Corner
    Replies: 5
    Last Post: 22-06-2013, 11:21 PM
  2. Cambium Code Web Tools – Parametric G-code Generation
    By CambiumMachines in forum Manufacturer News
    Replies: 0
    Last Post: 09-01-2013, 04:56 AM
  3. Mach3 Using a physical button to repeat current gcode
    By RLKS Rob in forum Artsoft Mach (3 & 4)
    Replies: 2
    Last Post: 12-08-2012, 01:30 PM
  4. Use a tile cutter as a hobby table saw?!!!
    By HankMcSpank in forum General Discussion
    Replies: 10
    Last Post: 21-07-2009, 06:56 PM
  5. G Code help
    By moose007 in forum Programmers Corner
    Replies: 4
    Last Post: 22-05-2009, 11:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •