Tuff Luck Tom
Aluminum
- Joined
- Feb 14, 2010
- Location
- Asheville, Nc, Usa
Is any one here using a Fanuc 5t or similar with Fusion 360? I am facing 2 problems (that I know of) One is the 5t does not recognize decimal points. The other problem is the G Code that is being out put drops any trailing zeros.
I have edited my post processor Script with the following. But is only has the desired effect in part and is a poor and dangerous band aid in my opinion. X is pretty close to what it needs to be unless it ends in zero/s. The other z, etc sometimes get rounded up and also suffer the same problem with zeros being omitted.
var xFormat = createFormat({decimals:0, scale:2000}); // diameter mode
var yFormat = createFormat({decimals:0, scale:1000});
var zFormat = createFormat({decimals:0, scale:1000});
var rFormat = createFormat({decimals:0, scale:1000}); // radius
var feedFormat = createFormat({decimals:0, scale:1000});
Maybe there's some one here who is good with JavaScript? Or maybe another solution? If we can make it always post digits to the tenth I can manually edit out the decimals if need be. Any help would be very greatly appreciated!
I have edited my post processor Script with the following. But is only has the desired effect in part and is a poor and dangerous band aid in my opinion. X is pretty close to what it needs to be unless it ends in zero/s. The other z, etc sometimes get rounded up and also suffer the same problem with zeros being omitted.
var xFormat = createFormat({decimals:0, scale:2000}); // diameter mode
var yFormat = createFormat({decimals:0, scale:1000});
var zFormat = createFormat({decimals:0, scale:1000});
var rFormat = createFormat({decimals:0, scale:1000}); // radius
var feedFormat = createFormat({decimals:0, scale:1000});
Maybe there's some one here who is good with JavaScript? Or maybe another solution? If we can make it always post digits to the tenth I can manually edit out the decimals if need be. Any help would be very greatly appreciated!