Rigid Tapping Help

More
8 years 3 months ago #114967 by NCPatrol
Replied by NCPatrol on topic Rigid Tapping Help

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.

More
8 years 3 months ago #114969 by andypugh
Replied by andypugh on topic Rigid Tapping Help
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.

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

More
8 years 3 months ago #114970 by NCPatrol
Replied by NCPatrol on topic Rigid Tapping Help
I'll give it another shot in a couple hours, though I'm pretty sure I already did that and it wasn't showing any count.

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

More
8 years 3 months ago #114992 by NCPatrol
Replied by NCPatrol on topic Rigid Tapping Help

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.

More
8 years 3 months ago #114993 by andypugh
Replied by andypugh on topic Rigid Tapping Help
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)

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

More
8 years 3 months ago #114999 by NCPatrol
Replied by NCPatrol on topic Rigid Tapping Help

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.

Time to create page: 0.810 seconds
Powered by Kunena Forum