Home
Downloads
Mach and LazyCam
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Known Bugs
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 13, 2012, 01:00:54 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Third party software and hardware support forums.
dspMC/IP motion controller
(Moderator:
vitalsystem
)
DSPMC AxisWorks Configuration
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: DSPMC AxisWorks Configuration (Read 1799 times)
0 Members and 1 Guest are viewing this topic.
xavi
Active Member
Offline
Posts: 17
DSPMC AxisWorks Configuration
«
on:
April 06, 2010, 11:45:48 AM »
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
MotorDriverControllerConnections.doc
(26.5 KB - downloaded 91 times.)
«
Last Edit: May 04, 2010, 08:38:59 AM by vitalsystem
»
Logged
vitalsystem
Active Member
Offline
Posts: 75
Re: DSPMC AxisWorks Configuration
«
Reply #1 on:
April 06, 2010, 10: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, 08:39:36 AM by vitalsystem
»
Logged
xavi
Active Member
Offline
Posts: 17
Re: DSPMC AxisWorks Configuration
«
Reply #2 on:
April 07, 2010, 09: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
axis1_X.xml
(0.33 KB - downloaded 93 times.)
axis2_Y.xml
(0.33 KB - downloaded 71 times.)
pid.xml
(0.92 KB - downloaded 40 times.)
axis 1 (a).JPG
(153 KB, 1024x768 - viewed 149 times.)
«
Last Edit: May 04, 2010, 08:39:58 AM by vitalsystem
»
Logged
vitalsystem
Active Member
Offline
Posts: 75
Re: DSPMC AxisWorks Configuration
«
Reply #3 on:
April 07, 2010, 09: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, 08:40:14 AM by vitalsystem
»
Logged
xavi
Active Member
Offline
Posts: 17
Re: DSPMC AxisWorks Configuration
«
Reply #4 on:
April 09, 2010, 07: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
axis2.JPG
(150.04 KB, 1024x768 - viewed 146 times.)
axis1(b).JPG
(144.47 KB, 1024x768 - viewed 111 times.)
«
Last Edit: May 04, 2010, 08:40:36 AM by vitalsystem
»
Logged
vitalsystem
Active Member
Offline
Posts: 75
Re: DSPMC AxisWorks Configuration
«
Reply #5 on:
April 09, 2010, 11:05:43 AM »
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, 08:41:12 AM by vitalsystem
»
Logged
xavi
Active Member
Offline
Posts: 17
Re: DSPMC AxisWorks Configuration
«
Reply #6 on:
April 27, 2010, 01: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
x axis b.JPG
(137.55 KB, 1024x768 - viewed 138 times.)
x-axis a.JPG
(127.75 KB, 1024x768 - viewed 134 times.)
«
Last Edit: May 04, 2010, 08:40:50 AM by vitalsystem
»
Logged
vitalsystem
Active Member
Offline
Posts: 75
Re: DSPMC AxisWorks Configuration
«
Reply #7 on:
April 27, 2010, 02: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, 08:42:11 AM by vitalsystem
»
Logged
TOTALLYRC
Active Member
Offline
Posts: 277
Re: DSPMC AxisWorks Configuration
«
Reply #8 on:
April 28, 2010, 01:22:05 AM »
+1 on Notepad++
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, 08:41:42 AM by vitalsystem
»
Logged
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.
xavi
Active Member
Offline
Posts: 17
Re: DSPMC AxisWorks Configuration
«
Reply #9 on:
May 03, 2010, 02: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, 08:42:46 AM by vitalsystem
»
Logged
Pages:
1
2
»
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP motion controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
Loading...