This command is used to switched ON any of the 16 auxiliary outputs synchronized with the start of the next motion command.
P Value - The P value is required and defines the output number to switch On. This value can be between 1 to 16.
N10 G0 X0N20 M62 P1N30 X10N40 M63 P1N50 X20
In the above example the the X axis moves to X0 position, then auxiliary output 1 is turned ON when the X axis starts to move towards X10 position. Once the axis reaches X10 position and starts moving to X20 position, the auxiliary output 1 is turned OFF.