On Wednesday 12 March 2008, Jeff Epler wrote:
>Modified file emc2/src/emc/usr_intf/stepconf/stepconf.py
>
>Full file:
><http://cvs.linuxcnc.org/cvs/emc2/src/emc/usr_intf/stepconf/stepconf.py?rev=
>1.11.2.17>
>
>Difference:
><http://cvs.linuxcnc.org/cvs/emc2/src/emc/usr_intf/stepconf/stepconf.py.diff
>?r1=1.11.2.16;r2=1.11.2.17>
>
>Branch: v2_2_branch
>
>Log:
>revision 1.11.2.17
>date: 2008/03/12 13:57:18;  author: jepler;  state: Exp;  lines: +1 -1
>fix 'offset' value calculated by stepconf for spindle speed control
>
>--- stepconf.py        2008/03/12 12:53:25     1.11.2.16
>+++ stepconf.py        2008/03/12 13:57:18     1.11.2.17
>@@ -643,7 +643,7 @@
>           y1 = self.spindlespeed1
>           y2 = self.spindlespeed2
>           scale = (y2-y1) / (x2-x1)
>-          offset = y1 - x1 * scale
>+          offset = x1 - y1 / scale
>           print >>file
>           print >>file, "net spindle-cmd <= motion.spindle-speed-out =>
> pwmgen.0.value" print >>file, "net spindle-enable <= motion.spindle-on =>
> pwmgen.0.enable"
>
Jeff, I applied this directly to my "binary" (the stepconf in /usr/bin) and I 
see 2 other items that could be expanded.

1. It never asks us if the spindle is bi-directional, so it only writes a 
loadrt pwmgen output_type=0.  Manually editing that to =1 in the halfile 
gives us start buttons for both directions in axis, and they work.  This 
seems like a relatively easy fix in the write phase, but I don't think I feel 
up to adding the question to the gui.

2. Converting pin 17 to Charge_Pump does add those lines to the halfile, but I 
haven't tested them yet.  The better question is, since the pwmgen stops, and 
this stops the PMDX-106, I'm not sure I see the reasoning other than as a 
potential noise safety feature.  And then only if it was stopped when the 
spindle was stopped.  The PMDX-106 is currently set to ignore it. 

Humm, e-stop: Is charge_pump stopped when in f1 off(or esc key e-stop)?  That 
would be a nice safety feature, and reason enough to use it.

I may go out and play for a bit.  Its back up to about 45F here now.  I need 
to loosen up some as I'll be crawling around on top of a tv transmitter this 
afternoon, the power meter samplers have arrived so I have to pull some 
3.125" transmission line apart and hole saw 6 each 1.875" holes, 3 for each 
(visual/aural).

Then in axis, the scaling increments seem to be so tiny that when running it 
manually, we really really need an auto-increment/decrement associated with 
the spindles - & + buttons, or the 'rotate this direction' buttons, which 
would actually make more sense, as I found hitting the ccw button, and then 
tapping the + button brings the virtual motor I was playing with last night 
to a stop, which is somewhat logical, but then does not restart it in the fwd 
dir unless I got tired of tapping the + button cuz its slow.  With an auto 
inc/dec associated with the rotate buttons, the plus and minus buttons could 
even go away.  Something in the same speed effect range as the volume 
controls on your tv remote would be super.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
We will have solar energy as soon as the utility companies solve one technical
problem -- how to run a sunbeam through a meter.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to