Mazak Post_Optional Block

Mazak Post_Optional Block

mike.schaffer
Enthusiast Enthusiast
1,965 Views
11 Replies
Message 1 of 12

Mazak Post_Optional Block

mike.schaffer
Enthusiast
Enthusiast

I am trying to post an operation with a tool being optional.  It looks as if the post should be outputting the "/" needed for the block skip but it is not.  I dont know if i am missing something in the Post or if there is something different i need to do.  Attached is the portion of the post that i feel needs attention. 

 

/**
Writes the specified optional block.
*/
function writeOptionalBlock() {
if (properties.showSequenceNumbers) {
var words = formatWords(arguments);
if (words) {
writeWords("/", "N" + sequenceNumber, words);
sequenceNumber += properties.sequenceNumberIncrement;
}
} else {
writeWords2("/", arguments);
}
}

function formatComment(text) {
return "(" + filterText(String(text).toUpperCase(), permittedCommentChars) + ")";

0 Likes
Accepted solutions (1)
1,966 Views
11 Replies
Replies (11)
Message 2 of 12

Laurens-3DTechDraw
Mentor
Mentor

Post processor looks good.

So we should be looking at all the steps.

Could you make a screencast maybe so we can see what you do and what the output looks like?

Laurens Wijnschenk
3DTechDraw

AutoDesk CAM user & Post editor.
Found out the hard way is the best way to win.


0 Likes
Message 3 of 12

denis_schoemaker
Enthusiast
Enthusiast

How do i do a screencast?

0 Likes
Message 4 of 12

mike.schaffer
Enthusiast
Enthusiast

How do i do a screen cast or screen shot?

0 Likes
Message 5 of 12

ivan.stanojevic
Advisor
Advisor
You can download it from the following link:
https://knowledge.autodesk.com/community/screencast


Ivan Stanojevic


0 Likes
Message 6 of 12

mike.schaffer
Enthusiast
Enthusiast

I have attached a screencast.  Let me know if there is something more that you would like to see of if i am missing something. 

0 Likes
Message 7 of 12

ivan.stanojevic
Advisor
Advisor

As far as I know, if you select an operation as optional the post processor should mark the code from that op. optional and the post needs to be edited to support all of this.

 

https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2016/ENU/Inventor-HSM/files/GU...



Ivan Stanojevic


0 Likes
Message 8 of 12

Laurens-3DTechDraw
Mentor
Mentor

@mike.schaffer wrote:

I have attached a screencast.  Let me know if there is something more that you would like to see of if i am missing something. 


You are doing everything right indeed.

Question now would be if you can upload that post processor?

Because I'm confused to why it doesn't work.

Laurens Wijnschenk
3DTechDraw

AutoDesk CAM user & Post editor.
Found out the hard way is the best way to win.


0 Likes
Message 9 of 12

mike.schaffer
Enthusiast
Enthusiast

attached is a copy of our Mazak Post. 

0 Likes
Message 10 of 12

ivan.stanojevic
Advisor
Advisor
Accepted solution

I've edited your post and implemented "optional section" exactly as Haas generic post has.

 

 



Ivan Stanojevic


0 Likes
Message 11 of 12

mike.schaffer
Enthusiast
Enthusiast

Thank You ivan.stanojevic.  I have tested it out and it seems to work.  Just to be clear though, the only thing you changed in the post was the section on Optional Block Skip? And is the Mazak and Haas basically fanuc posts? 

0 Likes
Message 12 of 12

ivan.stanojevic
Advisor
Advisor

I've created a variable called optionalSection and implemented it into writeBlock function.

Then inside OnSection function I've assigned this variable to be "true" when the section is marked as optional.

However, this variable is set to be "false" in OnClose function because it doesn't have to take into account those blocks at the end of the gcode.

Don't know much about Mazak but Haas is Fanuc based indeed.

 

 

 



Ivan Stanojevic


0 Likes