Spindle speed?

  • TheTinkeringMechanic1
  • Offline
  • Junior Member
  • Junior Member
More
02 Aug 2025 00:26 #332652 by TheTinkeringMechanic1
Replied by TheTinkeringMechanic1 on topic Spindle speed?
I believe I got them and then some. 
Attachments:

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

More
02 Aug 2025 05:22 #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 or Create an account to join the conversation.

  • TheTinkeringMechanic1
  • Offline
  • Junior Member
  • Junior Member
More
02 Aug 2025 12:05 #332662 by TheTinkeringMechanic1
Replied by TheTinkeringMechanic1 on topic Spindle speed?
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 or Create an account to join the conversation.

  • TheTinkeringMechanic1
  • Offline
  • Junior Member
  • Junior Member
More
02 Aug 2025 12:18 #332663 by TheTinkeringMechanic1
Replied by TheTinkeringMechanic1 on topic Spindle speed?
This should work.
Attachments:

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

  • TheTinkeringMechanic1
  • Offline
  • Junior Member
  • Junior Member
More
02 Aug 2025 12:49 - 02 Aug 2025 12:51 #332664 by TheTinkeringMechanic1
Replied by TheTinkeringMechanic1 on topic Spindle speed?
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. 
Last edit: 02 Aug 2025 12:51 by TheTinkeringMechanic1.

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

  • TheTinkeringMechanic1
  • Offline
  • Junior Member
  • Junior Member
More
02 Aug 2025 13:05 #332669 by TheTinkeringMechanic1
Replied by TheTinkeringMechanic1 on topic Spindle speed?
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 or Create an account to join the conversation.

  • TheTinkeringMechanic1
  • Offline
  • Junior Member
  • Junior Member
More
02 Aug 2025 15:45 #332679 by TheTinkeringMechanic1
Replied by TheTinkeringMechanic1 on topic Spindle speed?
I was wrong!. It can read rpm in both forward and reverse after watching spindle-vel-fb-rpm in halshow.

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

  • TheTinkeringMechanic1
  • Offline
  • Junior Member
  • Junior Member
More
03 Aug 2025 00:11 #332702 by TheTinkeringMechanic1
Replied by TheTinkeringMechanic1 on topic Spindle speed?
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 or Create an account to join the conversation.

More
03 Aug 2025 00:27 #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 or Create an account to join the conversation.

  • TheTinkeringMechanic1
  • Offline
  • Junior Member
  • Junior Member
More
03 Aug 2025 13:09 #332718 by TheTinkeringMechanic1
Replied by TheTinkeringMechanic1 on topic Spindle speed?
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 or Create an account to join the conversation.

Time to create page: 0.082 seconds
Powered by Kunena Forum