Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: elgundis on December 27, 2010, 04:54:06 AM
-
Hello,
i wonder if it is possible with VB to change the active high/low of an input or output pin with vb?
I do not to want to create a signal, i want to change if a switch is read as high or low.
Thank you
Joachim
-
Hi
Joachim did you come right with a vbscript to change a pin from active hi to active low? I am trying to do the same but can not find any information on how to do this or macro function to do this.
There are many topics with ActivateSignal and DeActivateSignal but it is not changing the setting.
I want to use this macros to change to Active Hi when using a probe and to change back to Active Low when using the same circuit for a zeroi-ing touch plate.
Any help will be appreciated if anybody out there knows a way to do this.
Thanks
Piet
-
Hi Piet,
i did not find a way to do this until today.
Sorry
Joachim
-
an alternative is to use homing for your touch plate. There are a couple of ways you could do this depending on whether you already home Z up or not.
Ian
-
Thanks Ian, but the problem is not homing, that is done, I want to use the same circuit for homing and a probe, where homing closes the circuit and probing opens the circuit. So what I want to do is set the probe input to active low for the homing macro and when probing set it active high with a macro. At the moment I do it manually but it would be nice if it was possible to do via macros.
Piet
-
Hi Piet - I think you may misunderstand me. You can use homing for your touch plate on one input and probing on another input. That way you can set one active low and the other active high then there's no need to switch the active state.
Ian
-
Aah, thanks Ian. I will try that and see if it works.
Piet