Spindle on or off, no speed adjustment
- javelin
- Offline
- Senior Member
- Posts: 48
- Thank you received: 1
I went back with a huanyang vfd and now I am getting an odd occurrence.
It is setup via modbus so PD 001 and 2 are both set to 2. Modbus is communicating as the spindle will turn on. After turning on there is no speed control whatsoever. I can run forward on, reverse on, and off. Thats all. I will post the custom hal here and maybe someone can help spot my stupid moment.
loadusr -W hy_vfd -d /dev/ttyUSB0
net vfd-comms halui.machine.is-on => hy_vfd.enable
net spindle-fwd motion.spindle-forward => hy_vfd.spindle-forward
net spindle-reverse motion.spindle-reverse => hy_vfd.spindle-reverse
net spindle-speed-cmd motion.spindle-speed-out-abs => hy_vfd.speed-command
net spindle-on motion.spindle-on => hy_vfd.spindle-on
net spindle-at-speed motion.spindle-at-speed => hy_vfd.spindle-at-speed
For kicks bot Hal and Custom Hals are attached
Thanks guys.
Please Log in or Create an account to join the conversation.
- javelin
- Offline
- Senior Member
- Posts: 48
- Thank you received: 1
PD011 is a minimum limit setting which I had set to 120 for safety of the spindle. In other words it starts at this minimum speed. Yet when you start the spindle in linuxcnc it not only starts at this minimum, it will not increase nor decrease in speed. Its locked in.
When I set PD011 to 000.00 I can then start linuxcnc and adjust the speed as expected through axis, increase to my desired speed and all is well with the world.
Yet I would like to have a minimum speed setting in order to help prevent accidentally smoking the motor at too low of a speed. Anyone have any suggestions?
Please Log in or Create an account to join the conversation.
- curtisa
- Offline
- Premium Member
- Posts: 88
- Thank you received: 15
net spindle-speed-cmd motion.spindle-speed-out-abs => hy_vfd.speed-command
I think the above line shoud be:
net spindle-cmd-rpm-abs => hy_vfd.speed-command
PD011 is a minimum limit setting which I had set to 120 for safety of the spindle. In other words it starts at this minimum speed. Yet when you start the spindle in linuxcnc it not only starts at this minimum, it will not increase nor decrease in speed. Its locked in.
When I set PD011 to 000.00 I can then start linuxcnc and adjust the speed as expected through axis, increase to my desired speed and all is well with the world.
Yet I would like to have a minimum speed setting in order to help prevent accidentally smoking the motor at too low of a speed. Anyone have any suggestions?
PD011 sets the minimum spindle RPM of the spindle in Hz (not in RPM). So if your spindle is spec'ed to do 24K RPM at 400Hz, a setting of 120Hz is equivalent to 7200PM. This is a safe minimum limit for an air-cooled spindle to prevent overheating at low RPM.
Chances are that with PD011 = 120, you're not increasing the RPM in Axis enough until you pass the 7200 RPM mark - it'll take a lot of mouse clicks on the '+' button to get there, which may give the impression that the RPM isn't being adjusted. When manually controlling the spinle, Axis always starts at 0 RPM, so you have to hammer away on the '+' button a lot until you exceed the minimum RPM threshold, after which the VFD will start accepting each subsequent RPM increment request.
With PD011 = 120, try bringing up the MDI window and typing:
M3 S10000
Based on your observation that the spinde speed appears to be controllable when PD011 = 0, my guess is that the VFD will ramp up to 10K RPM just fine.
Please Log in or Create an account to join the conversation.
- javelin
- Offline
- Senior Member
- Posts: 48
- Thank you received: 1
As for the hal line adjustment. I tried it but with that I lost speed control. I went back with my original line and all is fine when running that.
I dont know if its possible but I may poke around and see if I can find a way to have linuxcnc start the spindle speed equal to that of the vfd for the sake of simplicity. Its not an important feature right now but something on the back burner.
Thanks again for the help!
Please Log in or Create an account to join the conversation.