Sending gcode commands to the duet
-
Hi
I have duet3d and i wish to send gcode commands to the duet while its connected through the serial port.
I need to send commands using matlab. From my knowladge, i can use it to send data over the serial port. However, i am not sure if the duet can directly accept the gcode commands from matlab when its connected through the usb. -
Yes it can.
-
Connect Matlab's TX wire to Duet 3 6HC io0.in. No specific configuration is required (just don't assign io0 to any other use). If I recall 115200 baud, 8,N,1. If that doesn't' work, try a couple of other typical 'fast' baud rates.
3.3V TTL SERIAL
If those words don't already mean something to you, ask here...
-
I believe the default configuration for the uart on IO0 is 57k6 and cheksums enabled.
Use
M575 P1 S0
to disable cheksums if needed. -
@Shaqour said in Sending gcode commands to the duet:
However, i am not sure if the duet can directly accept the gcode commands from matlab when its connected through the usb.
If you can get MATLAB to generate Gcode commands and then send them to USB then the Duet will execute them.
-
Hi all,
I am new to the duet. I have connected a duet3D Mini 5+ to a raspberry pi 4 with a usb cable. I am trying to send gcode commands to the duet through the serial package in python. I have a stepper motor connected to the duet. So i am trying to send a command to rotate it. when i run the python script in the image below it just stops at line 6 (ser.write) and it doesn't execute the subsequent lines.
Am I missing something?
I would really appreciate your help on how to do it.
thanks
-
@marco13 you've already started your own topic. please don't spam others (especially old ones)