586,042 active members*
3,577 visitors online*
Register for free
Login
Page 1 of 2 12
Results 1 to 20 of 25
  1. #1
    Join Date
    Sep 2009
    Posts
    19

    Lathe macro program mazak bearing Roller

    I help need with creating a simple macro to turn a bearing roller simple cylinder with a hole, and tapered roller with a radius face. i have a g code program without the macros variables i need to add some loops and logic to it to use the #500 variables please help. i've wrote several for grinders just not for lathes.

    here is the code i have to work with

    (MSG, 69556-3.EIA 1.25" X 2.35" TAPER ROLLER K069556-3M BHB 08/26/09)
    G0 G18 G20 G40 G53 G80 G96 G99 G111
    G30 U0
    G30 W0
    G99
    G111
    G50 S4000 R1
    M901
    N10 T1010.03 G96 S660 M4 R1 M8
    (MSG, WALTER DWLNL 16 4 D HOLDER- FACING UP AND LEFT)
    (MSG, ROUGH TURN LEAVING .015")
    G0 Z0.1 X1.7
    Z0.015
    G1 X-0.062 F0.02
    G0 Z0.1
    X1.4537
    G1 Z-2.63742
    X1.5
    G0 Z0.1 X1.7
    X1.1538
    G1 Z-0.00012
    G3 X1.36004 Z-0.15036 I-0.05788 K-0.15024
    G1 Z-0.18059
    X1.35991 Z-0.18503
    X1.21031 Z-2.63742
    X1.4537
    G0 Z0.1 X1.7
    G30 U0
    G30 W0
    M1
    G99
    G111
    G50 S4000 R1
    M901
    N20 T0202.01 G96 S700 M4 R1 M8
    (MSG, WALTER DWLNL 16 4 D HOLDER- FACING UP AND LEFT)
    (MSG, FINISH FACE AND TURN - HD1)
    G0 Z0.1 X0.44625
    Z0.05238
    X0.42192
    G1 X1.0904 Z-0.00656 F0.012
    G3 X1.32991 Z-0.15378 I-0.02518 K-0.1428
    G1 X1.17944 Z-2.62046
    G0 Z-2.505 X1.37946
    Z0.1
    G30 U0
    G30 W0
    M1
    G99
    G111
    G50 S4000 R1
    M901
    N30 T0606.01 G97 S3000 M3 R1 M8
    (MSG, NINE-9 CHAMFER TOOL)
    (MSG, SPOT FOR DRILL)
    G0 Z0.1 X0.0
    G1 Z-0.177 F0.0033
    G0 Z0.1
    G30 U0
    G30 W0
    M1
    G99
    G111
    G50 S4000 R1
    M901
    N40 T1212.01 G96 S80 M3 R1 M8
    (MSG, -J- (.277) HSS DRILL 2.4" MIN FLUTE LENGTH)
    (MSG, DRILL THRU)
    G0 Z0.0 X0.0
    G1 Z-0.65 F0.003
    G0 Z0.0
    Z-0.6
    G1 Z-0.85
    G0 Z0.0
    Z-0.8
    G1 Z-1.05
    G0 Z0.0
    Z-1.0
    G1 Z-1.25
    G0 Z0.0
    Z-1.2
    G1 Z-1.45
    G0 Z0.0
    Z-1.4
    G1 Z-1.65
    G0 Z0.0
    Z-1.6
    G1 Z-1.85
    G0 Z0.0
    Z-1.8
    G1 Z-2.05
    G0 Z0.0
    Z-2.0
    G1 Z-2.25
    G0 Z0.0
    Z-2.2
    G1 Z-2.45
    G0 Z0.0
    Z-2.4
    G1 Z-2.49322
    G0 Z0.0
    G30 U0
    G30 W0
    M1
    G99
    G111
    G50 S4000 R1
    M901
    N50 T0707.01 G96 S205 M3 R1 M8
    (MSG, .625" C.E.M.)
    (MSG, SPOTFACE PER PRINT)
    G0 Z0.0 X0.0
    G1 Z-0.037 F0.0016
    G0 Z0.0
    G30 U0
    G30 W0
    M1
    G99
    G111
    G50 S4000 R1
    M901
    N60 T0303.01 G97 S1200 M3 R1 M8
    (MSG, SECO CFML 100 05D W/SECO LCMF 160505-A187-MT CP500)
    (SET Z TO RIGHT SIDE OF TOOL)
    (MSG, BACK END RADIUS AND CUT-OFF- HD1)
    G0 Z-2.355 X1.7
    X1.52992
    G1 X0.76071 F0.003
    X1.48992
    G0 Z-1.94426
    X1.30695
    G1 X1.19707 Z-2.25584
    G3 X0.96071 Z-2.355 I-0.11818 K0.02084
    G1 X-0.04
    X1.48992
    G0 X1.7
    G30 U0
    G30 W0
    G28 B0
    M1
    M99

  2. #2
    Join Date
    Jun 2008
    Posts
    1511
    Joe,
    I got your PM and I figured we can just work this out here so anyone can chime in.

    First off the code looks pretty basic for rough, and finish profile. So my question is what needs to be changed? IOW why do you feel you need variables? Are you going to be doing different diameters were you want a variable to offset them? Or are you just looking to consolidate the rough and finish pass?

    I did notice that you can use a canned cycle to do the drilling. You are wanting to peck drill the part. I don’t know the exact syntax is on your Mazak but it should look something like this.

    N40 T1212.01 G96 S80 M3 R1 M8
    G0X0Z.1
    G83Z-2.49322R0Q.2
    G30U0
    G30W0
    This will drill to your depth of 2.49322 with a pick of .2 and return to Z0 after every pick.

    We just need some more info on what you want to do from a turning standpoint and we can go from there.

    Stevo

  3. #3
    Join Date
    Sep 2009
    Posts
    19
    Stevo,

    My goal

    1. to have taper angle adjustablity form 0 to 7 degrees
    2. corner radiuses at each end of the part to be adjustable radius values the same at each side not different.
    3. the length of the part to be adjustable
    4. on a tpaered roller for a bearing the large face of the roller is a large radius segment in thios part it is a 22" radius from the center line blending to the corner radius of .130 this 22" radius is another variable
    5. the spot face and drill is not a value i would need variable since it is driven by the tool being used
    6.the diameter at the large end sharp point, or the largest measurable diameter at the radius blend to the taper.

    i'm using a bar feeder on a qt250msy mazak machine roughing and finishing tools will be the same as in the program i posted

    My plan was to use the #500 and above variables and label them at the using the bit parameters to make it easier for the operator

    the reason for this is to remove the smartcam and programmer.
    to go from print to operater to part. no external programming.

    thank you for your time. if you have any bearing needs fluid film or rolling element anything special of standard i can help getting them or making them. i have capablities from 1" to 25 feet and resources to every major manufactor and speciality. i would be glad to help anyone. i have in house heat treating flame, induction, case, and thru harden.

  4. #4
    Join Date
    Sep 2009
    Posts
    19
    i can send a pdf. print of the part if you send me a email

    [email protected]

  5. #5
    Join Date
    Jun 2008
    Posts
    1511
    That would help a lot for the calculation lines. I sent you an email. If it is nothing proprietary you can also attach the pdf to your post here.

    Stevo

  6. #6
    Join Date
    Sep 2009
    Posts
    19
    how do i attach a pdf. here?

  7. #7
    Join Date
    Jun 2008
    Posts
    1511
    Once you have typed your message in the box click the "Go Advanced". It will then show you the preview of your post. Click on the paper clip for attachments. It will then show you the file types you can attach and the size limit of the file. Click Browse, then open your file and then click upload. You will see it attach. Then you can close the window. I usually click on preview post again just to double check to make sure it attached.

    Stevo

  8. #8
    Join Date
    Sep 2009
    Posts
    19
    Print attached.
    Attached Files Attached Files

  9. #9
    Join Date
    Jun 2008
    Posts
    1511
    Ok I have been working on this on and off and I have a few questions for you. First off is there a specific diameter that you must achieve at all times. Because of the fact you want to have adjustability in the height and angle this is going to change your TSC at the top and is also going to change the GL diameters. The calculations can be written to spin around the diameter of 1.277 @ 1.0” down if needed.

    This is going to take some work as there are going to be a lot of calculations to achieve what you are looking to do(radius onto angle). I will write the calculation functions as I would for my machines but I do not know the proper syntax for the Mazak control using the macro functions.

    Dale…..I notice you peaking in on this thread . I know you are probably already got this stewing in your mind if you don’t have it done already. Feel free to jump on in. This one is going to be fun.

    Stevo

  10. #10
    Join Date
    Sep 2009
    Posts
    19
    the math is the same as fanuc, variables the same.

  11. #11
    Join Date
    Jun 2008
    Posts
    1511
    Quote Originally Posted by stevo1 View Post
    Ok I have been working on this on and off and I have a few questions for you. First off is there a specific diameter that you must achieve at all times. Because of the fact you want to have adjustability in the height and angle this is going to change your TSC at the top and is also going to change the GL diameters. The calculations can be written to spin around the diameter of 1.277 @ 1.0” down if needed.
    I still need to know how you want the part calculated. IOW what do you need for dimensions (diameter)? Do you want the diameter to be dictated by the length and the angle that you specify?? Or do you want to maintain a specific diameter 1”down the part regardless of the length and angle??

    Stevo

  12. #12
    Join Date
    Sep 2009
    Posts
    19
    the diameter can drive the angle it can be from the sharp corners at each end, or 1" down and small end sharp corner, the angle doesn't need to be input since the diameters will drive the angle anyhow. just maybe a output value from the diameters to tell use the angle, or 1" diameter down and the angle will genterate the large sharp end diameter and small sharp end diameter.

  13. #13
    Join Date
    Jun 2008
    Posts
    1511
    Quote Originally Posted by taperedbearings View Post
    My goal

    1. to have taper angle adjustablity form 0 to 7 degrees
    2. corner radiuses at each end of the part to be adjustable radius values the same at each side not different.
    3. the length of the part to be adjustable
    4. on a tpaered roller for a bearing the large face of the roller is a large radius segment in thios part it is a 22" radius from the center line blending to the corner radius of .130 this 22" radius is another variable
    5. the spot face and drill is not a value i would need variable since it is driven by the tool being used
    6.the diameter at the large end sharp point, or the largest measurable diameter at the radius blend to the taper.
    Quote Originally Posted by taperedbearings View Post
    the diameter can drive the angle it can be from the sharp corners at each end, or 1" down and small end sharp corner, the angle doesn't need to be input since the diameters will drive the angle anyhow. just maybe a output value from the diameters to tell use the angle, or 1" diameter down and the angle will genterate the large sharp end diameter and small sharp end diameter.
    Ok I just want to make sure we are on the same page.

    Goal:
    #1 is not needed. You only want a variable to output the angle that is being cut. NOT a user adjustable angle.
    #2 is a variable to set for the corner radii at the top and bottom but they will always be the same.
    #3 is a variable to change the part height to meet your needs.
    #4?? This is a radius from CL to the corner radius on the OD across the top of the part?? 22”R?? It does not show this on the print. Please clarify.

    If I understand you correctly you want to always maintain the 1.277” diameter 1” from the top. So the only thing that will be dictating the angle is the height of the part and the 1.277” diameter.

    LMK,
    Stevo

  14. #14
    Join Date
    Sep 2009
    Posts
    19
    the diameter can be any size at 1" gage line, from .125" to 10" diameter: our machining capabilities. the 1.277 is just that specific part at 1".

  15. #15
    Join Date
    Sep 2009
    Posts
    19
    on the print detail B at the bottom left corner, "from center line R22" is the radius on the large end face of the roller. which is where the apex of the angle converges is the ceterpoint of the arc, with its high point at the centerline. this end point is where the counterbore is started at. when it is spot faced.

  16. #16
    Join Date
    Sep 2009
    Posts
    19
    the length and sharp point diameters will drive the angle.

  17. #17
    Join Date
    Jun 2008
    Posts
    1511
    Ok in order to do the calculations for the part there are 3 things that we can use to dictate this part. 1.) Height of the part. 2.) The angle of the part. 3.) The diameter of the part. We need to have 2 of the 3 in order to calculate the part. Which means that technically speaking we will have as you stated.
    #500=2.355(part height)
    #501=1.277(part diameter 1”GL)
    These will be changed by operator per job.

    You have said that you want to make a variable to adjust the height. That is 1 of 3.

    You say you don’t care what the angle is you just want a variable that tells you what angle you are cutting (just for reference).

    The last option to use to get our 2 of 3 is the diameter but you say it can vary so we have nothing else to use. We either need to use the angle as an input or the diameter as an input to dictate the part so we get our 2 of 3 options.

    Am I missing something?? Height is a given so are you going to want to enter a diameter or do you want to enter the angle??

    I see the radius now . I just missed it.

    Stevo

  18. #18
    Join Date
    Sep 2009
    Posts
    19
    Am I missing something?? Height is a given so are you going to want to enter a diameter or do you want to enter the angle??

    Which ever is easier for you to program with the math. or both ways. i would say my first impression would be to use the sharp corner diameters and the length to generate the angle. the gage point diameter is really only for the CMM measurement the verify the part is correct. but if you want to use it. thats ok to but it could be different than a 1" value if the roller is only .750 say. i think the sharp corners generated from autocad or inventor are going to be the most accruate way to approach it.

    Thanks Joe

  19. #19
    Join Date
    Sep 2009
    Posts
    19
    hi, steveo, any progress? need anything from me? can't wait to see what you've came up with. can we see what you got so far?

  20. #20
    Join Date
    May 2007
    Posts
    1003
    Quote Originally Posted by stevo1 View Post
    Dale…..I notice you peaking in on this thread . I know you are probably already got this stewing in your mind if you don’t have it done already. Feel free to jump on in. This one is going to be fun.

    Stevo
    Hi Stevo. Yes I've seen this and thought about giving it a whirl for the practice, but knew with your experience you would have it done before I got started. Plus I have been super busy.

    I am not being much help on the thread question as I've been spending all my spare time looking for a car. Crashed mine. Couldn't make up my mind on make and model to get. Finally did.

    Was hoping to get some formulas for him today, but now I have to go set up a TW20. May not happen today. I am feeling bad about not finishing it yet. Hope he understands I am not ignoring him.

Page 1 of 2 12

Similar Threads

  1. Sample EIA program for Mazak lathe
    By extanker59 in forum Mazak, Mitsubishi, Mazatrol
    Replies: 7
    Last Post: 03-13-2013, 12:16 PM
  2. macro B parametric Program mazak lathe
    By taperedbearings in forum MetalWork Discussion
    Replies: 0
    Last Post: 09-08-2009, 09:04 PM
  3. needle roller bearing size/fitment
    By z28 in forum Mechanical Calculations/Engineering Design
    Replies: 10
    Last Post: 08-21-2009, 09:25 PM
  4. Replies: 15
    Last Post: 07-31-2009, 09:48 PM
  5. Tapered roller bearing vs. angular contact bearing
    By boyvox in forum Linear and Rotary Motion
    Replies: 12
    Last Post: 01-25-2007, 09:49 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
  •