Dual probes using NC and NO inputs

More
16 Dec 2014 07:57 #54047 by Delron
Hello,

Can anyone help me with configuring HAL to accept probing using two inputs?

I'm wanting to use a NC Z-setting tool, and a NO edge finder tool.
I'm thinking I need to "OR" two signals to make this work.

parport.0.pin-11-in would be my normally open input.
parport.0.pin-?? would be my normally closed input.

Any help is much appreciated!

My Hal currently is;

#*******************
# PROBE
#*******************
net debounce-probe-in debounce.0.1.in <= parport.0.pin-11-in
net probe-in debounce.0.1.out => motion.probe-input
net probe-in => motion.probe-input
net dout-02 <= motion.digital-out-02

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

More
16 Dec 2014 19:54 #54059 by BigJohnT
The probe input needs to be a N/O input. So in pseudo code it would go like this.
motion probe input < or 0 out
or 0 in 0 < paraport 11
or 0 in 1< not out
not in < paraport ?

The syntax for or and not are here linuxcnc.org/docs/html/ scroll down a bit to see them.

JT

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

More
17 Dec 2014 00:34 #54069 by Delron
Hi JT,

You say "The probe input needs to be a N/O input. So in pseudo code it would go like this."

Are you saying I cannot in anyway use a combination of N/C and N/O inputs?

My z-probe is a Marposs tool setter. It is N/C. For edge probing, I want to use my mill bit and a conductive plate pressed to the edge of work piece. N/O.

Thanks.

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

More
17 Dec 2014 00:44 - 17 Dec 2014 00:51 #54070 by ArcEye
I think JT is just pointing to the use of an or component
with inputs from NO and not NC, so which ever triggers
it will register
						<****************  NO contact
    Probe  input  <******* OR
						<***************  ! NC contact

regards

PS
And as you probably saw I had huge difficulty getting the above to display properly :angry:
Last edit: 17 Dec 2014 00:51 by ArcEye.

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

More
17 Dec 2014 00:51 #54071 by Delron
Thanks all,

I will endeavour to figure it out. My HAL skills are lacking as I only work on the mill and linuxCNC part time.

Cheers!

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

Time to create page: 0.816 seconds
Powered by Kunena Forum