Hello
Guest
it is
April 16, 2024, 04:18:15 AM
Guest
Login
Register
Menu
Home
Help
Search
Calendar
Members
Members
View the memberlist
Search For Members
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
General Mach Discussion
/
Axis Home question
« previous
next »
Print
Pages:
1
2
3
»
Go Down
Author
Topic: Axis Home question (Read 9862 times)
0 Members and 1 Guest are viewing this topic.
Saumur
79
Axis Home question
«
on:
April 24, 2009, 09:42:10 AM »
Guys, I wanted to know if there is an option that doesn't allow you to start an automatic cycle if the light box of the home axis didn't turn green.
As you know the home axis light is red untill you do the home and then turn green.
In other words I'd like to know if yo can choose to block the automatic movement in case the lights( both of them) didn't turn green.
Thanks
Logged
Hood
25,835
Carnoustie, Scotland
Re: Axis Home question
«
Reply #1 on:
April 24, 2009, 09:57:40 AM »
You could probably replace the Start button with a VB one and have something like this in the button.
If GetOemLED(807) Or GetOemLED(808) Or GetOemLED(809) Then
DoOemButton(1003)
Sleep (100)
MsgBox("Axis not referenced")
Else
DoOemButton(1000)
End If
Logged
Saumur
79
Re: Axis Home question
«
Reply #2 on:
April 24, 2009, 11:15:19 AM »
Thanks for your fast answer,
from what I understand you can create a VB button and then set it so it sayr error if the lights are not green.
If that is right can you tell me how can I do that?
Thanks again
Logged
ger21
6,295
Re: Axis Home question
«
Reply #3 on:
April 24, 2009, 11:25:37 AM »
Open the screen in Screen4, right click on the button, and set it to VB script. In Mach3, under Operator menu, choose select button script. Click the button, and the script editor will open, allowing you to add the script to the button.
Logged
Gerry
2010 Screenset
http://www.thecncwoodworker.com/2010.html
JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Saumur
79
Re: Axis Home question
«
Reply #4 on:
April 24, 2009, 12:01:11 PM »
Thanks for your reply.
One last thing: To open the screen with screen4 do I need a program? if yes where can I download it?
Sorry but I'm a nub on this.
Thanks and regards
Logged
SteinarN
155
Re: Axis Home question
«
Reply #5 on:
April 24, 2009, 12:15:03 PM »
You find screen4 in the download section here.
Logged
Saumur
79
Re: Axis Home question
«
Reply #6 on:
April 24, 2009, 12:42:43 PM »
Guys with your help I could do that,
the only problem is that if I put what Hood said it says "terminating script" when I press on Cycle start.
It says the same thingh even if the home lights are green.
Can some1 confirm me if what Hood said to put is right?
Thanks again
Logged
Hood
25,835
Carnoustie, Scotland
Re: Axis Home question
«
Reply #7 on:
April 24, 2009, 01:31:52 PM »
Not tried it myself but I will go and do it.
Hood
Logged
Hood
25,835
Carnoustie, Scotland
Re: Axis Home question
«
Reply #8 on:
April 24, 2009, 01:36:42 PM »
Just tried it and seems to work fine.
Did you copy and paste the code into the button?
Have you checked to make sure it has saved in the button as sometimes the VB buttons dont save.
Does it work from the Edit VB Button window if you press the green arrow?
Hood
Logged
Saumur
79
Re: Axis Home question
«
Reply #9 on:
April 28, 2009, 10:37:15 AM »
Thanks for your help Hood,
Anyway if I try using it with the play arrow in the VB edit the message "Axis not referenced" pops out.
Have you any idea what I'm doing wrong?
Anyway in the input option I didn't put the green arrow on the homes since I'm testing this on a laptop.
That could be the problem? If yes what I have to put to test it?
Thanks for your help
Logged
Print
Pages:
1
2
3
»
Go Up
« previous
next »