Home > Back-end > Please read loadometer weight data
Please read loadometer weight data
Time:09-18
KeLi D2008 loadometer instrument communication protocol is as follows: Continuous mode (TF=0) : Sends data to the instrument shows the current weight (gross weight) of the data, each frame is composed of 12 groups of data, data format shown in the table below: The first X bytes content code injection solution content hexadecimal code 1 start (XON) 02 XON 02 2 + or - sign bit 2 b/2 d + 2 b 3 weighing data top 30 ~ 39 0 30 4 weighing data 30 ~ 39 0 30 5 weighing data 30 ~ 39 2 32 6 weighing data 30 ~ 39 0 30 7 weighing data 30 ~ 39 0 30 8 weighing data lowest 30 ~ 39 0 30 Decimal digits from right to left (0 ~ 4) 30 ~ 34 2 32 10 xor check high four=0 x1b 31 11 xor check low four=0 x1b 'B' End of the 12 X0FF 03 XOFF 03 Exclusive or=2 radius 3 radius... 8 the radius 9, Note 1: xor check high, low determination of four: xor and high, low four if less than, equal to 9, plus 30 h, become ASCII Numbers to send, such as: high xor check 4 to 6, after add 30 h, 6 to 36 h is ASCII characters Send; Four xor and high, low if more than 9, plus 37 h, be sending ASCII letters, such as: different Or check high four as B, 37 h after 42 h namely ASCII B to send, How to use Spcomm serial communication to send and receive data to meet! My new best shows the code
CodePudding user response:
The need to customize, according to the scale load parameter You can contact me QQ: 455459466 My side has a Delphi + access platform balances the source code
CodePudding user response:
I will soon send a I write loadometer data analytical control, involving a dozen instrument, you can look, Don't do weighing system for some time, share with your brothers and sisters,