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

Tags: NI Software

Similar Questions

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

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

  • Satellite L30-115 - deleted TCP and FTP packets

    Hi all

    I have a Toshiba Satellite L30-115 and a DSL connection. I have a problem with my laptop running Win XP SP2 with AVG anti-virus.

    TCP and FTP packets are systematically deleted by Firewall setting or my system. I tried these tools that rewrite the registry entries for the TCP/IP protocol in Windows XP, but nothing seems to fix. Everything that affects the TCP fails systematically:
    [My browser tells me that the connection was reset during any process, AVG says automatic updates failure but 1] I always got ping www.yahoo.fr and strangest of all, Skype connects properly (likely because it uses another protocol and also because it is in the exception list from my firewall).
    Here is that I only have the native Win XP firewall and not others (license AVG, I've got is only to protect web, mail and virus).

    Another thing is that the problem persists even when I turn off the firewall or if I play around with the settings.

    Help, please.

    Didier

    Hello

    Check this short work around:
    Start the CMS (control console)
    Then type this command: * ipconfig / renew *.

  • 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

  • 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

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

  • 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

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

  • How to fix and clean Windows registry

    I want to know toll-free how Fix and clean Windows registry and repair registry problems with a tool:

    Easily open/repair. DRF files

    Optimize and increase the performance of the PC (up to 150%)

    Protect privacy and files everything online

    Start and stop more quickly

    Eliminate and prevent most accidents

    Eliminate the computer slowdowns

    Protection against malware

    Note: I use the Version of Microsoft Windows Vista Ultimate 32-bit.

    Hopefully I can get the help I need.

    e-mail: * address email is removed from the privacy *

    They are never recommended by Miscrosoft, but MS himself admits this register of overtime fills and creates problems. Registry Cleaner, I think, is the only one built in the MS utility missing in its operating systems.

    Microsoft Windows Live OneCare safety scanner had a free registry cleaner .

    As you can see live One Care has been abandoned

    And read this information and the views of these Forums on registry cleaners:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-performance/is-there-a-Microsoft-licensed-registry-cleaner-i/b03cd0ad-A92C-41B2-9bf0-b7be06c43047

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-networking/does-Microsoft-have-a-software-that-cleans-repairs/4545749b-3c3e-41bf-8f9a-326a58135088

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-performance/which-is-the-best-registry-cleaner-for-Vista/cb1d3b65-4396-4A42-b83c-a1db7602ba06

    See you soon.

  • Have the intermittent connection when you use WiFi and conflict error IP address when using Ethernet

    I have intermittent problems with my wireless internet connection. I contacted the ISP and they analyzed the configuration of the modem-router, changed some and told me to try to reconnect. I try again and the connection is OK. The ISP has caress each other on the back and sent me on my merry way not-so-small. Problem is at an unpredictable time, problems (do) happen.

    Usually the failure scenario does not have a huge problem - plus one
    gene as a problem. I just keep trying to connect through Windows
    Network and sharing Center, and possibly the connection is made. But in some cases, time is critical; I eventually lose 10 to 20 minutes of typing-search-typing-correction-etc in a web form when the connection disappears before making a SHIPMENT. (Some time, after the failed wireless and re - connect, I was actually able to recover pretty quickly that the site has not been exceeded me.) So in this scenario I can't lost any strike.)

    I would like to connect my pc to the internet via an ethernet cable
    the modem-router. I could take this approach right after the wireless
    connection failed. Or in a preventive way, when I know I'll be typing-
    mode of research-type-fixed-etc and I want to be really sure. When I tried this, I get the error "Windows has detected an IP address conflict.

    What I do at this point to get around the Wi - Fi connection and connect through the Ethernet cable?

    The topic is edited for clarity of the moderator.* *.

    [Original title: LOST INTERMITTENT WIRELESS INTERNET CONNECTION]

    It is not clear what parameters your ISP technology management may have changed on your modem/router.  As a general rule, the ISP concerned the link between their server and your modem, but any fiddling with settings that control this link will not effect either on the link between your computer and the modem/router.

    If you still haven't reset your router to its default settings, do not unless you know the necessary internal router settings for you connect to your ISP.  If you have a cable Internet connection, the default settings may work OK, but if you have a DSL, they probably won't.

    You should not get this "IP address conflict" error when you connect the Ethernet cable.  Follow these steps:

    Open the "network and sharing Center" and then click on "change adapter settings".  You should see an icon for your wireless network adapter and an icon for your 'connection to the Local network' (your Ethernet connection).

    • Right click on each of the icons, and select 'properties '.
    • There should be a list titled "this connection uses the following items."  In this list, select "Internet Protocol Version 4 (TCP/IP)" and then click "Properties".
    • The radio buttons to "Obtain an IP address automatically" and "Obtain DNS server address automatically" should both selected.  If this is NOT the case, do so and OK your way out.  Furthermore, cancel your way.

    If a card has been configured to use a specific IP address, your "IP address conflict" should now be fixed (you may need to restart the computer for the change to take effect).

    If cards were already configured to obtain its IP address automatically, the problem lies in the configuration of your router.  You will need to access the router's Web utility to study and make changes.  To help you provide the brand and model of the router of the label on the back or the bottom.  Also do the following to a time where you have an Internet connection:

    Open a command prompt window (type cmd in the search box and press enter)

    1. In the black command prompt window, type the following command, and press ENTER after each line

    ipconfig/all > "% userprofile%\Desktop\ipinfo.txt".

    Notepad '% userprofile%\Desktop\ipinfo.txt '.

    output

    1. In the opened Notepad window, click Edit > select all (or press CTRL + A) and then click Edit > copy (or press Ctrl + C)
    2. In the body of your Question, right-click > paste (or press CTRL + V) the data of the Notepad window
    3. Close Notepad and remove ipinfo.txt from your desktop
  • Is there a way to group TCP and UDP services?

    Hello

    We are doing a migration of some firewalls Checkpoint to PIX 7.x. The ASDM has evolved enormously since PDM on 6.x, and I'm starting to think it might be useful to use, compared to the CLI.

    But one thing that we noticed: Checkpoint has a handy feature that allows the creation of 'service groups' which can have all TCP and UDP services.

    This makes it easy to read Checkpoint modules. On the PIX now, where his was necessary to have the udp and tcp protocols allowed to a destination, I had to create 2 separate acl for udp, TCP.

    Anyone know of a way to unite the tcp and udp together in a group? I feel that the answer is no, as long as it is not possible in the CLI and the ASDM is, in my opinion, just a 'display' CLI.

    TIA-

    Gary

    Hello.. of course, you can use the object group service command (I don't remember h: to do from the graphical interface as I don't have it in front of me right now). You c a group of udp ports, tcp or tcp and udp ports so very similar to the way in which you can do control point.

    object-group

    To define groups of objects that you can use to optimize your configuration, use the object-group command

    in global configuration mode. No form of this command to delete groups of objects of the

    Configuration. This command supports IPv4 and IPv6 addresses.

    object-group {Protocol: network: icmp type} obj_grp_id

    No object-group {Protocol: network: icmp type} obj_grp_id

    object-group service obj_grp_id {tcp | udp: tcp - udp}

    I hope that helps... Rate if he does!

Maybe you are looking for