MONSTER - A learning experience... pyVCP machine

More
11 years 4 weeks ago - 11 years 4 weeks ago #63428 by cncbasher
here you go :

loardrt or2 count=1

net probe1 parport.0.pin-10-in or2.0.ino
net probe2 parport.0.pin-11-in or2.0.in1

net probe-in motion,probe-input or2.0.out
Last edit: 11 years 4 weeks ago by cncbasher.

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

More
11 years 4 weeks ago - 11 years 4 weeks ago #63431 by eFalegname
I lost something, could you please explain me what is the difference between this post:

loadrt or2 count=1
addf or2.0 servo-thread

net probe1 or2.0.in0 parport.0.pin-11-in
net probe2 or2.0.in1 parport.0.pin-12-in-not
net probe motion.probe-input or2.0.out

and this one:

loardrt or2 count=1

net probe1 parport.0.pin-11-in or2.0.in0
net probe2 parport.0.pin-12-in or2.0.in1
net probe-in motion.probe-input or2.0.out

in this case we must also consider that the first probe (pin 11) is normally closed and the second one (port 12) is normally open
Last edit: 11 years 4 weeks ago by eFalegname.

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

More
11 years 3 weeks ago - 11 years 3 weeks ago #63437 by cncbasher
then by all means add the -not and change pin numbers accordingly , to suit your requirement

the or2 function does work as you described

it was a suggestion that you may consider adding an appropriate pin to either select the input or
have a situation where you know the correct probe is selected , but as i do not know the probes in question , i left a generic answer
Last edit: 11 years 3 weeks ago by cncbasher.

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

More
11 years 3 weeks ago #63518 by eFalegname
Cncbasher Hi, thanks for your advice, I did not answer you before because I was trying to understand how mux_generic works, I ask you again please to clarify me another doubt. Will be possible by implementing a function mux generic put a couple of pyvcp radio buttons to choose the probe I want to use and change the status of parport pin from "IN" to "IN-NOT" and so in order to use the two probes with the same pin.
I have a "NO" fixed probe on the Router table to measure the length of the tool and a second one "NC" like a Renishaw probe that I mount on the spindle and I wish to connect both to the same parport pin. Is that possible?

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

More
11 years 3 weeks ago #63526 by Askjerry
I just made a switch so that I could select between normally open and normally closed.
It works well... here is the video that i did...



Jerry

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

More
11 years 3 weeks ago #63528 by eFalegname
Thank you Jerry, I saw your video. I have this signal inverter NPN PNP , but my question is: Is there a way to change the parport pin signal from IN to IN-NOT with a HAL component? I want to check a pyvcp radio button to switch between the "NO" and "NC" probes using the same parport pin swaping the IN entries

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

Time to create page: 0.251 seconds
Powered by Kunena Forum