Re: [Emc-users] Manually Setting Motion Analog & Digital Output Values
On 25 November 2013 18:36, Charles Steinkuehler wrote: > > A trim probably makes more sense than a mux, but both could work in > different contexts. My immediate application is tweaking print > temperature, where a trim seems appropriate. For other applications > (like the cooling fan) a full override probably makes more sense. Or > maybe even both with a GUI control panel... We already have spindle-override. And you don't need the S-word for anything else... -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- 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 Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Manually Setting Motion Analog & Digital Output Values
On 11/25/2013 11:38 AM, John Kasunich wrote: > As Seb says, those pins are outputs from motion, and can be > controlled ONLY by g-code. I don't mind controlling the value with g-code, but this is "jog while UN-paused"...I'd need to be able to inject gcode into a running program stream. Not easy to do at the moment, but I have hopes that Michael's messaging updates will make something like this a LOT easier. > 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. A trim probably makes more sense than a mux, but both could work in different contexts. My immediate application is tweaking print temperature, where a trim seems appropriate. For other applications (like the cooling fan) a full override probably makes more sense. Or maybe even both with a GUI control panel... I'll play with the options and see what works, but would rather have been able to just: halcmd --Do_what_I_want_to_the_motion_outputs NewTemp ...or similar. :) Ah well... -- Charles Steinkuehler char...@steinkuehler.net signature.asc Description: OpenPGP digital signature -- 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 Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Manually Setting Motion Analog & Digital Output Values
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 > > :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 > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users -- John Kasunich jmkasun...@fastmail.fm -- 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 Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Manually Setting Motion Analog & Digital Output Values
I'm not an expert, but maybe it is because your analog output is associated with a given axis/joint, If you remove the axis, so that it is not controlled by the motion controller, may be it is possible to set the value as you intend. In this case the given motion.analog-out-00 is not "hal-wired" to anything and you cahange the value of whatever input pin was attached to previously to motion.analog-out-00 Not sure if this will fulfill your needs. Good luck, Javier On Mon, Nov 25, 2013 at 6:02 PM, Charles Steinkuehler < char...@steinkuehler.net> wrote: > I want to switch to using motion analog/digital outputs and M6x commands > for control of temperatures, fans, etc. on my 3D printer, but I can't > figure out how to change these values manually. > > When I use an M1xx code and a HAL signal, I can just use halcmd to set > the desired value regardless of whether or not a program is running, but > I can't figure out how to do that with the motion outputs. When I try > setting the values via HAL, I get an error: > > $ halcmd setp motion.analog-out-00 32 > :0: pin 'motion.analog-out-00' is not writable > > So how can I update these values manually if a program is running? > > It is important to be able to tweak some of these (particularly the > temperature settings) based on how the print is progressing. Using the > M1xx codes breaks blending, which causes "blobs" on the resulting print, > or I wouldn't be trying to use the analog/digital motion outputs. > > -- > Charles Steinkuehler > char...@steinkuehler.net > > > > -- > 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 > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > > -- 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 Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Manually Setting Motion Analog & Digital Output Values
On 11/25/13 10:02 , Charles Steinkuehler wrote: > $ halcmd setp motion.analog-out-00 32 > :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 Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Manually Setting Motion Analog & Digital Output Values
I want to switch to using motion analog/digital outputs and M6x commands for control of temperatures, fans, etc. on my 3D printer, but I can't figure out how to change these values manually. When I use an M1xx code and a HAL signal, I can just use halcmd to set the desired value regardless of whether or not a program is running, but I can't figure out how to do that with the motion outputs. When I try setting the values via HAL, I get an error: $ halcmd setp motion.analog-out-00 32 :0: pin 'motion.analog-out-00' is not writable So how can I update these values manually if a program is running? It is important to be able to tweak some of these (particularly the temperature settings) based on how the print is progressing. Using the M1xx codes breaks blending, which causes "blobs" on the resulting print, or I wouldn't be trying to use the analog/digital motion outputs. -- Charles Steinkuehler char...@steinkuehler.net signature.asc Description: OpenPGP digital signature -- 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 Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users