Fitting an encoder on a Tormach 1100

More
08 Apr 2018 18:01 #108618 by Clive S
Thank you both. I will report back:)

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

More
09 Apr 2018 18:21 #108672 by Clive S

net spindle-position hm2_5i25.0.encoder.00.position => motion.spindle-revs
net spindle-velocity hm2_5i25.0.encoder.00.velocity => motion.spindle-speed-in
net spindle-index-enable hm2_5i25.0.encoder.00.index-enable <=> motion.spindle-index-enable
setp hm2_5i25.0.encoder.00.scale 8000
Should be all you need.


Ok after several hours I decided to re read the manual on the 7i85s and realised I had the jumpers to RS-422 instead of TTL:blush:

I now have hm2_5i25.0.encoder.00.position showing me one full turn per count forward and back.
Do I need to add anything else like filtering etc. to the hal file to achieve rigid tapping

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

More
09 Apr 2018 18:22 #108673 by andypugh
No, the code above should just work

But try tapping air with an air tap first :-)

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

More
10 Apr 2018 15:54 #108757 by Clive S
What is a sensible length of DB25 cable between the 5i25 P2 and the 7i78s I have a short 26 pin IDC to DB25 1.5mtr !!

Thanks

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

More
10 Apr 2018 16:27 #108759 by PCW
if you need a longer cable, its better to use a:

Short flat cable --> PC bracket with DB25 --> IEEE1284 parallel cable --> 7I78

the "Short flat cable --> PC bracket with DB25" is a standard thing = DB25F-IDC26 CABLE you can get from Mesa

(or elsewhere, its basically the second parallel port expansion hardware for a dual parallel port card)

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

More
10 Apr 2018 17:15 #108764 by Clive S
Thanks Peter . I did not know if it was better to have a longer PP cable or longer cable going to the encoder on the spindle of the mill.

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

More
10 Apr 2018 20:50 #108769 by PCW
Probably better to have a longer encoder cable (especially if the signals are differential)
with TTL encoders its more of a toss-up

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

More
20 Apr 2018 13:11 #109333 by Clive S
Update: With this code
%
G21
G90 (set absolute mode)
G0 X0 Y0 Z2
S100 M3
G33.1 Z-20
M2
%
I have now successfully tapped some M8 holes:) But the code does not release at the end of it. When I try a MDI command its telling me that it requires a " K value with g33.1 " I have tried this without the % as well

Am I not terminating the program correctly? the stop button and escape does not release and terminate the code.
This might be a PP thing

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

More
20 Apr 2018 16:43 #109350 by andypugh
The code should not have tapped any holes. You do need a K value, that is the thread pitch.

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

More
20 Apr 2018 16:52 - 21 Apr 2018 08:55 #109352 by Clive S

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
Last edit: 21 Apr 2018 08:55 by Clive S. Reason: added text

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

Moderators: cncbasher
Time to create page: 0.110 seconds
Powered by Kunena Forum