Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 27, 2012, 10:26:00 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
General Mach Discussion
homing and limit switches
Pages:
1
2
3
»
Go Down
« previous
next »
Author
Topic: homing and limit switches (Read 1105 times)
0 Members and 1 Guest are viewing this topic.
teebutch
Active Member
Offline
Posts: 5
homing and limit switches
«
on:
December 01, 2010, 01:18:57 PM »
I am trying to get my machine to be able to set the Machine Coordinates but I watched the videos and when I set the limit switches to active high and then go to diagnostics the yellow lights come on for them. The yellow lights will go out if I set the limit switches to active low only. Also my machine is a three axis and when I try to do a "reference all" and I hit the escape key the whole process stops it does not switch over to the x or y axis. the first one to move is my z axis. Any suggestions on these problems. I also notice that I do not have a limit switch on the z azis for it to hit when I go to zero for the reference only a switch at the bottom.
we will just start from here. When i bring my z axis to the top how can I make a change to zero it at that point so I can then let the machine zero the x and y azis
thanks
butch
«
Last Edit: December 01, 2010, 01:31:01 PM by teebutch
»
Logged
Sargon
Active Member
Offline
Posts: 99
Re: homing and limit switches
«
Reply #1 on:
December 01, 2010, 06:30:00 PM »
First things first. You will set the limit switches to active high or active low based on how it is connected to the circuit board in your machine controller and will differ from one machine to the next. For example, one of my 3-axis machines uses one active high and two active low switches. Basically, you will use whichever one works for each axis. In your case you will choose active low, meaning that the switch is providing a ground signal to the PC with the switch has been activated, and the rest of the time it is at +5V.
Now, to your homing problem. The "REF ALL HOME" button is a VB-Script. Here is how to modify it to do your dirty work!
Go to "Operator" > "Edit Button Script"
All of the button with VB-Script attached to it will begin to flash. Click the "REF ALL HOME" button to edit it.
Now that you're in the editor you should see something like this without the comments:
DoButton( 23 ) ' Ref (home) Y Axis
DoButton( 22 ) ' Ref X Axis
DoButton( 24 ) ' Ref Z Axis
DoOEMButton(133) ' Zero X Encoder
DoOEMButton(134) ' Zero X Encoder
DoOEMButton(135) ' Zero X Encoder
Simply change this to read:
DoButton( 23 ) ' Ref (home) Y Axis
DoButton( 22 ) ' Ref X Axis
DoOEMButton(133) ' Zero X Encoder
DoOEMButton(134) ' Zero X Encoder
DoOEMButton(135) ' Zero X Encoder
It will now home Y, then X, then zero X, Y and Z.
Also to note, this script is slightly dated as DoButton() is a deprecated function. To bring it up to date with the times use this script:
DoOEMButton( 1023 ) ' Ref (home) Y Axis
DoOEMButton( 1022 ) ' Ref X Axis
DoOEMButton(133) ' Zero X Encoder
DoOEMButton(134) ' Zero X Encoder
DoOEMButton(135) ' Zero X Encoder
Logged
Vogavt
Active Member
Offline
Posts: 92
Re: homing and limit switches
«
Reply #2 on:
January 17, 2011, 01:46:18 PM »
Quote
DoOEMButton(133) ' Zero X Encoder
DoOEMButton(134) ' Zero X Encoder
DoOEMButton(135) ' Zero X Encoder
I may be stating the obvious, but shouldn't it be:
DoOEMButton(133) ' Zero X Encoder
DoOEMButton(134) ' Zero
Y
Encoder
DoOEMButton(135) ' Zero
Z
Encoder
I was searching for a way to AutoZero my A-axis after the other three are finished. I don't want the rotary table to actually move, I just want it to zero after I manually hit a switch since I don't use it all the time.
BTW, do you happen to know what the DoOEMButton() is for the A-axis?
Logged
Hood
Active Member
Offline
Posts: 17,362
Carnoustie, Scotland
Re: homing and limit switches
«
Reply #3 on:
January 17, 2011, 02:22:26 PM »
What OEM are you wanting? ie A Axis what?
Hood
Logged
Vogavt
Active Member
Offline
Posts: 92
Re: homing and limit switches
«
Reply #4 on:
January 17, 2011, 03:50:10 PM »
Yes, A-axis. I believe I found it on the wiki as DoOEMButton (1025).
Logged
Vogavt
Active Member
Offline
Posts: 92
Re: homing and limit switches
«
Reply #5 on:
January 17, 2011, 07:47:06 PM »
Nope. Wasn't 1025.
I've got it hooked up and it rotates until it finds the new magnetic NC switch. Once it finds it, the table reverses until the switch goes closed again, but it won't zero the dro like the other 3 axis do.
Here's what I've got but it doesn't work. Any ideas?
DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )
DoOEMButton(133)
DoOEMButton(134)
DoOEMButton(135)
DoOEMButton(1025)
I also tried (1011), but it didn't work either.
Logged
Hood
Active Member
Offline
Posts: 17,362
Carnoustie, Scotland
Re: homing and limit switches
«
Reply #6 on:
January 17, 2011, 08:06:15 PM »
What DRO are you wanting to zero? OEM 133 to 135 are the encoder DROs and as far as I am aware there is no DRO for A encoder as you only have 3 encoder inputs.
DoButton(25) and DoOemButton(1025) are the same thing, ie reference A Axis.
If you want to zero the A Axis after the homing then DoOEMButton(1011) should work fine.
If you attach your xml I will see if I can find the problem.
Hood
Logged
ger21
Global Moderator
Offline
Posts: 2,618
Re: homing and limit switches
«
Reply #7 on:
January 17, 2011, 08:11:54 PM »
Is it OEMDRO 173?
If so, how about SetOEMDRO(173,0)
Logged
Gerry
2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html
Overloaded
Global Moderator
Offline
Posts: 3,072
Re: homing and limit switches
«
Reply #8 on:
January 17, 2011, 08:15:19 PM »
Quote from: Vogavt on January 17, 2011, 01:46:18 PM
I was searching for a way to AutoZero my A-axis after the other three are finished. I don't want the rotary table to actually move, I just want it to zero after I manually hit a switch since I don't use it all the time.
BTW, do you happen to know what the DoOEMButton() is for the A-axis?
I might be missing something here, but couldn't you just un-check the A axis in HOMINGand select AUTO ZERO ?
Logged
"I haven't failed. I've just found 10,000 ways that won't work." Edison
"You cannot help men permanently by doing for them what they could and should do for themselves."
Abe Lincoln
Overloaded
Global Moderator
Offline
Posts: 3,072
Re: homing and limit switches
«
Reply #9 on:
January 17, 2011, 08:18:00 PM »
A machine coord DRO is 86 by Hoods XLS
Logged
"I haven't failed. I've just found 10,000 ways that won't work." Edison
"You cannot help men permanently by doing for them what they could and should do for themselves."
Abe Lincoln
Pages:
1
2
3
»
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...