Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 06/07/2019 in all areas

  1. 1 point
    Those would be the Visilogic function blocks. As you've already done, read the data from the device into a UINT32 tag. For testing I made one called "Read Data" that I could simulate, and a tag called "Conv Value" to hold the swapped bytes. The data will land in a REAL called "Converted". In UniStreamSpeak- 1. Copy the data you read from the device to the working tag and Swap the bytes using "Logic->Swap Single Tag Bytes" with Swap Type.ABCD_CDAB. 2. Copy the swapped data to a 4 byte BUFFER array type so you can manipulate the memory directly. Mine is "Conv Buffer[4]". 3. Use "Buffer Tools->Copy Tag to Buffer" to get the "Conv Value" data into the buffer tag and "Copy Buffer to Tag" to get it from the buffer to the REAL "Converted". There you go. Sorry it doesn't have all the digits you're looking for. If you need to convert several values write a UDFB to move the data into this logic with a pointer. Joe T.
  2. 1 point
    Hi, I used next link: https://www.h-schmidt.net/FloatConverter/IEEE754.html Result is 0x3e18a71e, as you have. Now you have to swap 0x3e18a71e to 0xa71e3e18 and use "Vector->Use Offset->Copy Memory" to copy ML/DW to MF. Than MF should show right number. Update us if it is working for you.
  3. 1 point
    Hi Charalambos, Please publish here content of 2 sequential MIs you read from meter in HEX and tell us what number it should show. *Read it from meter display, if possible. Having this information it is simple to negotiate if pairs of Bytes should be swapped or Bytes should be arranged in some order. AABB CCDD -> CCDD AABB B.R.
  4. 1 point
    Actually, it's not. According to the Unitronics Help under Contents->Tags->Data Types So that leaves me to believe you may have a byte order problem, which is not unusual in reading 32 bit data from a Modbus device. I'm looking into if it's possible to read the data into a UINT32, swap bytes, and then convert to Real. Otherwise someone at Support may be able to help. Joe T.
  5. 1 point
    Send your request to support@unitronics.com and let us know what they answer. Joe T.
  6. 1 point
    I don't know definitively on the UniStream, but the Modbus command to read float registers is the same as the one to read holding registers (3). Have you tried reading the value from the meter to a Real type tag? Joe T.
×
×
  • Create New...