M62 – Turn On Digital Output Synchronized With Motion
M62 turns on one of the 16 auxiliary outputs, synchronised with the start of the next motion command.
Syntax
M62 P__
Output
Aux 1–16 ON
Timing
At next motion
CAUTION
If no motion follows, the output won't turn on. Put a motion command straight after M62.1. Parameters
2. Setup
Configure the output as an Auxiliary Output whose number matches P (for example, P1 → Auxiliary Output 1).
3. Example
N10 G0 X0 N20 M62 P1 N30 X10 N40 M63 P1 N50 X20