These days I am trying to figure out various things that can be done using macro programming.
I came to know that it is possible to define 10 new G-codes, in the range 1-9999, on 0i Mate TC. And, by mistake or deliberately, if you select a number which already exisits, such as 1 (i.e., G01), it will redefine G01! This is something I never expected. At least the standard G-code should have been "locked" by Fanuc.
If you want to verify what I said, just insert 1 as the value of parameter 6050 (or any parameter in the range 6050 - 6059, on 0i Mate TC) , and then run a program which has G01. You will get NUMBER NOT FOUND alarm (because you have not defined a corresponding macro in the range O9010 -O9019, which G01 is trying to call). Such a simple way to make a machine "misbehave"!