Encoder Index

More
5 years 11 months ago #190216 by Stigoe
Replied by Stigoe on topic Encoder Index

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...

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).

PCW wrote: OK so that indicates that index works.

Another possibility is that you don't have a valid spindle at speed signal

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.
The code from the original (v2.2.4) .hal-file
Code:
################################################## # SPINDLE-AT-SPEED - NOT YET TESTED - NOT ENABLED ################################################## ## for at-speed detection ## +/- 5% for true #setp near.0.scale 1.05 ## or with 25 RPM of commanded #setp near.0.difference 25 #net spindle-cmd => near.0.in1 #net spindle-velocity => near.0.in2 #net spindle-at-speed near.0.out motion.spindle-at-speed
Is the commented-out parts why I wouldn't have a valid spindle at speed signal? If so, why would it work on an original SL15?

smgvbest 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

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/bin

Br,
Stig

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

More
5 years 11 months ago #190226 by snowgoer540
Replied by snowgoer540 on topic Encoder Index
My apologies, I missed that WM290 was a lathe.

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

More
5 years 11 months ago #190265 by Stigoe
Replied by Stigoe on topic Encoder Index

snowgoer540 wrote: My apologies, I missed that WM290 was a lathe.

No problem. Thanks for the attempt. Appreciated.

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 or Create an account to join the conversation.

More
5 years 11 months ago - 5 years 11 months ago #190267 by Aciera
Replied by Aciera on topic Encoder Index
If you want to force motion.spindle-at-speed to true you would comment out all lines it appears in your HAL and add this

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.
Last edit: 5 years 11 months ago by Aciera.

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

More
5 years 11 months ago #190269 by Stigoe
Replied by Stigoe on topic Encoder Index

Aciera wrote: If you want to force motion.spindle-at-speed to true you would comment out all lines it appears in your HAL and add this

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.

If I comment out the Spindle at speed part, motion.spindle-at-speed is true the whole time, so no need to set it manually. Still doesn't work. Just tried it again to be sure. Still struggling to find out what the next thing is... :)

Br,
Stig

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

More
5 years 11 months ago #190270 by Clive S
Replied by Clive S on topic Encoder Index
@stigoe

Longshot but is the encoder counting the correct way you might have to change the sign of the scale

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

Time to create page: 0.181 seconds
Powered by Kunena Forum