How to extract variables from an NC program setup sheet ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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!