If i click M-Home, the MPG does not invoke my normal "Ref all Home" function. My CNC uses two axis (X with A slaved) for moving the gantry, one in each side, and each of these has its own homeswitch, to square up gantry. Now hitting the M-Home button on the MPG only moves the A axis, causing the gantry to warp as its only beeing moved in one side. Also the Y and Z axis does not back off from the home switches as expected.
I can't find anywhere I change this behaviour. In Mach 3, htere were macros behind theese functions that i could have edited to make it work, but as I see it, this is now hardcoded in the plugin.
This works fine for me. Open the diagnostic log and press the M-Home button. You will see it calls mcAxisHomeAll() from the mcXhcMpg plugin.
2021-05-05 13:25:04.765 [I ] - Logging Enabled.
2021-05-05 13:25:11.631 [I ] - API: mcAxisHomeAll(inst = 0) (XhcMpg) <-------------------------- This line.
2021-05-05 13:25:11.631 [I ] - Attempt transition from "Idle" on event "Home" command.cpp:1248
2021-05-05 13:25:11.631 [I ] - S_IDLE_on_exit
2021-05-05 13:25:11.631 [I ] - Signal id 1172, (Machine Idle), changed from HIGH to LOW.
2021-05-05 13:25:11.632 [I ] - ACION_start_homing
2021-05-05 13:25:11.632 [I ] - S_HOMING_on_entry
2021-05-05 13:25:11.634 [H ] - Signal id 1131, (Z Homed), changed from HIGH to LOW.
...
I don't believe any of your homing issues are a problem with the mcXhcMpg plugin.
If your axes don't home correctly, you have to setup the home order in the Homing/Softlimits tab of the configuration dialog. Homing is a function that is dedicated to the motion controller. So check the ESS config for how the machine is homed (backing off switch, etc..). None of this is a problem with the mcXhcMpg plugin.
I would have loved if ALL buttons were linked to input signals, and mapped to a lua Function in the screenLoad script, making it possible to customize the behaviour to ones needs.
Currently its only the 10 macro buttons that have this option.
For me, the lack of ability to customize the M-home & Probe-Z to execute Lua scripts is a dealbreaker in using this MPG
.
The ideology behind the plugin is to be simple. The canned functions should be just that, canned. Maybe a couple of lines of setup. But the functions themselves should be canned and consistent across all setups. The Macro buttons are for custom things. If everything were input driven, we would spend copious amounts of time with support on a plugin that the people who make the hardware (XHC) refused to write.
I'm really upset that they do not support their hardware! In fact, I thought about charging for the mcXhcMpg plugin because it is time I will never get back or be paid for my time.
Probe Z isn't configured yet. I simply forgot to connect all of the dots and that function got left out. The intention is to have a setup line like W-Home and Safe Z. But that will about the extent of any customization for the canned functions. The plugin itself is not LUA enabled therefore it will never run LUA scripts directly.
The next dev build will have the Probe Z stuff connected. I just missed that one completely!
Steve