MODBUS Communication ASDA-B3 Example 3: function code 10H, write multiple words When the master issues a write command to the first slave: 9 The slave writes two words 0BB8H and 0000H starting from the start address 0112H. In other words, 0BB8H is written into 0112H and 0000H is written into 0113H. The maximum allowable number of data in one single access is 8. The slave sends a response message to the master after writing is complete. ASCII mode: Command Message (Master): Response Message (Slave):
9-8 Start ‘:’ ‘0’ Slave Address ‘1’ ‘1’ Function ‘0’ ‘0’ ‘1’ Start Data Address ‘1’ ‘2’ ‘0’ ‘0’ Data Number (in words) ‘0’ ‘2’ ‘0’ Data Number (in bytes) ‘4’ ‘0’ ‘B’ Content of the 1st Data Frame ‘B’ ‘8’ ‘0’ ‘0’ Content of the 2nd Data Frame ‘0’ ‘0’ ‘1’ LRC ‘3’ End 1 (0DH) (CR) End 0 (0AH) (LF) Start ‘:’ ‘0’ Slave Address ‘1’ ‘1’ Function ‘0’ ‘0’ ‘1' Start Data Address ‘1’ ‘2’ ‘0’ ‘0’ Data Number ‘0’ ‘2’ ‘D’ LRC ‘A’ End 1 (0DH) (CR) End 0 (0AH) (LF)