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.
And I've not figured out how to extract the vfd's tach display unless I do it optically, with an encoder so my pretty tach display sits at zero. Sniff. I think the vfd outputs an analog voltage someplace but thats a bridge not yet crossed. It can report the rpms on its own display. Page 14 of your doc say I can read what the vfd supplies but not terribly accurately, the first 4 field inputs. The vfd has an empty space where an rj45 could be planted, so I've no clue if a rs-485 receiver could obtain anything usefull or not. It does show registers to set up a serial link in the chinglish docs. Thanks Peter. I think I'll go see if I can make the spindle run now. But 2 hours later, making cables etc, no luck. I need to get it laying where I can get at the programming conntrols at the same time as I can fiddle with the wires on the interface strip, opening up this #@%& can of worms is a PITA. The main stuff is all mounted on the bottom plate, but none of the cabling reaching to its line cord entry, or to the control panel mounted in the tops slopeing front, is long enough to actually let you lay the cover someplace where the programming panel is even seeable, let alone useable. Best described as a PIMA. Probably the best way is to knock tha panel out of the case (looks like its glued into the square hole) and lay it someplace it won't short to anything. Or even make a new box. This one is heavy steel & probably weighs 30 lbs empty! Later... Thanks. 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
