Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. Kaguya
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    Kaguya

    @Kaguya

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Kaguya Unfollow Follow

    Latest posts made by Kaguya

    • RE: Python script send Gcode to duet 3 failed

      @otso Thank you very much. It works.

      posted in General Discussion
      Kaguyaundefined
      Kaguya
    • Python script send Gcode to duet 3 failed

      Hi,

      I am trying to use python to send Gcode to the board through USB serial port with the code (we use Visual Studio Code + python 3.7)

      import serial
      #Serial takes these two parameters: serial device and baudrate
      
      ser = serial.Serial('COM6', 9600, timeout=0)
      command = 'M106 S128'
      ser.write(command.encode())
      

      The board didn't response to the command. The connection is build successfully however the Gcode seems not recognized by the Duet 3. We tried to use YAT software to send this command and it works (the fan is then rotate).

      We are wondering if this is because the python script lacks some function to transform string to the signal Duet 3 can read. Could you help with this? Thanks.

      posted in General Discussion
      Kaguyaundefined
      Kaguya