- Posts: 43
- Thank you received: 0
rigid tapping g33.1 isnt working spindle isnt sync
a little run down on my equipment. the spindle is a two speed gear driven unit that is also belt feed. does that make sense? it also incorporates a power driven draw bar so putting an encoder directly on the final driven spindle is a no go. I have swapped the v belt system for a timing belt arrangement as to have a positive drive with no slip. well limited slip. I have done this so I could mount my encoder directly on the motor shaft.
so all that being said, here is the spindle section of my hal file. I feel like something has to be wrong with how I have connected things in here or haven't connected things correctly. i would appreciate it if I could get some of the expertise that I know is present here on what I should do or what needs attention. thank you in advance.
Denny Reed
Please Log in to join the conversation.
this may be a pain depending on the spindle arrangement , where space is at a premium I have used automotive hall sensors mounted to sense the final gear teeth as used on antilock braking , with a separate sensor to give one pulse per rev , so you end up with one sensor counting the number of teeth of the gear and one per rev .
Please Log in to join the conversation.
fabworx wrote: I just now got around to trying to get this to work. as it is now my mill is running. spindle works with my gear change and my screen is updating with rpm and gear selection as it should. however my I never could figure out how to make the ui tell me that a gear change will be needed for the called for rpm. also at lower speeds my on target light does not stay constantly lit. so I didn't realize I had a real problem till I tried to rigid tap today for the first time. cause up until today my parts have been coming out fine.
I put speed changes in my G code like this:
JT
Please Log in to join the conversation.
fabworx wrote: I just now got around to trying to get this to work
Code:net spindle-position hm2_5i20.0.encoder.04.position net spindle-encoder-speed scale.4.out => motion.spindle-revs
I think the problem is here.
motion.spindle-revs is spindle revolutions, not revolutions-per-minute.
This is the value that is scaled to determine what the current Z-height needs to be.
A simple change to this is likely to help.
net spindle-position hm2_5i20.0.encoder.04.position => motion.spindle-revs
net spindle-encoder-speed scale.4.out
[/code]
As you are probably always going to use the same gear for rigid-tapping I would suggest setting the encoder position scale to suit that gear and the belt-drive encoder.
You can get away with having the encoder on the motor as long as the encoder scale is adjusted to suit. You still want the index pulse to be a one-pulse-per-rev directly from the spindle, but that is relatively easy to arrange.
For example, a 1024 pulse encoder on the motor and 45:60 gear ratio would need to set the encoder scale to 1365.3333333 to accurately count spindle rotations
Please Log in to join the conversation.
Thanks andy I will be giving this a shot tomorrow when I get home.
Youguys are great I glove this forum lol.
Please Log in to join the conversation.
andypugh wrote: You can get away with having the encoder on the motor as long as the encoder scale is adjusted to suit. You still want the index pulse to be a one-pulse-per-rev directly from the spindle, but that is relatively easy to arrange.
Are you saying what I'm thinking your saying? In the case where the encoder is not attached to the spindle or geared 1:1 with the spindle don't use the encoder index but rather provide an index directly from the spindle?
JT
Please Log in to join the conversation.
That's what I am saying.BigJohnT wrote: Are you saying what I'm thinking your saying? In the case where the encoder is not attached to the spindle or geared 1:1 with the spindle don't use the encoder index but rather provide an index directly from the spindle?
The encoder-counter software doesn't know what you have done
Please Log in to join the conversation.
again thank you to everyone for the help.
Please Log in to join the conversation.
fabworx wrote: to make things a little clearer the encoder is mounted directly on the back of the motor. the gear change decides which scale to use by invoking which ultimate gear ratio is being used
You can choose a different encoder position scale and velocity scale for each gear, they are live pins. There will be discontinuities, and changing scale on the fly _really_ means that the index has to be on the physical spindle.
Don't expect to rigid tap with a gearchange in the middle. That is possible (in theory) with a spindle encoder, but not if you change the ratio.
Please Log in to join the conversation.
Please Log in to join the conversation.
