PathPilot Lathe with 6 place turret

More
26 Feb 2018 21:55 #106575 by brianTruck
Andy,
Yes that brings up the halmeter , If I look at spindle-encoder-count I can turn the spindle and see the count go up and down. If I look at spindle-index-enable it always stays false while I turn the spindle. I know the encoder index works because I checked it with a led.

Thanks' Brian

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

More
26 Feb 2018 22:18 - 26 Feb 2018 22:19 #106577 by PCW
If you have a high resolution spindle encoder its quite likely you will not be able to detect the index signal with halmeter
One way to test the index is to sets the signal that carries index enable and then monitor that signal as you rotate the spindle by hand:
halcmd sets index-enable true
( index-enable should go true )
slowly rotate the spindle
( index-enable should go false when index is crossed )

Note "index-enable" needs to be replaced with whatever signal name conveys the spindle index enable in your hal file
Last edit: 26 Feb 2018 22:19 by PCW.

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

More
27 Feb 2018 00:22 #106584 by brianTruck
here is what is in my hal file.


net spindle-index-enable hm2_5i25.0.encoder.00.index-enable <=> motion.spindle-index-enable

so would i type ?

halcmd sets motion.spindle-index-enable true

Thanks' Brian

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

More
27 Feb 2018 00:24 #106585 by PCW
no,
halcmd sets spindle-index-enable true
The following user(s) said Thank You: brianTruck

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

More
27 Feb 2018 00:36 - 27 Feb 2018 00:37 #106586 by brianTruck
Ok that worked, sets it true and it turn to false after turning the spindle a half round or so. When I try and thread the lathe gets right where it wants to start threading and then stops.


Brian
Last edit: 27 Feb 2018 00:37 by brianTruck.

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

More
27 Feb 2018 00:40 #106590 by andypugh
If the lathe stops at the index and doesn't start the threading pass that often means that the spindle is counting backwards.

Does the encoder count up or down when the lathe turns in the threading direction?
The following user(s) said Thank You: brianTruck

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

More
27 Feb 2018 00:50 - 27 Feb 2018 01:18 #106592 by brianTruck
It's counting down.

ok, I changed this

setp hm2_5i25.0.encoder.00.counter-mode 0

to this

setp hm2_5i25.0.encoder.00.counter-mode 1

it seems to be working ,but I'm just air cutting
Last edit: 27 Feb 2018 01:18 by brianTruck.

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

More
27 Feb 2018 10:46 #106611 by andypugh
You don't want counter-mode for a lathe spindle as that means that it won't count backwards in reverse, so you can't do rigid tapping.

Switch counter-mode back to zero and just make the spindle encoder scale a negative number. You should then find that it counts up, and all should be good.

(Alternatively you can swap the A and B phases, but the software fix is easier)

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

More
27 Feb 2018 12:39 #106614 by brianTruck
I tried a negative scale and it still counted backwards ,also I did a test cut and it seems to be cutting more threads per inch than it should be (maybe double).

Thanks Brian

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

More
27 Feb 2018 12:55 #106615 by andypugh
It will count differently in counter mode (it basically only watches one channel).

A negative scale will work. But perhaps you changed the wrong number? (also, you need to restart LinuxCNC for the change to take effect)

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

Moderators: cncbasher
Time to create page: 0.130 seconds
Powered by Kunena Forum