ModBus Arduino

From ElectroDragon
Jump to navigation Jump to search

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