Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RS485 io module - KC868-HAv2 released
#3
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)


Attached Files
.zip   HA485_KU_V108_RIO231124.zip (Size: 6.43 KB / Downloads: 178)
.txt   HA-modbus-command-demo.txt (Size: 864 bytes / Downloads: 106)
Reply


Messages In This Thread
RS485 io module - KC868-HAv2 released - by admin - 10-29-2023, 01:06 PM
RE: RS485 io module - KC868-HAv2 released - by admin - 12-26-2023, 12:29 AM

Forum Jump:


Users browsing this thread: