![]() | |
| 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
| |||
| |||
Hi guys, Im new here, so I hope this is the right place to post. Im looking for a G-Code similar to the G02/G03 codes but for the Z-Axis instead. Meaning, the Z axis will sweep in an arc upwards or downwards. Does a G-Code like this exist? Or will I have to program 100 vertexs for the XYZ value an hope for the best? Im using a Fanuc controller. -Mike AKA TIG |
|
#2
| ||||
| ||||
| I've never tried it, because it would have to be hand coded, but I think you'll have to switch modal planes with a G18 for arcs in the XZ plane or G19 for arcs in the YZ plane. Then back to G17 for regular arcs in the XY plane. Of course, you will have to make sure the address of the arc centers corresponds with the axis named in the G02 or G03, which you would still be using to command the arcs. G18 G02/3 X Z I K G19 G02/3 Y Z J K If I'm wrong, I see Geof here typing away, too
__________________ First you get good, then you get fast. Then grouchiness sets in. (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#4
| ||||
| ||||
| G17, G18, G19 tells the controller which pair of axis will perform circular interpolation. Only two can do it at a time.
__________________ First you get good, then you get fast. Then grouchiness sets in. (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#7
| ||||
| ||||
| I would try this: I'd have to use incremental code to put some numbers to it, if every dot is an inch in your picture: when the tool gets to the start at the base of the arc. IF the tool were a 1" ball, and the radius was 3.5" on the profile, and we were writing an offset path: G91 G19 G03 Y3. Z3. J0 K3. G17 (insert this whenever you want to go back to standard XY plane, don't forget )
__________________ First you get good, then you get fast. Then grouchiness sets in. (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#8
| |||
| |||
| Thank you very much. How to the JK portions of the code correlate to the G19 code? Such as, in a G02/G03 code the IJ give positions of the XY Center of the arc with relative positioning. Please forgive my ignorance. |
|
#9
| ||||
| ||||
| I corresponds to the X component of the arc's center J corresponds to the Y component of the arc's center K corresponds to the Z component of the arc's center The syntax has to be correct for whichever plane is currently modal in the control, or it will alarm. G17 goes with XY arc endpoint and IJ arc center location description G18 goes is XZ arc endpoint and IK arc center location description. G19 goes with YZ arc endpoint and JK arc center location description. No matter what plane you are working in, you still have to use a G02 or G03 to indicate direction of rotation in the new plane.
__________________ First you get good, then you get fast. Then grouchiness sets in. (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#10
| |||
| |||
I copied, modified and reattached the picture. I used R rather tha I, J, (actually it would be J, W, I think). Note I put the R to tool center, you have to do the calculation for tool nose radius because tool comp is not available in G18 and G19 (at least on my machines). I hope I got it right; a good meal and a bit of a drink blurs the grey cells. |
| Sponsored Links |
|
#11
| |||
| |||
| Thanks for all the help guys! Cheers. I believe I understand how to do this now. I will do some coding, but unfortunately I wont be able to verify it until I get back to school Monday. By chance, is there a relatively inexpensive program I can get to just verify my NC Codes for my home computer? |
|
#12
| ||||
| ||||
| Geof gave you another alternative, if your control accepts R codes, it makes it quite a bit easier to hand code. As for a backplot, I dunno, I never tried it for fancy arcs in XZ and YZ, but you could likely go and grab a Bobcad demo off the net somewhere and try its backplot function. Maybe someone else has some alternatives to suggest. Come to think of it, there is something called NC plot talked about here on the 'zone.
__________________ First you get good, then you get fast. Then grouchiness sets in. (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |