Codesys + RS485 Config for Connect S

Post Reply
d.pangam
Posts: 1
Joined: 06 Sep 2024, 15:34

Codesys + RS485 Config for Connect S

Post by d.pangam »

Hello!

I have a RevPi Connect S with the following configurations:
  • Bullseye (09/2023) (Can't update top the latest version right now due to damaged microUSB port) with updated Pictory to 2.10.0.0
  • CODESYS Development System V3.5.20.0 Patch3 +
  • Revolution Pi Library for CODESYS V2.0.0.0 (ID: 8433)
  • CODESYS Control for Linux ARM 4.13.0.0
I'm trying to read data from a sensor via the RS485 available on the RevPi Connect S. I have already checked that the RevPi RS485 port and the sensor is working fine but the Codesys shows that the bus is not running. I want to set up a MODBUS RTU Master and I have followed this : https://revolutionpi.com/en/tutorials/b ... rtu-master but I still have this error.
Codesys RevPi Error 1.png
Codesys RevPi Error 1.png (6.68 KiB) Viewed 4104 times
I wanted to know what must be set in the config file. There are many suggestions related to this issue:
  • One user says at the end that it worked when /dev/ttyUSB in ----> both /etc/CODESYSControl.cfg & /etc/CODESYSControl_User.cfg viewtopic.php?t=3408
All these options and suggestions are quite confusing and none of them actually work, so what is the official solution for RevPi Connect S. Also is there any other setting for this?

Thank you in Advance!
Post Reply