Automatic pause when spindle is started

More
11 years 2 months ago #61871 by Todd Zuercher
A lot of VFDs have a digital output available (either dedicated or programable) to indicate that the spindle is up to speed. If you can bring that in and connect it up to the motion.spindle-at-speed pin that is an ideal solution. If that is not an option, it gets only a little more complicated.
I'd try try connecting the spindle on signal to the spindle is up to speed pin through the timedelay component linuxcnc.org/docs/html/man/man9/timedelay.9.html

If you need help modifying your hal file for this, please ask for help and post your config files and someone can walk you through it (or maybe do it for you).

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

More
10 years 9 months ago #68332 by gaeldk
Yes I think this is the proper solution. My CN is connected via the parallel port so I need to find another IO from the spindle to the PC...

My VFD is a Fuling DZB 300

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

More
10 years 9 months ago #68377 by andypugh
The inverter appears to offer RS485 communications, you might be able to hook it to the serial port with an adaptor and get a lot more control / feedback whilst also freeing up parport pins.

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

More
10 years 8 months ago #70152 by Rubenv
Gents, I am sitting in the same boat, I would like a time delay, independent of the VFD to delay the rest of the program to run after spindle start. I running from parallel port, so IO is costly. I have done some more investigation and I will try the following tonight:

loadrt timedelay count=1
addf timedelay.0 servo-thread
setp timedelay.0.on-delay 6
setp timedelay.0.off-delay 0
net spindle-on => halui.program.pause
net spindle-on => timedelay.0.in
net spindle-ready <= timedelay.0.out
net spindle-ready => halui.program.resume

Andy, your RS485 sounds like a good solution later on, can you control all the spindle functions this way and do you have a circuit or adaptor suggestion for this?

I am also a newbie to LinuxCNC, so bear with me please.

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

More
10 years 8 months ago #70194 by cmorley
motion.feed-inhibit or
motion.spindle-at-speed
might be more appropriate (and safer) then pausing the program.

feed-inhibit (which i believe works on rapids as well) would allow no movement (unless in the middle of a thread pass)
spindle-at-speed - Motion will pause until this pin is TRUE, under the following conditions: before the first feed move after each spindle start or speed change; before the start of every chain of spindle-synchronized moves; and if in CSS mode, at every rapid to feed transition. This input can be used to ensure that the spindle is up to speed before starting a cut, or that a lathe spindle in CSS mode has slowed down after a large to small facing pass before starting the next pass at the large diameter. Many VFDs have an at speed output. Otherwise, it is easy to generate this signal with the HAL near component, by comparing requested and actual spindle speeds.

These pins are realtime, HALUI is not

Chris M
The following user(s) said Thank You: Rubenv

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

More
10 years 8 months ago #70195 by cmorley
feed-inhibit works on feed, rapids and jogging

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

Time to create page: 0.069 seconds
Powered by Kunena Forum