M65 – Turn Off Digital Output Immediately

M65 turns off one of the 16 auxiliary outputs immediately.

Syntax
M65 P__
Output
Aux 1–16 OFF
Timing
Immediate
INFORMATION
Between motion commands, motion comes to a full stop before the output turns off. To switch without stopping, use 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 M65 P1
N20 M65 P4
CodeResult
M65 P1Turns aux output 1 off.
M65 P4Turns aux output 4 off.