Immediately starts executing a G-code program provided as a string.
planetcnc.start_code(gcode)
#! /usr/bin/env python # G-code commands as a string. gcode_commands = "G00 X0 Y0\nG01 X100 Y100\nM03" # Start executing the G-code commands immediately. if planetcnc.start_code(gcode_commands): print("G-code program execution started successfully.") else: print("Failed to start G-code program execution.")