I've found the mistake:
Wrong:
setp mux4.0.in0 hm2_7i76e.0.7i76.0.0.analogin3
setp mux4.0.in1 800
right:
NET schnell mux4.0.in0 hm2_7i76e.0.7i76.0.0.analogin3
setp mux4.0.in1 800
For a fixed value i have to use SETP, for a external value i have to use NET.
Now it is all running fine. Thanks for your help.
If someone have the same problems maybe my HAL is helping.
It is now complete with
four potentiometers (for the sliders of Axis and a separate slider for JOG-SPeed), two mpgs, a four direction switch (joystick) with two speeds for each direction, a two way switch to choose the direction of the spindle (no signal = spindle off), Increment switch for the mpgs.
All build up on a MESA 7i76e for a lathe.
Feel free to use it.
Thanks
Sascha