Mach4 Basics: Homing and Soft Limits @MachSupportOfficial
Mach4 Basics: Homing and Soft Limits  @MachSupportOfficial
Uploaded March 2018 | Updated September 2026, 3 hours ago
Watch for a breakdown of machine coordinates, work coordinates, homing, zeroing, and setting your soft limits in Mach4.


New script to turn on soft limits after homing:

---------------------------------------------------------------
-- Ref All Home() function.
---------------------------------------------------------------
function RefAllHome()
mc.mcAxisDerefAll(inst) --Just to turn off all ref leds
mc.mcAxisHomeAll(inst)
coroutine.yield() --yield coroutine so we can do the following after motion stops
----See ref all home button and plc script for coroutine.create and coroutine.resume
wx.wxMessageBox('Referencing is complete.\nSoft Limits Set.')
SetSoftlimits()
end

-------------------------------------------------------
-- Set Soft Limits
-------------------------------------------------------
function SetSoftlimits()
for v = 0, 5, 1 do --start, end, increment
mc.mcSoftLimitSetState(inst, v, mc.MC_ON)

end
scr.SetProperty("tbtnSoftLimits", "Button State", tostring(1))
scr.SetProperty("tbSoftLimits", "Button State", tostring(1))

end
Mach4 Basics: Homing and Soft LimitsMach4: Surface Map WizardWindows BasicsBasic Screen editing in Mach4Licensing Mach3LATHE TOOL OFFSETS Mach4 latheGO TO WORK ZERO1 Mach4Zero Brane Editor IntroMach4: A Unified InterfaceMach4 Basics:  Safely Run A G Code FileMaking a run of bit holders.Mach 4 GUIR
Mach Support |

Mach4 Basics: Homing and Soft Limits

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER