Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 10:04:57 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  External homing button
Pages: 1   Go Down
Print
Author Topic: External homing button  (Read 236 times)
0 Members and 1 Guest are viewing this topic.
corydoras
Active Member

Offline Offline

Posts: 110



View Profile
« on: November 05, 2011, 01: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
Logged
corydoras
Active Member

Offline Offline

Posts: 110



View Profile
« Reply #1 on: November 05, 2011, 01:36:44 PM »

Or any other easier way to do a ref all home on a input pin?Huh?

I have not been doing much cnc or mach stuff in a year or so
Logged
ostie01
Active Member

Offline Offline

Posts: 563


View Profile
« Reply #2 on: November 05, 2011, 03: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
Logged
corydoras
Active Member

Offline Offline

Posts: 110



View Profile
« Reply #3 on: November 05, 2011, 04: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
Logged
Hood
Active Member

Online Online

Posts: 17,368


Carnoustie, Scotland


View Profile
« Reply #4 on: November 05, 2011, 05: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
Logged
corydoras
Active Member

Offline Offline

Posts: 110



View Profile
« Reply #5 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
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!