Lathe stops at code line

More
7 years 4 months ago - 7 years 4 months ago #136632 by Erikcnc
Replied by Erikcnc on topic Lathe stops at code line

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


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

File Attachment:

File Name: EMCOTURN220.hal
File Size:10 KB




Last edit: 7 years 4 months ago by Erikcnc.

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

More
7 years 4 months ago #136637 by andypugh
Replied by andypugh on topic Lathe stops at code line
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.
The following user(s) said Thank You: Erikcnc

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

More
7 years 4 months ago - 7 years 4 months ago #136780 by Erikcnc
Replied by Erikcnc on topic Lathe stops at code line

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

Last edit: 7 years 4 months ago by Erikcnc.

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

More
7 years 4 months ago #136782 by andypugh
Replied by andypugh on topic Lathe stops at code line
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)

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

More
7 years 4 months ago #136784 by Erikcnc
Replied by Erikcnc on topic Lathe stops at code line

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.

More
7 years 4 months ago #136785 by andypugh
Replied by andypugh on topic Lathe stops at code line
Your encoder will need a power supply. Are you saying it doesn't have one?

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

Time to create page: 0.381 seconds
Powered by Kunena Forum