Closing the servo loop with HAL mesa 7i76

More
17 Feb 2020 18:10 #157644 by PCW
Not sure of the defaults so:

setp hm2_7i76e.0.encoder.00.filter 0

Would be safer
The following user(s) said Thank You: Clive S

Please Log in or Create an account to join the conversation.

More
18 Feb 2020 20:13 #157744 by Todd Zuercher

One possibility is that you are running into the encoder maximum
count rate. To test this, you might try turning off the encoder filter bit
in the hal file.


Is this a matter of commenting out this line setp hm2_7i76e.0.encoder.00.filter 1

I have never used hal scope but will give it a try.

Thanks for the support. :)


You can't really accurately tune the PID for running closed loop without using Halscope. (At least I can't imagine a way) You are going to have to learn how to do that. Then follow one of the velocity servo tuning tutorials.
The following user(s) said Thank You: Clive S

Please Log in or Create an account to join the conversation.

More
19 Feb 2020 16:31 #157866 by Clive S

Not sure of the defaults so:

setp hm2_7i76e.0.encoder.00.filter 0

Would be safer


Ok tried it with filter setting to 1 same result

Now I have delved into the mystery of hal scope

Does this help. Triggered from following error


Not sure if I have done it correct
Attachments:

Please Log in or Create an account to join the conversation.

More
19 Feb 2020 16:38 #157870 by tommylight
Clive, just in case you missed it, this might be helpful:
forum.linuxcnc.org/10-advanced-configura...ning-detailed-how-to
The following user(s) said Thank You: Clive S

Please Log in or Create an account to join the conversation.

More
19 Feb 2020 16:45 #157871 by Todd Zuercher
From that image it looks like one of two problems (or a combination of the 2). Either you need alot more P (you have P=10 now) or your motor/drive can't match the max acceleration settings you have set in your ini file.
The following user(s) said Thank You: Clive S

Please Log in or Create an account to join the conversation.

More
19 Feb 2020 17:03 - 19 Feb 2020 17:05 #157874 by Clive S

From that image it looks like one of two problems (or a combination of the 2). Either you need alot more P (you have P=10 now) or your motor/drive can't match the max acceleration settings you have set in your ini file.


The motor and drive are a matched pair. this only happens in closed loop.

I will experiment with the P (perhaps I should give it some of my tablets for my P) B)

Thanks for the interest.

edit this is step/dir setup
Last edit: 19 Feb 2020 17:05 by Clive S.

Please Log in or Create an account to join the conversation.

More
19 Feb 2020 17:08 - 19 Feb 2020 17:14 #157876 by PCW

The motor and drive are a matched pair. this only happens in closed loop.


You only _see_ the error in closed loop. its very likely its still there in open loop mode, but not detected

To me it looks like Todds second suggestion, you are exceeding the drives acceleration settings
Last edit: 19 Feb 2020 17:14 by PCW.
The following user(s) said Thank You: Clive S, thefabricator03

Please Log in or Create an account to join the conversation.

More
19 Feb 2020 18:04 #157879 by Clive S
I have lowered the excel to 700 from 1000 are these looking better



Jogging at 1450mm/min not sure what to look for in the plots, but I will have a look at this link from Tom
forum.linuxcnc.org/10-advanced-configura...ning-detailed-how-to
Attachments:

Please Log in or Create an account to join the conversation.

More
19 Feb 2020 18:11 - 19 Feb 2020 18:15 #157881 by Todd Zuercher
Try something more like 200mm/sec/sec. (You probably should use your servo drive's configuring software to increase the acceleration there or at least look up what it is set for, there is no reason to be guessing at these numbers.)
Last edit: 19 Feb 2020 18:15 by Todd Zuercher.
The following user(s) said Thank You: thefabricator03

Please Log in or Create an account to join the conversation.

More
19 Feb 2020 21:00 #157896 by thefabricator03

Try something more like 200mm/sec/sec. (You probably should use your servo drive's configuring software to increase the acceleration there or at least look up what it is set for, there is no reason to be guessing at these numbers.)


That is my problem with buying the China AC servo motors and drives. They are cheap but the software they use to tune them is pretty crap and most of the manuals I have read are garbage. But I do agree they do have their place. It would be great if one could understand Chinese!

Please Log in or Create an account to join the conversation.

Time to create page: 0.152 seconds
Powered by Kunena Forum