On Thu, Sep 08, 2011 at 11:19:01PM +0100, andy pugh wrote: > On 8 September 2011 02:11, Ben Jackson <b...@ben.com> wrote: > > Is it possible to make a M101 type script that reads or writes `#1' > > parameters? > > You might be able to do something with the Gcode analogue inputs (M67) > which can be set with halcmd setp, but it is far from elegant.
I did notice those were visible (via emc.stat()) and settable on both sides. It doesn't seem to be possible to get the analog values inside the gcode (to drive a O subroutine) though. Right now what I'm doing is passing a lot of parameters in a `O- call' because those are much more flexible than M101 P/Q. The gcode subroutine makes multiple M101-style calls to accumulate the parameters on the outside. No data can flow back from M101 this way, though. As I mentioned in another question that also interferes with my plan to find the M101 comment to use as a string argument. -- Ben Jackson AD7GD <b...@ben.com> http://www.ben.com/ ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users