How to extract variables from an NC program setup sheet ?

How to extract variables from an NC program setup sheet ?

vishnuvbatl
Contributor Contributor
340 Views
2 Replies
Message 1 of 3

How to extract variables from an NC program setup sheet ?

vishnuvbatl
Contributor
Contributor

At our facility we have a numbering system for our programs. It is basically the year followed by a forward slash and the number of program. Most of the time a single part requires to be machined in more than one setup. All programs in a single setup are clubbed orderly and put in an NC program. So for a part with three setups would have 3 NC programs.

 

Now the issue is; I have custom variables already input in the user variables. This also includes the program number like 2022/43

 

For a three setup part, the programs should be numbered like

2022/43-1

2022/43-2

2022/43-3

 

Earlier my programs required many editings and was prone to errors, but now after properly creating my own Post Processor it is nearly plug and play, just that the program number requires to be input manually. This is not much of an headache but yet I am looking for a way to automate this also. For that I tried to retrieve values from the NC program setup sheet but they don't have any variables associated to it.

 

Another way I thought of is to rename the NC programs with the requisite number like this "01.Setup 1 Roughing"

 

And then in the post retrieving the text prior to the dot, and appending this value to the program number with a hyphen.

 

This should work, I haven't tried it yet, but are there any other way to retrieve value from an NC program setup sheet ?

 

Please let me know if there is.

 

Thanks a lot for your time!

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

cfastNJWK6
Advisor
Advisor

How is the number getting onto the setup sheet?  Are you running a macro that saves the number as a project parameter?  If so, you should be able to pull the same parameter value that the setup sheet is pulling from.

0 Likes
Message 3 of 3

vishnuvbatl
Contributor
Contributor

Thanks for the reply!

 

I am using custom parameters in the project sheet, all the required parameters have been saved in a separate file, this can be imported and hence a macro can do it. What I am looking for is to number the NC programs. I tried checking most of the fields in the NC setup sheet, but none of the them are associated to any parameters that can be accessed by the post processor. I am left out with the option to rename the NC program name with the required number in the beginning and using the post processor to extract this number and append it to the output.

 

I was looking for any other method to do this. Like adding a number in the NC setup sheet and retrieving it using the post processor.

 

0 Likes