Running gcode macros via serial
-
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
-
@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.
-
@dc42 Thanks! Got a converter and it's working through IO_0 on the board!