- Posts: 99
- Thank you received: 0
PathPilot Lathe with 6 place turret
- brianTruck
- Topic Author
- Offline
- Premium Member
-
Less
More
8 years 8 months ago #106575
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
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
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 to join the conversation.
8 years 8 months ago #106577
by PCW
Replied by PCW on topic PathPilot Lathe with 6 place turret
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
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
Please Log in to join the conversation.
- brianTruck
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 99
- Thank you received: 0
8 years 8 months ago #106584
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
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
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 to join the conversation.
8 years 8 months ago #106585
by PCW
Replied by PCW on topic PathPilot Lathe with 6 place turret
no,
halcmd sets spindle-index-enable true
halcmd sets spindle-index-enable true
Please Log in to join the conversation.
- brianTruck
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 99
- Thank you received: 0
8 years 8 months ago #106586
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
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
Brian
Please Log in to join the conversation.
8 years 8 months ago #106590
by andypugh
Replied by andypugh on topic PathPilot Lathe with 6 place turret
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?
Does the encoder count up or down when the lathe turns in the threading direction?
Please Log in to join the conversation.
- brianTruck
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 99
- Thank you received: 0
8 years 8 months ago #106592
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
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
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
Please Log in to join the conversation.
8 years 8 months ago #106611
by andypugh
Replied by andypugh on topic PathPilot Lathe with 6 place turret
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)
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 to join the conversation.
- brianTruck
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 99
- Thank you received: 0
8 years 8 months ago #106614
by brianTruck
Replied by brianTruck on topic PathPilot Lathe with 6 place turret
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
Thanks Brian
Please Log in to join the conversation.
8 years 8 months ago #106615
by andypugh
Replied by andypugh on topic PathPilot Lathe with 6 place turret
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)
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 to join the conversation.
Time to create page: 0.075 seconds
