Toggle or set the Emergency Stop (E-Stop) state.
If called with no arguments, toggles the pause state.
If called with one bool argument, it sets the pause state accordingly.
planetcnc.pause() planetcnc.pause(state)
#! /usr/bin/env python import planetcnc planetcnc.pause()
#! /usr/bin/env python import time import planetcnc planetcnc.pause(True) print("Program paused") time.sleep(3) planetcnc.pause(False) print("Program resumed")