is_program_loaded()

Checks whether a G-code program is currently loaded.

This function verifies that the program has been successfully loaded and is ready for execution or further interaction.

Syntax

planetcnc.is_program_loaded()

Parameters

Parameter Type Description
None

Return Value

Examples

#! /usr/bin/env python 
 
import planetcnc
 
if planetcnc.is_program_loaded():
    print("G-code program is loaded.")
else:
    print("No G-code program is loaded.")

See also

is_license_valid
is_ui_ready
is_program_loaded
is_controller_connected
is_controller_ready
is_controller_running