soft limits different after power cycle

More
16 Oct 2017 21:12 - 16 Oct 2017 21:13 #100449 by PCW
Dont know about a tutorial but for encoder feedback you need to replace:

net x-pos-fb <= hm2_5i25.0.stepgen.00.position-fb

with

net x-pos-fb <= hm2_5i25.0.encoder.00.position

(and for all axis where you want closed loop with encoder feedback)

Note that the encoder and stepgen scaling and directions must be correct
or you will get an immediate following error
Last edit: 16 Oct 2017 21:13 by PCW.

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

More
18 Oct 2017 01:41 #100496 by RayJr
Thank you, Peter!
Changing that HAL connection corrected the homing issue.
Now, why?

I had the stepgen feedback connected to start checking out the machine in open loop. Was there another connection I should have done to make that work correctly?

Thank you, again for your support!

Ray

"No problem can be solved from the same level of consciousness that created it"

Albert Einstein

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

More
18 Oct 2017 03:02 #100499 by PCW
It has to do with the returned position from the encoder and stepgen
if index enable is true and the index is detected, the position pin from the encoder
is zeroed at the index location (effectively in hardware), but a
stepgen has no index input and is not zeroed

There is a index capability in the stepgen hardware but it is not currently supported
by the hm2 driver

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

More
18 Oct 2017 03:35 #100500 by RayJr
That makes a lot of sense!

Now on to tuning up each axis.

Is there some magic in getting pncconf to enable the test panels, and have them work?

Ray

"No problem can be solved from the same level of consciousness that created it"

Albert Einstein

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

More
18 Oct 2017 03:57 #100502 by PCW
I dont think the test panels work but once you are this far along, i would use the calibrate menu in LinuxCNC
along with halscope for tuning

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

More
22 Oct 2017 23:54 - 22 Oct 2017 23:55 #100643 by RayJr
OK, I have 3 axises moving accurately, and the spindle getting to speed. I know the PIDs will need more tuning.
I am still having some resonance issues on X & Y.

Now I am wondering if the mentors here would take a moment to look over my config files as a "sanity check" before I move on to more advanced topics.

My concerns are scaling on the axises, and the spindle section, as I want to do rigid tapping.

Please point all my bone head moves, and ignorant oversights.

Willing to learn, but freely admit that I don't know what I don't know.

Thank you again for all of your expert help!


Ray

"No problem can be solved from the same level of consciousness that created it"

Albert Einstein
Attachments:
Last edit: 22 Oct 2017 23:55 by RayJr.

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

More
26 Oct 2017 02:01 #100825 by RayJr
Should the signal:
net x-vel-fb <= hm2_5i25.0.encoder.01.velocity
be connected to something? (y & z as well?)

Another thing I am seeing on this machine is:
after the final move from homing, the "actual" dro is showing a pretty big discrepancy from the "machine" dro.

I would think that in closed loop the should be the same. This is why I think there is something not quite right in the hal file.
This is so on x & y. I have not scrutinized z yet.

Ray

"No problem can be solved from the same level of consciousness that created it"

Albert Einstein

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

More
26 Oct 2017 13:47 - 26 Oct 2017 13:53 #100833 by Todd Zuercher
Usually that would be connected to pid.N.feedback-deriv. But if nothing is connected to it, the PID component is smart enough to calculate it from the position feedback. However the calculated value isn't as good as the real value given by the HM2 encoder. The HM2 stepgen does not have a velocity feedback, so that is why your initial stepper config didn't use it.

If your following error is large (commanded position differs greatly from actual). Then your PID loop needs to be tuned better.
Or are you referring to another DRO outside of Linuxcnc?
Last edit: 26 Oct 2017 13:53 by Todd Zuercher.

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

More
27 Oct 2017 06:37 - 28 Oct 2017 18:05 #100873 by RayJr
Hi Todd.
I added that line for each axis.
The tuning seems a lot more responsive & predictable now.
But I am still having issues with how far it moves, although it is now within a few thousandths, where before it was out several hundredths her inch. (my external dro agrees with the linuxcnc internal dro).
Here is what I have for each axises now:
Warning: Spoiler!


Still getting stalls & resonance if I try to move at 60IPM. Moves OK if I keep it at or below 50.

Thank you for your help!

Ray

"No problem can be solved from the same level of consciousness that created it"

Albert Einstein
Last edit: 28 Oct 2017 18:05 by RayJr.

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

More
27 Oct 2017 11:57 #100880 by PCW
I would take out the

setp pid.N.maxerror .0005

Lines

This (maxerror) makes sense for a open loop system but not for closed loop
The following user(s) said Thank You: RayJr

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

Time to create page: 0.083 seconds
Powered by Kunena Forum