Well, you would need to hit (press), "X10"... "7" ... "ON" , and that would send an RF signal to your AHP/CM15A that would trigger a macro for the house/unit code. Well, the house code set in the remote and the unit code, for this example, is '7'. That macro could then set a PL command to the UM506.
You could hit (press) "X10"... "1"... "ON" "... "2"... "ON" "... "3"... "ON" "... "4"... "ON" , and have it trigger those macros.
In more detail...
Macro "1" would check for Flags 1, 2, and 3 being clear, and if true, set Flag 1.
Macro "2" would check for Flag 1 being set, and if true, clear Flags 1 and 3 and set Flag 2.
Macro "3" would check for Flag 2 being set, and if true, clear Flags 1 and 2, and set Flag 3.
Macro "4" would check for Flag 3 being set, and if true, clear Flags 1, 2, and 3 and send a PL "on" to the UM506.