Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MODBUS TCP ETHERNET - SLAVE MODE - KC868-A16
#1
Sad 
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???
Reply
#2
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
Reply
#3
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!
Reply
#4
KC868-A16 use by KCS v2 firmware , only support RS485 modbus .
KC868-A16v3 use by KCS v3 firmware, support RS485 modbus and TCP modbus.
Reply
#5
Thank you

Could you please tell me if this recipe https://www.kincony.com/forum/showthread...0#pid17710 can solve my problem?
Reply
#6
??
Reply
#7
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
Reply
#8
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?
Reply
#9
Temperature Threshold can set to 0.1
Humidity Threshold can set to 1
that means when value difference will auto update to mqtt message.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)