585,722 active members*
4,417 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2007
    Posts
    8

    Repeating large number

    Hi you out there,

    We have a Johnford machining centre with a Fanuc 0m control, late eighties. All parts we make, mostly battery adapters for specialized chargers, are made in POM (delrin). To avoid clamping and unclamping all the time we have developed a method where we start machining a large number of small pieces from a solid block on a vacuum table. In the end we fix a thick MDF board to the machine table an fix it with torx headed wood screws in all finished parts to be (often + 200 screws). the program is repeated 5 to 200 times across the plastic block and in the end the machine unscrews the ready parts from the MDF board in a thread cycle with a torx key. Since I've learned the programming mostly by myself I wonder if there is a smarter way to step the program than the one I'm using. It looks appr like this:

    Main program:
    01000
    definition of G54-G59

    M6 T1
    G90 G54
    M98 P200001 (repeat O1 20 times, see below)
    G90 G92 X580 (N-1*stepdistX+final position ex.19*30+10=580 resetting coord system)
    G90 G55
    M98 P200001
    G90 G92 X580
    G90 G56
    M98 P200001
    G90 G92 X580
    G90 G57
    M98 P200001
    G90 G92 X580


    all the tools programs

    M30

    SUBPROGRAM:

    O1
    milling g-code.....
    G01 X10 (final position) Y20
    G92X-20 (final position-stepdistX 10-30=-20 ; moving program to the next step of repeat stepdist=30)


    Hope you can understand the function. Is there a better way where I don't have to keep track of the coordinate system change all the way and back.


    Best regards Pommac

  2. #2
    Join Date
    Feb 2008
    Posts
    586
    I'd try to see if G52 would work for you. It doesn't reset your origin, just gives you "local coordinate systems" that can easily go back to zero whenever you need it.

    Or you could try a G10 to move your G54 around from within the program. I think if you are in incremental (G91), then the G54 value shifts only by the amount programmed, not replacing the value entirely.

    More to follow, I'm sure!

Similar Threads

  1. Repeating a Subroutine.
    By Mike Mattera in forum G-Code Programing
    Replies: 6
    Last Post: 05-18-2008, 10:01 PM
  2. EZ path repeating problem
    By waltrobertson in forum Bridgeport / Hardinge Mills
    Replies: 2
    Last Post: 03-12-2008, 01:37 PM
  3. Repeating issue
    By scorchtool in forum Milltronics
    Replies: 16
    Last Post: 01-19-2008, 02:26 PM
  4. Repeating part
    By Sputnik in forum Mach Mill
    Replies: 3
    Last Post: 11-01-2006, 07:25 PM
  5. "tool slot number too large" code
    By dave6 in forum Mach Mill
    Replies: 1
    Last Post: 10-10-2006, 11:57 PM

Posting Permissions

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