Difference between revisions of "ModBus Arduino"

From ElectroDragon Wiki
 
(No difference)

Latest revision as of 17:40, 9 September 2021

Server and Client

Client send commands to control Server

Server poll to receive commands and do operations on LED

Commands from Client

  • 01 05 00 00 00 00 CD CA <- client to toggle 0x00 at address 0x00
  • 01 05 00 00 FF 00 8C 3A <- client to toggle 0xff at address 0x00
  • 01 -- = device address
  • -- 05 = modbus code
  • CD CA = 2 bytes CRC