1
VB and the development of wizards / Fire macro when input is triggered.
« on: April 11, 2008, 10:29:07 AM »
I'm trying to figure out how to run a macro when a momentary switch is pressed. So far I’ve got that input setup in my ports and pins as an OEMInput. How do I configure a macro to run when this input goes high? Also can anyone give me some tips on writing the macro? (I’m a programmer so the VB is no problem). I want the macro to do the following:
If machine Is Not running
1.) Clear the ESTOP if there is one
2.) Home the X & Y Axis
3.) Load a GCode file even if one is already loaded.
4.) Execute the GCode file.
5.) Cut the grass and paint the house
Else
‘Do nothing because we are already running.
End if
If machine Is Not running
1.) Clear the ESTOP if there is one
2.) Home the X & Y Axis
3.) Load a GCode file even if one is already loaded.
4.) Execute the GCode file.
5.) Cut the grass and paint the house
Else
‘Do nothing because we are already running.
End if