That was... probably why I did that in the first place. Thanks for letting me know. A legacy item from a darker, different time when i was manually creating patterns for individual items to just get ... something going on the robot so they would stop harassing me every day to get it running.
I have a simplified operation of it for our less technical people to run off the TP.
They run a program that creates the positions 1-9 for boxes plus defines the Z for a box so it can stack. This is based on four patterns for two pallets.
This program has no movements. Just defines the PR[]'s.
Then they run MASTER, which starts with
UFRAMENUM = 3
UTOOLNUM = 1 (or whatever the code is).
Even the subprograms to MASTER (PALLETA and PALLETB) start with frame and tool numbers being explicit (these are the defaults as it was one frame 3 when i started with the robot so i never made it 1)
I made sure to start every program with the frame and tool number, but there's really only three with movement now.