![]() |
|
MODBUS TCP ETHERNET - SLAVE MODE - KC868-A16 - 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-A16 (https://www.kincony.com/forum/forumdisplay.php?fid=25) +--- Thread: MODBUS TCP ETHERNET - SLAVE MODE - KC868-A16 (/showthread.php?tid=7079) |
MODBUS TCP ETHERNET - SLAVE MODE - KC868-A16 - dacostarlc - 11-18-2024 For control boards model KC868-A16I, I came across a problem and would like your help, I need to implement the MODBUS TCP PROTOCOL VIA ETHERNET (CHIP LAN8720A with ESP32) IN SLAVE MODE, so that supervisory systems can communicate with the board produced by you. I need a programming code library (with example) for the ARDUINO IDE that performs this communication. I only found MODBUS libraries for the W5500 and ENC 28J60 CHIPS. Please, can anyone help me??? RE: MODBUS TCP ETHERNET - SLAVE MODE - KC868-A16 - admin - 11-18-2024 here are some Arduino source code for LAN8720: KC868-A16_Ethernet_Web_server_code: https://www.kincony.com/forum/showthread.php?tid=2240 KC868-A16_Web_server_code by wifi: https://www.kincony.com/forum/showthread.php?tid=2165 LAN8720 UDP code: https://www.kincony.com/forum/showthread.php?tid=1618 RE: MODBUS TCP ETHERNET - SLAVE MODE - KC868-A16 - lordn - 12-15-2025 Hello! I purchased a KC868-A16 board and installed the firmware KCS_KC868_A16_V2.2.18. I configured Modbus RTU and successfully achieved both reading and writing. Everything works perfectly. Now I need to access the KC868-A16 using Modbus TCP for reading and writing parameters from an external Master. My question is: Does the mentioned firmware have this capability, or should this task be solved differently? Could you please advise me on how to proceed? Please be gentle, as I'm new to this. Some things are not entirely clear to me, and English is not my native language. Thank you in advance! RE: MODBUS TCP ETHERNET - SLAVE MODE - KC868-A16 - admin - 12-15-2025 KC868-A16 use by KCS v2 firmware , only support RS485 modbus . KC868-A16v3 use by KCS v3 firmware, support RS485 modbus and TCP modbus. RE: MODBUS TCP ETHERNET - SLAVE MODE - KC868-A16 - lordn - 12-15-2025 Thank you Could you please tell me if this recipe https://www.kincony.com/forum/showthread.php?tid=7079&pid=17710#pid17710 can solve my problem? RE: MODBUS TCP ETHERNET - SLAVE MODE - KC868-A16 - admin - 12-15-2025 ?? RE: MODBUS TCP ETHERNET - SLAVE MODE - KC868-A16 - lordn - 12-17-2025 Good day! Tell me, please, what function and what numbers/addresses to read the registers to get the value of the temperature and humidity sensors DHT11, DHT22 and DS18B20? Screenshot https://photos.app.goo.gl/schhL77fPX4bCgKW8 RE: MODBUS TCP ETHERNET - SLAVE MODE - KC868-A16 - lordn - 12-17-2025 Good afternoon! Please tell me which function and which register numbers/addresses should I read to obtain the temperature and humidity values of the DHT11, DHT22, and DS18B20 sensors? RE: MODBUS TCP ETHERNET - SLAVE MODE - KC868-A16 - admin - 12-17-2025 Temperature Threshold can set to 0.1 Humidity Threshold can set to 1 that means when value difference will auto update to mqtt message. |