New machine, lathe with encoder

More
01 Sep 2015 01:16 - 01 Sep 2015 01:16 #61953 by CaspianCmonster
Hi everyone I am trying to get a new build (and first build for that matter) up and running.

the machine is a lathe with 2.6.9 running with a Mesa 5i25 + 7i76 card, a 60 slot encoder with one deep slot for the index. The encoder seems to work from what I can figure out with the hal monitor although I think the index is perhaps backwards (on 59/60ths of the time rather than on 1/60th) I cant seem to get it to invert.

I have done the setup so far in Pncconf but am getting tired of that interface for making small changes.

I am trying to test it by feeding a little G code with a G76 line that should use encoder position if I understand things a little.

any ideas? thanks

I should mention it will respond as expected to normal G code

Luke
Attachments:
Last edit: 01 Sep 2015 01:16 by CaspianCmonster.

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

More
01 Sep 2015 03:43 #61957 by BigJohnT
Here is how to troubleshoot the index of an encoder

gnipsel.com/linuxcnc/tuning/encoder.html

JT

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

More
01 Sep 2015 08:21 - 01 Sep 2015 09:34 #61966 by tome
If you need to invert the index signal change "hm2_5i25.0.encoder.00.index-invert 0" to "hm2_5i25.0.encoder.00.index-invert 1".


# ---Encoder feedback signals/setup---

setp hm2_5i25.0.encoder.00.counter-mode 1
setp hm2_5i25.0.encoder.00.filter 1
setp hm2_5i25.0.encoder.00.index-invert 0
setp hm2_5i25.0.encoder.00.index-mask 0
setp hm2_5i25.0.encoder.00.index-mask-invert 0
setp hm2_5i25.0.encoder.00.scale [SPINDLE_9]ENCODER_SCALE
Last edit: 01 Sep 2015 09:34 by tome.

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

Time to create page: 0.128 seconds
Powered by Kunena Forum