02-20-2025, 06:39 PM
(12-26-2023, 12:29 AM)admin Wrote: here is modbus firmware for HAv2.
Modubs command-05 (control digital output):
turn ON output1:
send:0A 05 00 00 FF 00 8D 41
feedback:0A 05 00 00 FF 00 8D 41
turn OFF output1:
send:0A 05 00 00 00 00 CC B1
feedback:0A 05 00 00 00 00 CC B1
------------------------------------
Modubs command-01 (read digital output state):
send:0A 01 00 00 00 06 BD 73
feedback:0A 01 01 01 92 6C (output1=ON, output2--6=OFF)
------------------------------------
Modubs command-02 (read digital input state):
send:0A 02 00 00 00 06 F9 73
feedback:0A 02 01 01 62 6C (input1=ON, input2--6=OFF)
------------------------------------
Modubs command-03 (read multi registers):
register: address: (200)dec (C8)hex digital input+digital output state
send:0A 03 00 C8 00 02 44 8E
feedback:0A 03 04 00 01 00 00 11 33
note:00 01 00 00 = 00 01 (input1=ON, input2--6=OFF) 00 00 (output1--6=OFF)
Hi, I'm just awaiting the arrival of my KC868-HAv2 and T16M......
I need to use standard Modbus (which is going to be new to me), as I need to also interface with a Rock5B SBC (in Python) along with the T16M (which will be running ESPHome).
Is this still the latest firmware to use?
Also I assume 0A is the board address? Is this still set with the 'PC software (HA485_Ctrl_V1.0.4.0904)' - which is the latest version I can find, so I can use multiple KC868-HAv2 ?
For the turn ON output 1 command, what is the 00 8D 41 for?
Thanks!

