M64 – Turn On Digital Output Immediately

This command switches ON 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 ON.

 


Syntax & Parameters

 

  • M64

  • P value – Required. Defines the auxiliary output number to switch ON.
    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 M64 P1
N20 M64 P4

 

  • N10: Switches ON auxiliary output 1

  • N20: Switches ON auxiliary output 4