Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need Assistance with KC868-ATC Modbus Master (RS485 RTU) Communication in ESP32
#1
Greetings community,

I trust this message finds you well.

I'm currently engrossed in a project that requires the use of a KC868-ATC as a Modbus master using RS485 RTU to communicate with Modbus slave devices. Despite my efforts to create a simple program using the Modbus Master library for ESP32, I've encountered challenges and believe I'm missing some crucial details.

Could anyone kindly share a basic program or offer guidance on reading holding register data from a Modbus slave device using KC868-ATC as the Modbus master with ESP32?

Your insights and assistance would be immensely valuable. Thank you in advance!

Best regards,
Reply
#2
KC868-ATC is open source, so you can write your own arduino code for modbus. i think you can use arduino modbus library directly.
Reply
#3
I have also tried this, I have good foundation in arduino but honestly I cannot fix it, #include <ArduinoModbus.h> does not compile for the esp32 boards while #include <ModbusRTU.h> is compiling and being uploaded although things don't work out
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)