CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > G-Code Programing > Parametric Programing


Parametric Programing (custom macro b, fadal macro, okuma user task)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 09-10-2009, 09:50 AM
 
Join Date: Sep 2009
Location: us
Posts: 19
taperedbearings is on a distinguished road
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
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 09-10-2009, 03:32 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,503
stevo1 is on a distinguished road

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
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 09-10-2009, 03:50 PM
 
Join Date: Sep 2009
Location: us
Posts: 19
taperedbearings is on a distinguished road

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.
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 09-10-2009, 04:18 PM
 
Join Date: Sep 2009
Location: us
Posts: 19
taperedbearings is on a distinguished road

i can send a pdf. print of the part if you send me a email

Jdp@kingsbury.com
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 09-11-2009, 07:46 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,503
stevo1 is on a distinguished road

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
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 09-11-2009, 08:57 AM
 
Join Date: Sep 2009
Location: us
Posts: 19
taperedbearings is on a distinguished road

how do i attach a pdf. here?
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 09-11-2009, 09:08 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,503
stevo1 is on a distinguished road

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
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 09-11-2009, 09:15 AM
 
Join Date: Sep 2009
Location: us
Posts: 19
taperedbearings is on a distinguished road

Print attached.
Attached Files
File Type: pdf sketch.pdf‎ (302.1 KB, 84 views)
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 09-16-2009, 11:49 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,503
stevo1 is on a distinguished road

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
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 09-17-2009, 09:14 AM
 
Join Date: Sep 2009
Location: us
Posts: 19
taperedbearings is on a distinguished road

the math is the same as fanuc, variables the same.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 09-17-2009, 09:25 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,503
stevo1 is on a distinguished road

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
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 09-17-2009, 11:38 AM
 
Join Date: Sep 2009
Location: us
Posts: 19
taperedbearings is on a distinguished road

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.
Tweet this Post!Share on Facebook
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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




All times are GMT -5. The time now is 09:39 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353