On Tuesday 14 August 2018 11:46:38 jeremy youngs wrote:

> On Tue, Aug 14, 2018, 3:28 AM andy pugh <bodge...@gmail.com> wrote:
> > On 14 August 2018 at 02:52, jeremy youngs <jcyoung...@gmail.com> 
wrote:
> > > Now it gives this
> >
> > The error is "setp needs 2 arguments, only one given" and tells you
> > that the problem is on line 15 in qi.hal
> >
> > Line 15 in qi.hal says "setp hm2_7i90.0.pwmgen.00.scale"
> > But has no value provided to set the scale to.
> >
> > Is this directly proportional ? I.e a value of 1 is 1% duty cycle
> > max , 99 would be 99% and 100 = 100?
>
> I ask this also because my h-bridge ( driving x,y,z all need 99% max
> as they are charge pumped) and can this scale be set at each axis ?

Sure. Running my 1hp+ spindles with Jon's (Pico Systems) pwm-servo amps, 
which have a same requirements, thats part of my hal files. So is 
restarting the "boot" up of these amps everytime they are restarted from 
zero speed.
 
> Also , if I cd linuxcnc , servo Matson ( machine name ) will that load
> the hostmot2 7i90 configuration? Then I can look at the hm2/7i90 pins
> to properly net them . I took the 7i90 lines from the original servo
> Matson Hal file , so they would be on the same pins as my 7i90 is set
> up for ( the pwm and enable pin) will I have to change the pin
> definition of the enable bit to pwmgen and will it need an address
> different than pwmgen 02? Pwmgen 02 is net to A-out and it seems ok
> with that .I assigned a value to scale and it then balked at line 18
> needs 2 arguments , the issue for me is I don't know which hm2 7i90
> pin to net to b-value I have changed a/b out back to their original
> syntax of value , it was ok with the a-value assignment but did not
> like the b-value assignment to the enable pin .

The enable pin in a lot of this defaults to enabled if not connected at 
the amplifiers input. You don't feed it a pulse in any event. Its either 
on or off.

If handled correctly, this can make your H-bridges into a full, 4 
quadrant driver, meaning it will stop as quickly as it starts, 
recovering the energy by dumping it back into the psu, so direction 
reverses are done using the full power of the motor. My G0704 can 
reverse from 2k revs in the direction its running to 2k revs in the 
opposite direction in around 400 milliseconds. In fact I have a limit3 
in that path to slow it so the current limit 'chirp' from the driver is 
much less noticeable. The recovered energy from the stop is used to 
start it up in the reverse direction, so the psu voltage actually rises 
above the filter caps ratings while the slowdown is taking place, then 
returns to the normal run voltage once its back up to speed in the other 
direction. The caps in the psu won't fuss as the very momentary 
overvoltage just tends to re-form the caps for full rated voltage.

...

So the which critter is which confusion remains. Would you like to see 
the stuff I'm running? It obviously won't run your bldc motors but might 
be informational enough to help. I won't clutter the list with 3000 LOC, 
but they'll send as PM to you. Maybe gzipped. Just ask.

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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to