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
-- 
"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

Reply via email to