Machsupport Forum
Third party software and hardware support forums. => HiCON Motion Controller => Topic started by: stoneman1 on July 10, 2018, 01:15:14 PM
-
I am having issues with getting the machine to home correctly. First i have updated the board to the latest update and all the limit switches work. when i try to home all it goes through the process but its z+ and stops but dont back off of the switch. i then it stop and it goes to the x hits its limits and says x++ limit is hit. I hit stop again and it goes to the y axis and hits its limit and stops says y limit ++ tripped. then a small window say all axis referenced but it wont zero out. I know i have all the home inputs set to the correct inputs. Any help is very much appreciated.
Thanks,
Mike
-
Mike,
What are your Homing/SoftLimits set in Mach4 Configuration?
I have included mine below in the attachment.
Yours will be different.
You need to have the correct Home Dir and also include the Soft Enable Soft Min Soft Max.
Regards,
Mauri.
Also another way is to install this code in Mach4 Screen "Start Script."
---------------------------------------------------------------
-- 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')
end
---------------------------------------------------------------
-- Ref All Home With Offset() function.
---------------------------------------------------------------
function RefAllHomeWithOffset()
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
mc.mcCntlGcodeExecute(inst, "G1 X0.1 Y0.1 Z0.1 F30")
wx.wxMessageBox('Referencing and Offset Completed')
end