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
#4
Hi, I'm wondering if You were succeded with Modbus RTU with KC868-ATC, I would like to make connection PLC Fatek with Tuya, and that would be a perfect choice, but I do not know anything about arduino programing. So I'm looking ready to use product.
Reply
#5
if you want to use KC868-ATC Tuya adapter work with your own device, you MUST need program arudino code with your own product's protocol.
Reply
#6
(08-03-2024, 10:12 PM)admin Wrote: if you want to use KC868-ATC Tuya adapter work with your own device, you MUST need program arudino code with your own product's protocol.

Hi, what is the oryginal protocol You are using in KC868-ATC with RS485, could You please show a some example what is a word structure, maybe I could do the table in PLC to do the word translation to fit. What are the registry to read and write the coil. 

How shoud I make our own code, I have seen that ther is modbus libary ready, I'm sorry but I'm programing PLC controler daily so I don't have an good background in arduino, let me know whan I should start: 
- what a software I will need to instal to upload / download and edit the source code in KC868-ATC
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)