Modbus connection through ethernet using the NI Modbus library

Hi, first of all I want to say that I'm new to Labview, so I'm in the studying phase and I may have very basic questions.
There's a tool that's basically a big screwdriver with a controller that can be programmed to make certain jobs using desired speed and torque,  it's called Handy2000. You can save in different channels the configurations for the different jobs. The controller has its own software, and I can already connect to it and read/write with no problem using an ethernet cable.
I was asked to make an interface in labview to select the channels, show in a graphic way (with photos of the electronic components) what screws correspond to that channel, and show when the steps of a job are done. All of this will be in a panel pc connected to the tool's controller.
Since I'm new to labview and to the modbus protocol, I took some time to study the basics. I understand how the protocol works and the very basics of labview programming, so I have an idea of how the front panel will be and what things needs to be modified. But now it's time to start the implementation, and I'm a little lost on how to make the basic configuration to setup the connection and start writing the addresses on labview. By the way I don't have the DSC module, I only have to use the NI Modbus library.
I already checked the example functions to use my pc as master and slave and watched the codes for the different type of data (coil, input, input register, holding register), but I don't know how I should start programming, and the most important thing is how to make some tests in the process to check that I'm having the communication between the pc and the controller. I already read in the forum and learned a lot, but failed to see as a completely newbie how to make and change the basic setups to make the thing work.
So any help is welcome, specific answers about how to make the basic setup and how to test it, vi examples or basic tutorials to read.
Thanks in advance,
Stefan Christiansen
p.s: I attached the manual that specifies the addresses for the modbus communication, so if you could give me an example of where I should change the address in the labview code and what should I put  to make a basic read or write it would be very helpful
Attachments:
Estic Touch Panel Comm. Spec _010-E_.pdf ‏586 KB

I can't even know if it's connected right
First I opened the Master Ethernet Example and the Slave Ethernet Example, and everything worked fine.
Now I tried to do it connected with ethernet cable to the controller using the Master Ethernet Example, and set the "Remote IP Address" to the address of the controller (which I already tested with ping and the connection with my PC is fine, and also I have no problem reading and writing with the controller's software). And when I run it, I get the error 56. The error tells me that it happens at TCP Read in MB Ethernet receive.vi:5. I attached the photo of that vi.
I really hope you can help, I need to establish the connection and being able to read/write at least something. 
Attachments:
error56.png ‏54 KB

Similar Messages

  • HT204291 airplay icon not showing up on windows  laptop when appletv is connected through ethernet

    itunes cannot detect apple tv when apple tv is connected through ethernet and the laptop is wireless, although both devices are in the same overall network.

    Then I suspect your network or it's settings are your problem.
    The following article(s) may help you.
    Troubleshooting AirPlay
    Troubleshooting Wi-Fi networks and connections
    Recommended Wi-Fi settings
    Wifi Diagnostic Software (for Mac users)
    You may also find some help on this page, where I’ve collected some of the more unusual solutions to network issues.

  • My backup to Time Capsule is taking over 4 million days. How can I shorten the time? I am not able to connect through ethernet. How do I fix this?

    My backup to Time Capsule is taking over 4 million days. How can I shorten the time? I am not able to connect through ethernet. How do I fix this?
    Not only that but my Mac Pro keep running and does not stop, my Address book has a blue light under it but wont open, the light for my monitor in the bottom right corner wont turn on or off. Please need help...

    It sounds like there is an issue with the Mac itself.
    Use the verify disk A5 in troubleshooting.
    http://pondini.org/TM/Troubleshooting.html
    Even if you cannot connect by ethernet, at current location.. you can simply disconnect the TC from the network and bring it to the Mac and plug it in by ethernet. The TC can be reset if you haven't got a suitable current setup (save previous setup before you change it) and run just as backup device.. do the backup and then return it to the network.
    If this is just a standard incremental backup.. then something has broken. The issue is not the TC pe se but failure in hardware somewhere.

  • HT4356 Can I use a 'pc' network printer connected via ethernet to the home wifi network ?

    Can I use a 'pc' network printer connected via ethernet to the home wifi network ?
    or must the printer I want to use also have a wifi connection ?
    I have a home network using ethernet connected devices to a router, also attached to th erouter is a WiFi unit. We are using the WiFi unit to connect to the network and hence to the big wide WWW.  We now want to print from our IPads pereferable to our netowk connected HP Officejet Pro 8500 A909a series. (not the wireless model).
    I was using the HP ePrint app to print from the Ipad, but I do not fully understand how this works. It seems that you must use the app to do the printing which is fine for basic email and photos, but I can not access the drawing package I have, and want to print from it. Please what is it that I do not understand.

    You must use an airprint printer directly connected to wifi through it's own wifi card.
    See here for info:
    http://support.apple.com/kb/ht4356

  • Trying to Download a Software Image to Cisco 2800 series router through TFTP Using the tftpdnld ROMmon Command

    Trying to Download a Software Image to Cisco 2800 series router through TFTP Using the tftpdnld ROMmon Command
    and I am getting an Error , I cant figure out what I am doing wrong. I have also pasted my display down here can someone help me out, thanks in advance, I am still new to this utility.
    My questions are How do you direct this utility to point to the desktop or the TFTP folder
    does FE_PORT: Fast Ethernet 0 imply or point to Fa0/0 on my router
    My router is suppose to have 10.0.0.3 255.0.0.0
    Gateway of 10.0.0.1 255.0.0.0
    My TFTP Server 10.0.0.2 255.0.0.0
    How do I get the MAC address of the Router or the TFTP Server and which one  is required?
    my Ethernet port is 100Mb/Sec I cant tell whether it is full duplex or not so How do i set this FE_SPEED_MODE: Auto???
    =====================================================================================
    rommon 10 >
    rommon 10 > set
    PS1=rommon ! >
    FE_PORT=0
    WARM_REBOOT=
    RET_2_RTS=20:35:55 UTC Thu Sep 25 2014
    BSI=0
    RET_2_RCALTS=
    RANDOM_NUM=1600357627
    ?=0
    IP_ADDRESS=10.0.0.3
    IP_SUBNET_MASK=255.0.0.0
    DEFAULT_GATEWAY=10.0.0.1
    TFTP_SERVER=10.0.0.2
    TFTP_FILE=
    rommon 11 > TFTP_FILE=c2800nm-adventerprisek9-mz.124-24.T4
    rommon 12 > TFTP_CHECKSUM=0
    rommon 13 > SET
    monitor: command "SET" not found
    rommon 14 > set
    PS1=rommon ! >
    FE_PORT=0
    WARM_REBOOT=
    RET_2_RTS=20:35:55 UTC Thu Sep 25 2014
    BSI=0
    RET_2_RCALTS=
    RANDOM_NUM=1600357627
    IP_ADDRESS=10.0.0.3
    IP_SUBNET_MASK=255.0.0.0
    DEFAULT_GATEWAY=10.0.0.1
    TFTP_SERVER=10.0.0.2
    ?=0
    TFTP_FILE=c2800nm-adventerprisek9-mz.124-24.T4
    TFTP_CHECKSUM=0
    rommon 15 > tftpdnld
              IP_ADDRESS: 10.0.0.3
          IP_SUBNET_MASK: 255.0.0.0
         DEFAULT_GATEWAY: 10.0.0.1
             TFTP_SERVER: 10.0.0.2
               TFTP_FILE: c2800nm-adventerprisek9-mz.124-24.T4
            TFTP_VERBOSE: Progress
        TFTP_RETRY_COUNT: 18
            TFTP_TIMEOUT: 7200
           TFTP_CHECKSUM: No
            TFTP_MACADDR: 30:37:a6:49:35:a8
                 FE_PORT: Fast Ethernet 0
           FE_SPEED_MODE: Auto
    Invoke this command for disaster recovery only.
    WARNING: all existing data in all partitions on flash: will be lost!
    Do you wish to continue? y/n:  [n]:  y
    ARP: address resolution for 10.0.0.2 timed out.
    ARP failed with failure code 1.  TFTP transfer aborted.
    TFTP: Operation terminated prematurely.
    rommon 16 >       " not found
    rommon 17 >FE_SPEED_MODE=2
    variable name contains illegal (non-printable) characters
    rommon
    rommon 18 > set
    PS1=rommon ! >
    FE_PORT=0
    WARM_REBOOT=
    RET_2_RTS=20:35:55 UTC Thu Sep 25 2014
    BSI=0
    RET_2_RCALTS=
    RANDOM_NUM=1600357627
    IP_ADDRESS=10.0.0.3
    IP_SUBNET_MASK=255.0.0.0
    DEFAULT_GATEWAY=10.0.0.1
    TFTP_SERVER=10.0.0.2
    TFTP_FILE=c2800nm-adventerprisek9-mz.124-24.T4
    TFTP_CHECKSUM=0
    ?=0
    rommon 19 > tftpdnld [ur]
    usage: tftpdnld [-hr]
      Use this command for disaster recovery only to recover an image via TFTP.
      Monitor variables are used to set up parameters for the transfer.
      (Syntax: "VARIABLE_NAME=value" and use "set" to show current variables.)
      "ctrl-c" or "break" stops the transfer before flash erase begins.
      The following variables are REQUIRED to be set for tftpdnld:
                IP_ADDRESS: The IP address for this unit
            IP_SUBNET_MASK: The subnet mask for this unit
           DEFAULT_GATEWAY: The default gateway for this unit
               TFTP_SERVER: The IP address of the server to fetch from
                 TFTP_FILE: The filename to fetch
      The following variables are OPTIONAL:
              TFTP_VERBOSE: Print setting. 0=quiet, 1=progress(default), 2=verbose
          TFTP_RETRY_COUNT: Retry count for ARP and TFTP (default=18)
              TFTP_TIMEOUT: Overall timeout of operation in seconds (default=7200)
             TFTP_CHECKSUM: Perform checksum test on image, 0=no, 1=yes (default=1)
              TFTP_MACADDR: The MAC address for this unit
                   FE_PORT: 0= (default), 1
             FE_SPEED_MODE: 0=10/hdx, 1=10/fdx, 2=100/hdx, 3=100/fdx,
                            5=Auto (default)
          TFTP_DESTINATION: The flash destination device for the file
                            flash:(default), usbflash0:, usbflash1:
      Command line options:
       -h: this help screen
       -r: do not write flash, load to DRAM only and launch image
    rommon 20 > tftpdnld
              IP_ADDRESS: 10.0.0.3
          IP_SUBNET_MASK: 255.0.0.0
         DEFAULT_GATEWAY: 10.0.0.1
             TFTP_SERVER: 10.0.0.2
               TFTP_FILE: c2800nm-adventerprisek9-mz.124-24.T4
            TFTP_VERBOSE: Progress
        TFTP_RETRY_COUNT: 18
            TFTP_TIMEOUT: 7200
           TFTP_CHECKSUM: No
            TFTP_MACADDR: 30:37:a6:49:35:a8
                 FE_PORT: Fast Ethernet 0
           FE_SPEED_MODE: Auto
    Invoke this command for disaster recovery only.
    WARNING: all existing data in all partitions on flash: will be lost!
    Do you wish to continue? y/n:  [n]:  y
    ARP: address resolution for 10.0.0.2 timed out.
    ARP failed with failure code 1.  TFTP transfer aborted.
    TFTP: Operation terminated prematurely.
    rommon 21 >

    What I notice in the original post is this error
    ARP: address resolution for 10.0.0.2 timed out.
    which says that the router is looking for the 10.0.0.2 server but not getting response to its arp request. Can the original poster clarify for us how the device that has the image file is connected to the router that has the problem? Also what kind of device is 10.0.0.2? Is it a PC running TFTP server software or is it something else?
    HTH
    Rick

  • How can i airplay from my mac connected through ethernet to an aple tv 2 on wifi

    Hi everyone..
    im having troubles using Airplay on my mac.. i connect my mac to the internet and home network using an ethernet connection to my router (non apple branded router) .. my apple tv 2  is connected to my home wifi network from the same router.. when i first set up my apple tv.. i was able to see the Airplay icon on itunes and it would let me Airplay media from my mac to my apple tv.. however.. it disconnects after a little while.. same thing with viewing my itunes library from apple tv.. i was able to detect my shared library from the apple tv.. i was able to play some media but then it disconnected after some time.. but now.. the Airplay icon doesnt show up in itunes anymore.. and i cant see my shared library from my apple tv neither.. ive looked around for a solution and followed the tip to turn the ipv6 off.. it worked for some time but now the problem is back..
    i know the obvious solution is to connect my mac to the same wireless network as my apple tv.. but i would like to keep it connected through ethernet..
    Mac OS X Lion 10.7.4
    Apple TV 2 software version 4.4.4
    Thanks in advance

    thisguy. wrote:
    ......i know the obvious solution is to connect my mac to the same wireless network as my apple tv.. but i would like to keep it connected through ethernet.........
    I wouldn't say that was the obvious answer at all, my Mac is connected by ethernet and 6 of my 7 Apple TV's are connected by wifi, I haven't had any of your problems. The problem is most likely on your network.
    Intermittent problems
    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first. Networks that have inherent issues can be seen to work differently with different versions of the same software. You might also try moving the Apple TV away from other electrical equipment.
    Consistent Problems
    A frequent cause of consistent failure to enable AirPlay or HomeSharing at all, is the service being blocked on the network. Make sure your network isn't hidden, has a unique name, that MAC address authentication is disabled, security is set to use WPA 2 Personal and that there is only one router/device acting as a DHCP server and providing NAT services.
    Make sure your router/computer allows access over the following ports
    Port
    Type
    Protocol
    Used By
    80
    TCP
    HTTP
    AirPlay
    443
    TCP
    HTTPS
    AirPlay
    554
    TCP/UDP
    RTSP
    AirPlay
    3689
    TCP
    DAAP
    iTunes/AirPlay
    5297
    TCP
    Bonjour
    5289
    TCP/UDP
    Bonjour
    5353
    TCP/UDP
    MDNS
    Bonjour/AirPlay
    49159
    UDP
    MDNS (Win)
    Bonjour/AirPlay
    49163
    UDP
    MDNS (Win)
    Bonjour/AirPlay
    Refer to your router manual/manufacturer for any settings that are specific to that model.
    Another frequent cause of consistent failure to enable AirPlay or HomeSharing at all, is security software, in many cases configuring it correctly, disabling it or even uninstalling it can help, but in some cases the security software can cause problems that simply reconfiguring, disabling or uninstalling cannot reverse.
    If you are consistently unable to activate AirPlay, have tried all the steps in this article and have security software installed on your system, you might benefit from contacting its provider or participating in any online forums they run to discuss the matter with them.

  • Is there way to share Air-Port Wi-Fi connection through ethernet port?

    I was wondering if anyone could help me out with this, I have wireless network in the building, and is there way to configure Mac Mini to share Air-Port Wi-Fi connection through ethernet port (feed Vonage adapter)?

    Have you actually shared wi-fi to ethernet on a Mac? I ask because it is not usually that simple, it is a more complicated configuration. Most folks who do it the way you described get a self assigned IP and nothing connects.
    See my comment here;
    http://discussions.apple.com/thread.jspa?messageID=12585788&#12585788
    I have a Vonage phone adapter and Vonage does not provide the info that you need to hand configure these boxes, I have tried in the past with the one I have with a US phone number from here in Mexico.
    Dah•veed

  • Equium L40 - cannot connect through wifi or the ubs lead plugged in

    Hi
    I have a Equium L40. I cannot connect through wifi or the ubs lead plugged in.
    It comes up " Internet Explorer has stopped working. a problem caused the program to stop working correctly"
    It is saying in am connected to my hub and have a strong signal.
    Can you help
    Thanks
    Steve

    Hello Steve
    Have you tried to use some other browser?
    Do you use Skype or some other messenger? Can any of them connect properly?
    I dont know what the real problem is. Non working Internet explorer or WLAN connection in general?

  • Difference between using app server connection pooling and using the driver

    Hi all,
    How to get connection pooling with out application server and tomcat also?
    What is the difference between using app server connection pooling and using the driver supported connection pooling?
    Regards,
    Murali

    maybe the performance of App server pool is better than the JDBC pool,
    for you don't know wether the implementation of the JDBC interface is good or bad.

  • How can I open an AS400 connection w/o using the ODBC in the Control Panel

    Hi.
    Is it possible that i manipulate the ODBC settings in Windows NT using Java?
    I've been using the Client Access ODBC Driver (32 bit) of IBM to connect to AS400 database. Normally i would just configure my DSN and input the default library inside the Server tab that i would be using . All was working perfectly. But i was informed that the default library would vary depending on the data inputed in the library database.
    As in, in our SQL Server they have there a tbl_library where in lib_type is one of it's field. This(lib_type) is where they can specify which library my program would be opening. So in this case, I can't just manually configure my DSN library when retrieving data from AS400 because it would always vary.
    Thank you very much for your time.
    -marlin
    ps.
    Btw, i am doing a servlet for this connectivity.

    If you use the JDBC driver that's included in the AS/400 Toolbox for Java you don't need to use ODBC at all, you can access the AS/400 directly. See this link:
    http://www-1.ibm.com/servers/eserver/iseries/toolbox/

  • Connecting my iPhone using the remote app.

    I am trying to connect my iPhone using the remote app, nothing seems to work. I have been told to go to Preferences > Devices and allow iTunes to search for iPhone ect but there isn't this option when I go there?

    You do not have to dock your iPhone to use an iOS remote app to control your Mac.
    There are both Wifi and Bluetooth style iOS remote apps for both iPhone/iPod and iPad.
    Apple makes the one you are using. I believe that Apple's app can use both WiFi and Bluetooth.
    I use a very exceptional Wifi remote app on iOS that is called Rowmote Pro.
    This app has a really good feature set, plus you can control other aspects of your Mac with it.

  • I was wondering if there's a way to connect to my work server from my home iMac i7. I can't seem to get Share Screen to work. I have tried connecting to server using the vnc but doesn't work.

    I was wondering if there's a way to connect to my work server from my home iMac i7. I can't seem to get Share Screen to work. I have tried connecting to server using the vnc but doesn't work.

    The easiest way would be to use Back to My Mac, but that will only work if the server is a Mac running OS X 10.7 or later and you have the cooperation of the network administrator.
    OS X: Using and troubleshooting Back to My Mac with your iCloud account

  • Unable to connect to DB using the SID

    HI Forum,
    I am unable to connect to DB using the SID i assigned using TOAD, but i am able to connect using the instance name.
    My setup needs that i should use a common name to connect to the DB immaterial of which instance is up.
    Can any one instruct me how to achieve this kind of setup.
    Regards
    Prakash

    Hi Prakash,
    1). Create a file called TestingLoop.java containing following code:
    import java.sql.*;
    public class TestingLoop {
    public static void main(String[] s)throws Exception {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    /* String url="jdbc:oracle:thin:@(DESCRIPTION= (LOAD_BALANCE=on)
    (ADDRESS=(PROTOCOL=TCP)(HOST=a) (PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=b)(PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=c) (PORT=1521))
    (CONNECT_DATA=(SERVICE_NAME=orcl)))"; */
    String url ="jdbc:oracle:thin:@abc.us.oracle.com:23001:xyz";
    for (int i=0; i<20; i++) {
    try {
    long x= System.currentTimeMillis () ;
    Connection conn = DriverManager.getConnection(url,"scott","tiger");
    long y= System.currentTimeMillis ();
    System.out.println("Connection Succesful "+conn);
    System.out.println("Connection time is "+(y-x)/1000+" ms");
    Statement stmt =conn.createStatement();
    ResultSet res= stmt.executeQuery(" select host_name from v$instance");
    while(res.next()) {
    System.out.println(res.getString(1));
    stmt.close();
    conn.close();
    catch(Exception e) {
    e.printStackTrace();
    2). Compile the file using this command:
    javac TestingLoop.java
    3). Run the java program:
    java TestingLoop
    Single Virtual Ip doesn't make sense... does?
    You will lose failover vip capabilities...
    Regards,
    Rodrigo Mufalani

  • I and my brother have different apple id's but are using the single itunes library on our home PC.When i am syncing my iphone most of the times the apps that were purchased with my brothers apple id is also getting on my iphone.

    i and my brother have different apple id's but are using the single itunes library on our home PC.When i am syncing my iphone most of the times the apps that were purchased with my brothers apple id is also getting on my iphone.
    How do i differentiate the apps that were purchased with my apple id and sync accordingly.As i want only the apps that were purchased in my apple id.
    I am aware of the fact that i can click on the app and check with "getinfo" to see with whose apple id it is brought.but there are hundreds app which i cannot check one by one.
    How do i filter the apps with apple id and sync?

    Connect the device to the computer.
    Open iTunes.
    Select the content desired to sync.
    Sync.

  • With using any version of iTunes, whenever I import songs into my library using the "add to library" function, iTunes adds those songs in songs' alphabetical order. This is pretty annoying since it does not preserve the logical track number or album.

    With using any version of iTunes, whenever I import songs into my library using the "add to library" function, iTunes adds those songs in songs' alphabetical order. This is pretty annoying since it does not preserve the logical track number or even the album sort order (for example when adding 2 albums stored in a unique folder). Anyone has any ideas ? Been stumped for a while....!!!

    hi i had the same problem today when i updated my itunes to latest version. however, i have just found my songs in the 'itunes media' folder. this was accessed through 'my music'  then keep clicking through until you find itunes media and all my library songs were in there and i then just added these files to my library and all were restored however, i have lost all my playlists but at least my 700 songs are back. very dissapointed with apple that they have let this happen with their latest update, the previous version was miles better than this one . hope you find them. stevo

Maybe you are looking for

  • S205 :Sad with Lenovo Driver support for Win 8

    Sorry for my bad english, but I need to tell you my frustrating experience. Due to low cost new windows 8 OS 64bit, I buy a lincense for mine Lenovo S205, conforted with some new Driver updated for 8 on Lenovo site. I saw something strange in the Dri

  • WMF format equations available/missing fonts not displayed/alerted

    WMF format equations fonts are not displayed in the applications, If any fonts used on that equations is missing in the system the indesign will not show/alert any missing font warring to the user and the substitute fonts replaced automatically for t

  • Java for PowerBook G4 on Leopard??

    Is there any chance there is a Java JDK (developing kit) for Leopard that still accepts PowerPC's? The new 1.6 versions only installs on Intel macs. I tried a older version but those will only install on OSX Tiger. I'm kinda in between =) Does anyone

  • PL/SQL job

    I have a small problem with some PL/SQL procedures. I am having a cluster as follows: a b c d e f g where a is the parent node b and c are children of a. d and e are children of b f and g are children of c I need help in creating a binary tree struct

  • Elements 3.0 - Farbenfroheres Programmdesign?

    Elements 3.0 präsentiert sich grau in grau. Gibt es keine Möglichkeit, das zu ändern?