Spindle speed?

More
1 year 2 months ago #332652 by TheTinkeringMechanic1
I believe I got them and then some. 

Please Log in to join the conversation.

More
1 year 2 months ago #332659 by PCW
Replied by PCW on topic Spindle speed?
OK so fairly complex...

As I said before, maybe the first step is to take a look at
hm2_5i24.0.7i83.0.2.analogout0 in halshow when running
the spindle in each direction.

Please Log in to join the conversation.

More
1 year 2 months ago #332662 by TheTinkeringMechanic1
Thank you for letting me know about halshow. There is a wealth of data in here that will be VERY helpful. Unfortunately, the image size exceeds allowable data limit so I can't attach them just yet. Looking into reducing the file size. 

Please Log in to join the conversation.

More
1 year 2 months ago #332663 by TheTinkeringMechanic1
This should work.

Please Log in to join the conversation.

More
1 year 2 months ago #332664 by TheTinkeringMechanic1
Digging into a bit deeper, whenever I run it in reverse the setting jumps to 8.25 and stays there. If I run it forward it stays around 2.69 with some variation in the next 5 digits. It moves up and down with speed adjustment. 

Please Log in to join the conversation.

More
1 year 2 months ago #332669 by TheTinkeringMechanic1
I'm beginning to wonder if it's getting speed signal or worse this encoder can't read in reverse. If it doesn't get speed feed back, it has nothing to hold it to so it just defaults to a set number. At least this is my reasoning thus far.

Please Log in to join the conversation.

More
1 year 2 months ago #332679 by TheTinkeringMechanic1
I was wrong!. It can read rpm in both forward and reverse after watching spindle-vel-fb-rpm in halshow.

Please Log in to join the conversation.

More
1 year 2 months ago #332702 by TheTinkeringMechanic1
Sorry, I guess the images didn't upload. "hm2_5i24.0.7i83.0.2.analogout0 <= spindle-speed-DAC" reads in forward and reverse. In reverse it shows a reading of 8.25 and stays there, doesn't move when trying to adjust the speed.. In forward it stays around 2.69 with some variation in the next 5 digits. It moves up and down with speed adjustment.

Please Log in to join the conversation.

More
1 year 2 months ago #332703 by PCW
Replied by PCW on topic Spindle speed?
Its a bit tricky to setup a PID speed control with a unipolar analog control
and FWD/REV signals.

I would first try eliminating the feedback by running the spindle open loop
you can do this by setting all PID terms to 0 except FF0 which should be  set to 1.0

If you need feedback (this is rare unless the spindle speed control is very poor)
The structure needs to be like this:

PID command = signed commanded spindle speed in RPM
PID feedback = encoder RPM
PID output --> ABS --> analog out
ABS sign (of PID output) determines the FWD/REV pins

Please Log in to join the conversation.

More
1 year 2 months ago #332718 by TheTinkeringMechanic1
I'm going to go ahead and try this. I'll let you know what it does.
The one thing I'm having a hard time wrapping my head around is even with analog control, I have speed control forward. The GUI bar turns green and moves goes up and down with the override buttons, just not in reverse. In reverse goes to a set number, a number I cannot find and stays put regardless of what's pressed. However, if I reverse the forward and reverse signals to the VFD I have the same forward control as before, now in reverse. I don't see why the same forward and reverse control shouldn't be possible,

If it's necessary to convert this to PWM to gain the same forward control as reverse, so be it, this Mitsubishi VFD is capable.
I'll cross that bridge when I reach it.
I need to gain a better understanding of Linuxcnc spindle control.
I appreciate your help.

Please Log in to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum