M63 – Turn Off Digital Output Synchronized With Motion

This command switches OFF one of the 16 auxiliary outputs, synchronised with the start of the next motion command.

 


CAUTION: If no motion is commanded, the output will not turn OFF. It is best to specify motion immediately following the M63 command.

 


Syntax & Parameters

 

  • M63

  • 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 G0 X0
N20 M62 P1
N30 X10
N40 M63 P1
N50 X20

 

  • N10: Moves the X axis to position X0

  • N20: Arms auxiliary output 1 to turn ON at the next motion

  • N30: X axis starts moving to X10 and auxiliary output 1 turns ON

  • N40: Arms auxiliary output 1 to turn OFF at the next motion

  • N50: X axis moves to X20 and auxiliary output 1 turns OFF