Problems using Modbus TCP accessed by NI OPC Server

Hi there,
i'm using NI OPC-Server to access a measurement module. The buildup is quite easy, my system with NI OPC, a modbus gate and there the module connected with RS485.
There's a thermocouple to provide me some sample data.
But there's the point. I know, my data is in the Holding Registers and I can access them, but every data type I'm trying doesn't bring my my data out, just any other (sometimes Huge with e34, sometimes very small like e-13...) sorts, i can't understand.
The type provided by the module should be single precision.
In Lookout the address used to be is 41000 in Labview it's just 999 and in the "target" OPC-Server I get some values at 401000 but not useful.
I also get the same results accessing 301000 in different types.
Read/Write or Read Only is equal.
I've tried to tell my OPC that the values are Strings, Floats, Words, BCD and all other possible ways OPC offers me, but nothing results in a usable temperature.
I hope I missed something and you could suggest it.
Cateros
Solved!
Go to Solution.

Thanks for your reply.
in LabVIEW I'm using the provided Modbus Libraries. If I unbundle the Holding registers, my value appears at Holding Register [0], I'm type casting it to single and get the sample temperature. (Address 999->unbundle->typecast->value)
In NI OPC, I'm reading ( [depends on zero based addressing]  300999/301000 equal to 400999/401000) an already typecasted Holding Register [1] compared to LabVIEW (and the value changes in the second or third digit behind the comma and they are changing at the same time). Data type in the tag is float.
 Another disturbing thing is even if I change in the options "using zero-based addressing in registers" my value does not change.
If I'm reading two addresses close to each other (as you mentioned 401000-401001) I'm getting an unknown data type and no results. How do I read multiple addresses without such errors? And how do I specify a special register to read?
Scaling should not be the problem, I am having three ways to get my value (FTP-Server on the gate (just a *.dat file with correct type), software the the module manufacturer (while measuring and configuring the module) and LabVIEW(as can be seen above)) .
Sadly, I have not found any useable modbus documentation about the module (just it can use modbus, you have the registers, you could read/write and fine)
When I'm adding a second couple to the module, in LabVIEW Values in Holding Register [2] and Holding Register [3] appear and are changing.
Cateros

Similar Messages

  • Problems using Bex 3.x on Citrix Terminal Server Nw2004s

    Hello,
    we've got some problems using Bex 3.x on Ctirix Terminal Server.
    1.) There are 3 Windows displayed (1)sapbex.xla
    remote (2) Mappe 1
    remote (3) Mappe
    Why these Remote-Windonws are diplayed ? Do I have to set a path ?
    2.) There occurs after a time when the Query should be changed ? No entry in SM21 ? An unexpected 'unable to show modal form within this context' error occured in wdbrlog"
    Is there any connection time out-setting for the Bex ?
    Thanks
    Frank

    Hi,
    the problem resulted while implementing Citrix Hotfix XE104W2K3R02 and was fixed with XE104R02W2K3001.
    Citrix Info:
    Hotfix Rollup Pack XE104W2K3R02 - For Citrix MetaFrame XP 1.0 for Windows Server 2003
    Known Issue(s) in this Release
    • After applying this hotfix rollup pack, seamless connections to Microsoft Office applications may display multiple icons on the client taskbar. To resolve this issue, apply Hotfix XE104R02W2K3001.
    Hotfix XE104R02W2K3001 - For MetaFrame XP 1.0 for Windows Server 2003
    Issue(s) Resolved in this Hotfix
    1. After applying Hotfix Rollup Pack 2, seamless connections to Microsoft Office applications may display multiple icons on the client taskbar.
    Kind regards
    Frank

  • Using Modbus TCP I/O Server with new DSC Shared Variables in LabVIEW 8.6

    Hello,
    I'm using LabVIEW 8.6 and want to communicate with a Beckhoff BK9000 Ethernet TCP/IP Bus Coupler via Modbus TCP. Instead of using the NI Modbus Library, I've tried the new LabVIEW 8.6 feature "DSC Shared Variables" as described at the bottom of this page: Latest NI LabVIEW DSC Module Features and Demos. Reading of analog input bus terminals works fine. However, I haven't figured out yet how to write on an anolog output bus terminal with these shared variables.
    It's about a 16 bit analog output and I need to write to the registers 0x1121 and 0x0801. It works with the NI Modbus Library (just using function code 6 and choosing the registers), but on the other hand I don't know which shared variables I have to choose for these registers. I've tried several data items (e.g. 400001 upwards as well as 402049 for 0x0801) but none of them worked. I would be glad for a short explanation - thanks in advance for your support!
    Regards
    utechle

    The Beckhoff documentation says, that holding registers start with 0x0800. I've checked this by using the NI Modbus Library. I used the "MB Ethernet Master Query.vi" togehter with the function code 6 for "Write Single Registers", changed the settings of the starting address to hexadecimal view and entered 801 (since it starts with a control byte in 0x0800 and the data out word follows in 0x0801). Furthermore, I had to address register 0x1121 in the same way for resetting the watchdog. As I've mentioned in my first post, this method works fine. However, I haven't found out yet which shared variables i have to use for accessing these registers.
    On the other hand, it's no problem to read data from analog input bus terminals using shared variables. They start with 0x0000 (status byte) and 0x0001 (data in word) and I can read data with the shared variable and data item 300001, respectively.
    Message Edited by utechle on 01-27-2009 11:12 PM

  • Using modbus/TCP with USB ethernet adapters

    I have a test stand where I have a handful of USB instruments and a single modbus/TCP slave.  I'm considering adding a USB ethernet adapter to the stand so that there is a single USB cable connecting the computer to the hardware rather than both a USB and an ethernet connection.  Does anybody out there have experience (good or bad) using USB ethernet adapters with modbus/TCP slaves?
    The existing USB instruments all use ASCII/SCPI-style command sets.  The Modbus/TCP slave is an Automation Direct EBC-100.  Nothing high-bandwidth or low-latency.  Basically, the computer issues no more than a handful or command or request (ether SCPI or Modbus/TCP) per minute.
    Mark Moss
    Electrical Validation Engineer
    GHSP

    Adam G wrote:
    Hello Mark,
    I was wondering what NI hardware you are going to be using in your application? Also are you going to be using LabVIEW for the programming? Have a great day!
    Best Regards,
    Adam G 
    The test software is written in LabVIEW, and the test stand uses M-Series cards for data acquisition.
    Mark Moss

  • Using modbus tcp/ip to control vfd speed

    Hi, I'm brand new to Modbus and fairly new to LabVIEW. I do not have any code constructed yet, so I'm posting to here so that hopefully I can get led in the right direction. I have downloaded the free modbus library because after explaining to NI what I needed, they told me that this would give me enough functionality. I am trying to read the vfd frequency and display it on my front panel, as well as be able to adjust the frequency of the vfd through the front panel. I'm sure that this is a fairly simple and straightforward solution, but since I am brand new to modbus, I really am not sure what values I need to get in order to make this happen. I'm assuming that I need to initialize a tcp master, but what values do I need to feed it so that it can read anything from my vfd? I have an ABB ACS355 VFD with a FENA-01 ethernet adapter. I have the manuals for both and I see lots of parameters and numbers but I don't know how to make sense of them. Are there any keywords I should be looking for in these manuals? Sorry for posting such a general question but I really don't know how to begin this properly. Thanks in advance for any help!

    Hello,
    A great place to get started will be the shipping examples in the example finder. In LabVIEW, if you go to Help>> Find Examples and the search "Modbus" you will see and example called Modbus Fundamentals.lvproj. This uses shared variables and can communicate with TCP/IP (or ethernet etc) and is set to connect to the localhost. This example also shows how to read and write  using Modbus. There is a readme also included in the project if you need more information.
    Additionally, there is a great getting started white paper that may be helpful for you. I've linked it below:
    Introduction to Modbus: http://www.ni.com/white-paper/7675/en/
    I hope this helps!
    Best regards,
    Anna L
    Applications Engineer
    National Instruments

  • Controlling a Load Drive using Modbus TCP or Ethernet IP

    Hello,
    My name is Francisco Loras. My team and I are looking forward to building a dynamometer in order to obtain test standards for motors. We're going to use a Load Drive in order to control the Load Motor. The Drives we have been looking at are either from ABB or from Yoskawa (a1000), both offer the option of connecting via Modbus TCP/IP or via Ethernet IP. I was wondering if someone has previously worked with them and could give me some feedback on either the drive or connection type. I would preferrably use Ethernet because the complete system we're building requires at least one more ethernet connection (for a Power Analyzer).
    Besides this, we were counting on using a Chassis from NI to put everything together. When looking at the specific modules, we considered two options:
    1- Using an ethernet module (from NI that fits in the Chassis) to drive in both the Power Analyzer and the Load Drive.
    2- Using an ethernet switch setting specific IP addresses. 
    Has someone used any of these before? A switch would be close to 50 times cheaper than using the ethernet module itself so I'm a bit worried there might be something that limits it or that I'm missing (noise maybe?).
    To conclude, I'm looking forward to se if someone has:
    1) Used Ethernet IP or Modbus TCP/IP to control a Load Drive, which connection type is best if any.
    2) Recommended any specific load drive
    3) Experience with using an ethernet switch or an ethernet module.
    Thankyou very much for your help and time,
    Francisco
    PD. If something is unclear (which I sense it is) please ask me and I can develop more on it.

    Florasga,
    Which ethernet module are you looking at? And what kind of chassis are you planning on using?
    There's some more information on Modbus here. Also, have you seen this forum post? 
    Kyle T.
    Applications Engineering
    National Instruments

  • 2 Problems using lync client andriod conncet to lync server 2013 ( contacts status is Presence Unkhown)

    Hello Everybody
    I have installed lync server 2013 in my lab . Everything is ok . but internal mobile client in my LAN can not work with lync !
    I installed lync server 2013.
    I create 2 DNS record to lync-server : lyncdiscoverinternal and lyncdiscover.
    clients  on PC (windows) work and everything is ok . when user use Anroid phone , cleint connect to lync server and list connnact list .BUT when Send IM to contact or start video call come this error :
    " Failed to process the server response.Please try again . if the problem persists,contact your support team."
    This is first problem. Another problem is the contact list for every user status  is "Presence Unkhown" !
    No online , No Offline and all of contact status "Presence Unkhown" !
    If i had to config mobility in in lync server 2013 ? or mobility service built-in in lync server 2013 ?
    please help me .

    Hi Meysam Halvaei,
    As Thamara mentioned, you need to deploy reverse proxy.
    Lync 2013 mobility clients are using a separate dedicated Ucwa parameter the URL is the same web services location as provided by the
    External/Ucwa parameter.
    You need to have a look at the following diagram.
    The Lync 2013 mobile client will need to connect with the external web services. The way Lync is designed this communication is always established using HTTPS/TCP 443, so the traffic
    will need to pass through a reverse proxy or similar service that will take this communication and forward it to the server hosting the external web services, now using port 4443 instead.
    Best regards,
    Eric

  • Problem Using GetNetText when accessing secured (https) sites

    I have been having trouble getting GetNetText &
    PostNetText to work with a secured (https) server. I need to
    execute PHP files located on this server. I have heard of SecureNet
    Xtra but before I try it I want to ask if there are other ways to
    do this. Thanks in advance.

    You should be able to access secure sites when running in
    Shockwave but
    not from a projector. Like you suggested, you'll need the
    SecureNet xtra

  • Problems using LIBRARY to access external DLL

    Windows 2003, Oracle 10g and 11g.
    We have an external dll that we can call using 'create library' and a wrapper function. The wrapper functios works well from SQL*Plus - our function is executed and the external dll does its work.
    When we add the function to some Apex processing, the session hangs at the point at which the wrapper function is invoked and control never returns - we have to kill the database session.
    Any ideas as to what might be happening? I thought that a permissions error would be returned immediately, I don't know what would just make the session hang.

    Windows 2003, Oracle 10g and 11g.
    We have an external dll that we can call using 'create library' and a wrapper function. The wrapper functios works well from SQL*Plus - our function is executed and the external dll does its work.
    When we add the function to some Apex processing, the session hangs at the point at which the wrapper function is invoked and control never returns - we have to kill the database session.
    Any ideas as to what might be happening? I thought that a permissions error would be returned immediately, I don't know what would just make the session hang.

  • How to fix problems using Firefox to access BT Email Account - works perfectly using Google Chrome.

    I can't log onto BT Email using Firefox but can with Chrome. I get to a point where I have a white screen background with blue hyperlink and black text only.
    This has happened simultaneously with constant 'untrusted' warnings.
    I unloaded / reloaded and also reset Firefox.
    Any help or advice would be appreciated.

    Check the date and time in the clock on your computer: (double) click the clock icon on the Windows Taskbar.
    Check out why the site is untrusted and click "Technical Details to expand this section.<br>If the certificate is not trusted because no issuer chain was provided (sec_error_unknown_issuer) then see if you can install this intermediate certificate from another source.
    You can retrieve the certificate and check details like who issued certificates and expiration dates of certificates.
    *Click the link at the bottom of the error page: "I Understand the Risks"
    Let Firefox retrieve the certificate: "Add Exception" -> "Get Certificate".
    *Click the "View..." button and inspect the certificate and check who is the issuer of the certificate.
    You can see more Details like intermediate certificates that are used in the Details pane.
    If "I Understand the Risks" is missing then this page may be opened in an (i)frame and in that case try the right-click context menu and use "This Frame: Open Frame in New Tab".
    Note that some firewalls monitor (secure) connections and that programs like Sendori or FiddlerRoot can intercept connections and send their own certificate instead of the website's certificate.

  • Unable to use SSL between Access Manager and Directory Server

    I am trying to set up Access Manager to use SSL when communicating with Directory Server. Access Manager 7 is running under Sun Web Server 6.1. I have configured Directory Server to use SSL using a Self-Signed CA and have imported the CA certificate into the certificate database for Web Server. When I change the Access Manager configuration as specified in the Admin Guide to use SSL and restart the Web Server, Access Manager fails with the message
    (among many others)
    netscape.ldap.LDAPException: SSL connection to
    eauth1.arc.nasa.gov:636, SSL_ForceHandshake failed: (-8157) Certificate extension not found. (91); Cannot
    connect to the LDAP server
    I am able to connect to the Directory Server instanc with JXplorer using SSL (with a complaint about an unknown CA). Can someone explain the error message so that I can fix the problem or work around it?
    Thanks

    in the initial part of AMConfig.properties, you'll find an entry similar to trustSSLCerts . This, by default, is set to false. Trying setting it to true (AM web server instance will need a restart). This lets AM continue with SSL handshaking inspite of errors. Am not sure if this affects AM to DS connectivity as well. It sure affects AM to AM communication (in a multiple server configuration).
    Naturally, it is not recommended that you use this feature when you are ready for production, but atleast it'll let you be sure that apart from the cert issue, everything else is okay.
    Hope this helps.

  • TCP Connection Issues with OPC Server and GE Versamax

    Hi there,
    I have an installation of Lookout 6.0 coupled with the OPC Inductrial Automation servers.  In my application, we are running two instances of the GE Versamaz Ethernet driver to communicate with two remote (over the internet) GE Fanuc Versamax PLCS.
    Every few days, the two PLCs lose connectivity.  It does not appear to be a LAN connectivity issue as I can still log into the PLCs using the GE software.  To fix the issue, the Lookout software must be restarted.
    Has this been seen by anybody else?  This poses a significant problem as lookout is used to monitor the PLCS at sewage stations - each time the connections are lost we have to deploy technicians to the sites to ensure all is working.
    -andrew

    Hello Andrew,
                           When the connection is terminated are you getting any errors or alarms? If so what are they? Also you can try to replace the object that is connected to the PLC and make sure it has the correct settings. It may also be due intermittent networking issues, losing connection and not able to connect with the object again unless Lookout is restarted again. I have not heard about any such networking issues. The attached document can be used for reference.
    Regards,
    RMM
    http://digital.ni.com/public.nsf/websearch/5ECD2AFA039B45C186256B1300621722?OpenDocument

  • Problem Using JSQL level 4 driver for SQL Server 2000

    I am having problem , connecting to my Sql Server 2000 ( deployed on Windows 2000 Professional) using Microsoft JSQL level 4 Deriver .
    I am doing it with following code,
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
         Connection conn = DriverManager.getConnection
    ("jdbc:microsoft:sqlserver://192.168.0.232:1433;databaseName=DBNew;user=nakhter;Password=java;");
    It gives me following Exception ,
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Login failed for user 'nakhter'. Reason: Not associated with a trusted SQL Server connection.
         at com.microsoft.jdbc.base.BaseExceptions.createException Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSLoginRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(DriverManager.java:517)
         at java.sql.DriverManager.getConnection(DriverManager.java:177)
    I am usign my windows authentication usrname and password .
    I has tried it with user "sa" but still same exception .
    Could someone help me in this regard ?

    You need to switch SQL server to just use SQL Server authentication or both. The problem is that it is looking for a Windows NT account for nakhter with the password java. We get this all the time on new SQL Server installs if you just take the defaults.

  • I'm running 10.7.4 and have many problems using webdav to link to a remote server

    I connect to a company called Egnyte which provides remote data storage. Their solution is really elegant, but I have a lot of problem with speed using the webdav plug in. It is especially bad on Microsoft Office documents which can take up to a minute for simple documents to open and close. And when I have two documents on the cloud open at the same time and try to paste between them...forget about it. It takes forever!
    We also have folks in our company which use Windows based machines and they do not have the same problem. Egnyte hasn't been able to solve the problem.
    Any information about webdav problems on Lion/Macs would be greatly appreciated.

    If you have an external drive equal to or larger than your internal HD, clone your internal to it with either Carbon Copy Cloner or Super Duper. Test the clone to make sure it's bootable. Then upgrade either one. Try it out first.

  • Help: Problem using Zen Micro with Yahoo Unlimited Music Serv

    I get a "Error reading device contents: The Data is Invalid" message when I try to synchronize my Zen Micro with the Yahoo music engine. When I first connect my Zen via usb, the Yahoo engine recognizes the Zen Micro but it is unable to read the contents of the Zen prior to my synchronizing. After trying to read my Zen for a while, I get the pop up message described above. I am using version 2..02 zen firmware and version .0..4 of the Yahoo engine.
    Has anyone experienced this problem before? Does the Zen Micro actually work with the Yahoo service?
    Thanks

    Here is the Internet address for one of the forums for Yahoo Music Engine. You might find some possible solutions here.
    http://grou<br />
    <br />
    <br />
    p.../yme-feedback/
    Best wishes.
    luvmyrescuedogs
    Message Edited by luvmyrescuedogs on 08-0-2005 07:46 PM

Maybe you are looking for

  • User defined func: Unavble to merge two arrays in result list

    Hi I am trying to merge two arrays on the basis of "FEE" element in the input file; Actually there is an Attribute Name and Value pair array coming in the input file which has 5 pairs already(Notification + 100 , oversize + 8 etc.) see example below;

  • Form Settings

    Hello, We have several users in our company and each time we make a change to our form setting we need to change all the other users manually as we want everyone's screen to look the same. How can we just change one users form settings (i.e., informa

  • How to achieve shadow in this guys?

    hi...any advice in how to built the shadow for this guys??..thanks..i cant figure it out how...

  • Location Services

    When I first got my iPad I kept getting the error message "Could Not Determine Your Location" when trying to get it to find my position with the Maps app. I had not activated an AT&T data account yet and was using WIFI. My iPhone, using WIFI only, wo

  • Urgent - Table with Unicode data of 4000 length to be pulled in BI

    Dear Gurus, I have a table which contains the mix type of data - Unicode, text and numeric. The Unicode field is of length 4000 chars max. Is it possible to pull this in BI 7 ? I know BI can accommodate 60 chars max in which case I need to create aro