- Posts: 60
- Thank you received: 0
Encoder Index
I'm running PP 2.5.1 on a modified WM290 (same as PM1127VF-LB) and I tried to do threading for the first time yesterday, but it just stops on the threading line. My suspicion is that it is waiting for the index signal. I've tried to check that the index signal is coming in using Halscope and to me it looks to come in as it should. Another possibility is that the index signal is wrong polarity. What polarity is the index signal supposed to be? Mine is active low (the Index led on the Status page is lit all the time). Could this be the problem?
From a post by PCW in the thread about fitting an encoder to a 1100 ( Link ) it seems the index signal is active high. It also says to check that the index signal is working by doing "halcmd sets index_enable" and rotating the spindle to see if it clears. Some handholding on how to do this?
Br,
Stig
Please Log in to join the conversation.
You can change the polarity in hal but this will only change which edge
is active.
To know which signal you need to "sets" you would need to look at your hal file
and see which signal the low level hardware index pin is "net"ed to.
The you would run halcmd (not sure how you do this on PP) and halshow
to sets and watch this signal on a running PP system.
Please Log in to join the conversation.
This is the encoder part of my .hal-file:
So I guess I would need to sets spindle-index-enable? Or would it be motion.spindle-index-enable?
I tried halcmd in a terminal, but the command was unknown. I found it in operator/tmc/bin. When I tried ./halcmd on spindle-index-enable, it complained about needing 2 arguments, while only 1 was given. Tried with "./halcmd sets spindle-index-enable 1", which worked, and when I checked both in halshow, they were both high and turned low after I had rotated the spindle some.
Any idea what to check next?
Br,
Stig
Please Log in to join the conversation.
- snowgoer540
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
Clive basically laid out all the changes that need to happen to make this work. I am sure you can adapt it around what you've done...
Please Log in to join the conversation.
Another possibility is that you don't have a valid spindle at speed signal
Please Log in to join the conversation.
for HALSHOW there are instructions for this one in the forum but I recall Tormach may have fixed this and it works now. I'm not where I can test and be sure but you can try ADMIN HALSHOW and see if it works
Please Log in to join the conversation.
Thanks. Yes, I've seen this thread earlier (I even mentioned this thread in my original post), but there are quite a few differences between the 1100 mill and the SL15 lathe. I see that he has a "net spindle-at-speed" in his .hal-file, but this is commented out both in my .hal-file and in the original file from Tormach (as being not tested and not enabled).snowgoer540 wrote: Did you see this post: forum.linuxcnc.org/pathpilot/34005-fitti...1100?start=60#166309
Clive basically laid out all the changes that need to happen to make this work. I am sure you can adapt it around what you've done...
As stated above, I have a commented-out line about spindle-at-speed in my .hal-file, but this is also commented out in the original file from Tormach, and I believe threading works out of the box on a Tormach SL15. If not, I would be very surprised.PCW wrote: OK so that indicates that index works.
Another possibility is that you don't have a valid spindle at speed signal
The code from the original (v2.2.4) .hal-file
Nothing happened when I tried ADMIN HALCMD (as far as I could tell), but ADMIN HALSHOW (and ADMIN HALMETER) works. halcmd works when run from ยจ/tmc/binsmgvbest wrote: I believe a ADMIN HALCMD ... will work from the MDI
for HALSHOW there are instructions for this one in the forum but I recall Tormach may have fixed this and it works now. I'm not where I can test and be sure but you can try ADMIN HALSHOW and see if it works
Br,
Stig
Please Log in to join the conversation.
- snowgoer540
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
Please Log in to join the conversation.
No problem. Thanks for the attempt. Appreciated.snowgoer540 wrote: My apologies, I missed that WM290 was a lathe.
I've tried to enable spindle-at-speed (uncommented the part of the .hal-file) without any change in behavior, except an entry on the Status page about synchronized motion waiting for the spindle, so it seems to be a problem with spindle at speed indication. When I ran the threading program, the speed was 477-479 RPM, while commanded was 500. I tried to set near.0.scale to both 1.05 (5%) and 1.10 (I guess this is 10%), and near.0.difference of both 25 RPM and 50 RPM. Same behavior for both settings.
I also checked motion.spindle-at-speed. Before I uncommented Spindle-at-speed in the .hal-file, I think it was showing true the whole time, both with and without the spindle running. After it was uncommented, it was showing false the whole time. Speed was 500 commanded, 477-479 actual.
The attached screen dumps show the message on the Status tab and where it stops in the program. The threading program was made with the Conversational programming.
Br,
Stig
Please Log in to join the conversation.
setp motion.spindle-at-speed true
This way you would actually know that it is true and rule this out. Then you could move on to the next thing.
Please Log in to join the conversation.
