M86 - Close Door

This Gcode is used to close an Automatic door on an enclosure.

The M86 Gcode works with the Door Open / Close output on MASSO and sets the output LOW to close the door.


A sounder output is provided for the user to add the sounder of their choice to provide a warning of the door closing.


Note: If you have installed a Door Sensor input on the door the M86 command will not work as the door sensor will halt machine operation until the door is closed rendering the M86 moot unless the M86 command is used to lock the door closed. The Door Open/Close input will close the door even when the Door sensor is open.


Syntax & Parameters


  • M86


Example program


N10 M86


  • M86 is called


  • The Sounder output goes High for 1 second to signal the door is about to close. 


  • Door Open/Close output is set to LOW and at the same time, the Sounder output changes between HIGH and LOW every 0.5 seconds for 5 seconds to warn the user the door is closing.




INFORMATION: To open the door please see Gcode M85


INFORMATION: For manual opening and closing of the door you can use the Door Open Close input.