Thanks for the examples. I'm not going to lie, I've got some homework to do on this. You guy's make this sound easy but to the new guy looking in? No so much, lol
On Fri, May 8, 2020 at 9:01 PM Jon Elson <[email protected]> wrote: > On 05/08/2020 06:45 PM, Gene Heskett wrote: > > On Friday 08 May 2020 18:01:41 Jon Elson wrote: > > > >> On 05/08/2020 04:04 PM, Dan Henderson wrote: > >>> Thanks Jon and Chris! > >>> > >>> Jon do you have a code example of the Hal filter that is needed? > >> # set up 4th DAC generator as a spindle speed control > >> newsig spindle-speed float > >> newsig spindle-DAC-cmd float > >> newsig spindle-DAC-filt float > >> newsig spindle-DAC-abs float > >> linkps motion.spindle-speed-out => spindle-speed > >> linksp spindle-speed => mult2.1.in0 > >> setp mult2.1.in1 0.002457 > >> linkps mult2.1.out => spindle-DAC-cmd > >> linksp spindle-DAC-cmd => lowpass.0.in > >> linkps lowpass.0.out => spindle-DAC-filt > >> setp lowpass.0.gain 0.005 > >> linksp spindle-DAC-filt => abs.0.in > >> linksp spindle-DAC-abs => abs.0.out > >> linksp spindle-DAC-abs => ppmc.0.DAC.03.value > >> > > That hal code is all, I assume, from your 2.5.4 install Jon. everything > but > > the setp has been deprecated, and I am not sure todays version of hal > > understands those commands. > Yes, I'm pretty sure it still does. But, yes, this is OLD > STYLE hal code, for sure. > You can combine any newsig / linkps / linksp into one net > command, with > > net signal-name pin pin pin ... > > And, you don't have to tell it the signal type, it gets it > from the first pin. > > Jon > > > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
