When Linux triggers the "machine enabled" to "not enabled" maho wired everything from start, that it triggers the e-stopchain and depowers all drives, pumps etc.
So it´s ok, but not the solution LinuxCNC intented to. Maybe i´ll change this later.
I´ve got that far that i wired all glasscales today and got them working. If anyone is interested, I´ve talked to Haidenhein again because we couldn´t find a way to use the "index/home" signal from the scales,. After wiring everything up i had 3 cables left.
UaS, Ua0 and /Ua0.
I tought that Ua0 and /Ua0 are the index signal, but it never triggered in Hal view.
I´ve turned the Y axis (z axis on old maho) per hand very very slow. It took 5 Minutes for like 5mm.
No Signal.
Then i´ve phoned Heidenhain and they confirmed Ua0 and /Ua0 as Index line.
So as i knew the location where the index should be (+-10mm) we hooked an oscilloscope from ebay to Ua0 and /Ua0. The Heidenhain guy said that the trigger should produce a spike somewhere between 0,7V and 1,3V.
So I´ve monitored the rawcounts of the encoder and turned the axis very very very very slow. Like 1-3 increments/second.
So i´ve moved the axis like 6 times forth and back until my buddy screamed the signal just died and came back.
So the index signal is 0,001mm "wide". The oscilloscope was set to like 5 seconds to even see the voltage spike when overrunning it.
After that I tried again to PID tune the axis but it was quite strange behavior. Jumping and jiggling and all crazy behavior and instand estop because of following errors.
So I´ve checked the encoderscaling again, that was off but did not help that much. The problem was "outputscale". I´ve been to lazy to check what that means. But on the Maho drives it should be set to 100 and not 1.
So after that i could drive the axis quite good. I almost cried because they sounded smoother than the when the Maho controller drove it.
For sure after some distance the following error came up and i think i´ll study some halscope tutorials

But when i drive slower than 500mm/min it´s "okay".
I still have the power issue on the 7i84 and the random restart from the computer.
Today the computer restarted several times on different occasions.
1. turning 5V supply on or off.
2. turning machine mains on or off
3. doing nothing at all
4. mesa cards not even powered on at all (no 24v no 5v)
And then it worked for 5 hours straight.
What i noticed is, that the 7i77 and the 7i84 have no power without the 5v+ to Tb1 at the 7i77.
The 24V supply works, but i thought that you can power both cards via the 24v headers.
But when I check the rs422(what ever) port at the 7i84 the is no LED on and no connection when i don´t supply 5v+ to the 7i77 tb1.
When i connect 5v to Tb1 at the 7i77 everything works fine and the LED at the LAN port goes yellow/green.
Is that how it is supposed to work ? +5v to TB at 7i77 and 24v to both vfield headers on both cards ?
Or am I missing something ?
The manual says that you can work with one single power supply giving 24v to the vfiel header. (pin 1-5 get 24v+ and pin 8 GND)