Servo Spindle motor encoder Mesa 7i76e

More
6 years 6 months ago #165802 by andypugh
Your HAL
Code:
net spindle-vel-cmd-rps <= motion.spindle-speed-out-rps net spindle-vel-cmd-rps-abs <= motion.spindle-speed-out-rps-abs net spindle-vel-cmd-rpm <= motion.spindle-speed-out net spindle-vel-cmd-rpm-abs <= motion.spindle-speed-out-abs ... net spindle-vel-cmd-rps => near.0.in1 net spindle-vel-fb-rps => near.0.in2 net spindle-at-speed motion.spindle-at-speed <= near.0.out

Are you actually controlling spindle speed from G-code?
Does Halmeter show the spindle speed on the motion.spindle-speed-out-rps pin?
Everything looks like it should work.
The following user(s) said Thank You: Erikcnc

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

More
6 years 6 months ago - 6 years 6 months ago #165807 by Erikcnc

andypugh wrote: Your HAL

Code:
net spindle-vel-cmd-rps <= motion.spindle-speed-out-rps net spindle-vel-cmd-rps-abs <= motion.spindle-speed-out-rps-abs net spindle-vel-cmd-rpm <= motion.spindle-speed-out net spindle-vel-cmd-rpm-abs <= motion.spindle-speed-out-abs ... net spindle-vel-cmd-rps => near.0.in1 net spindle-vel-fb-rps => near.0.in2 net spindle-at-speed motion.spindle-at-speed <= near.0.out

Are you actually controlling spindle speed from G-code?
Does Halmeter show the spindle speed on the motion.spindle-speed-out-rps pin?
Everything looks like it should work.


also at motion.spindle-speed-out-rps nothing

in my programs i use g97.
Last edit: 6 years 6 months ago by Erikcnc.

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

More
6 years 6 months ago - 6 years 6 months ago #165813 by andypugh

also at motion.spindle-speed-out-rps nothing.


Is the spindle controlled by M3 / M4 and S?

I am failing to see how the spindle can be controlled by the motion.spindle pins but for there to be no output on one of those pins.

Which version of LinuxCNC are you using?
Last edit: 6 years 6 months ago by andypugh.
The following user(s) said Thank You: Erikcnc

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

More
6 years 6 months ago - 6 years 6 months ago #165819 by Erikcnc

andypugh wrote:

also at motion.spindle-speed-out-rps nothing.


Is the spindle controlled by M3 / M4 and S?

I am failing to see how the spindle can be controlled by the motion.spindle pins but for there to be no output on one of those pins.

Which version of LinuxCNC are you using?


yes. only thing is that its waiting for the part at a threading cycle. before i switched the encoder it worked fine. excapt that spindle position wasn't correct.

im using 2.4.17
Last edit: 6 years 6 months ago by andypugh.

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

More
6 years 6 months ago #165820 by andypugh

Erikcnc wrote: im using 2.4.17


Some of the spindle speed pins have changed since v2.4 (2011?) Are you sure that you are usiong that version? I would expect there to be an error if you were adding pins to a net that don't exist. linuxcnc.org/docs/2.4/html/man/man9/motion.9.html

I am beginning to wonder if you are running the HAL file that you think you are.

Are you really saying that motion.spindle-speed-out has a value, but motion.spindle-speed-out-rps does not? That seems almost impossible.

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

More
6 years 6 months ago #165827 by Erikcnc

andypugh wrote:

Erikcnc wrote: im using 2.4.17


Some of the spindle speed pins have changed since v2.4 (2011?) Are you sure that you are usiong that version? I would expect there to be an error if you were adding pins to a net that don't exist. linuxcnc.org/docs/2.4/html/man/man9/motion.9.html

I am beginning to wonder if you are running the HAL file that you think you are.

Are you really saying that motion.spindle-speed-out has a value, but motion.spindle-speed-out-rps does not? That seems almost impossible.


wait i am doing something really dumb here.
i was turning it by hand.

so, at manual speed set to 1000 rpm i see that motion.spindle-speed-out-rps is also 1000 rpm.

near.0.in1 is then 16.66667
near.0.in2 is fluctuating around that same value.

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

Time to create page: 0.417 seconds
Powered by Kunena Forum