What I am trying to do is get this bit to work properly to change the indicated tool and the tool offset automatically with just an T(x) M6 command in the G-code. This would be a superior solution to modifying my post processor to generator the extra code for tool changes.
tool = GetSelectedTool()
SetCurrentTool(tool)
Code "g43 H" & tool
I think my problem was some confusion in setting up the tool offset table. I think that snip of code works, but I had my tool table setup wrong. If I have time I'll do some experiments today, but I need to make some parts first.
As to the bit about G28 ~ Tormach shows it in their tool table setup videos also. Interestingly they say you have to set it in on the settings page. There is a place to enter a G28 position on the settings page, but it didn't work for me. When I set it on the homing and limits page it worked perfectly.