ok, now I´ve it almost

!
here the HAL:
setp hm2_5i24.0.pwmgen.pwm_frequency [SPINDLE_0]PWM_FREQ
setp hm2_5i24.0.pwmgen.00.scale [SPINDLE_0]OUTPUT_SCALE
setp hm2_5i24.0.pwmgen.00.output-type 1
setp hm2_5i24.0.pwmgen.00.offset-mode 0 # 1 wenn value +- dann bei 0 = 50%
setp hm2_5i24.0.pwmgen.00.out0.invert_output true # damit der PWM Ausgang bei steigendem Value auch ansteigt
setp hm2_5i24.0.gpio.016.is_output 1 # gpio 016 ist Aux (M4) - auf Ausgang setzen
setp hm2_5i24.0.gpio.016.invert_output 1
net spindle-speed-cmd spindle.0.speed-out-abs => hm2_5i24.0.pwmgen.00.value
net spindle-on spindle.0.on => hm2_5i24.0.pwmgen.00.enable # FU und PWM enable
net spindle-fwd => spindle.0.forward => hm2_5i24.0.gpio.016.out # gpio 016 / Aux (M3)
net spindle-rev => spindle.0.reverse => hm2_5i24.0.7i90.0.0.p1-out-02 # M4 - da DIR nicht ansprechbar -> 7i90
Then I figured out that the markings for the optocoupler outs on the 7i47s (EN, DIR, AUX) are vice versa, + is - and - is +. But that does no matter for me.
The only thing I can´t figure out how to set the DIR output? Probably gpio.017 is for that purpose, but the only opportunity is to set the Parameter setp hm2_5i24.0.pwmgen.00.out1.invert_output to 0 to get a state change. This is not a pin so not possible to connect with 'net'. A out-pin related to gpio.017 I couldn´t find.