Specifying Creation Time at the Beginning of an NC File

Specifying Creation Time at the Beginning of an NC File

kwebek69GNU5L
Contributor Contributor
338 Views
4 Replies
Message 1 of 5

Specifying Creation Time at the Beginning of an NC File

kwebek69GNU5L
Contributor
Contributor

Hello!

How can I change the Fanuc.cps postprocessor file so that at the beginning of the NC file, along with the tool information, there is also information about the creation time of this NC file?

 

For example

 

Снимок экрана 2023-08-11 134055.png

0 Likes
339 Views
4 Replies
Replies (4)
Message 2 of 5

programming2C78B
Advisor
Advisor

before //tool information, add 
if (writeDetails) {
writeComment("Posted: " + getGlobalParameter("generated-at"));

programming2C78B_0-1691750634881.png

 




Please click "Accept Solution" if what I wrote solved your issue!
Message 3 of 5

kwebek69GNU5L
Contributor
Contributor

Hello! It's great that you can implement this idea! Could this be what it looks like?

But in this version an error occurs ... What did I write wrong?

 

2023-08-13_13-07-06.png

0 Likes
Message 4 of 5

programming2C78B
Advisor
Advisor

Im not sure, maybe there is a detail field you must also add or something. Here is my mill post that includes it. You can root around and try to see what it's using with the fusion360 plugin for Visual Studio 

Please click "Accept Solution" if what I wrote solved your issue!
0 Likes
Message 5 of 5

kwebek69GNU5L
Contributor
Contributor

Fusion 360 reports an error when loading your post into Post Library...

 

2.png

0 Likes