Dual probes using NC and NO inputs
16 Dec 2014 07:57 #54047
by Delron
Dual probes using NC and NO inputs was created 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
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.
16 Dec 2014 19:54 #54059
by BigJohnT
Replied by BigJohnT on topic Dual probes using NC and NO inputs
The probe input needs to be a N/O input. So in pseudo code it would go like this.
The syntax for or and not are here linuxcnc.org/docs/html/ scroll down a bit to see them.
JT
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.
17 Dec 2014 00:34 #54069
by Delron
Replied by Delron on topic Dual probes using NC and NO inputs
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.
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.
17 Dec 2014 00:44 - 17 Dec 2014 00:51 #54070
by ArcEye
Replied by ArcEye on topic Dual probes using NC and NO inputs
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
regards
PS
And as you probably saw I had huge difficulty getting the above to display properly
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
Last edit: 17 Dec 2014 00:51 by ArcEye.
Please Log in or Create an account to join the conversation.
17 Dec 2014 00:51 #54071
by Delron
Replied by Delron on topic Dual probes using NC and NO inputs
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!
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