Maxon Epos 24/5

Dear Sir,
I have an application and I am using Epos with RS 232 with Labview 2010. I got an example and modified it to controll the DC motor from LabView but when I run this program motor moves a little bit and after that it stops it never goes to its desire position. I really don't understand what to change or error is in my programe (I tried with Maxon studio it is working but not with Labview ) Please help me.
I am going to put all .VIs
Best Regards
Talib Hussain
Attachments:
Epos Position Example.vi ‏59 KB
Enabled (SubVI).vi ‏11 KB
Get DATA (SubVI).vi ‏20 KB

ninlmartijn a écrit :
Dear Mr Hussain,
is is much easier to use an instrument driver, please notice that you will need the DLL's from MAXON in this case. Ofcourse you are able to communicate with the serial port of your computer using Labview; use the VISA functions to do that. A good starting point are the VISA examples from the example finder.
In your case you need to have the command strings to communicate with the controller, you can use the VISA API to send these strings to the serial port of your PC.
Use maxon's EPOS Studio to configure and test your system.
Use maxon's EPOS library for LabVIEW... which to program your application.
You can download them on maxonmotor.com.

Similar Messages

  • Maxon EPOS P + WinXP + Labview2013 = error reading USB data 0x23000002

    Hi, 
    I have a DC servo with 3-channel encoder and Maxon Epos P 24/5 controller, connected via RS232 to a Windows XP machine with Labview 2013.
    Epos Studio 2.0 works fine, PIDs are tuned and all functions work 100%. When I try any of the Maxon example VI's, however, it gives me this "error reading USB data. (0x23000002)"
    I can communicate with EPOS in Labview using NI VISA. I have recorded the sequence that Epos Studio sends when scanning COM interfaces (something with hex 07 00 00 00 ). I have sent this sequence via "write to COM port" VI, and received a response from EPOS P.
    If I put my COM Tx and Rx lines on the oscilloscope and run the example VI, I see that at the execution of "VCS Set Operation Mode" VI the computer sends one byte to EPOS, but EPOS does not respond with anything. I guess the read times out and triggers the error. Other EPOS VI's which query the controller for information produce the same error, as EPOS does not talk back to them either...
    I urgently need assistance on this matter. Thank you in advance for your prompt response!

    I need to apologize for confusion. I wrote "error reading USB", while of course I mean "error reading RS232" everywhere in the text. Sorry for that, but the question remains - why do the Maxon LabView VIs give this error when communicating via COM port to EPOS P?

  • Maxon Epos 2 No led - Burned out?

    Hi,
    I've having trouble with my Maxon Epos 2 24/5. A few days ago I was running motion control perfectly fine. All of my connections were laid out on a breadboard. Yesterday I tried to wire all of the connections into MIL connectors. Upon power up, the epos turned on as usual but the encoder signals were all off. I realized I made a mistake with the wiring and re soldered the connections. This time I powered it on however there was a very dim red led which faded away. I disconnected everything except the power. No leds come on and I can't communicate to the Epos.
    Did I completely fry the EPOS?
    Is there anything I can try to bring the EPOS back to life?
    Thank you

    Ruben,
    I would recommend setting everything up the way it once was connected (when everything worked). This will allow you to at least check how much functionality is left in the motor. You should reference your motor manual and the manufacturer of the motor on this topic as they will be able to shed more light on this than national instruments.
    Are you using a national instruments controller or drive; if so, what specific products are you using? 
    <Joel Khan | Applications Engineering | National Instruments | Rice University BSEE> 

  • PID Control and Maxon EPOS 24/5

    Hello,
    I'm trying to control a Maxon RE-40 motor through a Maxon EPOS 24/5 motor controller. I'd like to use torque control, and eventually stiffness control, but for now I'm just hoping to do something super simple like current control. The attached VI is as simple as they come, but I can't find a set of control gains to make the system stable. I mounted my motor into an MTS Servo-Hydraulic System
    and oscilated the motor with a sine wave (1 deg amplitude, 0.5 Hz frequency) and no matter what set point or control gains I use, the PID output exceeds the maximum range I've specified (and I've been very generous with that). Do you have any ideas of what I might be doing wrong?
    Please help. I'm desperate
    Thanks,
    Brian
    Attachments:
    Current Control V1.vi ‏51 KB

    Hi,
    I am interested in doing torque control, but I think that's equivalent to current control for a DC motor. I can't open the VI you uploaded in your message. It's missing sub VI's that start with "PID." If you're willing to share your code, can you post all the VI's associated with it? I would like to send a particular current profile to the EPOS2 24/5 and have it execute the movement, and then send me back all the associated position data. Do you have this functionality?
    Thanks,
    Mary

  • Maxon EPOS Simulation Loop

    Hello,
    I'm using LabVIEW 8.5.1 and I have modeled and simulated a plant I'm developing within a Simulation Loop (attached) and now I want to go and implement the system, but it doesn't appear to be as simple as just dropping the transfer functions and putting DAQ Output and Input VIs in as specified in the "Introduction to LabVIEW in 3 Hours for Control Design and Simulation" tutorial for this particular system. I have a Maxon RE-40 brushed DC motor and a HEDS 5450 encoder interfaced with an EPOS 24/5 positioning controller that communicates with my PC through an RS-232 cable. Can someone talk me through how I can communicate with this system with the VI I already built for simulation purposes?
    Thanks,
    Brian
    Attachments:
    Control System V8.vi ‏215 KB

    Well you have the simulation running right? The point of the transfer function is to represent the response of the physical system right? Well replace the transfer function with the routines for writing values to the system and reading the response that relates to the transfer function output.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Feedback application for a maxon brushed motor controlled with a EPOS2

    Hi,
    I want to implement a VI that controls a linear stage moving vertically. On the platform that is mounted on the linear stage i sitting a load cell. The platform has to move up and down in a sinusoidal kind of way, maintaining a constant load on the load cell (one can imagine a piston and cam system, where the piston is applying the load).
    The load cell is connected through a PCI 6014 and is working fine. 
    The computer can communicate with the motor through the "EPOS studio" provided by maxon, but it cannot perform such an advanced task and therefore I decide to use labview.
    I'm trying to modify the VI that is provided by maxon by implementing a feedback with the voltage from the load cell. I want the motor to move in such a way to maintain the voltage from the load cell constant. 
    I'm not very proficient with labview and I would like to know if this is possible and if so can anyone give some directions?
    Thank you very much,
    Matteo 

    Dear Jochen,
    Thank you for your answer.
    1. Which type of EPOS drive are you using? Could you please provide a link to a datasheet? 
    I am using a EPOS2 50/5, see attached pdf.
    2. Are you using a CANopen interface to the EPOS drive and is there also an option to use an analog signal as torque command?
    No, I'm not using the CANopen interface, but the labview VI provided by maxon (see attached).
    No, the controller has no input analog signal capability. 
    3. Are you using LabVIEW for Windows?
    Yes. 
    4. What's the voltage level of your load cell signal?
    +10V to - 10V 
    5. Do you have any idea about the required control loop timing?
    I'm not even sure I understand what you mean, so no, I don't.
    I just want to add that my application won't require a high speed. The vertical motion will be around 2 cm/s at most 3 cm/s and I was considering that quasi-static.
    Thanks a lot,
    Matteo 
    Attachments:
    EPOS2-50-5-347717_09_EN_303.pdf ‏472 KB
    maxon EPOS.zip ‏1520 KB

  • PXI-8512 CanOpen EPOS EPOS2 Communication

    Hello,
    I¡ve just started using PXI last week. I was wondering if anybody has achieved a CAN Communication between PXI8512 and a EPOS or EPOS2 (Maxon Motor Controller).  
    What is the best way to tackle this problem? 
    Thanks in advanced,
    JCC

    Hi JCC,
    Are you using the CANopen LabVIEW Library for communication? If so then you should be able to find documentation for the controller that lists the addresses and values that correspond to the different functions you can program. If you are not using the library then you can still use high level communication through the instrument driver that is attached to the document linked below.
    Program a Maxon EPOS Motor Controller Using LabVIEW
    Regards,
    Peter W.

  • Maxon compatibil​ity

    Hi there,
    I am a complete beginner to motor control. I need to build a device with a spinning disk which is controlled by mini DC motor and can be held at a constant speed through a feedback loop.
    I have looked around quite a few places to buy the parts and came across Maxon. In particular I am considering buying the following parts from them:
    Motor: 236918 (EC motor)
    Encoder: 228182
    Controller: 249631
    Here's a link to the site I was looking at: https://shop.maxonmotor.com/ishop/controller.xml
    My question is: Can I control this setup using Labview? I have tried emailing them but have had no response.
    Also I have a DAQ card available for use (PCI-6110E/6111E) but from what I've read in other forums this is not the best way to go.
    Can anyone please advise?
    ECG09 

    ECG09,
    indeed in general a DAQ device is not a good option for motion control tasks and I have posted multiple answers about the potential issues of this solution (see tag Motion+DAQ).
    If you want to control a Maxon motor there are several solutions available. Here are the most common ones:
    Use a Motion Control device from NI (e. g. PCI-7342)in combination with a Maxon drive that supports a +/- 10 V (e. g. the DEC 70/10). The driver for the PCI-7342 integrates easily into LabVIEW and it comes with lots of useful examples that make it easy to getting started.
    Use a Maxon EPOS drive with CAN interface. Maxon provides a motion control library for LabVIEW that is based on NI CAN interfaces. You can use any type of NI CAN interface with this library. This solution is a bit more complicated in terms of programming, but it's also not too hard to use.
    As I'm not an expert for Maxon products, I'm not 100% sure, which motor is compatible with which drive, so please check the compatibility with Maxon before ordering a drive.
     Kind regards,
    Jochen Klier
    National Instruments
    Message Edited by Jochen on 02-05-2009 11:42 AM

  • How to use third party DLL's in LabVIEW

    Hi all,
    Am using maxon EPOS 2 (Easy Positionning system) to control the EC motor. It comes with the 32-Bit Windows DLL for labVIEW. How to use these library unctions in labVIEW properly? When i try to call those library function in a LabVIEW program, it's showing me that one warning affecting one caller and so the subVI is not executable. Do i have to change the location of the library files or make to make any other changes??  
    Solved!
    Go to Solution.

    Have you seen the KB: Program a Maxon EPOS Controler using LabVIEW ?
    Christian

  • How to configure EPOS2 24/5?

    Hi,
    I'm using a Maxon EPOS2 24/5 and im'm trying to communicate with Labview 2012 via USB, but i don't know how. I've tried to execute the initialisation function that i've found in Epos Library but it doesen't works...
    I've downloaded de Maxon drivers and i've updated all Labview drivers, then i've tried to connect EPOS2 24/5 with Labview using Tools>Instrumentation>Find Instrument Drivers and my driver appears installed, but when i find the company MAXON in the manufacturer list it doesen't appears.
    If i double-click maxon EPOS on the installed drivers Labview don't allow me to install de driver because i've not selected the manufacturer.
    Thanks!Hope to get an answer
    Best Regards
    Xavier
    Attachments:
    Maxon Manufacturer not found.jpg ‏269 KB
    Maxon Manufacturer not found2.jpg ‏85 KB

    If I try to open with VCS Open Device Dlg.vi, it appears the dialog that I attached. When I select usb configuration, appears the same error Opening port.
    Attachments:
    VCS Open Device dlg.jpg ‏144 KB

  • More than 1 ms MOMO digital IO 7358 in LabView Real-Time 8.5, error downloading EPOS dll file into RT

    Hi all,
    I have several problems here, I tried to google but still I could not solve the problem.
    Here are my questions:
    1. I tried to download an example program of EPOS which require to download a DLL file into the RT, but it failed, here's the error (I attached the picture) 01/02/2008 13:29:50.511 [error] LabVIEW:
    Failed to load shared library EposCmd.dll:_VCS_GetProtocolStackName@16:C on RT target device.
    From the NI.com forum,
    I found a similar problem and it said by installing Network Variable Engine and Variable Client Support into the LV-RT, and I did, but still failed. Any one can help me about this?
    2. I posted a question also in lavag, I think this section is more appropriate. "I
    am trying to use the digital IO of the motion controller of 7358, but then I realized the delay is more that 1 ms (I checked using the oscilloscope), I attached the code (MOMO = Must On Must Off). Is this real, I mean the hardware delay between on-off is as big as this? Anyone knows the solution for this?"
    Note: I am using LV-RT 8.5, PXI-7358 Motion Controller, EPOS 70/10
    Thank you for any help
    Message Edited by bono02 on 01-02-2008 05:47 AM
    Attachments:
    maxon-rt3.JPG ‏120 KB
    momo1.JPG ‏55 KB

    Hello bono,
    1.  From what I have seen, this error is usually caused by one of two things.  The first is the Shared Variable software components not being installed, which is covered in this Knowledgebase.  The other is due to a corruption of the ni-rt.ini file on the Real-Time controller.  You can follow the steps layed out in this Knowledgebase, which gives three possible remedies.  You could also try reinstalling the software (firmware) or create a PXI Uninstall disk from Measurement & Automation Explorer by selecting Tools»Remote Systems»RT PXI Disk Utilities»Create PXI Uninstall Disk.  Boot the PXI Controller from the PXI Uninstall Disk, which will erase the ni-rt.ini and ph_exec.exe on the target.  However, you will need to reconfigure the controller after doing this.
    2.  Due to the nature of the digital I/O on motion controllers, it is not surprising that you are seeing around a 1ms delay.  It deals with the fact that it must update the motion controller with the new value on each control loop.  This Knowledgebase gives a little more clarification regarding the 7350 specs.
    Carlton
    CLD

  • CANOpen Communication NI cRIO 9022 (9853 CAN module) - MAXON EPOS2

    I'm implementing a velocity control loop on two Maxon EPOS2 70/10 control units,  interfacing them with a NI cRIO 9022 (CAN module 9853). To this aim, I'm using the libraries from NI and they work quite well: for each EPOS2 I can read current, position and velocity using 2 PDO messages and set a desired velocity using 1 PDO message, all in a single timed loop on Labview Real-Time. My VI is based on a NI example included in the mentioned library. Even though the sampling time of the loop is set to 10 ms (as in the example file), I verified that all the operations were executed in about 30 ms.
    My target is 1 ms sample time and I'd like to know if there is any chance to get this; are there some limitations in the software/communication protocol I'm using or is it possible to achieve 1 kHz control frequency? Based on the documentation, the EPOS2 CANopen driver is split as follows:
    1.      Hardware Layer: VIs which interact with the CAN hardware (FPGA Interface folder).
    2.      CAN Layer: VIs which construct/deconstruct CAN packets and handle communication between the Hardware Layer and the top level application (CAN folder).
    3.      CANOpen Layer: Low level VIs which simplify the generation of the SDOs and PDOs used to communicate over the CAN bus (CANopen folder).
    4.      EPOS2 Driver Layer: High level wrappers over the CANOpen Layer simplifying the control of EPOS2 drives (main folder).
    It seems that the Layer that construct/deconstruct CAN packets is impelemented on the RT level. Is it correct? Do I need to move it to the FPGA level to improve performances?
    I look forward to hearing any suggestions from you.
    Best,
    Nevio

    Hi Nevio, 
    I am trying to simply read encoder values from my EPOS2 24/2 control units into Lavbiew. I have been through all the documentation however I am unable to establish communication between the EPOS2 and labview.
    I am connecting the two using a USB connection. I can connect to and control the motors in EPOS Studio, but nothing in labview.
    I am very new to Labview so I am probably not putting the correct blocks down for initialization.
    Could you please help me by suggesting some good examples to look at or linking me to labview sample of initializing communication with the EPOS2 units. 
    Any help is greatly appreciated
    Regards,
    Kris

  • How to control 2 epos motor using microcontroller 50/5

    Hi. i've done a program from epos integrated to labVIEW to control 1 epos motor. i do the program by using the given epos sub-vi to labVIEW, but i only know how to do for controlling 1 motor. Anyone can help me or tell me how to control 2 motors or wad is needed?? thanks for your help :-D
    Solved!
    Go to Solution.

    Hi Spydi,
    up to now, I never did it with two EPOS. But you should first check your setup with the EPOS-Studio. You need to set two different Node ID`s and after this works from the EPOS-Studio <you should do two seperate lines of programming in LabVIEW. I attach some VI`s from maxon which are simple in using for one EPOS. I assume you just need to program them in parallel.
    And you don`t need the CANopen Library, it`s possible to use but very difficult. The EPOS-Library from the download is a Set of VI`s which where developed by maxon in Switzerland and free of use, they use a Communication DLL behind. If you`re interested maxon develops a new release right now. If you want to use them instead of the one you already had, let me know, I can ask there for a BETA and place it here at the forum.
    Kind regards
    Alex Rudolph
    NI Switzerland
    Attachments:
    EPOS Module.zip ‏77 KB

  • CANOpen Communicat​ion NI cRIO 9022 (9853 CAN module) and MAXON EPOS2

    Hi all
    I am trying to implement a velocity control loop on my Maxon EPOS2 motor controller, by using PDOs sent through my real-time controller (NI cRIO 9022) with a CAN module (9853).
    I configured the PDO mapping in the object dictionary of the EPOS2, so that each new RxPDO1 contains the new desired velocity setting value, and I am trying to use the simple example contained in the National Instrument example directory criocanopenbaisc (freely downloadable here http://zone.ni.com/devzone/cda/epd/p/id/5474).
    I can change manually in the object dictionary the value of desired velocity by using the EPOS studio tool by connecting via USB the EPOS2 to my computer, but when I connect the EPOS2 to the CAN0 port of cRIO the newly sent values does not make effect.
    At the first try the .vi file hung on the Read PDO command, which is right after the Write PDO command. I suppose it means that no real PDO is sent over the CAN bus. However, I excluded the "Read PDO" from the diagram, now the file executes and terminates but no command is sent to the EPOS. I can verify through an oscilloscope that many similar digital waveforms are sent, just like if no ACK signal was received.
    After various tentatives, I sent PDOs structured in the following way:
    COB-ID (4 bytes containing the U32 representation of the COB-ID for RxPDO1: 531)
    Updated value (4 bytes containing the representation of the desired velocity value, U32).
    0 in U32
    0 in U32.
    The last two U32 are sent so to be coherent with the example of the NI library nicanopenbasic.
    At the moment only one signal is sent (no more repetitive signals representing fault communication), but the values are not updated in the EPOS2... 
     Cheers  
    Solved!
    Go to Solution.

    Duplicated post

  • CANOpen Communication NI cRIO 9022 (9853 CAN module) and MAXON EPOS2

    Hi all
    I am trying to implement a velocity control loop on my Maxon EPOS2 motor controller, by using PDOs sent through my real-time controller (NI cRIO 9022) with a CAN module (9853).
    I configured the PDO mapping in the object dictionary of the EPOS2, so that each new RxPDO1 contains the new desired velocity setting value, and I am trying to use the simple example contained in the National Instrument example directory criocanopenbaisc (freely downloadable here http://zone.ni.com/devzone/cda/epd/p/id/5474).
    I can change manually in the object dictionary the value of desired velocity by using the EPOS studio tool by connecting via USB the EPOS2 to my computer, but when I connect the EPOS2 to the CAN0 port of cRIO the newly sent values does not make effect.
    At the first try the .vi file hung on the Read PDO command, which is right after the Write PDO command. I suppose it means that no real PDO is sent over the CAN bus. However, I excluded the "Read PDO" from the diagram, now the file executes and terminates but no command is sent to the EPOS. I can verify through an oscilloscope that many similar digital waveforms are sent, just like if no ACK signal was received.
    Looking forward to receiving any hint
    Fabrizio 

    Some updates on the developments, since no one yet replied...
    At the current time the PDO sent is structured in the following way:
    COB-ID (4 bytes containing the U32 representation of the COB-ID for RxPDO1: 531)
    Updated value (4 bytes containing the representation of the desired velocity value, U32).
    0 in U32
    0 in U32.
    The last two U32 are sent so to be coherent with the example of the NI library nicanopenbasic.
    At the moment only one signal is sent (no more repetitive signals representing fault communication), but the values are not updated in the EPOS2...
    Cheers 

Maybe you are looking for