Post Processor - Post Variables from Setup Sheet

Post Processor - Post Variables from Setup Sheet

Anonymous
Not applicable
758 Views
2 Replies
Message 1 of 3

Post Processor - Post Variables from Setup Sheet

Anonymous
Not applicable

Hi! I am trying to improve our post processor, such as some information that we fill for the setup sheets (drawing number, comments, revision, author, etc.) can be printed in the NC code. So far, I have added a few lines that describes the location of the part based on the stock:

If (<STOCK-XMIN>, <STOCK-YMAX>) = (0,0), then XY0 is back left corner.

 

But there are some cases, when we use the center of a hole or the part as a zero location.  That's why I am trying to input the comment section from the setup sheets, such as this information is printed directly in the Gcode.

 

I found that we can print strings saved in the Post Variables (P1->P100) from Machining Attributes. So, my question is if there is a way to linked this variables with the ones from the setup sheets.

 

PS: I attach a picture for reference.

Note: These are instructions for our machinist.

0 Likes
759 Views
2 Replies
Replies (2)
Message 2 of 3

kelbie.ockey
Alumni
Alumni

Unfortunately, I do not think there is a default reserve word in XBuild for the comments.

 

What you are looking for is the SetupInfoNCCode.bas macro in the default add-in library. This essentially unlocks a whole bunch of info to be included in the post. There are excellent instructions/descriptions within the comments of the add-in. Essentially, you need to add (SETUP-INFO-MY-SETTINGS)<EOB> near the top of the Program Start format, before the first tool call.

 

From there, the info included in the header of the post can be customized to your liking. 

 

Hopefully, that is helpful. Let me know if you have any further questions. 



Kelbie Ockey
Sr. Implementation Consultant
0 Likes
Message 3 of 3

Anonymous
Not applicable

Hi @kelbie.ockey ,

 

Thank you very much for your reply. Could you give me a recommendation on how to handle that information:

( SETUP INFO )

( TITLE: 10022-001-003-REVP1-OP1 )

( NOTE1: PROG# O1234)

( COMMENTS: MAT AT 0.5 SAW 0.5 MILL 1/4 STOCK. SET Z0 AT TOP SURFACE. SET XY0 AT BACK LEFT CORNER )

 

And post it as following:

%

O1234 (10022-001-003-REVP1-OP1)

N1 (MAT AT 0.5 SAW 0.5 MILL 1/4 STOCK)

N2 (SET Z0 AT TOP SURFACE)

N3 (SET XY0 AT BACK LEFT CORNER)

 

Kind regards,

 

PS: I want to know if there is a way, such as I can split the content of (setup-info-my-settings) and filter it in a better way, such as, I don't confuse my machinist with all the information.

 

 

0 Likes