I summarised the retrofit of my MAHO MH400E in video here:
https://www.youtube.com/watch?v=LXwbRhgq1og

The Github wiki describes the gearbox control module a friend programmed for me:
https://github.com/jin-eld/mh400e-linuxcnc/wiki
Mark