Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: BriBis on November 04, 2009, 01:29:01 PM

Title: Use joystickbutton to run button-script
Post by: BriBis on November 04, 2009, 01:29:01 PM
Hi all,

How can I (if possible) run a button-script (Z-probe) when pressing the button on my joystick?
Using the joystickbuttons to run basic commands (like "Cycle start") is no problem, but it doesn't seem to work with own written scripts..

Hope you guys can help me.

-- Edwin
Title: Re: Use joystickbutton to run button-script
Post by: haigo on February 01, 2010, 03:29:21 PM
hello everybody,
i have atc in my milling machine.. controlled by plc... the plc changes the tools this way ..
if apply 12 to input 1  (i1.0) changes the tool to no 1.. if apply 12v to input 2 (i0.1) changes the tool to number 2... etc..
so i want to write a vb macro in mach 3 so that if the program asks to change to tool number 1.. the s.s. activates output pin for ex port1 pin 10 ...
 if the program asks to change to tool number 2.. the s.s. activates output pin for ex port1 pin 11.. ..
and after the plc changes the tool .. gives back a signal to the s.s. that tool changed... continue working...

how can i do that ?????
and how can i control the plc 12 v... by the s.s. 5 v?????????
please help mee..
best regards,
haig,
haig.artin@yahoo.com