Brilliant

I've added the following to my custom.hal file and it works

loadrt timedelay count=1
addf timedelay.0 servo-thread

setp timedelay.0.on-delay 10
setp timedelay.0.off-delay 0

net spindle-on => timedelay.0.in
net spindle-ready <= timedelay.0.out
net spindle-ready => motion.spindle-at-speed

You've made my first venture into HAL very easy

Mike



On 22 Apr 2012, at 09:22, Viesturs Lācis <[email protected]> wrote:

> 2012/4/22 Mike Bennett <[email protected]>:
>> Is "timedelay" a Linux CNC module that can be triggered by a spindle start 
>> command?
> 
> It can be triggered by whatever You need.
> IMHO motion.spindle-on is most appropriate for Your situation.
> 
>> Where should I look for documentation on this?
> 
> http://www.linuxcnc.org/docs/devel/html/man/man9/timedelay.9.html
> 
> load the module:
> loadrt timedelay [count = 1]
> 
> attach it to servo thread
> addf timedelay.0 servo-thread
> 
> connect to spindle pins:
> timedelay.0.in -> motion.spindle-on
> timedelay.0.out -> motion.spindle-at-speed
> 
> set on and/or off delays (set it to zero, if not needed):
> setp timedelay.0.on-delay 3(or whatever time in seconds You need)
> setp timedelay.0.off-delay 0
> 
> Viesturs
> 
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to