![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Parametric Programing (custom macro b, fadal macro, okuma user task) |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
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
| |||
| |||
| 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
| |||
| |||
| 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. Last edited by taperedbearings; 09-10-2009 at 04:20 PM. |
|
#4
| |||
| |||
| |
|
#7
| |||
| |||
| 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 |
|
#9
| |||
| |||
| 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 |
|
#11
| |||
| |||
Stevo |
|
#12
| |||
| |||
| 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. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need Help!- Sample EIA program for Mazak lathe | extanker59 | Mazak, Mitsubishi, Mazatrol | 5 | 10-24-2011 09:16 PM |
| Need Help!- macro B parametric Program mazak lathe | taperedbearings | General Metalwork Discussion | 0 | 09-08-2009 04:04 PM |
| needle roller bearing size/fitment | z28 | Mechanical Calculations/Engineering Design | 10 | 08-21-2009 04:25 PM |
| Need help understanding a program Fanuc 6t on a Mazak lathe | mgb1974 | Fanuc | 15 | 07-31-2009 04:48 PM |
| Tapered roller bearing vs. angular contact bearing | boyvox | Linear and Rotary Motion | 12 | 01-25-2007 03:49 PM |