Consider a large CNC router with a dual-drive gantry. If you simply press the default "Ref All Home," both Y motors might not synchronize correctly, or the gantry could rack (twist) against the switches. A custom script allows you to:
| | OEM Code | | :--- | :--- | | Ref Z | 1033 | | Ref X | 1034 | | Ref Y | 1035 | | Ref A | 1036 | | Ref B | 1037 | | Ref C | 1038 | | Stop | 1000 | | Disable Limits (toggle) | 1021 | mach3 ref all home script
' --- Safety Check: Ensure machine is not running --- If IsMoving() Then Message "Cannot home while machine is moving. Stop first." Exit Sub End If Consider a large CNC router with a dual-drive gantry
To run the Ref All Home script: