Here is update
So when I choose Goto Home I can send complete toolchanger in one point in space which is predefined in Machine setup and name of that point is safe (home) toolchange position, it would be nice if I could send toolchanger on exact position for each tool , i guess I did not try that because it name suggested what will happen and now when I have little experience with post processor I can see that Goto Home will send tool changer on coordinates that defined in Machine setup.
Other thing , so G49 does not work in Mach3 Turn but I can accomplish same effect with typing in MDI T0000 or what I at the end chose T0909 because I do not have tool number 9 in turret (have only 8 tools
), so because of that additional tool my tracking off tools in turret after choosing non existing tool was messed up and functions GetCurrentTool() and GetSelectedTool() were not enough to determine according to difference of those two return value which tool I actually want so mach3 can execute rotation of turret to get in reality tool number same as in Mach3 , and after reading on net and experimenting , I first thought that static variables will help but they also loose value after I escape out of tool changer macro so at the end I concluded that I need to save data in file and if I get request for T0909 that means save tool number before tool in file because you will need that data to calculate in next step what tool you need to get later.
I mange to find here good source how to use saving data to file
http://henriksplace.se/cnc/cnc_mach3_vb.htmlNow I need to see is it possible to adjust post processor to control tool changer as I want (I saw it is not so easy and I could not imagine what all problems exist untill I mange to re edit tool changer macro, easiest way is to use G53 and to send tool changer on fixed place every time and probably is the safest way), but it would be cool that tool changer does not need to travel every time to fixed place, my idea is that safe place is different according to upcoming tool