pause()

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.

Syntax

planetcnc.pause()
planetcnc.pause(state)

Parameters

Parameter Type Description
state bool Pause state (optional)

Return Value

Examples

#! /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")

See also

estop
stop
pause
start
output
output_pwm
output_rc
open
close