Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Spindle motor control with labview

Hi

 

I want to control the spindle motor with Labview. It is maxon motor EC 32 with encoder and controller. I can control it with the GUI software. But, I am not sure that there have any such options in labview to control the motor? Please let me how I can control this spindle with the help of labview.

 

Thank you for your co-operation.

 

Best Regards

 

Azim

0 Kudos
Message 1 of 12
(7,570 Views)

Hi Azim,

 

Which drive/controller are you using from maxon? Is it the EPOS2?

 

maxon wrote an interface for that drive so you can use it with the LabVIEW NI SoftMotion Module:

https://www.ni.com/en/support/downloads/tools-network/download.epos2-positioning-controller-driver.h...

 

Best Regards,

 

Nate

0 Kudos
Message 2 of 12
(7,557 Views)

Hi Nate,

 

Thank you for your help. The controller that I use is DES 50/5. Would you please help me for this drive.

 

Thank you once again Nate!!

 

Regards

 

Azim

0 Kudos
Message 3 of 12
(7,543 Views)

Hi Azim,

 

It looks like Maxon posted a driver for the DES servoamplifier here: 

http://shop.maxonmotor.com/maxon/assets_external/Katalog_neu/eshop/Downloads/maxon_motor_control/4-Q...

 

The DES can communicate via a command voltage from a motion controller, in the NI case you would use a PCI or PXI 7340 or 7350 series motion controller, and set the drive to +-10V command input mode. 

 

It can also communicate over Serial RS-232 or CAN. I believe the above linked driver implements serial communication, but I haven't had a chance to look at it, so I'm not positive. 

 

See description of modes and comm interfaces here:

http://shop.maxonmotor.com/maxon/assets_external/Katalog_neu/eshop/Downloads/maxon_motor_control/4-Q...

 

Best Regards,

 

Nate

0 Kudos
Message 4 of 12
(7,538 Views)

Thanks Nate. Could you please advise me how I can get motor angular position (in degree or radian) of the spindle. I want to use motor angular position in another program simultaneously.

 

Regards

 

Azim

0 Kudos
Message 5 of 12
(7,413 Views)

Hi Azim,


The function "ReadTempParam.vi," found here seems to be reading out certain parameters from the device.  This might be something to look into as a way to retrieve the angular position.

0 Kudos
Message 6 of 12
(7,389 Views)

Thank you for your suggestion. But, still I can not find out angular position. Could you please help me for the programming to measure the angular position value. I want to use this angular value to other program. I am waiting for your advice. Thank you, Azim

 

0 Kudos
Message 7 of 12
(7,363 Views)

I'm not exactly sure where to find this property.  The proper method of calling DLLs can be found here:

 

How Do I Call a Dynamic Link Library (DLL) from LabVIEW?

 

As far as the specifics of this DLL and how to use its functions, you may get a more detailed response by contacting Maxon.  They will know the internal workings of this DLL, and should be able to tell you how to access this property.

0 Kudos
Message 8 of 12
(7,348 Views)

Hi,

 

Thank you for your help. I was trying to get the rotor angular position using ReadTempParam.vi. I got only quadcount no. The encoder is 2000 quadcount/turn/revolution. During read out  the value of relative rotor position, I have observed that the quadcount always limited to 2000 quadcount/ turn/ revolution. The counting curve is downward (always 2000 to 0, 2000 to 0....) for every rotation. I want to make it (like as 0 ----- 2000----4000---6000) upward for every rotation. Could you please advice me that how I can make it.

 

Alternately, if I have rotor speed in rpm, can I get angular value corresponding this rpm?

 

Please advice me.

 

Regards

 

Azim

0 Kudos
Message 9 of 12
(7,306 Views)

It seems like if you have a number that's counting down, and you'd like it to count up you can simply subtract it from some sort of maximum.  So if the number is "x" and x is counting down from 2000 to 0, you can make your code utilize some variable "y" where y = 2000 - x.  The variable y would then count up from 0 to 2000.

 

As far as relating the number of counts to an angular position, if you know there's 2000 counts per revolution that should directly translate to a position.  For example, you would know that when the count is 1000, the position is 180 degrees from the start.  I'm not sure how this applies to your specific advice, just some observations I'm making about what you've told me.  Hope it helps!

0 Kudos
Message 10 of 12
(7,269 Views)