- Posts: 77
- Thank you received: 1
Rigid Tapping Help
- NCPatrol
- Offline
- Senior Member
-
andypugh wrote: Can you check the question I asked earlier?
Does the encoder count up in M3 and down in M4 mode?
Basically, tried a simple tap program. The spindle will move in to position above the hole, spin up and then sit there. Initial presumption was it was not seeing index, but now I'm not sure.
Basically, I'm a little behind the curve here. I bought this machine with little linux experience and I'm playing catch up. The previous owner did use it for rigid tapping, however he also did a servo conversion on it not too long ago and I'm not sure if he used it for tapping after the conversion....it's possible that the config is not currently correct.
I posted the gcode and the hal/ini files on the first page of the thread for reference.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
Set halmeter to look at the spindle encoder counts and then run the spindle in both directions. Also look at motion.spindle-revs
The behaviour you see is typical of an encoder counting backwards.
Please Log in or Create an account to join the conversation.
- NCPatrol
- Offline
- Senior Member
-
- Posts: 77
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- NCPatrol
- Offline
- Senior Member
-
- Posts: 77
- Thank you received: 1
andypugh wrote: Can you please just do the experiment?
Set halmeter to look at the spindle encoder counts and then run the spindle in both directions. Also look at motion.spindle-revs
The behaviour you see is typical of an encoder counting backwards.
OK, so I think you're on to something!
Both spindle encoder count and spindle revs go down when the spindle is turning forward (clockwise when looking down on the table) and, of course, they co up when it's spinning in reverse.
What's the fix? Is it as easy as swapping the A + B wires at the board?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
Please Log in or Create an account to join the conversation.
- NCPatrol
- Offline
- Senior Member
-
- Posts: 77
- Thank you received: 1
andypugh wrote: Yes, you can swap A snd B wires, or you can set the encoder scale to a negative number in the HAL (or INI, if it comes in to the HAL from the iNI in your setup)
You da man!!!
Swapped the wires (didn't want to have to go edit all my backup configs) and ran my test program and it appears to be working just as I'd expect.
Thanks for all the help!!
Please Log in or Create an account to join the conversation.