Problems Spindle Synchronisation

More
30 Aug 2024 21:17 #309053 by Limo
Hello,
I have problems trying to configure LinuxCNC so that it can use spindle synchronized motion. I have made the basic setup with a pncconfig. spindle.N.at-speed works, but I don't have a plan how to connect spindle.N.index-enable. For context: it is a cnc-lathe and I want to do threading. My CAM-program (Fusion360) outputs for threading OP`s G33. Maybe someone can point me in the right direction? I really appreciate any help.
I will attach my .ini and .hal files.
Thanks
Limo
Attachments:

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

More
30 Aug 2024 21:37 - 30 Aug 2024 21:38 #309054 by PCW
It is connected in the hal file:

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

# ---Setup Spindel Steuerungs-Signale---

net spindle-vel-cmd-rps <= spindle.0.speed-out-rps
net spindle-vel-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-vel-cmd-rpm <= spindle.0.speed-out
net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs
net spindle-enable <= spindle.0.on
net spindle-cw <= spindle.0.forward
net spindle-ccw <= spindle.0.reverse
net spindle-brake <= spindle.0.brake
net spindle-revs => spindle.0.revs
net spindle-at-speed => spindle.0.at-speed
net spindle-vel-fb-rps => spindle.0.speed-in
net spindle-index-enable <=> spindle.0.index-enable
Last edit: 30 Aug 2024 21:38 by PCW.
The following user(s) said Thank You: Masiwood123

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

More
31 Aug 2024 06:35 #309075 by Limo
So the configuration doesn't need modifying? 
Then it probably is not a configuration problem. Is there a way I can confirm I get an index-pulse with the halscope? I am not sure what signals I can watch which can confirm a successful index pulse? Unfortunately I don't have an oscilloscope.
Or are there more potential problems that can cause problems. 
When the machine reaches the g33 it just stops. spindle keeps spinning and I goes into pause. Is there a way I can check a log or something why the command isn't continuing?
Thanks for your help.

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

More
31 Aug 2024 14:19 #309088 by PCW
One way to check the index/encoder  is to:

1. Disable the drive so the spindle can be turned by hand

2. Verify that the spindle position from the encoder increases by 1.00 for each forward turn.

3. With halcmd (in a terminal) set the index enable:

halcmd sets spindle-index-enable true

now, when you rotate the spindle. at the index position:

the spindle position should be reset to 0

spindle-index-enable should go false

You can watch the spindle position (spindle.0.revs) and spindle-index-enable
with halshows watch tab






 

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

More
31 Aug 2024 21:06 #309112 by Limo
After checking everything. I think I found the culprit. Since I am using a quadrature encoder. The direction of it was reversed. I fixes that and it works. Thank you a lot for your help.

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

Time to create page: 0.116 seconds
Powered by Kunena Forum