Mach3 Ref All Home Script !!link!! Jun 2026
, simply rearrange the DoOEMButton() lines and their corresponding While IsMoving() loops.
' --- Home Y Axis --- Message "Homing Y Axis..." DoOEMButton(1035) ' Ref Y While IsMoving() Sleep 100 Wend
' --- Step 1: Safety Check - Are any limits already triggered? --- If GetOEMLED(825) = True Then ' X Home LED Message "Error: X limit already triggered. Check wiring." Exit Sub End If If GetOEMLED(826) = True Then ' Y Home LED Message "Error: Y limit already triggered." Exit Sub End If If GetOEMLED(827) = True Then ' Z Home LED Message "Error: Z limit already triggered." Exit Sub End If mach3 ref all home script
Note: Using While IsMoving() / Wend is critical to ensure one movement finishes before the next command starts. 3. Slaved Axis Squaring
To run the Ref All Home script:
Many users want the homing sequence to have two speeds: fast to the switch, then slow to find the exact trigger point. Mach3 handles this in the configuration, not the script.
: RefCombination( 3 ) (Homes X and Y simultaneously; 1=X, 2=Y, 4=Z, 8=A. Sum the values to combine). 3. Adding Safety Pauses , simply rearrange the DoOEMButton() lines and their
Have a specific homing scenario (e.g., dual Z heads, rotary axis)? Leave the details in a comment or consult the Mach3 customization manual for more advanced VB scripting commands like ActivateSignal() and SetVar() .
The "Ref All Home" script in Mach3 is a VB (Visual Basic) macro that automates the process of synchronizing the machine’s physical position with its internal coordinate system. By triggering the homing cycle, the machine moves each axis until it contacts a home switch, ensuring a consistent starting point for every job Artsoft- Mach Core Functionality The default homing script typically executes a series of DoOEMButton Check wiring
