Problem Reading Swapped Byte Float Data

Hi,
We have L&T's Series 4000 Energy Meters wherein the Data is available in Float Data Type with Swapped Byte. We have Tried using FloatMode = 1 in Modbus Parameters and We need to read data from 2 registers 40159 & 40160 the Variable type created is Real still we are unable to get the data which otherwise is easily available on ModScan and other such softwares.
Software Version Vijeo Citect 2018
Parents
  • There are several Serial Modbus Drivers, and which one is the right one is not always logical. However the first problem I see in the addressing. I believe most Citect modbus drivers read 32 bit registers by combining 2 16 bit registers. I don't believe citect can scan 40159 and 40160 in consecutive 32 bit values. It should be 40159 and 40161 or 40158 and 40160. My experience with modbus RTU is limited to a few brands so I could be wrong. If your device has individual 32 bit registers at 159 and 160, citect still reads each part of the 32 register as 2 16's, values from your device would be seen by citect as shown in this example

    Device Citect
    0 0
    0 1
    1 2
    1 3
    2 4
    2 5

    So to capture register 1 from your device you would put address 2 in citect and to capture reg 2 you would use reg 4.

    the exact register numbers, how they start how they end would depend on which driver your using.

    I hope this helps

  • Ok

    Thats something new I have come across.

    Will definitely try that out.

Reply Children
No Data