& Construction

Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing

Professional CAD/CAM tools built on Inventor and AutoCAD
Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
Professional CAD/CAM tools built on Inventor and AutoCAD
Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Ollienor wrote:
OK, so, I've made progress.
Working off the Generic Fanuc post.
1. The G02's and G03's need swapping to make the radii the correct orientation.
2. G18, G50, G53, G54 need to be removed (Incidents where another G-code occupies the same line as any of these, only the 'offending' G-code need be removed, not any of the other coordinates).
3. Where a G02 code is generated in the format:
N10 G2 X"arc-end-position" Z"arc-end-position" R"radius value"
should instead be displayed in the following format:
N10 G2 X"arc-end-position" Z"arc-end-position" I"X-incremental offset from arc start point to arc center point" K"Z-incremental offset from arc start point to arc center point"
Does this make sense?
An example of this is as follows:
N25 G2 X15. Z-1.8 R0.8 N25 G2 X15. Z-1.8 R0.8
N26 G1 Z-11.03 N26 G1 Z-11.03
N27 G2 X35. Z-21.8 R10.8 BECOMES: N27 G2 X35. Z-21.8 I-1.6 K-10.77
Laurens Wijnschenk
3DTechDraw
AutoDesk CAM user & Post editor.
René for Legend.
Ollienor wrote:
Fantastic, making good progress here thanks for the help so far.
I have modified the post processor to output the correct G codes for the radii and tool numbers, as well as removing all of the aforementioned codes it doesn't recognize.
Now, for the I and K values it is giving the absolute value for the arc centers, I need this to be incremental from the start of the arc (i.e. incremental to the previous values for X and Z in the lines above).
Any ideas how to do this? I am so close to having a working post now.
Laurens Wijnschenk
3DTechDraw
AutoDesk CAM user & Post editor.
René for Legend.
Ollienor wrote:
Thanks,
I saw that in the post. I was just mistaken due to a coincidence in my coordinates making it seem as if it was using abs not inc, but actually what was happening was the z incremental value was twice what it should be.
I don't know why this was the case, I can't see any reason why the K value was twice what it should be but in true mechanical engineer fashion I fixed it with a bodge.
Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Ollienor wrote:
I set the tools up in the tool table on the lathe controller itself, setting them to match the tools chosen in HSM.
When I remove the radius of the tools, setting them to zero, it machines on size.
I assume that the SLX controller is putting an offset in there 'on-the-fly'.
If I look at the events it generates for the G-code it says tool-offset: Center, I wish I knew how to make this import as the correct tool offset.
Bottom line is, I can make it work but it's not ideal since I'll probably be the only one programming this machine via HSM and everyone else will require the tool radii in the tool table. I know what the problem is but as yet don't know how to fix it.
Laurens Wijnschenk
3DTechDraw
AutoDesk CAM user & Post editor.
René for Legend.
How to buy
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved
Type a product name