M63 – Turn Off Digital Output Synchronized With Motion

M63 turns off one of the 16 auxiliary outputs, synchronised with the start of the next motion command.

Syntax
M63 P__
Output
Aux 1–16 OFF
Timing
At next motion
CAUTION
If no motion follows, the output won't turn off. Put a motion command straight after M63.

1. Parameters

WordMeaning
P (required)Auxiliary output number to turn off, 1 to 16.

2. Setup

Configure the output as an Auxiliary Output whose number matches P (for example, P1 → Auxiliary Output 1).

Auxiliary Output setting
Auxiliary outputsControl
1 – 6G-code, or a toggle input assigned to a button. Auxiliary toggle input setting
7 – 16G-code only.

3. Example

N10 G0 X0
N20 M62 P1
N30 X10
N40 M63 P1
N50 X20
CodeResult
G0 X0Moves X to 0.
M62 P1Arms aux output 1 to turn on at the next motion.
X10X starts moving to 10 and aux output 1 turns on.
M63 P1Arms aux output 1 to turn off at the next motion.
X20X moves to 20 and aux output 1 turns off.