I am working with a single-channel machine that has 1 milling spindle and two turning spindles, like sim15. For turning, I need to set the main spindle to 1 or 2 depending on whether I am turning on the main spindle or sub-spindle. It appears that sim15 sets this by parsing mom_fixture_offset_value, which is the G54, G55 etc. This method isn't ideal since customers might want to set up their offsets on different spindles.
I was hoping to parse a variable involving the setup elements from the KIM, but I can't find any in the post review or mom variables list.
Another option is to use the MCS name, which shows up under variable mom_invisible_mcs_array. But again that is something that the customer might change.
Any other thoughts on what I could use? I am curious what the most common method is.
Solved! Go to Solution.
I understood you have a single channel machien with 3 workpiece spindles ,so far so good.
I assume there must be any NC code that indicate which spindle is used - do you have an hint for that?
The NC code to indicate the spindle being used is the SETMS(#). But I need some code to determine what number goes in there. The screenshot I shared uses "set spindle 3" if mom_fixture_offset_value==2. mom_fixture_offset_value is a variable that the user can change when setting up the MCS in geometry tab (screenshot below).
I would like to use a variable that the user will not change, but so far the idea I came up with (variable involving setup elements from the KIM) does not have a variable associated with it that gets sent to postbuilder for me to reference.
Ok, so on the CSE side all is clear.
We are working to enhance the workpiece definition in ONT, so that is can be linked to a workpiece spindle in the KIM to have a clear mapping which operation works on which workpiece.
In Post Configurator we are working with multiple chains (inherit from KIM); that also allows you to set the number for SETMS based on chain information.
The most logical place for this is in the geometry view (well, at least IMHO)
As you will have a different MCS for the left & right spindles.
I typically parse the geometry (MCS) object for the string "LEFT" or "RIGHT". If I find neither, I output a warning or abort the post (depends on what I felt was appropriate when I wrote the post).
As I set up "Seed" parts for each machine, I have this set in the seed parts.
Another alternative is to add a UDE (e.g. "Jesse Set Turning Spindle") with values left or right (or main/sub or whatever makes sense to you & your users)
Assign this to the MCS objects. (or whatever)
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled