Is MODBUS RTU - always necessary to convert 2 * 16-bit to 32-bit?

I have spent a lot of time on forums try to solve this problem, and as of yet I have been unable to

Fix it.

I am reading a sensor of Carlo Gavazzi DC Modbus (programming manual attached) and were

getting a mixture of correct and incorrect values when reading from the device.

I use the library Modbus Labview who reads 16 bits of the default individual registries and what has

in general, been very well unless all negative values are involved. My access to each register method is simply

a loop by using the Example2_VI and iteration records required.

I am mainly interested in the following

Address:arameter::Register Value::Expected value

0::voltage:476: 47.6V (that's okay)

1::voltage:0:

4::current:65446:A couple of (negative) amps up! No 89 / 6500 a

5::current:65535:

Negative values do occur when the system (generator) is not running. When it actually works

the current 16-bit values can vary from 40 a to 250 a, but they are all incorrect by a factor of at least 10 to 20%.

I tried to use the example of vi to combine the current values in some way to return anything meaningful, but

whenever she repeats just NaN (not a number, I guess) so I'm wondering if I should make some sort of calculation

before I feed them in the type cast?

Try this.

Tags: NI Software

Similar Questions

  • Watlow F4D Serial Communication problem error Code-1073807339 VISA Read in Watlow F4.lvlib:Utility MODBUS RTU receive message

    Hello

    I am trying to contact a Watlow F4D controller on a room using RS232. I use a cable converter USB-series and NI Watlow F4D Serial Driver.

    The code of error-1073807339 occurs in:

    Read in F4.lvlib:Utility MODBUS RTU Watlow VISA receive message-> Watlow F4.lvlib:Utility Register.vi reading

    I don't know what caused the problem. I am able to see the cable converter USB-Serial OR max. Please see the pictures for more details

    Thank you

    Felix


  • need help on modbus RTU: do not know the meaning of the other output registers

    Hi all

    I use LV 8.5, a programmer time & 1st novice LV to post msg in discussion, so please let me know if I missed something important.

    In any case, I'm 2 power meter data acquisition (1st is CPM-50 model, 2nd is MWH - 10, the two brand ADTEK). the Protocol of these devices are modbus RTU. I have two targets to:

    1 acquire data using RS - 485 (portable <-->meters of power)

    2. acquire data using ethernet (laptop <-->converter series/ethernet <-->meters of power)

    now I'm in the 1st part, I use the local brand USB-RS485 converter & I think that there is no problem in the port itself (past the loopback test). I create a program using LV samples Mo using w / these port settings: 9600, 8, N-1 as databit baud, parity, stop bit respectively (the same data format of the device: see page 17/42 of the manual). I use the query.vi series of MB that I customized to eliminate the error timeout 6101 (see attached photo).

    Problem: I can read the right data into the output register , but is located in the 5th element of the 1 d array. In the peak of the attached example, I'm currently reading the baudrate of the device (see manual pg 26/42: address 0102 h = 258 d). so I read the 9600 w/c is correct. I also had the correct readings of other addresses of parameter which is also located in the 5th element of the 1 d array. Note: I never tried to read data from power because the meters are not yet installed in the cabinets of power (maybe installed nextweek leave)

    Question:

    1. What is the significance of the first four output records in my table 1 d of output?

    2. why I got 5 output registers eventhough I'm asking only 1 quantity?

    3 read the correct data in the 5th element normal?

    I want to just be deleted in the data I read before jumping in part 2 (connection via ethernet). If I forgot some valuable information, let me know. Thanks in advance!

    Kind regards

    Ivel


  • MODBUS RTU via TCP/IP

    Dear all

    I'm looking for a Modbus RTU on example TCP/IP VI. Does anyone have experience with this Protocol?

    Please kindly give me some advice!

    Thanks and greetings

    Luong.Tran

    Hello

    Start herefor more information and the LV ModBus lib.

    Kees

  • Protocol Modbus RTU data types

    Hello

    I use series ADAM with the data type Modbus RTU protocol.which should I use to read and write operation?


  • MODBUS RTU - problem reading Holding - myPCLab Novus records

    Hello

    I've tried for a few days to read the logs at Novus myPCLab (it uses the Modbus RTU Protocol). I used the DSC module both Modbus Library without success (it seems to connect properly but cannot read).

    I need to read the given current.

    Does anyone have an idea on what am I hurt?

    Here's my vi and modbus address.

    Through the DSC

    I used the address PLC to 'HR Inicial' and 1 'St number.

    Through the library

    I used the PLC address in "start address".

    You have created a connection that is configured to use a "unit ID" 0.  Slave never devices typically use a device number 0 which is considered to be a broadcast address.

    Check the address of the slave of your device.  So make sure that you use this number.

    I guess that you communicate with a device that behaves like a slave.  If so, you must create a Modbus master in your code.  With the new modbus communication protocol Subvi, you created a slave.  A slave cannot talk to another slave.

    Similarly, in your second picture when you use the older Modbus Library, you not connected any constant to the top of the SubVI WriteRead that defines the parameters of series of devices such as RTU and address of the slave, so she takes by default to 0.  Once again, a broadcast address.

  • MODBUS RTU multiple request &amp; response (OR VISA)

    Hello

    I would like to ask how many request and response on MODBUS RTU using VISA? I tried 2 camera digital surveillance, I did a Labview program to connect this device alternately using stacked sequence Structure, but it can communicate with 1 device and the answer, I think that there is an error, the number of bytes does not match what I ask (0 A 04 0000 0002 B 70-0)

    It's my screenshot

    any suggestion? or maybe use other way to many request and response use NI VISA?

    Thank you ~.

    It was pretty hard to see this video.

    Of course, as part of the 2nd, lower comparison was coming to True, which means the false cases where things was spent could not run.  (Seems like the reverse logic to me.)

    Well, you check the first two bytes to see if they were not equal to 010 a.  They were good because it is the response to the command you send who left 010 a.

    In the first picture, it worked because you send the command from 0A 04 and compare to see that's not equal to 0404, which of course is not.  What is the point of this?  It makes sense to mixed.  You want to confirm it is the correct slave address and the correct command (so that they would be equal) to run the code of decoding.

    The other comparison is also useless because you try to check if the first two bytes are equal to 0 a, (any image you're in) which they will never because a string of bytes 2 can never be equal to a 1 byte string.

    Through execution of high point, you should have been able to understand what was or wasn't running and why.

    In addition, you only need a VISA close because you open just a resource of VISA.

    Really, you'd be better off using the Modbus Library.

    This is a much cleaner version of your code using the Modbus Library.

  • Problem of Lookout 6.0.2 modbus rtu?

    One of our clients has Lookout 6.0.2 communicates with several Packs of Scada CMI on wireless modems using the Modbus RTU Protocol. All of a sudden Friday night he got comm fail alarm pages on site all but one. The Modbus statistics window revealed that Lookout had stopped voting for all sites, except a single site that remained in communications. The only activity is a single site.

    He saw it queries this way for 2 hours, never to regain the normal polling cycle.

    I had him quit and relaunch Lookout and mark returned to normal and has been like this since late Friday night.

    This system has been in use for several years with very close 100% good communications sice we have deployed so far.

    It was obviously a Lookout failure, since the only approach was to quit and relaunch Lookout.

    Is there a timer for this kind of mistake?

    Is this a failure of the cbx Modbus object? (We use the plain vanilla Modbus driver)

    Roger Foote

    Foote control systems


  • Treo 700wx with Win Mobile 6.0 - is DST Patch always necessary?

    I can't find any information on the issue of whether the patch of the DST is always necessary when you have upgraded to Windows Mobile 6.0.  Anyone knows?  Thank you.

    You do not have

    Message relates to: None

  • How ie9 32-bit and 32-bit office 2010 can be converted to 64-bit?

    How ie9 32-bit and 32-bit office 2010 can be converted to 64-bit?  I have windows 7 64 bit

    slk2 wrote... "so I shouldn't try to force 64 ie9.  Or if the system selects the appropriate injector since both are installed?

    Can I uninstall office 32 and 64 to reinstall but I should? »

    Download and install IE9 64-bit... but most, if not all, the time you will find yourself using IE9 32-bit.

    Let Office 2010 32-bit installed, just like normal users more all deal with data never sleep great.

    Frank

  • y at - it an easy way to convert w7 64-bit with VMware vCenter Converter Standalone

    Hallo

    I am struggling with the VMware vCenter Converter Standalone with windows XP everthing works well...

    I would like to convert a 64-bit Windows 7 computer and run it on a windows 7 64 bit with vmware player > 4

    I get a blue screen and message windows cannot be bootet normally...

    Thanks for any help

    was soon rene

    Welcome to the community,

    It is most likely a problem with the virtual drive created for the converted virtual machine controller. Unless you specify the correct controller ("LSI Logic SAS' for Windows 7) type in the Converter Wizard, you can end up with an IDE controller.

    André

  • Can anything convert ALAC 24-bit or higher?

    Personally, I would like to convert it to a minimum of 32-bit floating-point ALAC, but I'd settle for 24-bit integer. 16-bit is too. I heard that the ALAC has the ability to support 384 kHz, 32-bit floating point, maybe even 64-bit Floating Point (IEEE) the way WAV files can.

    Can not export or convert to 32-bit ALAC with a minimum of 44.1 kHz and 256 Kbps?

    SteveG (AudioMasters) thanks for the recommendation of Foobar2000, but it seems sketchy. Whatever it is, I did a short study in order to determine which program should provide the best quality of conversion ALAC as well as inadvertently determine best quality (in my opinion) output formats:

    Surprisingly (not really), iTunes is the best converter ALAC (free), may be replaced by Logic Pro X, nothing else. It is possible to convert to 32-bit Float ALAC, 192 kHz and maybe even of 384 kHz, but not unless the source file is already 384 kHz. For 32-bit conversion, the source must be exported from Adobe Audition (CS6 or above I think) as 32-bit integer. In iTunes, it converts the floating-point format. 44.1 kHz being more than substantial, a float of 32 bit 44.1 kHz ALAC equals perfect compressed lossless Apple available.

    Furthermore, I have determined that supplied iTunes perfect conversion of any waveform is registration, although ALAC iTunes conversions, as well as others, perhaps, reduce the peaks that exceed the threshold, but convert otherwise perfectly. without zooming on the threshold, you would never know there was a difference. This is recommended only with files that have reduced overall gain or who have already had dynamic range compression or fixed limitation.

    Better yet, Adobe Audition can export files of Point floating (IEEE) FLAC 32 bits with original sampling frequencies (so you can resume 44.1 kHz) for perfect conversion, and I mean perfect. I checked the sections that were exact matches as far down as 1 hudred-millionieme of a second.

    Perfect lossless Compression: Minimum 44.1 kHz, 32-bit floating point (IEEE), FLAC

    I edit in WAV format, export WAV to Apple to convert to the ALAC, FLAC WAV export and destroy all WAV, FLAC become my source. The routine is perfect for me.

    I can share my pages of notes of my studies over the past two weeks to determine all the data and the conclusions that I have collected with anyone.

  • Reading logs float Modbus RTU

    I'm having a problem with loan any floating point number correctly in the distance a 100 Power Meter shark.

    I can read sucessifully a block of records containing the name of meter and the serial number as a 16-bit characters.

    For example when I read records 1-16 on the map and flatten them into a string, I get a string of work completely returned.

    When I try and holding registers A 1012-1013 (AMPS) I get really funny to read numbers when I converted to a float.

    Here is my code so far

    With my front panel settings:

    Expected value, I'm looking to have returned: 11.11 amps

    but

    When I use an indicator to read registers: 19265, 0

    Same value when I do a conversion

    When I do a type cast to a float: 1.26484E + 7

    I tried some different combinations such that read that a single register and join the numbers, both in order to big-endian and little-endian, still no luck.

    Help, please!

    Here's the modbus float definition according to the owner's Manual:

    Also, I saw that the Toolbox Modbus has sometimes behaving strangely of the off-by-one-register (so you need to actually ask a different address to get the desired data) and that some devices have a behavior even more strange out-of-one byte, while now you're out of half of a register, and you will need to ask for more records and then reorganize the bytes by taking a byte of the previous register or end.

  • MODBUS RTU read how to ignore the error

    Hello

    I have a problem, how to jump when the error of communication if I use the Modbus Library? I want this as smoothly without error on the chart.

    Look at this video I save my problem:

    https://drive.Google.com/file/d/0B_94Z4CwsTYeWEJpZUx2cVJ0a2c/edit?USP=sharing

    I tried to mod on MB series Master query Read Input Register.vi using the box Structure in case of error. See this video and still did not work. any suggestion?

    Thank you ~.

    You put the error structure in the evil VI.

    Put it in the main VI and table inside the no error case.

    When you have it in the Subvi, the Subvi should always return something.  If it returns is your data when it is not an error because you put the indicator in the case of error no..  Or if there is an error, it returns the default for the indicator data because you're not write all data on it.

  • BES is always necessary?

    for the enterprise application, what server blackberry enterprise server always required?

    If so, why is it necessary?

    If not, why?

    the correct answer to your question would be: it depends

    BES offers the only access to the local network, a special service to push, research ldap, secure connections and a little more. It depends on the target of your application if you need.

Maybe you are looking for