- Posts: 153
- Thank you received: 0
Lathe stops at code line
- Erikcnc
- Offline
- Premium Member
-
andypugh wrote: Do you see any mention of "motion.spindle.at-speed in your HAL file?
(And is this LinuxCNC 2.7 or 2.8? As I changed all the spindle pin names in 2.
yes, i fount the line "motion.spindle.at-speed " in the HAL file.
also i don`t know if i have the scale right.
linuxcnc is version 2.7.14
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
I suspect you might find that your spindle-velocity-fb has a different sign to the spindle-velocity-cmd. If it is that make your encoder scale negative. That's [SPINDLE_9]ENCODER_SCALE in your INI.
Please Log in or Create an account to join the conversation.
- Erikcnc
- Offline
- Premium Member
-
- Posts: 153
- Thank you received: 0
andypugh wrote: I suggest opening three halmeters and looking at near.0.in0, near.0.in1 and near.0.out
I suspect you might find that your spindle-velocity-fb has a different sign to the spindle-velocity-cmd. If it is that make your encoder scale negative. That's [SPINDLE_9]ENCODER_SCALE in your INI.
okay. so at 1500 rpm near.0.in1 gives a value of 25.
that should be fine. (1500/60)
but spindlevel-fb-rps gives a mutch lower value. and not constantly. it pops up ones a while. just enough to make a picture.
encoder scale is: 1024
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
hm2_7i76E.encoder.00.count is solidly on zero. This leads me to suspect that one of the spindle encoder phases is not connected.
(If this is deliberate then you need to set counter-mode to true for that encoder)
Please Log in or Create an account to join the conversation.
- Erikcnc
- Offline
- Premium Member
-
- Posts: 153
- Thank you received: 0
andypugh wrote: Looks like a problem with the spindle encoder.
hm2_7i76E.encoder.00.count is solidly on zero. This leads me to suspect that one of the spindle encoder phases is not connected.
(If this is deliberate then you need to set counter-mode to true for that encoder)
so i checked the wiring. everything is well connected as it should be. only thing what my driver doesn't has is +5v and gnd.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
Please Log in or Create an account to join the conversation.