piasdom wrote:in the ini you typed MDI_COMMAND = G0 x0 y0 z0.
so i would write HOME_ALL = g0 X? Y? X? in my ini?
halui has many, many pins. (it is also optional, which is why you need to ensure it loads with the HALUI=halui INI file parameter)
JT has posted a link to the listing.
You can, however, add even more:
For every MDI_COMMAND {Some G-Code} line you add to your INI file, an extra pin is created called halui.mdi-command-NN where NN starts at 00 and increments for every MDI_COMMAND line.
Any time that you set the halui.mdi-command-NN pin to high (from low) the bit of G-code in the MDI_COMMAND line is run (note, this only happens in manual mode, not when running a progam)
You can set the pin high from the command line (and that can be useful) but generally you do it by linking it, in the HAL file, to a pin which is in turn linked to a PYVCP GUI button.
However, MDI_COMMANDs can only be G-code (subroutine calls (O<mysub> CALL ) are valid, incidentally). If you want a non-G-code result, like home-all then there are other halui pins that you can link to the PYVCP button, like halui.home-all.
Yes, it _is_ complicated.