run a gcode file on duet3d 5mini+ from rpi python
-
Hi guys,
I am new to the duet, I have connected a duet3D Mini 5+ to a raspberry pi 4 through usb cable. I am trying to send a command to the duet in python to run a gcode file (macro) on duet3d 5mini+. Any suggestion on how to do that? thanks
-
@marco13 please stop raising multiple threads for the same issue
-
@jay_s_uk I believe this is a different question
-
@marco13 You can send
M98
gcode command:import serial with serial.Serial('/dev/ttyACM0') as ser: ser.setRTS(True) ser.write(b'M98 P"yourmacro.g"\n')
See https://docs.duet3d.com/User_manual/Reference/Gcodes#m98-call-macrosubprogram