Page 2 of 2

Re: Macro Question

Posted: Sat Oct 27, 2018 9:03 am
by cbb1962
@swissi

I modified my POST per your instructions, I get an error when trying to generate g-code now. Attached is my modified Post, the original Post, the Error File, and the log file. The code was inserted into the post processor at line 443. (I had to change the file extensions to .txt in order to upload them.)

Any help would be appreciated.

Modified POST:
centroid_mill_MODIFIED.txt
(34.53 KiB) Downloaded 104 times
Original POST:
centroid_mill_FRANCO-CNC_Rev-1.txt
(33.99 KiB) Downloaded 116 times
Error file:
1001.nc.failed.txt
(377 Bytes) Downloaded 108 times
Log file:
1001.log
(2.11 KiB) Downloaded 127 times
Thanks!

Re: Macro Question

Posted: Sat Oct 27, 2018 6:24 pm
by swissi
Hi Clint

This is actually a bug in the original post from Franco. When you select the sequence number property in the original post, you will get the reference error "nFormat is not defined" because this line is missing in Franco's post:

Code: Select all

var nFormat = createFormat({prefix:"N", decimals:0});
I made Franco aware of this problem a while back and I believe he corrected it in the original source file.

I'm using Franco's original post as well and I made some more enhancements to it (all marked up in the code). This code here will also display the ZMIN info in the #300 line as well as the Tool Description if you add any in the Fusion360 Tool Library.

Here's my modified Post Processor (remove the .txt extension at the end):
Centroid_Mill_Franco_swissi_Rev-1.cps.txt
(35.76 KiB) Downloaded 147 times
-swissi

Re: Macro Question

Posted: Sun Oct 28, 2018 7:32 pm
by cbb1962
@swissi
This is brilliant, Works GREAT!
Thanks!