- Posts: 19311
- Thank you received: 4655
Fitting an encoder on a Tormach 1100
Please Log in or Create an account to join the conversation.
andypugh wrote: The code should not have tapped any holes. You do need a K value, that is the thread pitch.
Silly me. I did have the K1.25 but got deleted on posting.
%
G21
G90 (set absolute mode)
G0 X0 Y0 Z2
S100 M3
G33.1 Z-20 K1.25
M2
%
The above code does not terminate cleanly ie I have to hit escape and stop in order to use the MDI
It appears to not exit the G33.1 as if I enter say g1 x10 in MDI it report an error with (g33.1 requires K value)
I have been playing with the code and notice that if I add a g1 x2 then a g1 x0 after the g33.3 it releases the code ie doesn't lock up
not sure why this works but g1 x0 on its own does not work nor does g1 xo followed by g1 x2 does not work.
also would you mind giving me the syntax to say tap 3 holes in a row
Please Log in or Create an account to join the conversation.
Does your encoder definitely count up clockwise and down anticlockwise?
Please Log in or Create an account to join the conversation.
Yes the encoder counts correctly.andypugh wrote: What does your spindle do? It sounds like the G33.1 might be waiting for the second spindle reversal.
Does your encoder definitely count up clockwise and down anticlockwise?
Ok the machine taps the hole forward then reverse out no probs but then it hangs, as if its waiting. If I then put say x10 in the MDI it throws an error say g33.1 missing K value. to get out of this error I have to hit escape and stop. then I can jog around ok.
I can then run the code again it will then return to the same hole and tap it without wrecking the threads so it is still in sync.
edit; forgot to say the spindle stops so it sees the M2
Please Log in or Create an account to join the conversation.
Do you see the second reversal?
I am wondering if, perhaps, the system is requesting that the spindle returns to forwards rotation but, for some reason, it doesn't happen.
Please Log in or Create an account to join the conversation.
Thanks for the feedback.andypugh wrote: If you read the G33.1 documentation it says that the spindle reverses at the bottom of the hole and then reverses _again_ at the top of the hole when the cycle completes.
Do you see the second reversal?
I am wondering if, perhaps, the system is requesting that the spindle returns to forwards rotation but, for some reason, it doesn't happen.
I am pretty sure the spindle does change back to forward. (but I will check again tomorrow).
Its strange though in that if I add a g1 x1 then g1 x0 it is fine. Just a g1 on its own does not work Ie still locks up.
What is the syntax for it to tap two holes . Do it have to add the g33.1 line again?
Please Log in or Create an account to join the conversation.