586,103 active members*
3,859 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2008
    Posts
    3

    trying to simplify my program

    When I program our vertical mill to mill a 2" x 2" block with rounded corners I use one main program which calls 2 subprograms. 1 subprogram is for the rough-mill and the 2nd subprogram is for the finish-mill. Note that both subprograms are practically identical with the exception of a smaller compensation for the finish end-mill.
    In an effort to simplify, i tried programming the G41 command within the main program so that I can use 1 subprogram for both the rough and finish end-mills. However, when i do so, the endmill doesn't travel where programmed for the first couple G1 and G2 commands, however it eventually follows the correct path.
    Question, why doesn't the end-mill follow the correct path for the first couple movements?
    Thank you in advance.

  2. #2
    Join Date
    Jul 2005
    Posts
    12177
    Show the program.
    An open mind is a virtue...so long as all the common sense has not leaked out.

  3. #3
    Join Date
    Mar 2003
    Posts
    2932
    What kind of control?

  4. #4
    Join Date
    Jun 2008
    Posts
    3

    Example of Program

    So to machine the block with the Rough Mill with G41 in the main program, the main program looks like this (keep in mind this is a 2" x 2" piece with 1/2" Radii corners.

    01111
    G0 G40 G49 G80 G90
    G92 X5.0 Y5.0
    X-0.5 Y1.0 T1 M6
    S3000 M3
    G43 Z-1.0 H1
    G1 G41 Y0.0 H17 F15.0
    M98 P30001
    G40 Y1.0
    G92 X -6.5
    G1 X-0.5
    G1 G41 Y0.0 H18 F15.0
    M98 P30001
    G40 Y1.0
    G92 X-6.5
    M5
    G0 G28 G49 Z0 H0
    G28 G49 G91 X0 Y0
    G90 M30

    and the subprogram looks like this:
    O0001
    X-0.5 Y0.0
    Z-0.5
    G2 X0.0 Y-0.5 R0.5 F10.0
    G1 Y-1.5
    G2 X-0.5 Y-2.0 R0.5
    G1 X-1.5
    G2 X-2 Y-1.5 R0.5
    G1 Y-0.5
    G2 X-1.5 Y0 R0.5
    G1 X-0.5
    Y1.0
    G92 G0 X2.5
    M99

  5. #5
    Join Date
    Jul 2005
    Posts
    12177
    Quote Originally Posted by johnpiero View Post

    G1 G41 Y0.0 H18 F15.0
    Change this so that you have both an X and a Y move and have the end of the move a short distance away from the first corner.

    You will also have to change some moves ahead of this command.
    An open mind is a virtue...so long as all the common sense has not leaked out.

Similar Threads

  1. Mazatrol Program into a G Code Program
    By fuzzman in forum Mazak, Mitsubishi, Mazatrol
    Replies: 15
    Last Post: 09-25-2012, 04:27 PM
  2. Replies: 12
    Last Post: 03-15-2010, 02:19 AM
  3. Program Restart in mid program?
    By Donkey Hotey in forum Haas Lathes
    Replies: 16
    Last Post: 03-18-2008, 08:19 PM
  4. Looking For a Old Program
    By automizer in forum Uncategorised CAM Discussion
    Replies: 3
    Last Post: 01-12-2006, 01:53 AM
  5. Replies: 11
    Last Post: 10-09-2005, 05:45 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
  •