Fitting an encoder on a Tormach 1100

More
6 years 3 months ago #173944 by snowgoer540

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?


So I hooked up my encoder and 7i85S finally, and used Clive's instructions! I can see encoder counts, but they go down when i spin it clockwise, and up when i spin it counter clockwise. I thought it might be as easy as changing the encoder scale to a positive value (Clive's example showed it as "-4000", so I made mine "-1440" (I have a 360ppr quad encoder with index)), but that did not have any effect. Is there any way to change this in the software? OR do I need to swap the polarity on my A, B, and IDX legs?

Currently with:
G33.1 Z-1 K0.0394
it just sits there and spins when it gets to that line. Seems like it's either expecting to be counting up, or the index is never going true.

Any ideas?

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

More
6 years 3 months ago - 6 years 3 months ago #173948 by PCW
Note that changing the encoder scale will change the sign of the
encoder velocity and position but not the counts
Last edit: 6 years 3 months ago by PCW.

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

More
6 years 3 months ago #173960 by snowgoer540

PCW wrote: Note that changing the encoder scale will change the sign of the
encoder velocity and position but not the counts


So I need to flip the wires? So count goes up with clockwise rotation?

Should velocity and position follow suite?

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

More
6 years 3 months ago - 6 years 3 months ago #173974 by PCW
You can reverse the encoder velocity and position signs by changing the sign
of the encoder scale, so you do not have to change the hardware.

The counts and rawcounts will not change (Since they are not scaled) but these
are not used in most configurations.
Last edit: 6 years 3 months ago by PCW.

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

More
6 years 3 months ago #173975 by snowgoer540

PCW wrote: You can reverse the encoder velocity and position signs by changing the sign
of the encoder scale, so you do not have to change the hardware.

The counts and rawcounts will not change (Since they are not scaled) but these
are not used in most configurations.


oh, ok. so I want a positive velocity and position when moving the spindle clockwise (when viewed from the top looking down), correct?

Would that be the reason it wont do anything on G33.1 or is there something else I need to check for?

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

More
6 years 3 months ago #173977 by PCW
Yes, clockwise from the top should give a positive velocity

Spindle synced motions need:

1. Spindle at speed true
2. Spindle feedback position from encoder increasing for forward rotation
3. Index detection

1 and 2 can be checked with halshow, 3 can be checked manually by
sets-ing the signal that carries index enable and verifying that the index
enable signal gets cleared when you rotate the spindle (by hand) past the
index position:

halcmd sets index_enable

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

Time to create page: 0.093 seconds
Powered by Kunena Forum