Funuc 5t Post Processor help needed

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hopefully I have posted this in the correct place.
I need help with my Post Processor. The Fanuc 5t does not use decimals and uses the Tenth as a reference instead. Meaning code without the "descending zeros" becomes dangerous. I have searched a few threads and tried some proposed solutions but they either do not work or are still buggy.
If I could at least have G code that doesn't omit the trailing zeros it would be easier to manually edit the decimals out.
I am currently trying to use a post processor Script from the linked (below) thread as it seems very close to my other needs.
The solution in this thread sort of works. But if there is a move, etc that has a trailing zero .030 for example it shortens it to .03 This makes for a very time consuming manual edit. As I have to make sure all 4 places past the decimal are inhabited and then edit out each decimal point. I hope that is clear and understandable? This is my second attempt at a post about this today. For some reason my other post was either deleted or failed to post to the forum.
https://forums.autodesk.com/t5/hsm-post-processor-forum/fanuc-5t-post-request/td-p/6358646
I have tried the following edits. They work other than some values are rounded up and also become only 3 past the decimal point.
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});
Any help would be greatly appreciated!