P - Discrete output relay from 1100 to 1155.
M59 turns on a relay. An example of its usage is M59 P11nn, where nn is the number of the relay being turned on. M59 can turn on any of the discrete output relays in the range from 1100 to 1155 in the same order as axes motion. When using Macros, M59 P1103 does the same thing as using the optional macro command #1103=1, except that it is processed at the end of the line of code.