Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Running gcode macros via serial

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    3
    173
    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.
    • jonathanbrentundefined
      jonathanbrent
      last edited by

      Hi all,

      For context:

      • I am using a Mainboard 6HC on RRF 3.5.2.
      • I want to send M98 commands to the duet board to run macros via serial input from a PLC

      The PLC sends an RS232 or 485 signal through a converter which turns it into a USB signal. I am looking for some guidance on wiring the usb serial to the duet and configuring the board (via M575 it seems). If there is a way to direclty recieve RS232/485 that would be great as well.

      I would like to leave the USB-C port free, so as of right now I have connected to pins 9 and 10 on the paneldue header and have sent an M575 P1 B115200 S2 command for configuration. I do not see anything coming in via the DWC console, but if I send the PLC strings through the RS485-USB converter and into my laptop I can read them through YAT.

      Any guidance on getting the duet board set up to properly receive serial?

      Thanks

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

        @jonathanbrent said in Running gcode macros via serial:

        as of right now I have connected to pins 9 and 10 on the paneldue header and have sent an M575 P1 B115200 S2 command for configuration. I do not see anything coming in via the DWC console

        Commands received via a serial port will not be echoed to the DWC console, but should provoke responses that will be returned via the same serial port.

        You should use a RS232 to 3.3V converter to interface the RS232 port of the PLC to the serial port of the Duet.

        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

        jonathanbrentundefined 1 Reply Last reply Reply Quote 0
        • jonathanbrentundefined
          jonathanbrent @dc42
          last edited by

          @dc42 Thanks! Got a converter and it's working through IO_0 on the board!

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