- Posts: 2580
- Thank you received: 0
Fitting an encoder on a Tormach 1100
- snowgoer540
- Offline
- Platinum Member
-
PCW wrote: Yes, clockwise from the top should give a positive velocity
Spindle synced motions need:
1. Spindle at speed true
2. Spindle feedback position from encoder increasing for forward rotation
3. Index detection
1 and 2 can be checked with halshow, 3 can be checked manually by
sets-ing the signal that carries index enable and verifying that the index
enable signal gets cleared when you rotate the spindle (by hand) past the
index position:
halcmd sets index_enable
Thank you!
How do I verify #1?
Please Log in to join the conversation.
(or spindle.0.at-speed if you have a very recent version of LinuxCNC)
Please Log in to join the conversation.
- snowgoer540
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
Please Log in to join the conversation.
- snowgoer540
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
I...didn't change anything, and it works today... which makes me wonder if the VFD is right on the cusp as far as meeting the speed requirements.snowgoer540 wrote: Thanks again, I’ll check it out after work and report back.
Which brings me to two more questions:
1. How do I get the encoder feedback to drive spindle RPM, right now it seems like tormach controls it based on pre-determined pwm frequencies in a comp file?
2. If I get the spindle speed accurate based on encoder feedback, is there a way to display actual spindle speed on the GUI, rather than the current faked in spindle speed ramp up it does, again, based on the spindle comp they wrote?
Please Log in to join the conversation.
speed control, this basically means that the spindle speed PWM value comes from the
PID component and the the encoder velocity and commanded spindle speed are wired to
the PID inputs .
2. You would connect the encoder velocity to the GUIs spindle speed display pin, note
that you often need a low pass filter for the displayed value to prevent digit flicker in
the least significant digits.
Please Log in to join the conversation.
- snowgoer540
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
I was wondering if someone could help me figure out what to unlink and relink so that the actual RPM displays in the GUI, and so that I can use the spindle PID feedback to control the speed of the spindle?
Here's what I added to make the encoder work with synchronized motion:
Here's what I had to comment out of the main HAL file:
Here's Tormach's spindle connections:
I also attached the HAL in case it's needed.
I appreciate the help!
Please Log in to join the conversation.
- snowgoer540
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
Currently, to me, it looks like they are using a comp to take the commanded RPM value, and output a frequency with a stepgen output. They give the frequency range of 1000 to 24000. It looks like the comp file also fakes the RPM ramp up on the GUI. And I'm guessing it also ramps the frequency to the specified RPM based on some rate.
I'm not sure if this is how regular spindles work (this is my first trek down this particular road, so forgive my ignorance).
From what I can tell, the only real input and output to the component are:
Just to try to get somewhere, I tried hooking the spindle-velocity signal to spindle-speed-fb-rpm, but it didn't work. Pathpilot wouldnt load. Also, the speed would have been showed in RPS, but I figured I could deal with that later.
I guess overall, has Tormach made this too difficult to work with? Or is it really simple, but I just have a ways to go to understand it/how to make it work?
Please Log in to join the conversation.
