ASDA-B3 MODBUS Communication Example 2: function code 06H, write single word When the master issues a write command to the first slave: The slave writes data 0064H to the start data address 0200H and sends a response message 9 to the master after writing is complete. ASCII mode: Command Message (Master): Response Message (Slave): RTU mode: Command Message (Master): Response Message (Slave): Note: a silent interval of 10 ms is required before and after each transmission in RTU mode.
9-7 Start ‘:’ ‘0’ Slave Address ‘1’ ‘0’ Function ‘6’ ‘0’ ‘2’ Start Data Address ‘0’ ‘0’ ‘0’ ‘0’ Data Content ‘6’ ‘4’ ‘9’ LRC ‘3’ End 1 (0DH) (CR) End 0 (0AH) (LF) Start ‘:’ ‘0’ Slave Address ‘1’ ‘0’ Function ‘6’ ‘0’ ‘2' Start Data Address ‘0’ ‘0’ ‘0’ ‘0’ Data Content ‘6’ ‘4’ ‘9’ LRC ‘3’ End 1 (0DH) (CR) End 0 (0AH) (LF) Address 01H Slave Function 06H 02H (High) Start Data Address 00H (Low) 00H (High) Data Content 64H (Low) CRC (Check Low) 89H (Low) CRC (Check High) 99H (High) Address 01H Slave Function 06H 02H (High) Start Data Address 00H (Low) 00H (High) Data Content 64H (Low) CRC (Check Low) 89H (Low) CRC (Check High) 99H (High)