Fitting an encoder on a Tormach 1100

More
8 years 6 months ago #108618 by Clive S
Thank you both. I will report back:)

Please Log in to join the conversation.

More
8 years 6 months ago #108672 by Clive S

andypugh wrote:

Code:
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 to join the conversation.

More
8 years 6 months ago #108673 by andypugh
No, the code above should just work

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

Please Log in to join the conversation.

More
8 years 6 months ago #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 to join the conversation.

More
8 years 6 months ago #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 to join the conversation.

More
8 years 6 months ago #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 to join the conversation.

More
8 years 6 months ago #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 to join the conversation.

More
8 years 6 months ago #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 to join the conversation.

More
8 years 6 months ago #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 to join the conversation.

More
8 years 6 months ago #109352 by Clive S

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 to join the conversation.

Time to create page: 0.242 seconds
Powered by Kunena Forum