Monarch MDT-24 Retrofit (Sharp SV-2412 w/ Fanuc 0i-MC)

More
05 Feb 2018 01:48 #105429 by lamandesigns
Teaser video with the LinuxCNC logo!
Maximum speed is currently set at 300IPM!

LinuxCNC Logo Cut

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

More
05 Feb 2018 15:18 - 05 Feb 2018 15:18 #105438 by PCW
OK, those numbers indicate that your drives are not running in velocity mode but rather torque mode...
Last edit: 05 Feb 2018 15:18 by PCW.

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

More
05 Feb 2018 16:42 #105442 by lamandesigns
Well I only have the option of velocity mode and current mode for the analog and it is set to velocity mode. So unless their definition of velocity mode is different that what we expect, I don't get why the P term needs to be so high.

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

More
05 Feb 2018 16:56 #105443 by PCW
Its high because you are in torque (current) mode regardless of what the drive documentation says

Whether the drive is in velocity mode is easily determined: enable the drive with all PID/FF parameters=0
in this state the drive should hold position (and perhaps drift slowly) but definitely resist external force

A torque mode drive with the same settings will turn freely

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

More
05 Feb 2018 17:00 #105444 by lamandesigns
It does hold position with everything zero, X just drift very slow. A very heavy Z-axis holds position as well. Unless I am doing something wrong with the tuning?

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

More
05 Feb 2018 17:13 #105445 by PCW
if it holds position with every P term = 0 then it is in velocity mode in which case the
primary tuning parameter is FF1.

You should be able to make the position lead the motion profile or lag the motion profile depending on
the FF1 setting even with a very small amount of P. (and you tune FF1 for best following )
If you cannot do this something is broken in the way things are connected either externally or in hal
The following user(s) said Thank You: lamandesigns

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

More
05 Feb 2018 18:07 - 05 Feb 2018 18:07 #105451 by lamandesigns
So with a low P the f.error is not anywhere close to zero even without movement. I can only get the f.error to be zero with high P, anything above 2000!

It seems like I have got the FF1 and FF2 to do what I expect them to do. FF1 will get the f.error back to zero as soon as it starts moving and FF2 seems to deal with initial and final overshoot. However it is not having much effect on the initial overshoot.

Please see attached the screenshot:
Axis 0 Scope
Last edit: 05 Feb 2018 18:07 by lamandesigns.

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

More
05 Feb 2018 18:19 #105452 by PCW
Ok a high P value is not unexpected since you have changed the output scale to 2000 ( if left at its default value of 10 a P value of 10 would result in the same response as p=2000 and output scale=2000 )

The huge error at the beginning suggests that you have some kind of filtering enabled in the drive ( or really major stiction or perhaps poor velocity loop tuning in the drive )
The following user(s) said Thank You: lamandesigns

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

More
05 Feb 2018 18:23 #105453 by lamandesigns
Oh ok. I thought the output scale was supposed to be the RPM at 10V, so that's what I have done. Is it fine to leave it there or should I fix the whole thing?

I just fixed the overshoot. It only happened in X and Y since the acceleration was way too high (100). I changed it down to 50 and the overshoot is basically non-existent!

Thank you very much for all your help and quick responses!

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

More
05 Feb 2018 18:43 #105454 by PCW
You can leave the scaling or change it back to volts, of course you will have to re-tune ( or re-calculate )
the PID parameters after this change

My preference is to change the scaling to real velocity units, that is, the output scale is set to
machine units per second at 10V

This means FF1=~1 ( that is if the PID output is in machine units per second, FF1 =1 just copies
the commanded velocity to the PID output )

This also makes it easier for me to understand the PID tuning parameters and makes inch and mm machines
use the same PID parameters
The following user(s) said Thank You: lamandesigns

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

Moderators: cncbasher
Time to create page: 0.114 seconds
Powered by Kunena Forum