504,518 active members
4,225 visitors online
Register for free
Login
Results 1 to 7 of 7
  1. #1
    Registered
    Join Date
    Mar 2004
    Posts
    115

    How to cut multiple parts (loop a program)

    I kinda of new to Mach and CNC and have a question.
    I have a program that I use to cut a part from a plate, Now I want the program to run one part, move over a couple of inches in X and run the same program again....... and again and again.... I would like make 5 parts with the same program and have it automatically move over in X and run the program again. My question is, what is the best way to handling this using MACH2 as my controller and surfcam as My cam software?

    Thanks a million!
    Bob

  2. #2
    Gold Member
    Join Date
    Jun 2003
    Posts
    1364
    One way you can do it is set up fixtures, if you have multiple tools, you can program it so it will use one tool do all the parts, then next tool do all the parts etc.

    Basicly what the fixtures are is G54, G55, G56, G57, G58, G59 and more that I am not totally sure how to use.

    in the offsets tab, you can use each fixture and set them up in there. Otherwize theres a temporary coordinates code that you can tell it to move over like that without setting up fixtures, I am unsure how to use that as I havent ever done so.

    Jon

  3. #3
    Registered
    Join Date
    Mar 2004
    Posts
    847
    This is something I have always been very curious about as well, and I haven't found a good answer on how to accomplish this.

    When talking with the OneCNC guys during my demo, I asked them about this as well - thinking that maybe XR had a way to do this and output the correct gcode - but no dice.
    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
    Check Out My Build-Log: http://www.cnczone.com/forums/showthread.php?t=6452

  4. #4
    Gold Member
    Join Date
    Jun 2003
    Posts
    1364
    I belive that the best way to do this is with fixtures, or at least 1 fixture and all the part offsets, especially if you have home switches so its always set up exactly the way you want.

    I typically have 2 fixture offsets, G54 and G55, one for each side of the stop in my vice.
    I have another small fixture peice that I use off of one of my other fixtures in my vice, it has G56, G57, G58, and G59 which have an offset from G54 and I do a similar thing which you are wanting to do. I simply have a common zero zero for the program in each fixture(or location) and put the G55 then the program, then lift up the a safe z height and G56 G0 X0(or wherever it may be) then the program again(I just copy and paste) and do the same for the rest.

    Jon

  5. #5
    Registered
    Join Date
    Nov 2004
    Posts
    118

    subs

    You can use a Sub and it would look like this:
    G90 G00 G54 X0.0 Y0.0
    S3000 M3
    G43 H5 Z1.0
    M98 P00005 L6
    G92.2
    M30

    O00005
    G00 G54 X0.0 Y0.0
    G01...



    G90 X0.0 Y0.0
    G92 X-6.0 Y0.0 This is where you shift for the next part
    M99


    Here is an other way to do the same thing. I could explain how this works but the maual is so good!!! It will give you a chance to see how the codes are used!

    G90 G00 G54 X0.0 Y0.0
    S3000 M3
    G43 H5 Z1.0
    M98 P00005
    G53 X6.0 Y0.0 Z0.0
    M98 P00005
    G53 X12.0 Y0.0 Z0.0
    M98 P00005
    G53 X18.0 Y0.0 Z0.0
    M98 P00005
    G53 X24.0 Y0.0 Z0.0
    M98 P00005
    G53 X30.0 Y0.0 Z0.0
    M98 P00005
    G52 X0.0 Y0.0 Z0.0
    M30

    O00005
    G00 G54 X0.0 Y0.0
    G01...


    M99

    Best of luck
    Brian

  6. #6
    Registered
    Join Date
    Apr 2005
    Posts
    88
    Maybe I misunderstood the question, but it sure sounds like all you want to do is array or copy the same program and you are using Surcam.

    All you have to do is use the "Transform" button in the operations manager. Use the rectangular array feature and plug in your offset. If you are just offsetting in one direction, put in 1 copy with a zero offset in the stationary directions.

    You have the option to sort by tool, which will run each toolpath individually across your array, or running each part individually.

    I hope this helps.

  7. #7
    Registered
    Join Date
    Mar 2003
    Posts
    214
    program 1 part in surfcam in incremental mode, this would be your subroutine.
    Then call out your sub from each new x,y position in absolute mode:

    G90 G0 X0Y0
    M98P001
    G90 G0 X2 Y0
    M98P001
    G90 G0 X4 Y0
    M98P001
    ETC....

Similar Threads

  1. What is high speed machining
    By Klox in forum Hard / High Speed Machining
    Replies: 112
    Last Post: 04-11-2014, 05:13 AM
  2. looking for someone to cut some parts
    By rocketguy in forum Employment Opportunity
    Replies: 11
    Last Post: 01-22-2007, 04:34 AM
  3. parametric programming
    By Karl_T in forum CamSoft Products
    Replies: 21
    Last Post: 05-24-2005, 08:58 PM
  4. Running a set number of parts?
    By Shizzlemah in forum Centroid CNC Control Products
    Replies: 2
    Last Post: 05-03-2005, 12:47 AM
  5. Parts cut in version 19
    By Arch in forum BobCad-Cam
    Replies: 70
    Last Post: 03-30-2004, 06:00 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
  •