Hi meschack103!
At the beginning try to develop your code only for one motor direction.Try to name your UI / block diagram elements in more appropriate way because now it's really confusing. I assume you're trying to achieve a PWM signal generation.
- Add new frame to Flat sequence (at the beginning) and put there Loop Timer.
- Remember that you can always extend I/O Node and control more than one output synchronously.
- Part of your code outside the while loop will not be executed.
Except this rest looks good and you should get PWM as an output.
Regards