From Paraport to MESA, RPM Issue (maybe)
03 Feb 2019 00:41 - 03 Feb 2019 00:41 #125569
by russtuff
From Paraport to MESA, RPM Issue (maybe) was created by russtuff
At least I think RPM is the issue. I'm not using a spindle encoder on my lathe right now, and when I set S1000 I get 1001RPM in Axis. I'm wondering if this is why the machine will do everything right up to the first G1, and it's waiting for the RPM to match. I have a Huangyang VFD controlling the spindle.
From my postgui.hal:
From my postgui.hal:
loadrt scale count=1
loadrt lowpass count=1
loadrt abs count=1
addf scale.0 servo-thread
addf lowpass.0 servo-thread
addf abs.0 servo-thread
setp scale.0.gain 60
setp lowpass.0.gain 0.010000
net spindle-velocity => lowpass.0.in
net spindle-fb-filtered-rps lowpass.0.out => abs.0.in
net spindle-fb-filtered-abs-rps abs.0.out => scale.0.in
# SET UP SPINDLE AT SPEED INDICATOR
net spindle-at-speed => pyvcp.spindle-at-speed-led
# load a near component and attach it to a thread
loadrt near
addf near.0 servo-thread
# connect one input to the commanded spindle speed
net spindle-cmd => near.0.in1
# connect one input to the encoder-measured spindle speed
net spindle-fb-filtered-abs-rpm => near.0.in2
# SET THE SPINDLE AT SPEED INPUTS TO AGREE IF THEY'RE WITHIN 1%
setp near.0.scale 1.01
# ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
# HAL CONNECTIONS FOR THE VIRTUAL PANEL DISPLAY
net hy-RPM <= spindle-vfd.Rott => pyvcp.spindle-speed
# SET SPINDLE AT SPEED INDICATOR TO TRUE IF WE CHOSE NO FEEDBACK
# CURRENTLY OFF, BUT TURNING IT ON DOESN'T HELP ANYTHING.
# sets spindle-at-speed true
Last edit: 03 Feb 2019 00:41 by russtuff.
Please Log in or Create an account to join the conversation.
03 Feb 2019 01:09 #125570
by russtuff
Replied by russtuff on topic From Paraport to MESA, RPM Issue (maybe)
Nope, that isn't it. I was able to S999 and Axis reads the same but still no movement during G1.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19219
- Thank you received: 6440
03 Feb 2019 01:15 #125571
by tommylight
Replied by tommylight on topic From Paraport to MESA, RPM Issue (maybe)
You have hal set to wait for spindle to match the speed commanded, but it is not connected to any feedback from the spindle.
Connect the feedback or remove the lines that pertain to waiting for it to match.
Connect the feedback or remove the lines that pertain to waiting for it to match.
Please Log in or Create an account to join the conversation.
05 Feb 2019 00:40 #125710
by russtuff
Replied by russtuff on topic From Paraport to MESA, RPM Issue (maybe)
Thank you. I'm basically shooting in the dark and while I don't have it working properly yet, I have discovered that by not calling G95 it does let the program run, albeit at a painfully slow feed rate.
Please Log in or Create an account to join the conversation.
06 Feb 2019 03:27 #125782
by russtuff
Replied by russtuff on topic From Paraport to MESA, RPM Issue (maybe)
I've finally got the spindle-at-speed LED to come on when the spindle is up to speed. The RPM value being reported in Axis is within .01% of the RPM requested from the VFD, and my 'near' value allows for 1%. Yet it still isn't feeding. I can't think of anything else it could be waiting for. Does anyone have any more ideas?
Please Log in or Create an account to join the conversation.
06 Feb 2019 15:42 #125816
by PCW
Replied by PCW on topic From Paraport to MESA, RPM Issue (maybe)
is motion.spindle-speed-in connected to the proper signal?
Please Log in or Create an account to join the conversation.
Time to create page: 0.075 seconds