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 28, 2012, 12:59:13 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
2 stage homing script
Pages:
1
Go Down
« previous
next »
Author
Topic: 2 stage homing script (Read 228 times)
0 Members and 1 Guest are viewing this topic.
Darc
Active Member
Offline
Posts: 177
2 stage homing script
«
on:
August 15, 2011, 03:27:16 AM »
Currently I use pretty much the standard homing routing, is it possible to home at rapid for the first cycle, then home at the normal slow speed, just to make it a lot quicker?
These are the buttons that currently run the slow homing cycle.
DoButton( 24 )'Z
DoButton( 23 )'Y
DoButton( 22 )'X
Logged
Greolt
Global Moderator
Offline
Posts: 872
Re: 2 stage homing script
«
Reply #1 on:
August 15, 2011, 04:01:55 AM »
Try this,
SetParam ("YRefPer",100)
DoOEMButton (1023) 'home at 100%
While IsMoving()
Wend
Code "G53 Y5" 'move off switch 5mm
While IsMoving()
Wend
SetParam ("YRefPer",5)
Sleep 200
DoOEMButton (1023) 'home at 5%
While IsMoving()
Wend
SetParam ("YRefPer",100)
This is for the Y axis, you will need to write similar for other axis.
Greg
«
Last Edit: August 15, 2011, 04:05:01 AM by Greolt
»
Logged
Darc
Active Member
Offline
Posts: 177
Re: 2 stage homing script
«
Reply #2 on:
August 15, 2011, 04:44:15 AM »
Thanks Greg, I'll give it a go.
I just remembered something else, is it possible to home X&Y at the same time?
«
Last Edit: August 15, 2011, 04:47:35 AM by Darc
»
Logged
Greolt
Global Moderator
Offline
Posts: 872
Re: 2 stage homing script
«
Reply #3 on:
August 15, 2011, 05:13:01 AM »
RefCombination command will do that.
Right now I can not get the Mach3 Wiki page to load for some reason. That has info on using this command.
Greg
PS: The following is from the Mach3 Macro Reference Manual PDF
RefCombination
Sub RefCombination(Axes As Integer)
This function allows any combination of axes to be simultaneously referenced (homed).
Which axes will be referenced is determined by the Axes argument, which is a bit-
mapped variable, with the bits mapped as defined below.
Arguments:
Axes is a bit-mapped value the defines which axes are to be referenced. The
value of Axes can be calculated by adding the values corresponding to the
individual axes to be referenced. The axis values are:
X = 1
Y = 2
Z = 4
A = 8
B = 16
C = 32
So, for example, to reference the X, Z and B axes, Axes = 1 + 4 + 16 = 21.
Return Value:
None
Example:
‘ Define some constants
RefX = 1
RefY = 2
RefZ = 4
RefZ = 8
RefB = 16
RefC = 32
‘ Reference Y, Z and C axes
RefCombination(RefY + RefZ + RefC)
«
Last Edit: August 15, 2011, 05:17:05 AM by Greolt
»
Logged
Darc
Active Member
Offline
Posts: 177
Re: 2 stage homing script
«
Reply #4 on:
August 15, 2011, 05:24:34 AM »
Yet again, Thanks Greg
Logged
Pages:
1
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...