Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: corydoras on November 05, 2011, 02:19:32 PM

Title: External homing button
Post by: corydoras on November 05, 2011, 02:19:32 PM
Hi
I used to have a external button to trig "ref all home", but it seem to have been messed up.

Anyone care to look at this script to see if it looks sensible?

If IsActive (input4) Then
DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )

 End If 

   
This is written under "ref all home" button on page one.
Input4 is configuret under ports and pins with the correct input number.

Best reg
Cory
Title: Re: External homing button
Post by: corydoras on November 05, 2011, 02:36:44 PM
Or any other easier way to do a ref all home on a input pin?????

I have not been doing much cnc or mach stuff in a year or so
Title: Re: External homing button
Post by: ostie01 on November 05, 2011, 04:28:54 PM
If you have access to your keyboard near the machine, you can just press the HOME key.



Don't know if this is what you want but work for me.


Jeff
Title: Re: External homing button
Post by: corydoras on November 05, 2011, 05:27:31 PM
Hi

i have wired a switch on my control panel for the machine where I have my start,stop and pause cycle.

But Ill use this if i am near the keyboard

C
Title: Re: External homing button
Post by: Hood on November 05, 2011, 06:56:05 PM
You would need that script in the macropump.
I use Scott Schaefers Mach Mad plugin for things like that as well rather than using the macropump.
Hood
Title: Re: External homing button
Post by: corydoras on November 06, 2011, 09:57:10 AM
Thanx Hood
I have send money for the Mach Mad  plugin, but havent recieved an installer yet, but solved this problem, by thinking over your answer....I had forgotten to kall the script "macropump"

You would need that script in the macropump.
I use Scott Schaefers Mach Mad plugin for things like that as well rather than using the macropump.

But It will be interesing to see what the plugin can do.
I am thinking of getting one of these Pokeys usb 55 cards for more external I/O´s.

C
Hood