. .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Learn to use Do /while on Fanuc controls
    This will help a lot with repeat cycles

    O1000(Drill Holes 2mm deep 5 mm apart*10)
    #501=10 (number of holes )
    Goo G90 G54 p1 Xo Yo Z50 Mo3 S1000 G43 H1
    G00 Z2.0
    ()
    While [#501 GT 0]Do 1
    Go1 G91 Z-4.0 F100.0
    Goo z4.0
    G00 x-5.0
    #501=[#501-1]
    END 1


    Commands to Home

  2. #2
    Quote Originally Posted by Ulsterman View Post
    Learn to use Do /while on Fanuc controls
    This will help a lot with repeat cycles

    O1000(Drill Holes 2mm deep 5 mm apart*10)
    #501=10 (number of holes )
    Goo G90 G54 p1 Xo Yo Z50 Mo3 S1000 G43 H1
    G00 Z2.0
    ()
    While [#501 GT 0]Do 1
    Go1 G91 Z-4.0 F100.0
    Goo z4.0
    G00 x-5.0
    #501=[#501-1]
    END 1


    Commands to Home
    Bit late this Ulster man but anyway think Tenson use's Mach3 control which doesn't support conditional code like Do/while in the main G-code file so needs to be done thru macro's. And think he was meaning more for the CAD/CAM software to post process it in main G-code file has most folks on here don't get into running macro's and sub routines etc.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 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
  •