Need help with spindle control
- markd
- Topic Author
- Visitor
07 Dec 2019 15:49 #152261
by markd
Need help with spindle control was created by markd
I am at the point in my lathe project that I need the spindle to be controlled by axis. I am controlling the VFD with its keypad and trying to get the pyvcp speed indecator to work. With VFD at 60Hz I measure a period of 67.9Ms which is 883 RPM there is no reading on the pyvcp panel.
In halmeter scale.spindle.out reads -880 (should this be negative?).
As far as I remember this section is directly from the mesa set up utility.
What am I missing?
Thanks in advance
markd
In halmeter scale.spindle.out reads -880 (should this be negative?).
As far as I remember this section is directly from the mesa set up utility.
What am I missing?
Thanks in advance
markd
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
07 Dec 2019 16:35 #152266
by cmorley
Replied by cmorley on topic Need help with spindle control
looking in your pyvcp HAL file:
net spindle-fb-filtered-abs-rpm => pyvcp.spindle-speed
So the pyvcp spindle indicator is controlled by spindle-fb-filtered-abs-rpm - what does that say?
looking in your main HAL file here is where that signal comes from;
setp scale.spindle.gain 60
setp lowpass.spindle.gain 1.000000
net spindle-vel-fb-rps => scale.spindle.in
net spindle-fb-rpm scale.spindle.out => abs.spindle.in
net spindle-fb-rpm-abs abs.spindle.out => lowpass.spindle.in
net spindle-fb-rpm-abs-filtered lowpass.spindle.out
now using halmeter probe each signal/pin till you find the problem.
Chris
net spindle-fb-filtered-abs-rpm => pyvcp.spindle-speed
So the pyvcp spindle indicator is controlled by spindle-fb-filtered-abs-rpm - what does that say?
looking in your main HAL file here is where that signal comes from;
setp scale.spindle.gain 60
setp lowpass.spindle.gain 1.000000
net spindle-vel-fb-rps => scale.spindle.in
net spindle-fb-rpm scale.spindle.out => abs.spindle.in
net spindle-fb-rpm-abs abs.spindle.out => lowpass.spindle.in
net spindle-fb-rpm-abs-filtered lowpass.spindle.out
now using halmeter probe each signal/pin till you find the problem.
Chris
Please Log in or Create an account to join the conversation.
- markd
- Topic Author
- Visitor
07 Dec 2019 19:35 #152280
by markd
Replied by markd on topic Need help with spindle control
Thank You Chris
I did find the error I had to change a line in the pyvcp.hal file.
net spindle-fb-filtered-abs-rpm => pyvcp.spindle-speed
changed to
net spindle-fb-rpm-abs-filtered => pyvcp.spindle-speed
markd
I did find the error I had to change a line in the pyvcp.hal file.
net spindle-fb-filtered-abs-rpm => pyvcp.spindle-speed
changed to
net spindle-fb-rpm-abs-filtered => pyvcp.spindle-speed
markd
Please Log in or Create an account to join the conversation.
Time to create page: 0.088 seconds