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.

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


  • Modbus tcp read holding registers return not requested quantity

    Background: I have a client using ELAU motion system - they record data with records they want to be able to read on a cRIO match with some analog FPGA data (I have digital handshaking going on for this).

    LabVIEW 2010 SP1

    cRIO-9074

    With the help of the library of VI of MOdbus.llb OR communicate with the other system.  I can open the TCP communication without problem and actually get SOME records, but not ALL registry data, I want to read.

    I want to do is read the registers individual operating 330 U16 values.  I know how the data are split to represent different lengths (i.e. most of the data items use 2 records number represent a 32 bit).  I want just to read all of the individual records and analyze the data in another VI to convert it to other data types.

    I provided the .vi MB Ethernet Master Query (poly) with the starting address for the first register, then the amount of 330.  The polymorphic instance selected is "reading record keeping.  The array returned by this VI via 'Holding Registers' is only 74 elements and not requested 330.  I have no exception code and no error in LV.  Is there some intrinsic limit, i.e. the number of Holding Registers that can be read?

    I do not use the (not sure if necessary) MBAP header entry.

    Thank you.

    Simple solution once I dug in the series MODBUS/TCP protocol protocol documentation out there via Google.

    History of the modbus function series is the limitation that carried over TCP - the maximum amount of bytes in the pack a data can be only 256 bytes.  So I was limited to approximately 125 ~ records at a time.

    256 bytes is 2048 bits.  The use of the 16-bit registers which gives maximum 128 registers.  I went with 125 followed making easier totals.

  • When you save the playlist, error - "Windows Media Player has encountered a problem during the creation or recording of the reading list.".

    When I try to save a playlist, I get an error message "Windows Media Player has encountered a problem during the creation or recording of the reading list.".

    Hello

    • Will there be any changes made prior to this issue?
    • What version of Windows are you using?

    Step 1: I recommend to run the Windows Media Player settings Troubleshooter and check.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

    Step 2: If the problem is to uninstall and reinstall Windows Media Player. Here's how.

    Uninstalling and reinstalling Windows Media Player:

    (A) uninstall Windows Media Player:

    a. go to start and in the search type 'Turn Windows has or not'.

    b. click on "Turn Windows features on or off".

    c. find multimedia and uncheck the brand in the face of Windows Media Player.

    d. restart the computer

    (B) reinstall Windows Media Player:

    a. go to start and in the search type 'Turn Windows has or not'.

    b. click on "Turn Windows features on or off".

    c. find the multimedia functions and place a check mark in front of the Windows Media Player.

    d. restart the computer.

    For more information, see the article below:

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-features-on-or-off

  • 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


  • 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


  • 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.

  • 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?


  • Cannot read the videos I record on xperia ST27i

    Hello

    I recorded some videos with my Xperia phone and want to play them on my PC (Windows7 Home Premium).

    The videos play perfectly on my Xperia phone but will not play on my PC.

    I transferred via Sony PC Companion .mp4 files on my PC but cannot play them with Windows Media Player, iTunes, or Quicktime.

    POPs Windows Media Player, a message 'Windows Media Player has encountered a problem reading the file'

    iTunes search as it plays but shows just a green screen. duration of the video.

    QuickTime looks like it plays but shows just a black screen for the duration of the video.

    I also have a Camcorder HDR-AS15 snoy that works oddly so it seems that mp4 files saved by my Xperia phone are the problem.

    Any help would be much appreciated.

    Thank you

    Peter

    I think I found the problem.

    If I copied the files using Windows Explorer, they will play in Windows Media Player without any problem.

    If I copy using the Sony software (Sony PC Companion), they won't play in Windows Media Player, iTunes, Quicktime or VLC.

    Kind of defeated the purpose of the use of Sony PC Companion in my opinion.

    Peter

  • Message - there is a problem reading this document (57)

    Does anyone else have this problem?

    Purchased version of Windows 32-bit version of Acrobat XI update will not install properly or work.

    First message of error information is according to the title after the first red screen that appears only once.

    Second information error message is to check the operation failed.

    2 downloads, 3 installs and repairs 2 produce the same result.

    Adobe Australia called three times on 1800614863 but only automated selections 322323 and promised transfer.

    Call 0901, first time.

    All calls placed on hold two first has expired.

    31 minutes in the third got a response from a man in India.

    In response to my question:

    Are reports of problems to install receivers purchased upgrade versions of Acrobat Pro XI?

    The answer was no.

    He took the details of the messages and offered to help him, but I refused.

    I bought and used all the upgrades Acrobat Pro 6.

    Complete installation attempted.

    Is done on a clean installation of Windows XP SP3 on an OQO02 with the only other program installed Office 2007 SBE.

    Post edited by: OQOroger in order to take account of the inability to connect to the Adobe Australia seller. Also Adobe site cannot stay on the Australia but returned to the USA. $A282 price paid. The USA buyer only pay $US199 (A191.57 of dollars at the current exchange rate). Account credit card already debited for purchase made yesterday. Corrected 'under' changed subject line 'was '.

    Post edited by: OQOroger corrected the price paid and the amount of currency conversion show additional paid by Australians to support 'local' (of India). Added "- Message" to the title to make it less cryptic.

    Post edited by: OQOroger Typical installation configuration are same problems except "There was a problem reading this document (57). window does not appear. First window showing and asking for acceptance of the terms of use has no lower section when there is no way to accept these terms except to close this window first displayed (check the window appears) and then restart the program when the lower panel is displayed.

    I was asked by the customer service Adobe to install Adobe Acrobat Pro XI using my download existing AcrobatPro_11_Web_WWMUI.exe, creation Date: 20/11/2012 22:05, size: 501 MB, under a newly created account (Adobe) after uninstalling and using Adobe Reader and Adobe Acrobat cleanup tool, AdbeArCleaner.exe program, File Version: 1.0.0.0, created : 04/05/2012 20:05, size: 1. 95 MB.

    Exactly the same problems and found reports. Same message posted on the Support Portal Adobe customer.

  • Error message - problem reading disc on Satellite

    I wonder if anyone can help. Was a virus on my laptop satellite scan to home (don't remember the model) 2 days ago, when the screen is blue and it was a mistake long message means the laptop has encountered a problem and stops.

    After that 2 hours, that the cell had not yet arrested so disconnected from the electrical network and removed the battery. To try to restart the computer, an error message pops up saying - CTRL + ALT + DELETE to restart problem reading disk. When I made the order it seemed be restart but then returned to the original statement of CTRL + ALT + DELETE. Tried again and amel and can't stand up boot.

    Someone had this problem before?

    Hello

    It seems that it's not possible access to the HARD drive or it is not possible to read the data on the HARD drive.
    I don't know why it happens, but first of all, you should check the boot sequence in the BIOS. If everything shows ok, so you should try to start form the OS cd and check if it is possible to install the new OS.
    If this is not possible if the HARD drive has a fault and you need to replace.

  • 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

  • Problem reading text file

    CVI programmer for several years, but it has been awhile. Trying to read in a text file that displays fine in say Notepad. The first line of text in the file is:

    All temperatures in ° F.

    If I use the scan function, say:

    public static char cdum [2048];

    ScanFile (DataFile, "%s > %s", cdum); I get these results:

    cdum [0] is - 2

    cdum [1] is 65 (which is the ASCII character 'A')

    The rest of the cdum is all zeros.

    In a hex editor in decimal display grouped by bytes, the line is:

    0 255 254 65 0 108 0 108 0 32 0 116 0 101 0 109 0 112... as the display looks like

    ybA.l.l.. t.e.m.p.e.r.a.t.u.r.e.s.. i.n.. °. F....

    So I get the scan function is to see the start character, then by pulling the 65 and placing in the location cdum [1], then strikes the character 0 and leaves the function of scan as she found an end of line. Trying to read in the entire line and the subsequent data float line, but is not serious, I can understand that our after I get over the initial problem above.

    Can someone help me with this? I have no problem reading in ordinary text files, but this one is as it is grouped in words rather than in bytes. Have you tried a bunch of different Scan function modifiers source and target [xt0, w #, etc.], but nothing seems to work.

    Data file attached.

    Thank you-

    Scott

    Hello

    I downloaded your file, it is opened in Excel because of its extension and the settings on my computer. I then wanted to save it as a text file normal to see in Notepad and read with a simple C program. In doing so, Excel told me: some features in your workbook may be lost if you save it in Unicode text.

    This is consistent with your observation of 16-bit data.

    LabWindows/CVI, unfortunately, does not support the Unicode character set and functions of the library operated at only 8-bit characters.

    So I would say to convert your file to 8-bit characters; You can also support the pursuit of the Unicode support in CVI here

  • Problem reading the worksheet after you use a DLL to write on the worksheet

    Hello

    I have a few problems reading a sheet DLL created in LabVIEW. The DLL is written in C++.

    I'll dexcribe what do the VI in the screenshots:

    For DLL_INIT = the first false steps the VI (LabVIEW) values and exports in a DLL initialization.
    DLL takes these values and not some und calculation, then wrote the measured values and the new calculated values in a csv file called 'filtered_values' and a file 'filtered_values_complete '.
    so, I have two files like this after initialization:

    1.0000000000; 1.0000000000; 18.8991610737; -3.2940000000; 0.0060000000; 0.9000000000; 6.5806287097; -3.2940000000; 1.0000000000; 0.0000000000; 1.0000000000; 0.0000000000;

    So now on DLL_INIT = true.
    For the calculation, the next step i read the "filtered_values" - file (LabVIEW), calculate the new values and write in filtered_values (DLL)
    And in the "filtered_values_complete" - file I will allways read the DLL entry first, so that I can check later, if the DLL has obtained the values to the right of the front step and then add the calculated values.

    For i > 0 initialization has been made:
    -the VI bed sheet "filtered_values" calculation and rotted the table 1 d in its unique values
    -The last seven values in the worksheet have been exported in the dll as well as five new measured values.
    -This DLL is still a few calculation
    - then it replaces the "filtered_values" - file and adds a new line to the 'filtered_values_complete '.

    This migth be a bit of confusion, so a small example, afer five steps it loooks like this:

    filtered_values:
    5.0625000000; 1.0000000000; 18.9300200447; -3.2870000000; 9.7320000000; 0.8997597592; 5.9159054233; -2.6533532901; 1.0000000400; 0.0000000000; 0.8078703403; 0.0000000000;

    filtered_values_complete:
    1.0000000000; 1.0000000000; 18.8991610737; -3.2940000000; 0.0060000000; 0.9000000000; 6.5806287097; -3.2940000000; 1.0000000000; 0.0000000000; 1.0000000000; 0.0000000000;
     
    2.0625000000; 1.0000000000; 18.8330081064; -3.2940000000; 9.7270000000; 0.9000000000; 6.5806287097; -3.2940000000; 1.0000000000; 0.0000000000; 1.0000000000; 0.0000000000;
    2.0625000000; 1.0000000000; 18.8330081064; -3.2940000000; 9.7270000000; 0.8999399568; 6.4077416273; -3.1451829134; 1.0000000100; 0.0000000000; 0.9480589053; 0.0000000000;
     
    3.0625000000; 1.0000000000; 18.7932988441; -3.2870000000; 9.7280000000; 0.8999399568; 6.4077416273; -3.1451829134; 1.0000000100; 0.0000000000; 0.9480589053; 0.0000000000;
    3.0625000000; 1.0000000000; 18.7932988441; -3.2870000000; 9.7280000000; 0.8998799074; 6.2394046705; -2.9768465052; 1.0000000200; 0.0000000000; 0.8988158138; 0.0000000000;
     
    4.0625000000; 1.0000000000; 19.0445703499; -3.2870000000; 9.7320000000; 0.8998799074; 6.2394046705; -2.9768465052; 1.0000000200; 0.0000000000; 0.8988158138; 0.0000000000;
    4.0625000000; 1.0000000000; 19.0445703499; -3.2870000000; 9.7320000000; 0.8998198333; 6.0754981785; -2.8129479844; 1.0000000300; 0.0000000000; 0.8521305805; 0.0000000000;

    5.0625000000; 1.0000000000; 18.9300200447; -3.2870000000; 9.7320000000; 0.8998198333; 6.0754981785; -2.8129479844; 1.0000000300; 0.0000000000; 0.8521305805; 0.0000000000;
    5.0625000000; 1.0000000000; 18.9300200447; -3.2870000000; 9.7320000000; 0.8997597592; 5.9159054233; -2.6533532901; 1.0000000400; 0.0000000000; 0.8078703403; 0.0000000000;

    So it's good enough that the VI and it works fine until some point when the just VI reads more calculation and x = sheet! There? becomes true.

    Most of the time it happens when the csv file is about 1200 lines

    Someone knows why this happens?

    Best regards

    Stefan

    Hello

    understood, that the error occurs somewhere completely else. the thread may be closed

    BR

    Stefan

  • 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.

Maybe you are looking for

  • Locate the hard drive on old PCU

    How can I find the hard drive on my old s (2007) PKU Dell so I can trash (for security reasons) until I put it the dumpster garbage?  THX for your answer.

  • How to build a VI that functions as a calculator?

    The front panel must have digital controls to enter the two digits and a digital indicator to display the result of the operation (add, subtract, divide or multiply) that the VI performs on the two numbers.  A slide switch to specify the operation to

  • Help for the reconciliation of table. Average cost

    So this is my attempt to imitate a function block that we use in our standard converter software - "Decimation filter" which is nothing more than a running average / mobile. The sample size is adjustable to execution of 2 to 64 samples (decimation fa

  • WAG160n ADSL2 + WiFi slow download speed

    Ive bought recently WAG160n and Ive saw that I have problem with slow WiFi. On LAN cable its ok. Internet provider gives my download 20 MB/s up and up to 1 Mb / its. Download. Ive visited http://www.speedtest.net/ and looked at only 2 Mbps. download.

  • WRT 1900AC and Windows 7 on the network or naming issues

    Background: I had a Linksys E3000 up and running for about 5 years in a stable network environment.  The E3000 is dead, and I put in a new 1900AC WRT to replace.  Doing of things set up correctly the main 'name network' in my network poster shows up