jsoames
Hey there,

I am having an issue connecting OpenPLC to Waveshare Modbus RTU ( https://www.waveshare.com/modbus-rtu-io-8ch.htm ). I have the Waveshare USB to RS485 converter ( https://docs.waveshare.com/USB_TO_RS485_C ). I am running OpenPLC V4 and Windows 11. I have tried running the applications as administrator. I have used command prompts to verify the port is free.
 
I am able to send commands via SSCOM successfully to turn on/off all outputs on the RTU. - so the hardware and connections are all OK.
 
 [203128%2F9873437%2Fmceclip0]
 
OpenPLC editor is not detecting the serial port, however I have manually typed COM4... Should this be auto detected..??
 
[203128%2F9873439%2Fmceclip0]
 
When compiling and running to OpenPLC runtime, I can see connection errors as follows:
 
[203128%2F9873440%2Fmceclip0]
 

Full start LOG: [203128%2F9873441%2Fmceclip0]
 
 
I am also running Modbus TCP Slave Server for this program - currently connecting to AdvancedHMI - no problems here.
[203128%2F9873449%2Fmceclip0]
 
Any thoughts ? I am at a loss!! I would greatly appreciate any input or advice.

Thanks, Jack
Reply 0 0
jsoames
EDIT-
 
I have managed to setup Runtime V4 within WSL, and then link the USB port with

[2026-07-30 04:04:01] [INFO] [MODBUS_MASTER] Started RTU bus thread: /dev/ttyUSB0 (devices: waveshare_rtu_1, slave_ids: 1)
[2026-07-30 04:04:01] [INFO] [MODBUS_MASTER] Successfully started 1 device/bus thread(s)

This is now operating and connecting successfully.

I would prefer however to just run within a windows command shell, using the COM4 port if possible.
Reply 0 0
thiagoralves
Hello,
The OpenPLC forum has a new home: AutonomyEdgehttps://edge.autonomylogic.com. We migrated every member, profiles, topics, categories and attachments. Please redo your post on the new forum so we can continue our conversation.
Note: If you already have an Autonomy Edge account, you can simply login with your credentials to have access to your forum profile and posts. If you don't have an Autonomy Edge account, we ask you to set a fresh password on first sign-in using the same e-mail you used on this forum.
To set a fresh password, access the link https://edge.autonomylogic.com/forgot-password and insert the e-mail address used on this forum. You will receive an e-mail on your inbox with a link to choose a new password. Once you reset your password you will be abletologinonedge.autonomylogic.comusing your new credentials.
Reply 0 0
Reply