M65 – Turn Off Digital Output Immediately

This command switches OFF one of the 16 auxiliary outputs immediately.

 

If this command is used between motion commands, the motion will come to a full stop before the output is switched OFF.

 


Syntax & Parameters

 

  • M65

  • P value – Required. Defines the auxiliary output number to switch OFF.
    Valid range is 1 to 16.

 


Prerequisites

 

  • The output must be configured as an Auxiliary Output where the P value matches the auxiliary number (for example, P1).

  • Auxiliary outputs 1 to 6 can have toggle inputs assigned to turn them ON or OFF using a button.

  • Auxiliary outputs 7 to 16 can only be controlled through G-code.

 


Example Program

 

N10 M65 P1
N20 M65 P4

 

  • N10: Switches OFF auxiliary output 1

  • N20: Switches OFF auxiliary output 4