Advertisement
hwthinker

Untitled

May 7th, 2020
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. Modbus RTU Command
  2. Baud Rate: 9600 8 NONE 1
  3. Send hex
  4. Hexadecimal reception
  5. Steps:
  6. 1. Software setting the baud rate
  7. 2. Set the address (device address used to communicate)
  8.  
  9. Set the address is: 01
  10. 00 06 40 00 00 01 5c 1b
  11. Set the address is: 02
  12. 00 06 40 00 00 02 1c 1a
  13. Read address
  14. 00 03 40 00 00 01 90 1b
  15.  
  16. Read the software version
  17. 00 03 00 04 00 01 c4 1a // [month] broadcast read (only by one device, for all addresses practical, easy to test)
  18. 0,003,000,800,010,419 [years] // broadcast read (only by one device, for all addresses practical, easy to test)
  19. 00 03 00 10 00 01 84 1e [hour, minute] // broadcast read (only by one device, for all addresses practical, easy to test)
  20. Read the hardware version (PCB version)
  21. 0,003,002,000,018,411 // broadcast read (only by one device, for all addresses practical, easy to test)
  22.  
  23. [1 Address]
  24. The 1st relay open
  25. 01 05 00 01 01 00 9d 9a
  26. Relay 1 closed
  27. 01 05 00 01 00 00 9c 0a
  28. The 2nd relay open
  29. 01 05 00 02 01 00 6d 9a
  30. 2 Relay Off
  31. 01 05 00 02 00 00 6c 0a
  32. The 3rd relay open
  33. 01 05 00 03 01 00 3c 5a
  34. 3 Relay Off
  35. 01 05 00 03 00 00 3d ca
  36. 4 relay open
  37. 01 05 00 04 01 00 8d 9b
  38. 4 Relay Off
  39. 01 05 00 04 00 00 8c 0b
  40. All off
  41. 01 05 00 ff 00 00 fd fa
  42. All light
  43. 01 05 00 ff ff ff fc 4a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement