Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Sending gcode commands to the duet

    General Discussion
    7
    7
    560
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Shaqour
      Shaqour last edited by

      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.

      dc42 1 Reply Last reply Reply Quote 0
      • gtj0
        gtj0 last edited by

        Yes it can.

        1 Reply Last reply Reply Quote 0
        • Danal
          Danal last edited by Danal

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

          Delta / Kossel printer fanatic

          1 Reply Last reply Reply Quote 0
          • A Former User
            A Former User last edited by

            I believe the default configuration for the uart on IO0 is 57k6 and cheksums enabled.

            Use M575 P1 S0 to disable cheksums if needed.

            1 Reply Last reply Reply Quote 0
            • dc42
              dc42 administrators @Shaqour last edited by

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

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              1 Reply Last reply Reply Quote 1
              • shenouda13
                shenouda13 last edited by

                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
                WhatsApp Image 2022-11-29 at 12.46.20.jpeg

                jay_s_uk 1 Reply Last reply Reply Quote 0
                • jay_s_uk
                  jay_s_uk @shenouda13 last edited by

                  @marco13 you've already started your own topic. please don't spam others (especially old ones)

                  Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA