I'm working on customizing a SolidCAM post processor and I'm running into an issue with the tool change logic. Currently, the post outputs a tool change (Txx M6) even when the same tool is used across multiple operations. I'd like to suppress the tool change command unless the tool number actually changes.
I'm using SolidCAM 2023 with a Fanuc-based machine, and editing the .mac and .gpp files directly. I've tried using the tool_change_required condition, but it doesn't seem to behave as expected — it's either always true, or never triggers depending on where I place it in the post.
Has anyone dealt with this before? Any guidance on the correct logic or post variables I should check for conditional tool changes would be really appreciated.