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.


  • administrators

    @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.


Log in to reply