585,997 active members*
5,120 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Haas Machines > Haas Mills > Repetitave profile increasing z axis
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2007
    Posts
    67

    Repetitave profile increasing z axis

    Does anyone know if there is an shorter way to write this type of a program?
    it keeps repeating to a depth of 2.55" at 0.05" per

    T21 M06
    (1.25 3 FLUTE)
    G90 G58 G00 X3.25 Y5.
    M88
    S1800 M03
    G43 H21 Z1. M08
    G01 Z-0.05 F15.
    G41 G01 X2.375 Y4. D21
    G01 Y3.077
    G03 X2.7606 Y2.174 R1.25
    G02 X2. Y0.2794 R1.1
    G02 X1.2394 Y2.174 R1.1
    G03 X1.625 Y3.077 R1.25
    G01 Y3.7294
    G01 X2.5
    G40 G00 X3.25 Y5.

    G01 Z-0.1
    G41 G01 X2.375 Y4. D21
    G01 Y3.077
    G03 X2.7606 Y2.174 R1.25
    G02 X2. Y0.2794 R1.1
    G02 X1.2394 Y2.174 R1.1
    G03 X1.625 Y3.077 R1.25
    G01 Y3.7294
    G01 X2.5
    G40 G00 X3.25 Y5.

  2. #2
    Join Date
    Feb 2007
    Posts
    36
    do it in a sub routine. make your first z move a incremental move and do not have the cutter move up and the end of the sub.

  3. #3
    Join Date
    Jul 2005
    Posts
    12177
    I see you have the Z-0.05 at the top of the first set of profile coordinates then Z-0.10 at the top of the next: Do you mean you keep on with Z-0.15, Z-0.2, etc until you get to the full depth?

    Put your profile coords in a subroutine and then increment the Z-0.05 before you call the subroutine.

    EDIT: Drewmeister must type faster than me. He wasn't there when I started.
    An open mind is a virtue...so long as all the common sense has not leaked out.

  4. #4
    Join Date
    Jun 2007
    Posts
    67
    Thanks for the input guys.
    It all helps

  5. #5
    Join Date
    Jan 2008
    Posts
    85
    %
    G0G20G40G80G90
    T21 M06
    (1.25 3 FLUTE)
    G90 G58 G00 X3.25 Y5.
    M88 ( I AM NOT FAMILIAR WITH M88)
    S1800 M03
    G43 H21 Z1. M08
    M97P1000L51
    G0Z2.M9
    G91G28Y0Z0
    G90
    M30

    P1000
    G01 G91 Z-0.05 F15.
    G90 G41 G01 X2.375 Y4. D21
    G01 Y3.077
    G03 X2.7606 Y2.174 R1.25
    G02 X2. Y0.2794 R1.1
    G02 X1.2394 Y2.174 R1.1
    G03 X1.625 Y3.077 R1.25
    G01 Y3.7294
    G01 X2.5
    G40 X3.25 Y5. F25.
    M99
    %

    By using the M97 with the L command will let it loop so having your entire path with in the P1000 program and using G91 for the Z Depth it will continue to repeatedly do the steps you want.

    Hopefully this will help.
    My Response to "It's Close Enough", "Is Your Tool Box and The Door Close Enough?"

  6. #6
    Join Date
    Mar 2006
    Posts
    61
    you can also use a While do loop:

    T21 M06
    (1.25 3 FLUTE)
    G90 G58 G00 X3.25 Y5.
    M88
    S1800 M03
    G43 H21 Z1. M08
    G01 Z-0.05 F15.
    #100=51.0(Number of Passes)
    WHILE [#100 GT 0]DO1
    #100=#100-1.0
    G41 G01 X2.375 Y4. D21
    G01 Y3.077
    G03 X2.7606 Y2.174 R1.25
    G02 X2. Y0.2794 R1.1
    G02 X1.2394 Y2.174 R1.1
    G03 X1.625 Y3.077 R1.25
    G01 Y3.7294
    G01 X2.5
    G40 G00 X3.25 Y5.
    END1
    G0Z2.0M9
    G91G28Y0Z0
    G90
    M30

  7. #7
    Join Date
    Nov 2006
    Posts
    16
    This is my macro to trepan maybe this will help

    %
    O0001
    G00 G90 G54
    (Trepan Macro)
    (-----Alter 1 thru 7----)

    #1 .75 (Diameter of mill)
    #2 5.500 (Dia to Trepan)
    #3 2.55 (Depth of cut)
    #4 51(# of cuts)
    #5 1500 (rpm)
    #6 15.5 (ipm)
    #7 1.0 (Distance above part)

    (----Do not alter below----)
    #2/2=#8
    #1/2=#9
    #8-#9=#10
    G80 M09
    M06 T2
    G00 X-#10 Y0 S#3 M03
    G43 Z#7 H02 M08
    G01 Z-#3 F1.
    G02 I#10 J0. F#6
    G00 Z6.
    G00 G91 G28 Z0 Y0 M09
    G90 M19
    M30
    %

Similar Threads

  1. Increasing Memory in Fanuc 18?
    By jdocmm in forum Fanuc
    Replies: 12
    Last Post: 06-07-2007, 05:36 AM
  2. HELP! Increasing frequency...
    By WilliamD in forum CNC Machine Related Electronics
    Replies: 4
    Last Post: 04-23-2007, 10:32 PM
  3. Increasing CNC precision
    By hani_a in forum Linear and Rotary Motion
    Replies: 9
    Last Post: 01-07-2007, 02:53 AM
  4. Increasing power from steppers
    By roni21702 in forum Hobbycnc (Products)
    Replies: 1
    Last Post: 03-22-2006, 07:06 PM
  5. Increasing torque
    By bunalmis in forum Stepper Motors / Drives
    Replies: 1
    Last Post: 07-20-2005, 07:27 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
  •