Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
ModbusTCP monitoring program
no vote
Application background Here first code file first look at it. TCP protocol sample is as follows:The request and response with a prefix of six bytes are as follows:0:  byte;       transaction identifier - replication by the server - typically 01:  byte;       transaction identifier - replication by the server - typically 02:  byte;       protocol identifier = 03:  byte;       protocol identifier = 0Byte 4:        length field (half byte) = 0 (all message length is less than 256)5:   byte;   length field  (lower part)     = the number of bytes in the back6:   byte;   unit identifier (original "slave address")7:    byte;         MODBUS function codeByte 8   on:          the required data Thus processing the sample "to 4 of the offset from the UI 9 read the 1 register" return the
23114129
2016-08-23
0
1
No more~