As Seb says, those pins are outputs from motion, and can be
controlled ONLY by g-code.

I think you can do better than the mux approach though.  For
example, use a summer, and add a manually adjustable (PyVCP
or gladeVCP) "temperature trim" value to the main value coming
from the g-code.

Or maybe you want the trim value to be a multiply instead of an
add.  Depends on the nature of the variable you are controlling.

But the general gist is that you are combining the value from the
g-code with the manual value, rather than over-riding the one with
the other.



On Mon, Nov 25, 2013, at 12:15 PM, Sebastian Kuzminsky wrote:
> On 11/25/13 10:02 , Charles Steinkuehler wrote:
> > $ halcmd setp motion.analog-out-00 32
> > <commandline>:0: pin 'motion.analog-out-00' is not writable
> >
> > So how can I update these values manually if a program is running?
> 
> The motion(9) manpages says that those are output pins from motion, set 
> by M67/M68, that you should net in HAL to your analog output device.
> 
> I think the only way to change the value on those motion.analog-out-* 
> pins is to run M67/M68.
> 
> I think you could do this:
> 
> * net the motion.analog-output pins in to a mux
> 
> * have another input to the mux be unconnected
> 
> * connect the output of the mux to your analog output device in HAL
> 
> * set the control on the mux to normally follow the value from motion
> 
> * if you want to monkey with the value manually, flip the mux control to 
> follow the "free" input, and setp the free input pins to your temporary 
> experimental value
> 
> 
> You could put all this in a nice PyVCP panel with radio buttons for 
> selecting "programmed" or "manual" temperatures, and sliders for manual 
> temperature settings.
> 
> 
> -- 
> Sebastian Kuzminsky
> 
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing 
> conversations that shape the rapidly evolving mobile landscape. Sign up now. 
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users


-- 
  John Kasunich
  [email protected]

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to