![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
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 |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
|
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. |
|
#4
| |||
| |||
| 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 |
|
#5
| |||
| |||
| 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 |
| Sponsored Links |
|
#6
| |||
| |||
| 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.... |
|
#7
| |||
| |||
|
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. |
|
#8
| |||
| |||
| 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 |
|
#9
| |||
| |||
| 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 ;-) |
|
#10
| |||
| |||
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. |
| Sponsored Links |
|
#11
| |||
| |||
| 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. |
|
#12
| |||
| |||
| 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. |
![]() |
| 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 |
| 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 |