On 11/03/2013 08:04 AM, Walter Cigana wrote:
> So, I have played with the xemc.cc code to uncover some C++ interfaces and
> I have also played with using linuxcncrsh to control remotely, which is
> obviously simpler.
>
> In my situation, I also need to monitor an analog input which will return a
> voltage.
>
> I have an example of doing something similar in Axis, with signals defined
> in the HAL file and the appropriate overlay file definition.
>
> Is there a way of accessing this same type of data through linuxcncrsh, or
> will I need to code this specific access myself?

If you're on the master branch (not 2.5) you can do this.

In you .ini file, add this:
[RS274NGC]
FEATURES=8

Then in linuxcncrsh you can read HAL pins & signals like this:

set mdi (debug, #<_hal[axis.1.f-error-lim]>)
get operator_display
OPERATOR_DISPLAY  0.010000

Partial docs for this feature are here:

http://www.linuxcnc.org/docs/devel/html/remap/structure.html#_named_parameters_and_hal_items_a_id_remap_referto_hal_items_a
 



-- 
Sebastian Kuzminsky

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to