Results 1 to 5 of 5

Thread: trying to simplify my program

  1. #1
    Registered
    Join Date
    Jun 2008
    Location
    USA
    Posts
    3
    Downloads
    0
    Uploads
    0

    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
    Registered
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    11,960
    Downloads
    0
    Uploads
    0
    Show the program.
    An open mind is a virtue...so long as all the common sense has not leaked out.


  3. #3
    Registered dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2,502
    Downloads
    0
    Uploads
    0
    What kind of control?


  4. #4
    Registered
    Join Date
    Jun 2008
    Location
    USA
    Posts
    3
    Downloads
    0
    Uploads
    0

    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
    Registered
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    11,960
    Downloads
    0
    Uploads
    0
    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, 11:27 AM
    2. Replies: 12
      Last Post: 03-14-2010, 09:19 PM
    3. Program Restart in mid program?
      By Donkey Hotey in forum Haas Lathes
      Replies: 16
      Last Post: 03-18-2008, 03:19 PM
    4. Looking For a Old Program
      By automizer in forum General CAM Discussion
      Replies: 3
      Last Post: 01-11-2006, 07:53 PM
    5. Replies: 11
      Last Post: 10-09-2005, 12:45 AM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.