gcode_is_ready()

Checks whether the G-code has been successfully loaded and is ready for execution.

Syntax

planetcnc.gcode_is_ready()

Parameters

Parameter Type Description
None

Return Value

Examples

#! /usr/bin/env python 
 
import planetcnc
 
if planetcnc.gcode_is_ready():
    print("G-code is loaded and ready to run.")
else:
    print("G-code is not ready.")

See also

gcode_is_ready
gcode_is_opening
gcode_is_running
gcode_close
gcode_open
gcode_load
gcode_line_add_allowed
gcode_line_add