5i25 - Using Encoder on Axis

More
23 Sep 2015 10:59 #62875 by jds8086
I'm having a problem with the Zaxis drifting in the + direction.. I've tried to figure it out but have come up empty handed so far. I added an encoder to it this evening but when i ran pncconf and configured the encoder input for the Z axis linxucnc will not start giving me this error (see attached pic). Also attached is my config folder for the working configuration (without encoder), i forgot to grab the new config with encoder :( . What can i add to my working config so it uses the encoder on the Zaxis? Also does it matter where you ground the encoder? I see TB3 has +5v and GND for encoder but evidently from what i'm told you need at least 7v for this encoder to work so i tied it into my 12v source grounding it there. Will it still function this way?

Thank you!!
Jake
Attachments:

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

More
23 Sep 2015 11:01 - 23 Sep 2015 11:02 #62876 by jds8086
Pic didn't attach..
Attachments:
Last edit: 23 Sep 2015 11:02 by jds8086.

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

More
23 Sep 2015 19:24 #62883 by LearningLinuxCNC
It is telling you that you are trying to connect two ouput pins to one signal and you cannot do this.

Comment out the line in your hal file that connects the feedback signal to the stepgen output and try again.

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

More
23 Sep 2015 21:56 #62892 by jds8086
I tried that. Linuxcnc starts now but when I try to jog the z axis I get no movement and following error.

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

More
23 Sep 2015 22:47 #62893 by LearningLinuxCNC
Please provide your new config with the encoder connected.

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

More
23 Sep 2015 22:58 - 23 Sep 2015 23:03 #62894 by jds8086
Here is the new config

It did seem to function while testing in pncconf. It would jog. But for some reason the encoder a input is not responding.it stays true even though I've verified it is switching at the input pin(physical). The b channel does alternate between true and false when turning the encoder. But I guess that is a whole other issue there.
Attachments:
Last edit: 23 Sep 2015 23:03 by jds8086.

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

More
23 Sep 2015 23:47 #62895 by LearningLinuxCNC
I am going to go back to the beginning post.

You are using a stepper motor to drive the Z axis. Is this correct?

What do you mean that the axis is drifting in the +Z direction? Does that mean that the tool moves upward when it should be stationary? Does that mean that you perform a move and the tool does not return to the original zero (missed steps)?

I am asking this to determine if what you are trying to do is a good approach or not.

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

More
23 Sep 2015 23:53 #62896 by jds8086
Sorry I should have been more clear. The z axis is driven via stepper motor. Running gcode with allot of fast z axis movement causes it to drift up as it goes until its not even cutting the material Any more.I've ruled out collect slip and Mr mechanical issues.

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

More
24 Sep 2015 02:38 #62900 by jds8086
When you return to zero it is off by some amount usually linearlinear to run time

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

More
24 Sep 2015 03:51 - 24 Sep 2015 03:59 #62903 by jds8086
Figured out the encoder problem. I neglected to change the jumpers to TTL mode.. still not sure about the stepper not working. I noticed my slave Y axis is not working either.

The z jogs fine in pncconf and the encoder is working.
Last edit: 24 Sep 2015 03:59 by jds8086.

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

Moderators: PCWjmelson
Time to create page: 0.095 seconds
Powered by Kunena Forum