![]() |
|
Need Assistance with KC868-ATC Modbus Master (RS485 RTU) Communication in ESP32 - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-ATC / Tuya adapter V2 (https://www.kincony.com/forum/forumdisplay.php?fid=32) +--- Thread: Need Assistance with KC868-ATC Modbus Master (RS485 RTU) Communication in ESP32 (/showthread.php?tid=3575) |
Need Assistance with KC868-ATC Modbus Master (RS485 RTU) Communication in ESP32 - ibrahim - 11-29-2023 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, RE: Need Assistance with KC868-ATC Modbus Master (RS485 RTU) Communication in ESP32 - admin - 11-29-2023 KC868-ATC is open source, so you can write your own arduino code for modbus. i think you can use arduino modbus library directly. RE: Need Assistance with KC868-ATC Modbus Master (RS485 RTU) Communication in ESP32 - Auxinne Paul - 12-01-2023 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 RE: Need Assistance with KC868-ATC Modbus Master (RS485 RTU) Communication in ESP32 - Bart - 08-03-2024 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. RE: Need Assistance with KC868-ATC Modbus Master (RS485 RTU) Communication in ESP32 - admin - 08-03-2024 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. RE: Need Assistance with KC868-ATC Modbus Master (RS485 RTU) Communication in ESP32 - Bart - 08-05-2024 (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 |