5/31/2023 0 Comments Stm32 modbus rtu![]() Host read HoldDataReg operation, Then the message is : MODBUS The host completes a write operation to the slave data, Communication is realized. ![]() ![]() If the local address is 1, Then the MCU receives the data and calculates it according to the data CRC Check and judge whether the data is correct, If the data is correct, The result is : Slave address Function number Data address data CRC check If the MCU receives a message, it will analyze the message and execute the corresponding processing, As the message above : ![]() modbus The simple analysis of the protocol is as follows : among MODBUS-RTU Most commonly used, It's simple, It is very easy to realize on the single chip microcomputer. Modbus The agreement includes RTU,ASCII,TCP. STM32 RS485 modbus Communication source program, The test is effectiveĪ communication protocol commonly used in industry, A communication protocol.
0 Comments
Leave a Reply. |