Output tool name as comment before every tool change - Heidenhan postprocessor

Output tool name as comment before every tool change - Heidenhan postprocessor

Anonymous
501 Views
3 Replies
Message 1 of 4

Output tool name as comment before every tool change - Heidenhan postprocessor

Anonymous
Not applicable

Hello, 

 

Im trying to customize heidenhain processor and now i would like to get posting tool name before every tool change in note format " * - tool_name " 

 

I manually wrote in nc file how i want it to looks like . 

Can anyone help me please ? 

 

marerehak2_0-1636827528199.png

 

 

Thank you in advance 

 

 

0 Likes
502 Views
3 Replies
Replies (3)
Message 2 of 4

a.laasW8M6T
Mentor
Mentor

If you want structure comments like you have written there is a post property called "structure comments" or similar, if you turn this on it will output structure comments before the tool call, but they will take the operation name from the tool path , not the tool name.

 

This is pretty handy, but if you want the tool name to appear just after the tool call you can add the tool name to the tool comment field in the tool library.

I personally found this quite tedious so I changed it to output the tool name instead of tool comment in the post processor from:

if (tool.comment) {
      writeComment(tool.comment);
    }

To:

if (tool.description) {
      writeComment(tool.description);
    }

 

If you really want the tool name in the Structure comment it wouldn't be too difficult to get the post modified to do this

0 Likes
Message 3 of 4

Anonymous
Not applicable

Hello,

 

Thank you for your reply, i have tried this and it works but i have changed the code to this 

 

if (tool.description) {
      writeStructureComment(tool.description);
    }

 

and it also keeps the operation name 

marerehak2_2-1636884915582.png

 

 

 

0 Likes
Message 4 of 4

a.laasW8M6T
Mentor
Mentor

hi,

you just need to check the show notes checkbox in the NC Program window to activate this function

0 Likes