acessing to a system variable by a custom componet

More
20 May 2014 03:25 - 20 May 2014 03:30 #47063 by jtc
Hi!

I'ts possible to access to a system variable by a component? how?

the goal is read the Z position after touch off (I assume that this exists on a system variable)

this part of the component will be very simple, something like:
if(z==0)
	out = true;
else
	out= false;


Thanks,

João
Last edit: 20 May 2014 03:30 by jtc.

Please Log in or Create an account to join the conversation.

More
20 May 2014 06:10 #47067 by andypugh

I'ts possible to access to a system variable by a component? how?


In a component written in C using "comp"?

Which "Z" do you want? If the value you want exists on a HAL pin then adding an input HAL pin is easiest.

Please Log in or Create an account to join the conversation.

More
20 May 2014 15:37 #47082 by ArcEye
Hi

halui.axis.2.pos-commanded (G53)
halui.axis.2.pos-relative (G54-5-6-7-8-9)

www.linuxcnc.org/docs/devel/html/gui/halui.html

to get the info from a hal pin-


#5223 for Z in G54
linuxcnc.org/docs/html/gcode/overview.html#sec:parameters

to get the info in gcode

regards

Please Log in or Create an account to join the conversation.

More
20 May 2014 16:05 #47084 by jtc
yes is a written C comp.


Thanks. with this info I think that will work.

João

Please Log in or Create an account to join the conversation.

Time to create page: 0.120 seconds
Powered by Kunena Forum