On Saturday 23 February 2019 16:00:05 Peter C. Wallace wrote: > On Sat, 23 Feb 2019, Gene Heskett wrote: > > Date: Sat, 23 Feb 2019 15:30:48 -0500 > > From: Gene Heskett <[email protected]> > > Reply-To: "Enhanced Machine Controller (EMC)" > > <[email protected]> > > To: [email protected] > > Subject: Re: [Emc-users] New discovery for 5i25-7i76 users. > > > > On Saturday 23 February 2019 12:00:21 Peter C. Wallace wrote: > >> On Sat, 23 Feb 2019, Gene Heskett wrote: > >>> Date: Sat, 23 Feb 2019 11:47:48 -0500 > >>> From: Gene Heskett <[email protected]> > >>> Reply-To: "Enhanced Machine Controller (EMC)" > >>> <[email protected]> > >>> To: [email protected] > >>> Subject: Re: [Emc-users] New discovery for 5i25-7i76 users. > >>> > >>> On Saturday 23 February 2019 11:02:36 Peter C. Wallace wrote: > >>>> On Sat, 23 Feb 2019, Gene Heskett wrote: > >>>>> Date: Sat, 23 Feb 2019 08:35:08 -0500 > >>>>> From: Gene Heskett <[email protected]> > >>>>> Reply-To: "Enhanced Machine Controller (EMC)" > >>>>> <[email protected]> > >>>>> To: [email protected] > >>>>> Subject: [Emc-users] New discovery for 5i25-7i76 users. > >>>>> > >>>>> Greetings PCW; > >>>>> > >>>>> According to what I am seeing with a halmeter, the 7i76 > >>>>> completely replaces any need for a pwmgen to be included in the > >>>>> hm2 config line of the hal file, thereby simplifying ones hal > >>>>> file by quite a few lines. > >>>>> > >>>>> However, with a vfd to control, it appears there are 3 > >>>>> parameters to be added and serviced with setp's: > >>>>> > >>>>> hm2_5i25.0.7i76.0.0.spinout-maxlim > >>>>> hm2_5i25.0.7i76.0.0.spinout-minlim > >>>>> hm2_5i25.0.7i76.0.0.spinout-scalemax > >>>>> > >>>>> However this does not disable the spindle if the requested speed > >>>>> is below minlim. Shouldn't it? > >>>> > >>>> No, it just bounds the input range > >>>> > >>>> For a typical use you would set > >>>> > >>>> hm2_5i25.0.7i76.0.0.spinout-maxlim to maximum spindle RPM > >>>> hm2_5i25.0.7i76.0.0.spinout-minlim to 0 or some minimum spindle > >>>> RPM hm2_5i25.0.7i76.0.0.spinout-scalemax to maximum spindle RPM > >>> > >>> Set for 24000 max's, and 2400 min, it will still tell the spindle > >>> to run at 1 rpm. Or from the mdi cli s2m3 still tries to run it, > >>> at 2 rpm. So obviously I've not got it net'd correctly. > >>> > >>> This is what I have: > >>> > >>> #setup spindle driver > >>> # NOTE no pwmgen in the 5i25 is used! > >>> net spindle-cmd <= spindle.0.speed-out > >>> net spindle-cmd => abs.1.in > >>> net spindle-abs <= abs.1.out => hm2_5i25.0.7i76.0.0.spinout > >>> setp hm2_5i25.0.7i76.0.0.spinout-maxlim [SPINDLE_0]MAXREV_LIM > >>> #24000 setp hm2_5i25.0.7i76.0.0.spinout-minlim > >>> [SPINDLE_0]MINREV_LIM #2400 setp > >>> hm2_5i25.0.7i76.0.0.spinout-scalemax [SPINDLE_0]MAXREV_LIM #24000 > >>> net spindle-enable <= spindle.0.on > >>> net spindle-enable => hm2_5i25.0.7i76.0.0.spinena > >>> net spindle-ccw <= spindle.0.reverse => > >>> hm2_5i25.0.7i76.0.0.spindir > >>> > >>>>> I'd appreciate some guidance in setting those intelligently. > >>>>> > >>>>> At first glance it looks like scalemax and maxlim should be the > >>>>> same and equal to the spindles top speed of 24000 revs, and I'm > >>>>> guessing that minlim should be around 2400 in order to protect > >>>>> the spindle and vfd from an over-exuberance of low speed torque > >>>>> boosting over drive. Then one could S command speeds directly in > >>>>> rpms. > >>>>> > >>>>> How far off am I? > >>>> > >>>> That sounds right > >>> > >>> Ok. I'll leave it there. But its not setting a minimum speed below > >>> which it is stopped. The vfd may have its own limit that I've not > >>> found yet. This vfd is best described as a bastard due to the lack > >>> of engrish docs. Google translate does a decent job, but only does > >>> the first 40 pages of a 65 page manual. It dies at about the point > >>> where it gets interesting... > >>> > >>> Thanks Peter. > >>> > >>> Cheers, Gene Heskett > >> > >> Thats correct, minlim wil bound the setting but does not disable > >> the spindle > > > > What does it actually limit then? spinout happily follows the s > > command down to 1. I have that area of the tach marked red, but > > that doesn't protect the motor either. > > It limits the analog output > > It cannot cannot be set below minlim > Though if the spindle is disabled (spinena false) the analog out will > be 0 >
I see that now that I have it half working. Set at 2400 minlim, the display says 22xx and stays below the snumber up to around 4500, then gains up to 1000 revs on the snumber until they meet at 24000 again. So the control curve isn't exactly linear, but thats a shrug Now, I am feeding spinena to fwd on the vfd, which is on anytime an m3/m4 is active. And feeding spindir- to rev on the vfd. But its only running fwd, even when spindir is turned on. So I'm wondering if I need an xor so only one at a time can be set. I suppose how that works is up to the individual vfd. Testable by disconnecting spinena- I think. But its time to put on my chefs hat & go make some dinner. I had to half beat the box, without inflicting even chipped paint damages to get that control panel stuff loose, tempted to reattach it by mounting a 4" wide panel on the edge of the boxes baseplate with angle alu. Its up in the air, well out of any flying swarf. Tempted also to just get another box that allows the top removal and transplant it all. I can see me trolling ebay tonight for something suitable, and at least 25 lbs of steel lighter. Thanks Peter, progress, now wheres my chefs hat. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
