Modbus TCP/IP help

Hello Labviewers,

So I plugged in just a couple of the Honeywell UDA2182 controllers to my computer via an ethernet connection.  I have established communication using modbus (specifically the Datalogging and Supervisory Control of i/o Modbus server module) and I can say that reading through the computer.

My problem is that everything is in some weird alien langauge.  I can't tell what settings I am displaying data and data that receives my computer are massively crazy that relate to anything.  My guess is that I'm supposed to somehow convert these numbers but I don't know how to do in this regard.

Thanks for any help/advice,.

Mike


Tags: NI Software

Similar Questions

  • LabVIEW Modbus TCP with VFD. Could not establish connection / error 56? Any thoughts?

    Hello

    I'm trying to establish a connection to a VFD (Variable frequency drive) for academic research, for testing purposes. My implementation consists of:

    ---> LabVIEW (Master)

    ---> ABB ACS880 VFD (slave) with adapter from Fieldbus FENA-01

    ---> (ABB motor induction)

    ---> (Internal Combustion Engine)

    First of all, I'm new to Modbus TCP protocol, but I went through all the white papers of NOR, I have read and followed all the instructions from the manual of the VFD and the fieldbus FENA-01 adapter manual. I'm also pretty new to LabVIEW, but I'm confident, I have the knowledge to create the necessary VI.

    I created a simple VI who would be able to read some registers the VFD, which is attached below. The VFD is connected by Ethernet to network local ethernet and the Master PC is connected to the same network. When I run the VI, 56 error, which as I read from other messages of the forum is to not get answer within the given time.

    I tried the things:

    --> Check all cables are connected properly

    --> Double check the manuals

    --> Checking the FENA-01 in the chassis, which gives the indication of waiting for query modbus

    --> Looking for a gateway IP address, but I did not find, so I expected, I don't have to add it to the VFD parameters

    --> FENA-01 refreshing settings that always translates to "offline" status

    -->, I also checked in Labview > tools > Options where you check TCP/IP and there no port 502 written but I do not change it cause I had to leave the laboratory at the time. The port number was something like 3363 (something like that again)

    Issues related to the:

    --> Do I need to specify a new device somewhere in LabVIEW or in the control panel?

    --> What I need to create a separate VI to make the connection?

    --> What 'send 1150 for operating loan' and ' send 1151 for operation "means the control word?

    I would be very grateful if someone had information about this before the end of the week. I'm running tight on my period and I just can't stand this VFD with the limited power of the local command of monitoring mode.

    Thanks in advance for any help.

    Neo

    Hello, the problem is solved, and this could be a solution to problems like these.

    The IP address of the car was not on the same network as the Local Ethernet network connected to it. The IP address of the disk was 192.168.0.16 and the network was on 192.168.1.1. Once the IP address of the network changed to 192.168.0.1 communicated properly.

    I also have ping after and showed the communication.

    Thanks for the reply TST.

    Peace,

    Neo

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

  • Modbus tcp 1.2 problem with labview 8.5

    I have a new upcoming project that involves a link to modbus tcp.  I downloaded version 1.2 of the modbus library and installed.  Everything appears on my palette, but if I try to open one of the examples he comes as for version 8.6.  I am currently using 8.5 but the download says it works all the way back to 7.1.  Any ideas?

    Are you sure that you have selected the correct folder for the "installation"? When you download the 1.2 OR Modbus Library (here: http://zone.ni.com/devzone/cda/epd/p/id/4756), you get a zip file. Inside this file, you will see 4 folders, one for LabVIEW 7.1, (issue 71), one for LV 8.2 (case 82) and also records 85 and 86. So make sure that you have done the installation with the correct folder.

    Let us know if this helps or not.

    Kind regards.

    Robst.

  • need to read siemens S7 i/o in labview via Modbus/TCP

    Hi friends,

    We are developing an industrial project and facing a scenario in network as follows...

    Abt Project brief

    Its a treatment to the sweage plant. We use the NOR-PAC and Labview version: 8.5.1 for process control. We got a few 3rd e/s Party which must be monitior in Labview.

    Details of 3rd party

    -Siemens S7 - 200 with EM 277

    In our factory in the entire network is fo - TCP/IP. Now, we must take Siemens of e/s via TCP/IP in labview. To what extent this can be done. If it has to do with Modbus/Profibus converter can we do the configuration online without distrubing plant.

    Thank you & best regards

    Pravin Moussa

    Systems engineer

    Hi Pravin

    I am not sure of your diagram exactly what is your network. You have shown a link of the FO-tcp-ip for the S7-200. How does this happen? Or did you ask here, to work on options?

    Since the S7-200 can be slave profibus DP through the 277, it won't 'see' some other profibus IO anyway. You can use a Siemens CP243 module to give tcp - S7 - 200 ip connectivity. Also, is there a connection of profibus S7-300 and S7-200, all e/s of the S7-200 can be mapped to the S7-300, so you only need to worry about communicating with the S7-300.

    Another option

    Regarding modbus, they charge a lot of money for the Step7 from siemens modbus library. On the other hand, the S7-200 comes with a free modbus library, but it's the modbus RS485, not modbus tcp - ip series. Perhaps you could use this and use one of the many series-to-ethernet doors available.

    -Michael

  • You can trigger through communication Modbus TCP/IP PLC data acquisition without using a loop for?

    Hello

    I am trying to contact a facility through a Modbus TCP/IP communication PLC. I'm new to this method, but the idea is that the installation will send the logical (Boolean) values 1 bit by ethernet to my workstation which read and then will begin data acquisition. Basically, I need a triger to come to my pc. I placed my vi inside a structure case T/F which will run according to the signal, it receives data acquisition. However, for it constantly waiting, I put this in a loop for. The works of vi, but playback signals sometimes lagging behind due to the loop for. If I take the loop out and just run labview permanently, it works perfectly, but I know that the option is only for debugging and should not be used. So my question is, is there a better way to wait for an incoming signal?

    Hello!

    Please note that the order of execution of the write operations on the shared variable 000002 is not determined.

    For example, nothing prevents this order of execution:

    (1) value false 000002

    (2) set to true 000002

    (3) execution of the loop

    In what concerns the delay, you might consider placing a waiting vi in the case of 'false', or the loop uses 100% of CPU if I'm not mistaken...

    Kind regards

    Marco

  • Strange signal Modbus TCP/IP

    Hello everyone:

    I am facing a strange problem on the modbus TCP/IP communication, we have built the connection and use the modbus library OR read the analog signals, it works, but the return signals seems odd, for example (A 40-0 for value: 5, 3F80 for value: 4000 to 1 and 2), I went throngh modbus specification documents , but in these values do not respect the rules, is there anyone has idea about this?

    Thanks in advance.

    Best regards

    Are you waiting for floating point values? Modbus transfers bytes. It's the software front end to convert the bytes floating-point or of other signed/no signed integer values, 32-bit integers...

  • Control PLC Modicon-Quantam of Modbus TCP/IP Ethernet.

    Has anyone use LabVIEW to program a PLC Modicon-Quantam successfully using Ethernet TCP/IP? I tried the examples MB Ethernet (master/slave) in the download nimodbus121 and it doesn't work. I really need to know the best way to connect and communicate to a PLC Modicon-Quantam using LabVIEW, Ethernet Modbus TCP/IP using the Excel spreadsheet. I need to write entry registers (write) shift in and read from holding registers. The software that I SMTX Modbus/TCP Master control ActiveX does not completely for me. I can ping to the controller from cmd prompt. I saw this webcast - creating a server of e/s Modbus TCP with the LabVIEW Datalogging and supervisory Control Module 8. I've also seen a webcast on OLE for process control (OPC). What should I write LabVIEW control and view records by using LabVIEW flags? Someone at - it a LabVIEW example that I can start with? Should I buy the DSP module for $1280,00? This will solve my problems?

    If you have found return data that you do not understand that I recommend trying to send output known of the automaton at least to determine what kind of conversion has to happen. This document talks about the Optomux protocol that can be used with programmable automata. You will need to find specific documents that tells you how to convert these data into LabVIEW. You can also start a new forum, since this is a separate issue from the original.

    -Hunter

  • Modbus/TCP connection to the controller of power Eurotherm EPack

    There are examples of how to connect to a power controller Eurotherm EPack a modbus/TCP connection?

    I downloaded the Modbus LabVIEW ni_lib_modbus_library library - 1.1.3.32.vip and installed using VIPM.

    However, I am not familiar with the Protocol modbus and terminology such as coils, keeping records.

    I can't even properly run examples for Modbus master and slave to this library :-(

    Most important for me now is just to read the value of the artwork process.

    "ITools" Eurotherm controller software provides information about something I think are an address of memory the value of process I want to read.

    However, I have no idea how to set the various parameters to get successfully connect and read the value of the process.

    Trying to solve my problem, I managed to have basic communication and engineering data conversion.

    Now I can read values of process as the power line frequency, voltage and others.

    Once you know, it's very simple (once you have the modbus library)

    Some things that remain unclear:

    -What values are 32-bit and 16-bit?

    -is the method of addressing identical for all parameters?

    -is it the same for reading and writing?

    I would like to be able to write the target value, for example.

    I'll contact the seller for these outstanding issues. The manual is not really clear (at least not for me). He mentions that some values may be treated differenly (they 16bits, but globally, so 5001 with a scale factor of 100 means actually 50.01 for example).

    See the attachment for reading cover base.

  • change comm driver for koyo modbus tcp

    I have a working system that uses a koyo plc and modbus driver.  I change to the controller for a scadpak with modbus tcp.  Is it possible to switch the comm driver without having to recreate all the tags and the screens that were created under the former comm driver?  I know I have to change registers views use to reflect the scadapak controller, but I hope I don't have to start!

    OK, I got it work.   I created a new modbus ethernet driver.  Then I exported an empty xls file to this new driver.  I then exported a xls of the FORMER pilot with the old information.  With the two spreadsheets open, I then cut and pasted the old news into the new xls file.  Then, I changed the former membership numbers for the new numbers, which I used with the new PLC.  It WORKED!   I think it is best when you change the PLC.

  • Modbus TCP and Beckhoff BK9100 registry/address of e/s / c

    Hello

    I read this thread and it helped a little, because at the beginning, there is the same problem.

    The problem is that I'm trying to but it didn't work.

    I use the Modbus Library of nor and the MB Ethernet Master and Slave example. I have the communication if I write the IP address in the box because COM led flashes. But I do not know what records I have to write. Where can I find out what registry/address my have. I do not understand how to address the DO. I know it's a basic knowdledge, but I don't get it and its driving me crazy.

    IAM happy for any help

    Hello

    Thanks a lot for your help and advice.

    I solved the problem by changing the output Terminal.

    Greetings

  • Problems using Modbus TCP accessible by NI OPC Server

    Hello

    I use OPC OR server to access a module of measure. The accumulation is pretty easy, my system with NI OPC, modbus door and the module connected with RS485.

    There is a thermocouple to provide me with some examples of data.

    But there is the point. I know, my data is in the records to be kept and I can access, but each type of data, I'm train does not bring my outgoing, any other (sometimes huge with e34, sometimes very small as e - 13...) my data sort, I do not understand.

    The type provided by the module must be single precision.

    The address used to be lookout is 41000 Labview in is just 999 and in the 'target' - OPC Server I get some values to 401000 but not useful.

    I also get the same results to access the 301000 into different types.

    Read/write or read-only is equal.

    I tried to tell my mutual FUND values are strings, floats, words, BCD, and all other possible means what mutual FUNDS offered to me, but nothing results in a usable temperature.

    I hope that I missed something and it might suggest.

    Cateros

    Finally, the issue is resolved.

    We tried a few others setting for the device in NI OPC modbus Modbus function 06 use simple written record. Using the Modbus 05 functions for single coil written and use default Modbus byte order.

    These parameters were not default and I tried some combinations but bad not these.

    As the tag data type, we tried anyway and got the content of the Register Holding data [0].

    Now it works, and the value is the casting of Holding register [0] and [1] Holding and I got the temperature.

    Already you are quite right, thanks again.

    Cateros

  • Error of TCP connection when sending MODBUS for WAGO controller 750-881 orders after 113655 bytes of data have been sent

    Hi all

    I'm new in the world of labview and trying to build a VI that sends commands to a controller of the WAGO 750-881 at regular intervals of 10 ms.

    To set each of the WAGO comics at the same time, I try so to send the Modbus fc15 command every 10ms using Labview standard TCP write module.

    When I run the VI it works for about a minute before receiving an error message 56 telling me the TCP connection has expired. This strange thought, I decided to record the number of bytes sent via the TCP connection while running the program. In doing so, I noticed that the link broken after exactly 113655 bytes of data have been sent each time.

    Thinking can I have sent too many messages, I increased the delay of the loop of 10ms to 20, 100 and 200 ms, but the error remained. I also tried to play with the TCP connection timeout and the writing TCP timeout, but none of these had no effect on the problem.

    I do not see why this error occurs, such as the program works perfectly up until what brand 113655 bytes.

    I've attached a screenshot of the base VI (simply showing a MODBUS command sent every second) and a more advanced VI (where I am able to control each of the WAGO manually by setting a frequency at which the DO is to switch between ON and OFF).

    If anyone has any ideas on where the problems lie, or that I could do to debug more program this would be greatly appreciated.

    AvdLinden wrote:

    Hi ThiCop,

    Yes, the error occurs after exactly 113655 bytes each time. Time-out control, I would like to use is 10ms, but even that will rise to 1 s or 10s does not error, which leads me to believe that's not the issue (as well, do not add any delay in the while loop, so let it run at the maximum speed showed that the TCP connection is able to send all the bytes 113655 in less than 3 seconds again directed towards control of time-out) is is not the issue here).

    I tried the suggestion of Marco but having difficulty to translate the string returned in a readable string (rightnow the answer given is "-# +" ' ").

    As for your second suggestion, I've implemented something similar, where I created a sub VI to establish a TCP connection, send a message and then close the connection. I have now to build each message and then send the string to the Subvi, which sends the command to my application successfully. While not the most elegant method to solve the problem, it solves the problem of time-out, which means that I am able to send as many orders as I want. So in this sense, the problem has been resolved.

    If you have advice on how to properly read the TCP read the output, I want however to see if I could not get my first program to work because it is slightly more robust in terms of timing.

    MODBUS RTU TCP is a binary protocol, as you show in your base VI, where you put in the form the data stream using byte values. So you have to interpret the returned answer accordingly with the Modbus RTU spec in the hand. Now what is probably happening is that the connection is suspended after a while because you do NOT read data from the device sends as response to your commands. The TCP/IP stack cushions these bytes and at certain point of overflow internal buffers and the connection is blocked by the battery. So to add playback of TCP in strategic locations (usually after each entry) is the right solution for this. Is there a reason any that you do not use the PROVIDED Modbus TCP library?

  • Modbus contact PLC

    Hi all

    We try to add 20 saving file read function code in order to read the brief in bulk from PLC. We used the modbus for Labview library to communicate with the PLC with Modbus TCP/IP, but when I addes the code function 20 to the cluster of the MB Ethernet Master query entry reading registry Palette entry, the program displays an error. I'll be really appreciated if someone could help with this problem!

    We hope all have a good weekend.

    Best regards

    Sophie

    Actually... that is a constraint on the second entry to "build the table? ' It is difficult to tell from the image. If so, what is the data type of this cable?

    That must be an array of U16s, because the "quantity" and "home address" are U16. However if the value '1' is a larger data type as U32, labview perhaps at upconversion of the whole table that would result in a larger data set than expected and could cause error 2. You can check on this?

  • ComBox MODBUS - difficult to write in the registers of the S.R.I.W.

    Hey guys,.

    I'm talking to a UPS (ComBox XW +) via MODBUS TCP. I can read the values of read only registers very well, and they line up exactly what I see on the interface of the web page they have. However, when I try to write a particular register r/w, I get an error of the incompatibility of function (-538172 using modbus smithd API). Also, when I try to read the register R/W, I always get the value 65535. This leads me to believe there something wrong with my configuration of device, but just in case, I thought that I would make sure that I wasn't doing anything weird in the code. Please the the image of the block diagram, as well as the manual that I use for the device in the attachment.

    There is a small note MODBUS online as well:
    http://solar.Schneider-Electric.com/wp-content/uploads/2014/04/conext-TL-using-Modbus-application-No...

    Hey Thomas!

    Thanks for your help, however, this link is not available more when I try to open it.

    In any case, this problem is resolved. I was just writing the bad slave ID! The other slave was present on the network, but it is card MODBUS is completely different, that's why I was seeing these weird values.

Maybe you are looking for

  • HP Pavilion DV6t - 6100 CTO Quad: HP DV6t - 6100 CTO Quad band dual + Bluetooth upgrade

    I would like to know if this model is compatible with the following cards: http://www.eBay.com/ITM/HP-RALink-RT3090BC4-802-11b-g-n-WiFi-N-BT-Bluetooth-PCI-e-card-SPS-602992-00... If this isn't the case, then what kind of dual band + card bluetooth ca

  • Foires config pages (WRT160N)

    I had a problem with the speed of the internet on one of my computers, then I tried a firmwareupdate since version 2.0.0.1 for 2.0.0.2 and upgrade page stopped after a while. I thought it was an auto reset of the router, but internet has always worke

  • Moving / transfer program islands of old again portable laptop

    Hello My Question is: How do I move/transfer program files such as Word and Excel to my old laptop to my new laptop HP? Can't wait to hear from an expert. Kind regards Saeed

  • Driver missing for Windows 8

    After you have installed Windows 8 Pro 64 bit on my XPS One 2710, Miss me the driver for this device: Hardware ID: ACPI\VEN_FIT & DEV_0002ACPI\FIT0002* FIT0002 on: LPC controller chipset Intel (r) Express H77 - 1E4A

  • why I hear my videos but I can't see them

    I'm unable to watch videos, but I can hear what is on the video. What should I do to fix this?