When calling a subprogram with M98P2000L#102, Does the "P" value get stored somewhere that I can read with a macro statement? I noticed in one of the posted programs here that it had "//exec.Code("#4114=" + AS3.Getfield(869) ); // Program Number {O CODE}", but field 869 in the manual states that this is used for "Setspindlespeed".
I would like to trigger certain events when the program runs across say O2000. One example would be to trigger an M01 if the button I have set for this is active, but without having to place the actual M01 in the program.