586,745 active members*
6,777 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2010
    Posts
    0

    multi part using macros

    have single part program that is somewhat long and complex, was looking for any suggestions/help on how to run this program for multiple parts on one set up, using macros, thank you.

  2. #2
    Join Date
    Mar 2003
    Posts
    2932
    Why not just use subs and a different work coordinate system for each part? You shouldn't need to bother with macros.

    %
    O100 (MAIN PROG)
    N1 T01 M06
    G00 G54 X0 Y0 S5000 M3
    G43 Z0.1 H01 M08
    M97 P101 (MACHINE PART #1)
    G00 G55 X0 Y0 (POSIT TO PART #2)
    M97 P101 (MACHINE PART #2)
    G00 G56 X0 Y0 (POSIT TO PART #3)
    M97 P101 (MACHINE PART #3)
    N2 T2 M06
    G00 G54 X0.25 Y0.25 S5000 M03
    G43 Z0.1 H2 M08
    M97 P102 (MACHINE PART #1)
    G00 G55 X0 Y0 (POSIT TO PART #2)
    M97 P102 (MACHINE PART #2)
    G00 G56 X0 Y0 (POSIT TO PART #3)
    M97 P102 (MACHINE PART #3)
    ...
    ...
    M30

    N101 (T1 MACHINING SUB)
    G01 Z-0.2 F20.
    Y1.
    X1.
    Y0.
    X0.
    G00 Z0.1
    M99 (RETURN TO MAIN PROG)

    N102 (T2 MACHINING SUB)
    ...
    ...
    ...
    M99
    %

  3. #3
    Join Date
    Mar 2009
    Posts
    10
    I hope it is M98. Not M97.. Is it so in Hass Machine?

  4. #4
    Join Date
    Sep 2010
    Posts
    0
    yes true, but wanted to see if there are options using macros to cut down size of program.......using probe updates, tool checks and multiple work offsets on the single part program.....HAAS VF 4 with 5 axis trunion.

Similar Threads

  1. Multi-part Fixture with Single Point Clamping
    By Geof in forum Work Fixtures / Hold-Down Solutions
    Replies: 35
    Last Post: 08-22-2011, 03:13 AM
  2. Multi-Part Fixturing
    By Geof in forum Work Fixtures / Hold-Down Solutions
    Replies: 12
    Last Post: 10-09-2009, 02:25 PM
  3. How to multi part
    By Toddjones in forum Mastercam
    Replies: 6
    Last Post: 04-23-2009, 04:02 PM
  4. Macro for multi part
    By DocHod in forum G-Code Programing
    Replies: 13
    Last Post: 06-08-2007, 10:59 AM

Posting Permissions

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