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


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-23-2011, 07:39 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road
G3 using a rotary axis??

Hey guys I am looking for some help. I had about 10min today to try some code on a new part between putting out fires all day. I would love to get back on the machines and get this going on my own but I don’t get much time on the machines these days.

Attached is a pic of a new part that I need to machine in my 5axis. I am doing this vertically on a 15 series Fanuc control with a rotary axis. The OD of the part is a solid pc that I am milling scallops out of with a 1/2dia endmill. There are 16 scallops spaced around the OD of the part.

I am just bringing my Y-axis (Z on my machine) to the 33.466 dia at CL and rotating the B-axis to the first scallop cc from CL. Now once I start to spin around the scallop via G3B()Z()R() it wants to move the X-axis. I want to keep my cutter/table at X0 and only rotate B-axis.

So this may be a newbie question but with my time constraints I need to know if I can spin around the scallop via G3 without moving the X-axis??
As always thank you for the input.

Stevo
Attached Files
File Type: pdf layout.pdf‎ (9.2 KB, 100 views)
Reply With Quote

  #2   Ban this user!
Old 08-24-2011, 03:46 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

UPDATE!!

Alright guys I had about 20min minutes today to get on the machine when the boss got out of my hair and went to a meeting.

My statement earlier about the X-axis moving is actually happening but when I ran the code it started and ended where it needed to be. The X-axis movement in-between I ass u me is a must to complete the arc??

Here is the code that I ran. Can anyone confirm that this is correct per the sketch?

G0B0Z16.938Y.1
G1Y-.1
G91B9.2025
G3B2.0475Z.382R.3325
G3B2.0475Z-.382R.3325

This code starts at CL and dia of part at B0. Table rotates 9.2025 to first scallop which tucks the .5” endmill nice right in the corner .250” radius. G3 runs up to the top of the scallop then back down to the .250” radius.


Gotta run....kids are calling!! I will check back tonight from home.
Thanks,
Steve
Reply With Quote

  #3   Ban this user!
Old 08-25-2011, 11:45 PM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,039
Kiwi is on a distinguished road

Originally Posted by stevo1 View Post
...Z16.938...
Should this not be Z16.983? (33.466/2)+0.25

I don't have a 4th axis so unable to confirm your if code will do what you require and if it is possible to have the rotating axis interpolate using G2/3.
Reply With Quote

  #4   Ban this user!
Old 08-26-2011, 10:53 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Yes you are correct that it should be Z16.983. That was my typo. I actually have all of this coded through variables in the macro that I wrote and I just put hard numbers in this post to make it easier.

My suspicion was confirmed lastnight from over at the PM forum that this may have to do with using the polar coordinate option in the control. I had this once before on a vertical lathe with live tooling. I did not work on the project but was told that was the issue.

I have been pulled off the project for now but will report anything that I come up with. Please if anyone has any other suggestions of what could be the issue let me know.

Stevo
Reply With Quote

  #5   Ban this user!
Old 08-27-2011, 07:36 AM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,039
Kiwi is on a distinguished road

Originally Posted by stevo1 View Post
...Please if anyone has any other suggestions of what could be the issue let me know....
If you can't get the G3 to work here is some code which you may be able to use.

B9.203 Z16.9833
B9.303 Z17.0372
B9.403 Z17.0818
B9.503 Z17.12
B9.603 Z17.1534
B9.703 Z17.1827
B9.803 Z17.2089
B9.903 Z17.2321
B10.003 Z17.2529
B10.103 Z17.2715
B10.203 Z17.2881
B10.303 Z17.3027
B10.403 Z17.3157
B10.503 Z17.3269
B10.603 Z17.3366
B10.703 Z17.3448
B10.803 Z17.3516
B10.903 Z17.357
B11.003 Z17.3609
B11.103 Z17.3636
B11.203 Z17.3649
B11.25 Z17.365
B11.297 Z17.3649
B11.397 Z17.3636
B11.497 Z17.3609
B11.597 Z17.357
B11.697 Z17.3516
B11.797 Z17.3448
B11.897 Z17.3366
B11.997 Z17.3269
B12.097 Z17.3157
B12.197 Z17.3027
B12.297 Z17.2881
B12.397 Z17.2715
B12.497 Z17.2529
B12.597 Z17.2321
B12.697 Z17.2089
B12.797 Z17.1827
B12.897 Z17.1534
B12.997 Z17.12
B13.097 Z17.0818
B13.197 Z17.0372
B13.297 Z16.9833
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-27-2011, 10:36 AM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

Stevo..... what Kiwi posts is another way to do it and you don't need to use polar commands....

Your program just ends up being 17 miles long though....
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #7   Ban this user!
Old 08-27-2011, 05:06 PM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,039
Kiwi is on a distinguished road

Originally Posted by psychomill View Post
...Your program just ends up being 17 miles long though....
The code posted (with minor changes) could be included in a loop for each lug and the program need not be much longer than what I posted.
Even using the code for each 16 lugs with one line between to rotate B this would be under 700 lines.
If just G2's and G3's was used to go round the circumference, the code would be under 70 lines
Hardly 17 miles long.

Last edited by Kiwi; 08-27-2011 at 10:52 PM. Reason: Added more facts.
Reply With Quote

  #8   Ban this user!
Old 08-27-2011, 06:24 PM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,039
Kiwi is on a distinguished road

Originally Posted by psychomill View Post
.... what Kiwi posts is another way to do it and you don't need to use polar commands....
The code I posted needs the polar commands as the part is being rotated on the B axis.
I assume stevo1 is doing it this way because of the disc diameter.

Last edited by Kiwi; 08-27-2011 at 10:53 PM. Reason: gramma
Reply With Quote

  #9   Ban this user!
Old 08-27-2011, 11:22 PM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

Ahhhhh Kiwi..... I see you're a person of literal meaning....


The code you posted looks plotted so I'm not sure why you would need polar commands for it? Anyhow, I agree with what you say, 700 lines or so doing it this way.... but that was my only point. Relative to a program using Polar Coordinate Rotation, it's much longer.

Here's code using G12.1 going around the part... this is all 16 lobes and the body diameter in one profile cut all the way around:

G1X16.983C0.
G2X16.7277C-2.9338I-16.983J0.
X16.5771C-3.6909I-.3162J-.3306
X14.3316C-9.1119I-16.5771J3.6909
X13.9028C-9.7537I-.4187J-.1845
X9.7537C-13.9028I-13.9028J9.7537
X9.1119C-14.3316I-.4574J-.0102
X3.6909C-16.5771I-9.1119J14.3316
X2.9338C-16.7277I-.4265J.1656
X-2.9338I-2.9338J16.7277
X-3.6909C-16.5771I-.3306J.3162
X-9.1119C-14.3316I3.6909J16.5771
X-9.7537C-13.9028I-.1845J.4187
X-13.9028C-9.7537I9.7537J13.9028
X-14.3316C-9.1119I-.0102J.4574
X-16.5771C-3.6909I14.3316J9.1119
X-16.7277C-2.9338I.1656J.4265
C2.9338I16.7277J2.9338
X-16.5771C3.6909I.3162J.3306
X-14.3316C9.1119I16.5771J-3.6909
X-13.9028C9.7537I.4187J.1845
X-9.7537C13.9028I13.9028J-9.7537
X-9.1119C14.3316I.4574J.0102
X-3.6909C16.5771I9.1119J-14.3316
X-2.9338C16.7277I.4265J-.1656
X2.9338I2.9338J-16.7277
X3.6909C16.5771I.3306J-.3162
X9.1119C14.3316I-3.6909J-16.5771
X9.7537C13.9028I.1845J-.4187
X13.9028C9.7537I-9.7537J-13.9028
X14.3316C9.1119I.0102J-.4574
X16.5771C3.6909I-14.3316J-9.1119
X16.7277C2.9338I-.1656J-.4265
X16.983C0.I-16.7277J-2.9338


This is is the entire profile and this has shorter line count than the code you posted for one lobe. That was my only point....

"Hardly 17 miles long..." .... OK. You got me. I may have fudged this by a several miles eh? How about 5 or 6 miles?





(note: Stevo, obviously don't use my code unless you plan on rearraging your machine axes! LOL .... )
__________________
It's just a part..... cutter still goes round and round....

Last edited by psychomill; 08-28-2011 at 01:11 AM. Reason: exchanged "man" to a non-gender specific term in the first statement ;-)
Reply With Quote

  #10   Ban this user!
Old 08-28-2011, 04:21 AM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,039
Kiwi is on a distinguished road

Originally Posted by psychomill View Post
...Here's code using G12.1 going around the part... this is all 16 lobes and the body diameter in one profile cut all the way around:...............
.......This is is the entire profile and this has shorter line count than the code you posted for one lobe. That was my only point....
I agree the code can be written quite simply going around the profile but from what I understand that's not what Steve wants.
Looking at his code he wants to move the cutter along the Z axis while rotating the plate on B axis. He needs the tool to follow the profile and hopes to use G3. He wants confirmation this is possible.
I don't see how your code helps with this setup.
I offered an alternative method. See pics.
Attached Thumbnails
Click image for larger version

Name:	steve1.JPG‎
Views:	33
Size:	27.8 KB
ID:	140918   Click image for larger version

Name:	steve2.JPG‎
Views:	32
Size:	23.0 KB
ID:	140919   Click image for larger version

Name:	steve3.JPG‎
Views:	31
Size:	30.4 KB
ID:	140920  
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 08-28-2011, 11:28 AM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

I know what your code is doing... It's plotted and that's fine, nothing wrong with it.

... and you are right Kiwi, ... Steve wants to know if he can use G3 commands using rotary. I'm saying "YES" he can and I posted the code for it. The only difference is that my sample is rotating the C-axis while moving X. Steve is set up to roll B while moving Z.

Again, back to being literal again.... When I stated "going around the part" I didn't mean it as the cutter is going around the part. The code I posted is using the rotary the whole time and it's all in G2.

The only thing different is the axis names. His machine is not set up the same as my 5-axis machine... that is all. He has already confirmed that he has polar command (G12.1) available on his machine.
__________________
It's just a part..... cutter still goes round and round....

Last edited by psychomill; 08-28-2011 at 07:25 PM.
Reply With Quote

  #12   Ban this user!
Old 08-28-2011, 03:51 PM
 
Join Date: Jul 2003
Location: New Zealand
Posts: 1,039
Kiwi is on a distinguished road

Ok. I don't know Fanuc GCode, and never used a rotary table. Was only trying to help in a way I could see how he could do the job.
I'm sure Steve will be pleased to finally hear confirmation that G3 will do what he wants.
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
A 5-axis CNC machine including a rotary axis synthetiklone CNC Wood Router Project Log 11 05-23-2012 09:31 PM
Newbie- rotary axis, y, c, and axis substitution tds11223 Mastercam 1 08-01-2011 11:45 PM
Tipping rotary haas rotary axis mfpuller Mastercam 1 04-04-2011 10:16 AM
5 Axis CNC with Rotary Axis on Table Shooter7 Commercial CNC Wood Routers 1 09-20-2010 10:33 AM
Rotary head development 3 axis -> 5 axis Mr Helmut Mechanical Calculations/Engineering Design 1 08-03-2010 05:26 PM




All times are GMT -5. The time now is 07:59 PM.





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 354 355 356 357 358 359 360 361