Kollmorgen AKD modbus or Telnet over ethernet TCP

I'm a beginner using LabWindows CVI. I have a Kollmorgen AKD driver that can communicate via Ethernet using either Telnet or Modbus protocol. To make sure the hardware works, I downloaded the Kollmorgen WorkBench Software onto my laptop and went through the QuickStart guide. I set my laptops address to a static id (192.168.0.100) and then set up the Kollmorgen driver to have a static id of (192.168.0.26) using the two rotary switches (S1 and S2). In this case, I chose 2 and 6. I connected my PC to the driver using the Workbench software and was able to successfully spin the motor ccw and cw. I also was able to move the motor to specific locations (90, -90, 180, etc) in relation to the set 0 position. The Kollmorgen software uses the Telnet protocol.
How would I go about connecting my PC to Kollmorgens AKD driver using Modbus/Telnet via Ethernet on LabWIndows CVI? Is there a modbus library or special functions?
I went to the Modbus website and did not find any examples...
Any help would be much appreciated.
Badra

There are free LabVIEW Modbus libraries, but these are API's built for LabVIEW:
http://zone.ni.com/devzone/cda/epd/p/id/4756
https://decibel.ni.com/content/docs/DOC-30140
There actually is a push to implement Modbus protocol support in CVI, and you can add your thoughts to the discussion here:
http://forums.ni.com/t5/LabWindows-CVI-Idea-Exchan​ge/Implement-Modbus-RTU-TCP-protocol-support/idi-p​...
The Idea Exchange forum is used by R&D in order to help implement new features requested by customers in later releases. You can also try using a free C library that does Modbus protocol, since CVI utilizes C code. An example would be libmodbus:
http://libmodbus.org/documentation/
There is also this community example which implements Modbus RTU programming over RS232 in CVI:
https://decibel.ni.com/content/docs/DOC-15734
Daniel K | NI Applications Engineer | Certified LabVIEW Developer

Similar Messages

  • Modbus over ethernet

    Is Modbus over ethernet available in labview?

    Yes.
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/201711

  • Choosing the Right Network Protocol for CRIO 9024 to PXI over Ethernet

    We are in the design phase of setting up a CRIO 9024 Embedded Controller to send data captured to a PXIe-8105 Controller over ethernet. The data will be be 2D arrays of double precision. This data will need to be sent to the pxi at the end of each test step. Each step will have different number of channels and sample rates.
    For example,  Test Step 1 will have 5 channels of Analog inputs that will be sampled at 100,000 KHz for 1 second. This data will be coming from the CRIO FPGA. The data will get post processed by the CRIO 9024 and analyzed for pass or fail metrics. Then, the CRIO controller will send the 2D Array of Data (500,000 data points 5 X 100,000) and the results of all the metrics (a 1D array) to the PXI.
    The connection to the PXI will be using Ethernet.
    Keep in mind that the PXI will also have to send the CRIO some values to tell the CRIO when to start the test and when the test sequence is complete.
    I was thinking TCP/IP would work best because of the 2 way communication needed. But then I was looking at Network Streaming or even using Shared Variables.
    If anyone has any ideas or suggestions please please post them.
    Spark
    CLAD
    Test Engineer
    Solved!
    Go to Solution.

    Hi,
    You could use either.  Whichever you are more comfortable with really.  The STM method will have slightly less overhead over my XML style of tagging the data but it will be very little given the data size.  Probably go with STM as it just has most of the work done for you.
    In terms of data size the way you should normally transfer data like this is to flatten to string.  If you convert to a string of human readable numbers you will either lose precision, increase size or both.  Given that, the string after being flattened will be the same size as the original array anyway so quick calculation based on your previous post 500,000 doubles (8 bytes) is 4 miB (3.8MB)
    Cheers, 
    James Mc
    ========
    CLA and cRIO Fanatic
    wiresmithtech.com/blog

  • "Enable AirTunes over Ethernet"

    Checking the "Enable AirTunes over Ethernet" box in the Music tab in the AirPort Utility has been suggested as a solution to my problem below:
    have iTunes on a PC (no wireless card) connected to an AirPort Extreme base station via an ethernet cable. I have an AirPort Express connected as a client to the AirPort Extreme's wireless network. The AirPort Express is also connected via mini to RCA cord to my stereo. I would like to use AirTunes to stream music from iTunes on the PC to the stereo, but can't seem to figure out how to do it. Any thoughts?
    But, I can't seem to locate it in the Music tab. Any thoughts? Is it not an option in the newer software (firmware?)?

    This suggestion from MacFixit and an upgrade to iTunes 7.7.1 solved the inability to stream music to an Airport Express from iTunes on an ethernet-connected computer.
    Music will not stream through AirPort Express Some users have reported that streaming music through AirPort Express units fails after the update. The most common fix for this issue involves changing your IPv6 settings. In order to change this setting, open System Preferences then the Network pane and click on your currently used interface (Ethernet, AirPort, etc.). Click on the TCP/IP settings for the interface -- at the bottom if you see a button which says 'Configure IPv6...' click it make the setting "Off." Press the Apply Now button.

  • Detect device over ethernet

    Hi Everyone,
    I would like to know how do i detect device connected over ethernet by using labVIEW?
    My require is:
    I have to develop a code which detect any device connected to ethernet port.(The external device which is connected to ethernet port may be anything)
    I would like to get the IP of the device connected to my ethernet port using labVIEW.
    It will be really grateful if anyone can help me to resolve this.

    A brute force method which is commonly used is to send a ping packet to every IP address in the subnet(s) you are interested in. This is not guaranteed to work since some devices will not reply to ICMP ping packets for security reasons. Another approach which again guaranteed to work and will more likely find fewer devices would be to send a SNMP request for the system description (1.3.6.1.2.1.1.1.0) . If a device supports SNMP they will generally respond to this request.
    Many devices, especially network infrastructure devices, will not be easily managed. They will have security enabled to limit access to them. Part of this security will be to limit what types of communications they will accept and who they will talk to. Simply finding an IP address active on a network will not provide you with too much information about the type of device it is and how you may communicate with it. There are lots of network protocols out there and many devices have very specific ones they use. A general purpose network manager that can find and communicate with anything on the network is a daunting task and one that most likely will not be possible to implement. At best you will be able to find a subset of devices. As I mentioned even the most basic ping packet will not guarantee you will find everything.
    I'm not trying to rain on your parade but trying to let you know that you are trying to accomplish something that will most likely impossible to actually do. Probably the most effective way, but not very practical,  to at least find eveything would be to implement a port scanner that would exhaustively go through every IP address in your desired range and attempt to establish a connection on every TCP port (you could stop once you get a response). If a device is on the network it more than likely will communicate on at least one TCP port. All this would tell you though is that there is a device at that IP address that communicates using port x. However, as I cautioned before this type of activity will very quickly get the attention of the network staff managing the network you do this on.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Telnet over TMG

    i have enabled telnet on a public IP published by TMG on port 25 
    i removed the fire wall rule that was made for that and i am still able to telnet ?!
    i waited for some time 
    configured telnet on another IP , and i am not able to telnet on the new IP wail still able on the old REMOVED one ?!
    i restarted TMG control service which restart all other services , and i am still getting the same result 
    is this a bug or what ? 

    If you are targeting TCP-Port 25, then that is SMTP,...not officially "Telnet" which is TCP-23.  There is already a default predefined Protocol for "SMTP" and so there is no need to create a custom protocol that overlaps the SMTP
    protocol.
    So your rule would be:
    Name: "SMTP Mail Rule" (just as an example)
    From: Internal
    To: External
    Protocol: SMTP
    Users: All Users
    Since your internal Mail Server (assuming you have one) will already be using such a rule to do it's job,...or if your Mail Server is external or "hosted", then the Mail Clients are going to use the same Rule to reach the Mail Server to do their
    job (assuming SMTP/POP3 clients),....you are then using that Rule to "Telnet" over.  Hence there is no need for a special "Telnet Rule", nor would such a rule even be actively used unless it was placed above the SMTP Rule
    in the Rule List,...and if that was the case your Mail would be using that Rule as well instead of using the actual SMTP Rule it should have been using.
    In other words you can't have two Rules that effectively do the same thing,...if you do so, only the one higher in the Rule list will be used and the lower one will be ignored,...regardless of whatever you may have intended.

  • Software enable for Kollmorgen AKD using LabVIEW

    Hey all, I'm relatively new to motion control, and feel like I must be missing something...
    I have a PXI chassis with a 7350 card connected to a Kollmorgen AKD as described in the Getting Started guide.  I can get the system to move through MAX, and I can enable the hardware through the LabVIEW Enable Axes.flx vi from the NI 73xx palette.  But, I haven't found any way to do a software enable from LabVIEW... it only works through the Kollmorgen software.
    Is there a way to do the software enable from LabVIEW?  I haven't found anything in my searches so far.
    Thanks,
    Joe Z.
    (trying to quit LabVIEW, I swear)

    The only way to software enable the drive from LabVIEW is via a digital bus (EtherCAT, Modbus, etc). In general, you only want to use either the hardware enable OR the software enable, not both. In your situation, you should be using the hardware enable and you should use Kollmorgen WorkBench to set the drive to be software enabled at startup (on the Enable/Disable menu).
    Thanks,
    Paul B.
    Motion Control R&D

  • How to print on HP LaserJet 2200 over Ethernet?

    Hi,
    I did an upgrade to Snow Leopard and would like to print on a HP LaserJet 2200 over Ethernet. OS X and the HP printer drivers are up to date now.
    The printer has been cold reset and on the configuration print out there's the IP address 0.0.0.0
    Now my question is how to get this printer to work with Snow Leopard over Ethernet? I did not find a tutorial how to assign an IP address to the printer first so I got stuck.
    Could you give me a hint where I should start with the configuration first?

    OK, now the printer works
    I reset the router and checked if DHPC is running.
    I reset the printer (hold down the GO button, turn the printer on and continue to hold the GO button for five to ten seconds).
    Checked at router that the printer is visible as network device.
    At the router I assigned a fixed IP address to the printer.
    At OS X System Preferences > Printer I added a new printer with "HP Jetdirect - Socket", the fixed IP address and the correct printer driver "HP LaserJet 2200".
    Now the printer has been recognized well by the system (Tray 3, Duplex and printer RAM) and printing works.
    THANKS.

  • How do I set up multiple Airport Expresses to connect over ethernet for Airtunes only?

    I am trying to set up an Airtunes network using an Airport Extreme and three Airport Expresses connected together via ethernet (CAT5 cable). At each Airport Express there will be a speaker setup. I don't need/want internet connectivity on the network, but not sure if it is required for setup or not. I have made this work over wifi, using the Expresses to extend the network, but struggling to get this to work over ethernet.
    I would be verry grateful of a step-by-step method to setting this up! I am also looking to set up 6 airport expresses to do the same thing in another location.
    Thanks in advance!

    Thanks for the info.
    I assume that the AirPort Extreme is setup and working at this point.
    Work with one AirPort Express at a time to get them all configured, and then you can locate them where they will be needed.
    AirPort Setup will configure the Express devices to "extend a wireless network" using Ethernet, so they will be broadcasting the same wireless signal as the AirPort Extreme and provide more wireless signal coverage as well.
    I have yet to meet the first person who thought that they had too much wireless coverage, but you would have the option to turn off the wireless on the Express if you wanted. Most users like having extended wireless for their devices.
    Temporarily, move an Express close to the AirPort Extreme
    Connect a spare Ethernet cable from one of the LAN <-> ports on the Extreme to the WAN "O" port on the Express
    Power up the Express for a few minutes
    Hold in the reset button on the back of the Express for 10 seconds and release. Allow a full minute for the Express to restart to a slow, blinking amber light.
    Click the Airport icon at the top of the Mac's screen and wait a few seconds for AirPort Express to appear just under the listing of New AirPort Base Station
    Click directly on the AirPort Express
    AirPort Setup will open up automatically and take a minute to analyze the network, then announce that the Express will be configured to extend the AirPort Extreme network.
    Enter a device name that you want to use....example.....Express1.....and click Next
    AirPort Setup will configure everything for you. Notice that the message will say that the Express is being set up to extend using Ethernet. When you see the message of setup complete, click Done.
    Now you can move the Express to the remote location where it is needed, hook it up to the Ethernet connection there, power up the Express and set up AirTunes on the device.
    AirTunes is enabled by default, to other than make the speaker connection, you won't have much to do on that.
    Set up other Express devices the same way, except assign a different name to each device....example....Express2, Express3, etc.....to keep things organized.

  • Mapping to disk on Airport Extreme's USB port from G5 over Ethernet

    I just set up my Airport Extreme network, with multiple machines (Windows XP, Vista, Mac G5, iPad and iPod Touch) sharing the internet connection via both Ethernet and WiFi without any problem.
    My XP and Vista machines are connected via WiFi, and I was asked to supply the shared disk's password, and once I provided it, I was able to see the drive attached to the USB port on the Extreme.
    My Mac G5 is connected to the Airport via Ethernet. It never asked me for the shared disk's password, adn I could not see the drive in Finder.
    Any suggestion on how to map to the shared drive over Ethernet will be greatly appreciated. Thanks! /Kenny

    Any suggestion on how to map to the shared drive over Ethernet will be greatly appreciated.
    It really shouldn't make any difference whether the G5 is connected by Ethernet or wireless, the AirPort Disk should be "visible" in the Finder sidebar.
    If not already, be sure that you have either or both "Connected servers" & "Bonjour computers" enabled in Finder Preferences > Sidebar.

  • BUG: Mail (GMAIL IMAP) no longer connects over ethernet, only wireless

    I too was puzzled last night when I couldn't get my gmail account to go online. I did a lot of reading, and tried various things (to no avail), but ultimately decided it was just a configuration error, or combination of other programs running...or maybe even (as read in other posts) Google's servers. I found the server problem unlikely though, since I could also log in via the web interface.
    Mysteriously, opening Mail on a separate MBP over either ethernet or wireless was 100% normal...as was the imap connection on my iPad via 3G or wireless...so what was causing my brand new MBAir to choke? Sleep on it, I said to myself.
    Well here I am on day 2 of Mail refusing to connect. Connection doctor always shows 'green' next to connection status (Mail was able to connect to the internet), but red for both imap and smtp servers, with messages reading "Mail could not connect to this IMAP/SMTP server. Check your network connection and that you entered the correct information in Account preferences. Also verify the server supports SSL. If it does not, deselect the 'Use SSL' checkbox in the Advanced tab of Account preferences."
    I've eliminated the server issue, because my MBP still opened Mail just fine while connected to my network here at home.
    Then, just for fun, I decided to unplug my ethernet (which is attached via Apple's own USB Ethernet adapter), and turn on my wireless. Almost instantly, Mail popped to life on my MBAir, and started syncing with gmail/IMAP.
    In the two months I have owned this MBAir, getting Mail to work over ethernet had never been a problem. My issues seemed to parallel the recent influx of problems reported with gmail & IMAP.
    I still cannot get Mail to access gmail over the USB Ethernet Adapter. What gives, Apple? Anyone else experiencing these symptoms on these new MBAirs?
    Model Name: MacBook Air
    Boot ROM Version: MBA31.0061.B01
    SMC Version (system): 1.66f54

    Turns out I was a victim of my own [tight] security. I had a SOCKS proxy enabled on my Ethernet for when I take this laptop on the road...I used it to connect securely to my server back home. Obviously at home my SOCKS proxy was not connecting from within my private network. As soon as I removed the SOCKS proxy, voilá! GMAIL IMAP works perfectly over the USB Ethernet adapter once again.
    I hope this serves as a reminder to thoroughly check your network settings before driving yourself mad!
    Cheers!

  • HT3231 Is it better to migrate to a new MacBook Pro using FireWire, from Time Machine, or over ethernet?

    Hello,
    Is it better to migrate to a new MacBook Pro (non Retina display) using FireWire, from Time Machine, or over ethernet? The older Mac is a MacBook (Intel, 2007 vintage). The Time Machine backup is to a Western Digital external drive with FireWire & USB ports.
    Thanks!
    Chips

    Thanks for the helpful reply.
    After posting, I read & researched further. We're going to be limited by the hardware – the MacBook & external drive both have FireWire 400, & we don't have a 400 to 800 cable or adapter. So we'll connect by ethernet, & be patient that it make take some time.
    I have to assume that Migration Assistant will be just as comprehensive regardless of the connection method / protocol.
    Best!

  • ITunes 7.1 doesn't recognize Airport Express over ethernet

    Running iTunes 7.1 on Windows XP desktop. Immediately after update, iTunes no longer can see my Airport Express as a remote speaker (Airtunes over Ethernet).
    Airport Express has the latest updates. Airport Utility has no trouble recognizing it by name. It doesn't have a password on it. The Airport is happily providing wireless for my laptop. It is my only WiFi base station, because I have a small place. It's been dependable for over a year.
    I'm truly bummed, because earlier today I got a Griffin AirClick USB, and it works like a charm. I was looking forward to using it with full-screen coverflow in 7.1.
    iBook G4 and assorted Win & Linux boxes   Mac OS X (10.4.8)   iTunes is on an XP PC

    The problem turns out to be an incompatibility with Bonjour for Windows. A post by "f00fighter" over in the "iTunes for Windows Upgrade Issues" forum solved it. I quote him below:
    ******Quote***********
    Looks like this issue is due to an incompatibility between Bonjour for Windows and iTunes 7.1.0.59 for Windows (thanks toonz!)
    To workaround the issue you can stop the Bonjour Service by going to Start \ Control Panel \ Administrative Tools \ Services, then highlight the Bonjour Service and stop it. You might also want to set the Startup status of the Bonjour Service to Manual (or Disabled) to prevent the service from starting automatically the next time you restart you PC.
    Note - this is only a temporary fix, and turns off the Bonjour service...so don't do this if you have other applications that rely on the Bonjour Service. A fix from Apple is needed to truly "fix" this issue.
    *****End Quote**********
    iBook G4 and assorted boxen Mac OS X (10.4.8) iTunes is on an XP PC

  • Dynamic bandwidth selection for PPPoE over Ethernet/VLAN

    Hello all, hope you are doing great.
    I'm planning to deploy PPPoE Server (Cisco Router 7609) for a ISP. This ISP will provide Internet connection for customer over Ethernet.
    I have to provide a solution to assign bandwidth to each customer by RADIUS and I find some clues that Dynamic Bandwidth Selection (DBS) should be the answer. Unfortunately, DBS only support PPPoA or PPPoE over ATM.
    If you have any experience with equivalent function, please help me. Thank you very much.
    Regards,
    Hiep Nguyen.

    Hiep,
    I think I have figured this out.  Here is the test config on my PPPoE server:
    int lo1
      ip address 172.25.25.25 255.255.255.255
    ip radius source-interface Loopback1
    aaa new-model
    radius-server host 172.16.1.55 auth-port 1812 acct-port 1813 key cisco$$$
    aaa group server radius RADIUS-ACT
     server 172.16.1.55 auth-port 1812 acct-port 1813  
    aaa authentication login default group RADIUS-ACT local
    aaa authorization exec default group RADIUS-ACT local
    aaa accounting exec default start-stop group RADIUS-ACT
    aaa accounting delay-start
    aaa authentication ppp default if-needed group RADIUS-ACT local
    aaa authorization network default group RADIUS-ACT local
    aaa accounting network default start-stop group RADIUS-ACT
    aaa accounting update periodic 5
    bba-group pppoe global
     virtual-template 1
    interface fa0/1
     pppoe enable group global
     ip address 172.30.0.1 255.255.0.0
     no shut
    interface Virtual-Template1
     mtu 1492
     ip unnumbered FastEthernet0/1
     peer default ip address pool GLOBALPOOL
     ppp authentication chap
    ip local pool GLOBALPOOL 172.30.0.2 172.30.127.255
    policy-map POLICE-128K
     class class-default
        police 128000
    policy-map POLICE-512K
     class class-default
        police 512000
    Here are the attributes on the radius server, for a group the PPPoE customer belonged to:
    Service-Type = Framed
    Framed-Protocol = PPP
    cisco-avpair="ip:sub-policy-In=POLICE-128K"
    cisco-avpair+="ip:sub-policy-Out=POLICE-512K"
    Here is the show policy-map on the virtual-access interface the client connected on:
    sho policy-map int virtual-a 3
     Virtual-Access3
      Service-policy input: POLICE-128K
        Class-map: class-default (match-any)
          1000 packets, 1402000 bytes
          5 minute offered rate 0 bps, drop rate 0 bps
          Match: any
          police:
              cir 128000 bps, bc 4000 bytes
            conformed 799 packets, 1120198 bytes; actions:
              transmit
            exceeded 201 packets, 281802 bytes; actions:
              drop
            conformed 0 bps, exceed 0 bps
      Service-policy output: POLICE-512K
        Class-map: class-default (match-any)
          911 packets, 1137746 bytes
          5 minute offered rate 0 bps, drop rate 0 bps
          Match: any
          police:
              cir 512000 bps, bc 16000 bytes
            conformed 799 packets, 1136178 bytes; actions:
              transmit
            exceeded 0 packets, 0 bytes; actions:
              drop
            conformed 0 bps, exceed 0 bps
    I was able to generate enough traffic with ping to meet the exceed action in and have it drop packets.

  • Streaming Problem - incomplete over ethernet

    Hi there,
    I have a problem with the streaming over ethernet from my Intel iMac, connected by ethernet to my Netgear WGR614v6 router, to my AppleTV (also connected to the router by ethernet).
    My iTunes library is around 120 GBs so I have chosen to stream the majority of my content and only sync the content that I cannot stream (photos). Most of my streaming seems to be OK but bizarrely there are a couple of items that I have updated in my iTunes Library that are not reflected on the AppleTV. These appear to be quite random and are not related (as far as I am aware) to problems with encoding.
    Basically I have a podcast subscription which I cancelled in my iTunes library which still appears on my AppleTV, I have a home movie (originally on VCD) in my iTunes Library which is not appearing on the AppleTV and I also have a couple of albums (encoded as VBR 250kbps .mp3 files) that are not appearing on the AppleTV.
    I have re-booted the iMac various times and done 2 factory restores of my AppleTV. Is there anything else I can do? Somehow I think the AppleTV just needs to be forced to re-examine the contents of my iTunes library?
    Any help or tips much appreciated.
    regards
    Raf

    Dear Winston and capaho - thanks for your quick responses.
    ROUTER - I did see some posts about issues with Netgear routers but they were all related to wireless connectivity issues. I am having no problems at all with streaming at sufficient rates and I imagine that issues with Linksys and Netgear routers pop up frequently because they seem to be ubiquitous devices for home users.
    FILE DELETION - I did check that the podcast from which I had unsubscribed really was deleted (and it was indeed gone) and I did check that the albums and home movie (.mp4 file as are all of my other movie files) was indeed present in my library.
    ITUNES LIBRARY.XML - I have identified this as the root of my problems because this .xml file still contains references to the old deleted podcast files and it does not contain references to the media I am missing.
    It appears that iTunes Library.xml corruption is a very common problem (seeing the number of posts on the "using iTunes for Mac" forum) and that is the source of my problem.
    Now to do some testing!
    thanks again
    Raf
    UPDATE: I quit iTunes, backed up and then deleted the .xml file from my "Music" folder in Mac OS X. When I next started iTunes it created a new .xml and this seemed to do the trick!
    Message was edited by: Rafael Sanchez

Maybe you are looking for

  • Windows 8.1 with Bing limitations?

    Hi The new Windows 8.1 with Bing has some limitations about default search providers and start page and are only available for OEM manufactures. Other than that is there any limitations on Windows 8.1 with Bing or is it the same as Windows 8.1 standa

  • Incorrect Display of Totals (Urgent ! Plz Assist)

    Hi everyone,   Please help me out as this is very urgent at the moment.    When I display    PLANT    STORAGE LOC    WAREHOUSE NO    PROFIT CENTRE    MATERIAL    No of Bins -> 7338.6821235    When I display the same report just with    PROFIT CENTRE

  • I've just bought a few apps for the iPad, is it possible to download and use them for the Mac?

    Hi, I knew that all apps after buying them could be downoad to other Apple's devices. The last week I bought Keynote for the iPad and I need for my Mac too, but I don't know why I can't download it. Shoul I buy Keynote for the Mac too? Is the same wi

  • Application programming and finding specific files

    Hi there, I'm doing some applications programming where the apps will actually be installed by something like InstallShield. The apps themselves need to be able to access many files and directories which all will be children of the directory of the a

  • Epson Printer Not Working

    I have an Epson Stylus SX510w and since updating to Mavericks the scanner won't work. The printer works fine but the scanner does not. I have tried using Image Capture, Preview, Photoshop and also system preferences>printers & scanners. In each case