This mill has a pallet changer on it. Table 1 and table 2.
I am running the same part on both tables.

Currently we have to manually change the program after we pallet change.
The programs are identical. Except one uses g54 for table 1 and the other uses g55 for table 2.
There has to be a way to use macro variable programming to read which table is loaded.
To keep from having to switch between the programs, I would like a macro that will either use g54 o g55 depending on which table is loaded.
Can anyone please shed some light. I am using an eia gcode program.
Although thos machine does also have Mazatrol capability.
Thanks in advance.