<jupyter_start><jupyter_text>Laser Cutting Sandbox Objective  Test Setup- CSI3010SW @ 31.6V  Code:<jupyter_code>sys.path.append("..")

cnc = GRBL.GRBL(port="/dev/cnc_3018")

print("Laser Mode: {}".format(cnc.laser_mode))


def init(feed=20):
    program = GCode.GCode()
    program.G21()  # Metric Units
    program.G91()  # Relative positioning.
    program.G1(F=feed)
    return program


def end():
    program = GCode.GCode()
    return program

cnc.laser_mode = 1

print("Laser Mode: {}".format(cnc.laser_mode))

cnc.kill_alarm()

cnc.run(init())

cnc.cmd("M3 S1")

cnc.cmd("G0 X-10")

cnc.cmd("G0 X-100")

prog = init()
prog.M3(S=255)
prog.G1(Y=25, F=300)
prog.G1(X=25)
prog.G1(Y=-25)
prog.G1(X=-25)
prog.M5()

while True:
    cnc.run(prog)

prog = GCode.GCode()
prog.G0(Y=-15)

cnc.run(prog)

cnc.reset()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.18668252080856124, 'fraction_numerical': 0.06064209274673008, 'mean_word_length': 4.041916167664671, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '71233', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 429, 'n_tokens_neox': 388, 'n_words': 63, 'path': 'DevelopmentSandbox/SpindleTests-Copy5.ipynb', 'repo_name': 'jed-frey/python_cnc3018', 'size': '841'}