Spindle Encoder Count Negative

More
3 years 10 months ago #258709 by COlger81
I've been off of the mill for a while so i'm a bit rusty with LinuxCNC configs. The last issue i need to resolve is that my spindle encoder counts are counting backwards when spindle is rotating clockwise. I changed the sign for the encoder scale in the INI but it is still counting backwards. Any help is appreciated.

Chris

Please Log in to join the conversation.

More
3 years 10 months ago #258718 by scotth
Try swapping A phase and B phase on the encoder.

Please Log in to join the conversation.

More
3 years 10 months ago #258721 by andypugh
Making the scale negative really ought to have worked.

Please Log in to join the conversation.

More
3 years 10 months ago #258723 by COlger81
I agree, but it did not. Swapping A and B phase did fix the encoder count direction but i'm seeing erratic behavior when testing rigid tap. RPM sign, position, and encoder count is reading correctly now. The index is a hall sensor directly on spindle shaft and also verified that is functioning in halshow.

VFD is a hitachi WJ200. The best i'm able to get the drive to respond to for minimum RPM is 20. Not sure if that's going to work..

If anyone has a verified reliable VFD they can suggest with linuxcnc i'm all ears. Not all that happy with this hitachi.

Please Log in to join the conversation.

More
3 years 10 months ago #258726 by andypugh
I am so sure that it ought to work that I think that there is a possibility that you edited the wrong file, or that the scale is being set in more than one place.

Please Log in to join the conversation.

More
3 years 10 months ago #258728 by COlger81
Definitely edited the correct file. Where else could it be set? Oh well, swapping phases fixed that issue.

Please Log in to join the conversation.

More
3 years 10 months ago #258735 by PCW
Replied by PCW on topic Spindle Encoder Count Negative
Its possible to have a value in an ini file that is either unused in hal or over written by a hal statement. I think this is the most likely reason changing
the scale number had no effect.

Please Log in to join the conversation.

More
3 years 10 months ago #258737 by COlger81
Any ideas on why the rigid tapping isn"t functioning properly? Encoder is counting properly and the index is functioning as it should through halshow.

Please Log in to join the conversation.

More
3 years 10 months ago #258832 by COlger81
The problem is resolved and i am now able to rigid tap.

Much appreciated!

Please Log in to join the conversation.

Time to create page: 0.388 seconds
Powered by Kunena Forum