Encoder for rigid tapping
- russkinch
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 1
09 Jun 2025 22:12 #330053
by russkinch
Encoder for rigid tapping was created by russkinch
Hi,
I have a 50p/r encoder with A, B & Z. It threads perfect and can thread at 1000rpm no hassles. I am trying to do rigid tapping, but when I use G33.1, it taps to the right depth, but when the chuck reverses, the tap goes in more and not out. Its like the stepper is not being told to reverse direction.
In my HAL file I have the three inputs setup (net spindle-phase-a encoder.0-phase-A) etc, I have the scale set to 50 and encoder mode set to 1. When I turn the chuck by hand, the position in HAL view rises by 1 for every 1 revolution of the chuck, but if I turn the chuck in the opposite direction, it carries on increasing and not count down. Is this correct? My encoder is an incremental Omron E6B2-CWZ6C. I am using a prallel port BOB (blue). Nema32 stepper motors and can control my spindle speed via the VFD (Bosch)
Any help is greatly appreciated.
I have a 50p/r encoder with A, B & Z. It threads perfect and can thread at 1000rpm no hassles. I am trying to do rigid tapping, but when I use G33.1, it taps to the right depth, but when the chuck reverses, the tap goes in more and not out. Its like the stepper is not being told to reverse direction.
In my HAL file I have the three inputs setup (net spindle-phase-a encoder.0-phase-A) etc, I have the scale set to 50 and encoder mode set to 1. When I turn the chuck by hand, the position in HAL view rises by 1 for every 1 revolution of the chuck, but if I turn the chuck in the opposite direction, it carries on increasing and not count down. Is this correct? My encoder is an incremental Omron E6B2-CWZ6C. I am using a prallel port BOB (blue). Nema32 stepper motors and can control my spindle speed via the VFD (Bosch)
Any help is greatly appreciated.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18701
- Thank you received: 5161
09 Jun 2025 22:32 - 09 Jun 2025 22:34 #330054
by PCW
Replied by PCW on topic Encoder for rigid tapping
Sounds like you have the encoder component set to counter mode
rather than quadrature mode (counter mode set to 1 rather than 0)
( another hint is your scaling, a 50 PPR encoder is 200 counts/turn
in 4x quadrature )
man encoder
rather than quadrature mode (counter mode set to 1 rather than 0)
( another hint is your scaling, a 50 PPR encoder is 200 counts/turn
in 4x quadrature )
man encoder
Last edit: 09 Jun 2025 22:34 by PCW.
Please Log in or Create an account to join the conversation.
- russkinch
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 1
09 Jun 2025 22:50 #330056
by russkinch
Replied by russkinch on topic Encoder for rigid tapping
Aaah. Awesome. Thank you. I shall try this tomorrow and see how it goes. I will let you know once I have changed the settings.
Please Log in or Create an account to join the conversation.
- russkinch
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 1
10 Jun 2025 21:13 #330105
by russkinch
Replied by russkinch on topic Encoder for rigid tapping
I did as you suggested. Many thanks. It worked a dream and I can still thread at 1000rpm. Going to sort my motor slow down speed as its currently two revolutions. So i have modified my ngc file for not to account for this. Many thanks again
Please Log in or Create an account to join the conversation.
Time to create page: 0.060 seconds