estop()

Toggle or set the Emergency Stop (E-Stop) state.

If called with no arguments, toggles the E-Stop state.
If called with one bool argument, it sets the E-Stop state accordingly.

Syntax

planetcnc.estop()
planetcnc.estop(state)

Parameters

Parameter Type Description
state bool E-Stop state (optional)

Return Value

Examples

#! /usr/bin/env python 
 
import planetcnc
 
planetcnc.estop()
#! /usr/bin/env python 
 
import time
import planetcnc
 
planetcnc.estop(True)
time.sleep(3)
planetcnc.estop(False)

See also

estop
stop
pause
start
output
output_pwm
output_rc
open
close