Hello Guest it is October 23, 2019, 08:29:10 PM

Author Topic: DSPMC AxisWorks Configuration  (Read 11759 times)

0 Members and 1 Guest are viewing this topic.

Offline xavi

*
  •  17 17
    • View Profile
DSPMC AxisWorks Configuration
« on: April 06, 2010, 12:45:48 PM »
Dear All;
I am Xavi. I have posted on the forum few months ago about Interfacing OROM Servo Driver – Motor and DSPMC controller.   Following some suggestions and the user guides I have made all the connections for the two needed axis (X and Y).  I am trying to tune the motors with AXIS-WORK Rev 4.6 software but I am having lot of problems.  I don’t know for sure whether the problems are due to my connection or the chosen Axis work settings.  The motor encoder signal (passing through the servo driver) for axis X is connected to DSPMC (J6) Ch 0 and axis Y to Ch 1.

Using AXIS-WORK Rev 4.6 software Problem:
One of the axes (Y) is working fine, although I had to set the speed and acceleration to less than 6 and 10 respectively. Higher than this value the program gives a follow error.
AXIS – X
For this axis as soon as the PID is armed the motor automatically starts running and then stops and the program gives a follow error. Only when the feedback source is set to any channel other than where it’s connected, on the “configure control “option, the motor run when I press execute  but no changes on the position Axis display.  

I have tried solving it by connecting the motor encoder signal to channel 2, by changing the setting values (speed, acceleration, PID), or by grounding the analogue signal to motor (so that it never moves), but I still have the same problem (quick automatic start and stop).
I have swapped the axis connections between (axis X & Y) on the breakout board and found that whichever axis connected to DSPMC ch1 (J6) and analogue output 1(J4) the motor run fine without follow error on axiswork.  For the other I have problem.  


I wonder if some of you may have experienced this or have some ideas on how I might be able to solve it.  Looking forward to your replying.
 
PS: I have attached a .doc file of my connections. The pdf user guide of the servo and dspmc controller are on my previous post.

Regards

Xavi
« Last Edit: May 04, 2010, 09:38:59 AM by vitalsystem »
Re: DSPMC AxisWorks Configuration
« Reply #1 on: April 06, 2010, 11:45:37 PM »
hi Xavi,

what is the input source index for the problem axis?. it should be same as the axis number.  any other value will make it a slave axis.  can you post the dspmc.xml file?

thanks
Rufi

« Last Edit: May 04, 2010, 09:39:36 AM by vitalsystem »

Offline xavi

*
  •  17 17
    • View Profile
Re: DSPMC AxisWorks Configuration
« Reply #2 on: April 07, 2010, 10:21:32 AM »
Hi Rufi;

For the input source index, I use the same number as the selected axis. The setting on dspmc.xml are different from the ones I am using. As I have moved this file before into the MACH3 software folder, when i was installing the MACH3. Right now I am changing the setting from the axiswork software one axis at time.  

I have saved the control configuration and PID setting I am using for each axis. The problem axis being "axis 2" the setting was saved on "axis2_Y" file. The good axis is on "axis 1" setting saved as "axis1_X", the same PID values are used for both axis.
I have also included screenshot of the PID tuning graph for the good axis both in reverse . I was wonder if the curves
reflects a good result. Looking forward hearing from you.

Thanks

xavi
 
« Last Edit: May 04, 2010, 09:39:58 AM by vitalsystem »
Re: DSPMC AxisWorks Configuration
« Reply #3 on: April 07, 2010, 10:32:10 AM »
hi Xavi,

looks like you need to change the polarity of the bad encoder.  there is a setting in the xml to do that so you dont have to swap the plus and minus encoder signals.  Please get the xml file from www.vitalsystem.com/dspmc, and then use that as base and make changes to match your system.  you can download this file from AxisWorks to dspmc, make changes and then save in the same dspmc.xml file. this way when you run Mach3, all settings are already done and matched with your machine.   You should have only one copy of dspmc.xml in your computer (backup copies with different name).

the graph time is too long. for tuning, it is better to keep the move within 1/2 second and at high speed.  the following-error is required in a servo pid system, so you cannot get rid of it completely.  but I can see there is lot of room for improvement in your graph.

thanks
Rufi

« Last Edit: May 04, 2010, 09:40:14 AM by vitalsystem »

Offline xavi

*
  •  17 17
    • View Profile
Re: DSPMC AxisWorks Configuration
« Reply #4 on: April 09, 2010, 08:44:16 AM »
Hi Rufi;

Thanks you for your replay... The problem was on the polarity as you mentioned.  I am now trying to tune (by trial and error) both of the axis.  I have attached pictures of the corresponding axis S-curve, i am wondering if more improvement is needed in your opinion.  Also do have  any reference (website) that explain these parameter CFF and CDFF gain? Thanks again for your help.

Regards

Xavier
« Last Edit: May 04, 2010, 09:40:36 AM by vitalsystem »
Re: DSPMC AxisWorks Configuration
« Reply #5 on: April 09, 2010, 12:05:43 PM »
hi Xavier

having 0 in the max error I while I term is non zero is not correct.  there must be a limit on the I term error, otherwise oscillations are uncontrolled.

try these pid settings, and tweak them based on the response you see on the graph.  looks like you are getting very close to having a good tune settings.

P 5000
I 50
D 100000
Scale 1500
Max Error I 400
everything else is 0

also increase the distance from .1 to .25.

I dont have good experience with cff and cdff.  and I dont use them.

if you see still see too much oscillation, then decrease max err I.  

regards,
Rufi
 


« Last Edit: May 04, 2010, 09:41:12 AM by vitalsystem »

Offline xavi

*
  •  17 17
    • View Profile
Re: DSPMC AxisWorks Configuration
« Reply #6 on: April 27, 2010, 02:59:15 PM »
Dear Rufi;

My apologises for late replaying... I had a bit of set back as the labs were being used by student... I have played with the setting you suggested and attached a pic of the graph...

I have question on Starting DSPMC with Mach3... On DSPMC user manual I couldn't find information on the Map of J2 pins into Mach3... I am driving my axis through the DAC J2 pins... How are these mapped into Mach3...  or rather wht setting shold I use for Motor output on Mach3... Because the Mach3 Motor output setting it uses "step, direction" for the axis...     Looking forward to your replay...
Thanks in advance

xavi
« Last Edit: May 04, 2010, 09:40:50 AM by vitalsystem »
Re: DSPMC AxisWorks Configuration
« Reply #7 on: April 27, 2010, 03:28:43 PM »
the tunning graph looks good.

for dac motor outputs, you dont need any setting in mach3.  it is loaded from dspmc.xml file.  make sure this file has all the correct settings and placed in c:\mach3 folder.  

there is a very nice editor Notepad++ which I use to edit dspmc.xml file.  download from http://sourceforge.net/projects/notepad-plus/files/

thanks
Rufi
« Last Edit: May 04, 2010, 09:42:11 AM by vitalsystem »
Re: DSPMC AxisWorks Configuration
« Reply #8 on: April 28, 2010, 02:22:05 AM »
+1 on Notepad++ ;D

In Mach3 under the config tab you will need to go into the ports and pins tab. From there you will need to go to motor outputs and click on the axes that you want to use. It will change from a red X to a green check mark.

Mike
« Last Edit: May 04, 2010, 09:41:42 AM by vitalsystem »
We never have the time or money to do it right the first time, but we somehow manage to do it twice and then spend the money to get it right.

Offline xavi

*
  •  17 17
    • View Profile
Re: DSPMC AxisWorks Configuration
« Reply #9 on: May 03, 2010, 03:57:07 PM »
Thanks Guys...

I am able to Jog motors with mach3, also the limit switches, e-stop are working fine... I trying to tune the axis (encoder count/mm) with mach3...
I am not sure wht should be the setting for RPM on the dspmc.xml file. The servo motor/driver user manual gives the number of encoder pulses of 2048 pulse/rev  and a encoder divider rate of 1000 pulse/rev.  i don't know which of these figure i should multiply by 4 and use as setting for the RPM....


Xavi
« Last Edit: May 04, 2010, 09:42:46 AM by vitalsystem »