Need help with spindle control

More
07 Dec 2019 15:49 #152261 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

File Attachment:

File Name: pyvcp_options.hal
File Size:0 KB

File Attachment:

File Name: MiniLathe3...2-07.ini
File Size:3 KB

File Attachment:

File Name: MiniLathe3...2-07.hal
File Size:11 KB

File Attachment:

File Name: pyvcp-panel.xml
File Size:1 KB
Attachments:

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

More
07 Dec 2019 16:35 #152266 by cmorley
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

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

More
07 Dec 2019 19:35 #152280 by markd
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

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

Time to create page: 0.067 seconds
Powered by Kunena Forum