Hey Mike and Serum...
This is quite hard to explain in a few words but I will try.
Please test this carefully!...
Please understand that there is a LOT of things happening in the MACRO... while the PLC is doing a lot of other things. AND your machine maker can configure syntec in their own way.. .and can create their own variables.
The Better you can understand it all.. the more this will make sence. Always Test carefully, As I cannot take responsibility for unforseen errors.
I'm attaching a picture to help.
In the beginning of your macro You need to add some lines that will store your mm/inch mode...
and toward the end, before exiting the macro, you will then "recall" that info.. and put the machine into proper mm/inch mode... to continue running your program correctly.
Also..
look for @460:=1
This is actually putting a value of "1" into Registry bit #60 ... yes #60.. not #460 like it would make sence.
this makes Rapids.. or G00 moves at 50%...
So if you would add "//" in front of it... that would make it just a comment...and Syntec will ingnore it... That's the way I recommend it...
Notice at some point.. there is a command "@460:=0" That's when it makes G00 go back to 100%.
I would try it only on lets say Tool #1... and see if you still think it's a good idea.. after you test it out.
Then you could proceed to modify it for all 8 tools.