Need help with spindle sync and pid tune

More
5 years 5 months ago #208100 by andypugh
You probably need to use a (HAL) scale to multiply by 100, then put the % sign in as a string separate from the number. (you might need to escape the % too)

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

More
5 years 5 months ago #208104 by Aaroncnc
That would work.

So now that i have pid working i wanted to try and use the auto tune version.
www.linuxcnc.org/docs/html/man/man9/at_pid.9.html

I have gotten it to work but i am having issues with pid.N.tune-start bit io and my GUI in pyvcp
I cant seem to link it to any button.
i suspect thats because its a IO and not just a input
The error i get is that it is already linked "'pyvcp.button2 , it already has i/o pin pid.0.tune-start"
Is there any way around this?
I am able to make buttons for all the other inputs i need but this one wont work.


My work around so far has been to just net it to a "button2" then use the cmd sets button2 1

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

More
5 years 5 months ago - 5 years 5 months ago #208142 by Aaroncnc
Well i was able to make a button turn on a custom m100 command and that custom m100 command sets the value for me that the button cant.
Kinda a pain and a kludge but it works...
[strike]Now i am facing the same problem trying to make the gui set the effort and cycle counts as they are the same type of IO
My thought on that limitation is to make a slider that sets a variable and then see if i can pass that variable when calling a new m101 command that has the setp for effort.[/strike]
Got some help from JT-shop on IRC
he helped me convert variables so one could use the manual mdi screen to send both the cycle count and effort via m100 cmd and using setp
So now a user can tune and make adjustments without having to do a bunch of typing.
Sadly i cant get it to tune worth a darn....



Why is this so hard?
Am i doing this backwards or crazy?
Last edit: 5 years 5 months ago by Aaroncnc.

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

More
5 years 5 months ago #208262 by andypugh
I am of the opinion that we should remove the auto-tune PID. I think that someone wrote it as a college project, but as far as I know no-one has had any luck with it.

Sorry if it has wasted your time.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum