Home > other > Modbus debugging but have been unsuccessful modscan32 family standing to receive data show the modbu
Modbus debugging but have been unsuccessful modscan32 family standing to receive data show the modbu
Time:09-27
Just contact 485, I can't do equipment connected by modscan32 debugging Because using TTL serial port, so don't consider hardware connection issue, one hundred percent are reliable
Because, in the data flow, can see the black background data, sent from the stand, completely without the code
Communication protocol that custom
By definition, is this a few byte, and the order has been in accordance with the Modbus rtu format arrayed, debug software think no data received for what?
May not be able to solve, the feeling left enough one by one, o great spirit refers to the way
CodePudding user response:
Modbus maintain registers each register is double byte, your return is a single-byte, so will not pass the check Send: [10] from the station address [03] 03 function code [00] [00] starting address [00] [02] register number [c7] [4] a CRC check
Receiving [10] from the station address [03] 03 function code [04] returns the register number of bytes, each register 2 bytes, four bytes read two registers, so [00] [00] register 1 [00] [00] register 2 [fb] [32] CRC check code
CodePudding user response:
Modsim32 can simulate the modbus from station, there is something wrong with the debugging can use this software simulation
CodePudding user response:
Found themselves silly questions,, a register is two bytes Found after refer to this document, ah, halfway decent is I can't, no basic