Andy, Thanks for your help. I couldn't get it to work so I did this; use pwmgen output to clock a flip flop, send the flip flop output to the parallel port pin AND to the input of a NOT. Link the NOT output back to flipflop data pin. This gives a really nice square wave - just what I need which I can SCALE and LIMIT just the way I wanted. Its taken a big off fiddling but at least I learnt a bit about the HAL. Regards Andy
-----Original Message----- From: Andy Pugh [mailto:a...@andypugh.fsnet.co.uk] Sent: 04 October 2009 11:23 To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] More Spindle Soft Start 2009/10/4 Andy I <andyi_w...@btinternet.com>: > If I link > motion.spindle-speed-out to pwmgen.0.pwm-freq with suitable scaling and > limits then would give me exactly what I need. To save lot of time for me - > is it possible to do this in the HAL i.e. link a pin to a parameter? pwm-freq is "rw" in the manual, so it ought to work. I have had a fiddle on a virtual machine and it loaded OK when I took a standard stepconf-generated HAL file and changed the link from pwmgen.0.value to pwmgen.0.pwm-freq I removed the link to pwm-value and used a setp line to set it to half the scale value. Unfortunately the virtual machine has no parallel port and the limit switches wouldn't let it run, so I don't know if it works. It looks like it ought to, though. -- atp ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users