Using LabView and Modbus to Communicat​e with AKD Servo Drive

I’m working on a project to control a Kollmorgen AKD servo application using Modbus directly from LabVIEW.  I’m new to both LabVIEW and servo drives so forgive me if this seems simple.  I have established communications to the drive through Modbus and have been successful at some rudimentary control of the servo.  I know the drive only supports "Write Multiple Registers” and “Read Holding Registers” functions and there are scaling factors that need to be applied.  What I need is some help with taking the Modbus information supplied by Kollmorgen for each command and formatting it for communication to the servo and vice versa.  I need to understand how to take the supplied 8, 16, 32, and 64 bit information for commands, scale it, and format it into the two or four registers required for the drive to read the parameters.  In turn, I also need to understand how to take the same information and read it and scale it from the drive.  I’ve attached a spreadsheet with the particular commands I’m interested in and a sample VI that seems to work for speed control but to be honest, I'm not sure how/why.
Attachments:
KM Modbus Cross Reference.xlsx ‏57 KB
VEL.CMDU.vi ‏10 KB

OK, I've got the ability to read values from the AKD drive pretty well sorted out.  I'm now having trouble with the ability to write.  I want to use Labview to program Motion Tasks in the AKD drive.  To do this I need to perform three commands: MT.NUM (specify the motion number), MT.P (specify the angular position), and MT.SET to set the parameters for the task.  MT.P requires sending a 64 bit signed float or a 32 bit signed float (requiring four or two registers respectively).  I used ModPoll to see what values the drive held in the MT.P registers after entering the desired angular position using the AKD Workbench software.  For example: using Workbench I entered 234.567 for the angular position and read 208 and -32506 from registers 2060 & 2061 (the 32 bit registers for MT.P).  After scouring the forum I put together the attached VI to try to write to the same registers but I can not seem to get the translation of the input (angular position) to the register values correct (entering 234.567 does not produce 208 and -32506 in registers 2060 & 2061).  Anyone have any ideas?
Attachments:
Motion Task Definition Rev H.vi ‏21 KB

Similar Messages

  • I am trying to integrate simulink model (.mdl) file with SIT of Labview for RCP and HIL purpose. I am using Labview 8.6, Simulink 6.6 with RTW 6.6 and RTW embedded coder 4.6 ,Visual C Express 2008 and Visual C++ Express 2008.

    I am trying to integrate simulink model (.mdl) file with SIT of Labview for RCP and HIL purpose. I am using Labview 8.6, Simulink 6.6 with RTW 6.6 and RTW embedded coder 4.6 ,Visual C Express 2008 and Visual C++ Express 2008. I have selected system target file as nidll.tlc,make command as make_rtw and template nidll_vs.tmf. When I try to generate .dll file I get the following error.
    Attachments:
    SITProblem.JPG ‏101 KB

    Hi,
    No . I could not solve the issue. Presently we are using microautobox (from Dspace)for doing the RCP.
    Himadri 

  • Please help me with my electrical engineering homework : temperature control and watering system for greenhouse using labview and arduino

    temperature control and watering system for greenhouse using labview and arduino
    spesification :
    1. max temp : 28 celcius (when temperature is more than 28 celcius, fan ON)
    2. min temp : 20 celcius (when temperature is under 20 celcius, heater ON)
    3. watering system : aquaponic (grow plant and fish in separate tank but connect each other). Plant roots help filter water for fish. Fish poop for plants fertilizer. So I need a pump to distribute water.
    Please help me create VI file simulation.. I'm sorry I'm not fluent in English. May God bless you all
    Attachments:
    YOOOSHH.vi ‏88 KB

    Duplicate thread.   Please keep the discussion in that thread where you already have a response. It is also the more appropriate thread for your question.
    Lynn

  • I am trying to use Labview and RP1210 compliant hardware to connect to a truck J1939 bus and receive messages.

    I am trying to use Labview and RP1210 compliant hardware to connect to a truck J1939 bus and receive messages. 
    Specifically I am attempting  to read data frames using the RP1210_READMESSAGE .   am able to configure the hardware and send a message to the J1939 bus. .    I think I have not configured something correctly.  I can use the RP1210_SENDMESSAGE and see the message I have sent on the bus using CANalyzer   When I use the RP1210_READMESSAGE   I get the timestamp from a message and the return from the function sends back the correct number of bytes (the number matches the number of bytes I sent out plus four bytes from the timestamp).  What I am having trouble with is actually receiving the data. I have had the same type of behavior from two different hardware (Vector CANcase XL and Nexiq USB Link), so I don't think the issue is vendor specific.
    Has anyone been able to make the RP1210_RECIEVEMESSAGE function work correctly?
    Thanks for any help

    Thanks
    I have already tried that.  The links are the NI RP1210 wraper. The problem I am having is using labview to interface with the RP1210 layer.  The RecieveMessage char*fpchAPIMessage this is the output which is a pointer to a cahracter array.  In this variable I can receive the timestamp of the message but not the message.  The retun showns the correct amount of bytes are aviaable (18 for a 8 byte message) but I can only get the 4 byte timestamp  I think I have to dereference this pointer to view the data.  I am not sure how to fix this. 

  • How to recognize certain word or voice (like cry) using labview and kinect?

    By using labview and kinect, how to recognize some sample world like 'ok', 'help', and voice like crying and screaming?

    This is not really a LabVIEW question, but a signal processing question. Do you have a set of crying sounds in order to be able to calibrate whatever algorthm you are trying to implement?
    LabVIEW Champion . Do more with less code and in less time .

  • I bought a used macbook air,  it didn't come with the flash drive to do a factory reset.  Can I download the info needed and save it to my own flash drive and then do a factory reset?  If not what can I do?

    I bought a used macbook air,  it didn't come with the flash drive to do a factory reset.  Can I download the info needed and save it to my own flash drive and then do a factory reset?  If not what can I do?

    If it originally shipped with Mac OS X 10.6.8 or earlier, click here, phone Apple, and order a replacement.
    If it originally shipped with Mac OS X 10.7 or newer, restart it with the Option, Command, and R keys held down.
    (113079)

  • How to use LABVIEW to collect wireless network camera (with video server) video.

    How to use LABVIEW to collect wireless network camera (with video server) video.I would like to use LABVIEW for a wireless network camera (IP Camera comes with the video server module)the client program.Will the ability to achieve?If feasible, how to do, there are examples, thank you.

    I believe NI Vision is what you are looking for. 

  • Hi - I cannot upload my emails through the mail icon.  The first time I tried it only loaded very old emails, I then tried the whole process again and it has not imported a single email.  I use hotmail, and have had no problems with my iPhone or iPad.

    Hi - I cannot upload my emails through the mail icon.  The first time I tried it only loaded very old emails, I then tried the whole process again and it has not imported a single email.  I use hotmail, and have had no problems with my iPhone or iPad.  So the only way I can check my emails on my mac is to go through the internet.  Can anyone help?

    Hello, do you mean Download?
    In Mail's Window Menu, choose Connection Doctor, any red dots for status, if so what is the message?
    Then click the Show Details button & Check again.

  • Motion control: PXI 7350 controller and UMI 7774 to interface with third-party driver UDK5114NW2

    Dear community,
    This is about Motion control in Labview: I try to control a step motor by using a PXI 7350 controller and UMI 7774 to interface with  third-party driver UDK5114NW2. The problem is 5 Disable LEDS on UMI 7774 board always lit even when I check "enable" on "Motion I/O setting" in configuration of PXI 7350 motion controller. Furthermore, when I start to control step motor, it is not working and I found disable LED on UMI board still lit. I don't know how to solve this problem. Can someone help me to figure out? Thank you in advance!
    Hau Nguyen.

    Dear Community,
    I said wrong, 4 disable LEDS on UMI 7774 Board instead of 5 as my previous post. Why nobody help me to solve this problem. I can not turn off disable LEDs on UMI 7774 Board so I can not start the strp motor. Please help me!
    Hau Nguyen. 

  • ?I have Adobe Photoshop elements 12, my computer crashed and I purchased a notebook with no DVD drive, how do I install my product on my new computer?

    ?I have Adobe Photoshop elements 12, my computer crashed and I purchased a notebook with no DVD drive, how do I install my product on my new computer?

    Download is for multiple languages, including English

  • I buy the new imac,late 2012 with a hard-drive 3TB and i want to change with another hard-drive 1TB....where i can buy?

    i buy the new imac,late 2012 with a hard-drive 3TB and i want to change with another hard-drive 1TB....where i can buy?

    It's also much more difficult to install third-party hard drives in current or recent Macs than it was. See:
    http://blog.macsales.com/10146-apple-further-restricts-upgrade-options-on-new-im acs
    The 2012 iMacs are also in essence glued together and very difficult to disassemble and reassemble. The bottom line is: don't try it.
    Why, if I may ask, would you want to remove the 3TB drive and replace it with a 1TB drive? What is it you hope to achieve even if it were possible?
    Regards.

  • How to detect a lost TCPIP SOCKET using LabVIEW and NI VISA

    I am using VISA functions in LabVIEW to remotely communicate with instruments over TCPIP SOCKET visa resources.   In general this all works well by simply creating a resource name, passing it to VISA Open and then setting a couple of session attributes.   Occasionally an instrument will be reset or power cycled and what I have noticed is that I need to call a VISA Close and then reopen the resource in order to get it to communicate again or close LabVIEW and run again.   If you just use VISA Open without calling a VISA Close first you cannot communicate with the target.   The problem is that I have no way of detecting this condition.   I have tried always calling a VISA Close before VISA Open and this seems to work for this condition but it seems odd to always close a session before opening it.   Why does VISA OPEN not work under this condition and is there any way to detect this situation?
    Solved!
    Go to Solution.

    It works that way because that is how TCP works. A TCP connection is a dedicated connection between two endpoints. Unfortunately other than getting an error from a read or write operation there is no way to determine if the othe rside of teh connection is still there. You need to close the connection because otherwise VISA will continue to use th eold connection which is no longer valid. Closing it allows the system to cleanup the dead connection.
    If you are communicating fairly infrequently you could simply open the connection, do you stuff and close it. The overhead for establishing the new connection is not that much. If you are using steady streams of data then you will need to watch for the errors and then reestablish the connection by closing the old one and opening a new connection as you have observed.
    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

  • Strain measurements using labview and DL750 scopecorder

    Hi
    I want to use labview to do strain measurements using DL750 Yokogawa Scopecorder. I have installed the DL750 drivers and I  can access them from labview, but I am a bit lost as to getting to communicate with the scopecorder, setting up measurements and so on. I am all new to strain measurements and to labview, is there a link or a tutorial that anyone would recommend I refer to?
    Regards, tickle

    Hi Tickle
    It looks like the driver you are using is supported by a third party. I took a look at the driver you are using and it has a couple of examples included with it. I would recommend taking a look at these examples as they are normally a good starting point for communicating with your device. Has anyone else used this device in LabVIEW?
    Best Regards,
    Adam G 
    National Instruments
    Applications Engineer

  • Looking for full time position using Labview and/or PLC's in Long Island NY area

    I have 13 years experience using Labview for user interface/daq applications.  I also have 20 years experience with Programmable Logic Controllers (PLC) programming for industrial machine controls.  My resume follows:
    Adam Wechsler
    111 Holbrook Rd.,Holbrook,NY 11741,(631) 981-1013 [email protected]
    Objective
    Labview programming, virtual instrumentation, industrial machine controls,
    automation, PLC, HMI, GUI, data acquisition
    Education:
    B.S. Mechanical Engineering 5/89
    Polytechnic University, Brooklyn, NY
    A.S. Engineering Science 5/86
    Suffolk Community College, Selden, NY
    (GPA 4.0 Dean's List Spring 1986)
    Experience:
    Controls Engineer 5/1994-3/2009
    Vacuum Instrument Corp., Ronkonkoma, NY
    *Program, troubleshoot, and upgrade automated Vacuum Chamber Industrial Leak Detection systems controlled by Allen Bradley PLCs in an OEM environment.
    *Debug equipment functions and programs prior to shipping, at customer's site, and by phone.
    *Integrate and install various types of peripheral equipment, barcode scanners and printers,
    *Design and develop Labview graphical user interfaces and HMI applications including recipe management and data collection for industrial machinery.
    *Write and review user manuals and installation instructions.
    Production Engineer 10/1989-5/1994
    Izumi Corporation, Yaphank, NY
    *Program, maintain, troubleshoot, and repair PLC controlled hydraulic, pneumatic, and control systems for automation in a hands-on environment.
    *Improve design for manufacturability of new products and prototypes to be urethane/injection molded.
    *Program, maintain, troubleshoot, and repair six axis hydraulic paint spraying robots.
    *Create interface between multiple PLC’s and central computer system.
    *Improved design and productivity of high volume, computer controlled, robotic molding machine by 150%.
    Consulting Projects:
    *Created Labview user interface components, and recipe management system for the testing of motion control servos.
    *Programmed Allen Bradley PLC machine logic for packaging machine for a food service supplier.
    *Created Labview to Allen Bradley PLC setpoint and monitoring interface for electric motor-starter test stand.
    *Programmed Allen Bradley PLC and PanelView operator interface terminal for cosmetic packaging assembly machine.
    *Developed Labview application for Fourier and statistical analysis of myogram biomedical data for researching the efficacy of acupuncture treatment.
    Other:
    *Attended National Instruments Labview training courses, and regularly attend local Labview Users Group meetings as a long standing member.
    *Member IEEE
    *13 years experience with Labview
    *15 years experience with vacuum chamber, mass spectrometer, and related technologies
    *20 years experience with PLC's and automated systems
    *Attended Autocad training course.
    *Willing to travel

    Will also consider contract, part time, or consultant work.

  • How to detect baby crying using labview and webcam?

    Hi, I am new to labVIEW. I have a project that it requires me to develope a application to detect various types of  baby crying using labVIEW.The hardware we use will be webcam or kinect xbox 360. The system for my computer is windows 7. I used to try to create a threshold frequency to detect baby crying,but it not work well. So  I want to ask what else method should I use to develop this application that can differentiate baby crying with other kind of sound( like normal talk, music...) correctly? As I just start learning labVIEW, hope the method to be easy to understand. Thanks.

    This is not really a LabVIEW question, but a signal processing question. Do you have a set of crying sounds in order to be able to calibrate whatever algorthm you are trying to implement?
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Need to add the patch for Canon 5D mark III raw files to Photoshop. Where can I find it?

    Hi Friends, I am editing on my lap top for the first time since buying the Canon 5D Mark 3. My Photoshop (5.5) does not recognize the raw files. Where can I download the update? Thanks in advance, Esther

  • Missing xpchelper

    I am having a problem with quicklook and certain file types (flv, etc.). I only noticed it recently after not using quicklook for a long time, and have no idea what might have caused it. I found instructions elsewhere saying I needed to rebuild my xp

  • Restriction for purchase Requisition Number in ME21N

    Hi All, I want to raise an error message in ME21N, if the user creating PO without perchase rechase requisition number. For this i choosed one BADI. Definition Name: ME_PROCESS_PO_CUST Interface Name : IF_EX_ME_PROCESS_PO_CUST i have implemented the

  • 4.0.5 Making "Create DVD" but nothing happens...

    I'm trying to make a DVD with my movie but Compressor hangs up on the message "Waiting"... and nothing happens... Please help... That's what I get:

  • URGENT! Please how to link button to a local folder?

    Hi I am using a MAC Please this is really urgent as I only have less than an hour to figure how to change my interface so the button will just open a local folder on the desktop?? i tried getURL- but does not seem to work ANY help will be appreciated