gcode_is_running()

Checks whether the machine controller is currently running.

This function verifies that the system is initialized and that the controller is actively running.

Syntax

planetcnc.gcode_is_running()

Parameters

Parameter Type Description
None

Return Value

Examples

#! /usr/bin/env python 
 
import planetcnc
 
if planetcnc.gcode_is_running():
    print("The machine is currently running.")
else:
    print("The machine is not running.")

See also

gcode_is_ready
gcode_is_opening
gcode_is_running
gcode_close
gcode_open
gcode_load
gcode_line_add_allowed
gcode_line_add