as a stopgap, this would work
$ echo '#234 = 456' |python src/emc/usr_intf/axis/scripts/mdi.py

The gladevcp EMC_Action_MDI can be used to do pretty much the same, and you 
could link that action to a HAL pin change trigger (see the examples in 
configs/gladevcp). Doesnt win the beauty price, too, and assumes you can switch 
to MDI mode

inter-component communication beyond HAL is worth considering IMO

I can, in principle, imagine a new NML message which is just used for setting 
and maybe reading named/numbered parameters, and link that into a widget, but 
that's trés sportif; I actually saw the need for that coming when Pavel and me 
worked on gladevcp, because it's an obious feature 

if that's considered generally useful, I'd look into it

--

semi-related:

I've been toying with named HAL pins in the interpreter

short of abusing a comment for a hal pin name like 'o<readpin> call 
(comp.pin-name)' which is a royal wart
one would need to think about extending the o-word name syntax a bit so it can 
convey pin names
this is not that difficult but backwards compatibility is an issue 

also, I've done an experimental named parameter syntax which pulls values from 
the ini file like so:

#<_[section]name> and it would fish out a value from

[SECTION]
NAME=<value>

but then this is setup time, not runtime and probably not what you need

-mah

Am 16.08.2011 um 17:47 schrieb andy pugh:

> Is there anyway for a bash script to write values directly to numbered
> parameters?
> 
> halcmd setp motion.analog-in-00 works, but it a bit clunky.
> 
> A related query is whether a GladeVCP number box can be linked direct
> to a parameter. I suspect that it might be possible through the
> attached-script feature.
> 
> My current lathe macros use a HAL link between the PyVCP spinboxes and
> analog-in-NN pins, but it is a bit clunky as a way to get values into
> G-code, and the number of pins is limited to 16 by EMCMOT_MAX_AIO (is
> there a compelling reason for this?)
> 
> -- 
> atp
> "Torque wrenches are for the obedience of fools and the guidance of wise men"
> 
> ------------------------------------------------------------------------------
> uberSVN's rich system and user administration capabilities and model 
> configuration take the hassle out of deploying and managing Subversion and 
> the tools developers use with it. Learn more about uberSVN and get a free 
> download at:  http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers


------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to