Home > other >  Kepware read rs485 serial port data, returns a value, but is not correct
Kepware read rs485 serial port data, returns a value, but is not correct

Time:12-01

Project background:
Via a serial port assistant can be read from 808 p rs485 interface yu electrical measurement, the set value, I want to read through the kepware,

The testing process is as follows:
1, through the use kepware custom drive, read, have returned to the data, but there are some data is correct,
2, the data access logic
808 p is hexadecimal data read, by sending commands can be returned to read data
Send instruction to 8 bytes, such as: 81, 81, 52 53 00 00 00 00
Return data of 10 bytes, such as: A3 0 b DC 05 00 41 01 00 81 52
The first byte of the second byte test values, namely the A3 0 b said measurements, DC 05 is set value, high and low byte to the horse, such as: test values after the inversion is 0 b A3, transform its decimal can obtain the test values
3, in keypware, I choose hexadecimal, return type as a byte, the format is: byte from ASCII hex chars, but still can not get the correct measurements and Settings, and various combinations return types, formats are tried, ask ace to give directions, should be the point is not set good

CodePudding user response:

Everybody to help give directions, thank you very much
  • Related