I created a program based on the reference image to control a stepper motor using DMX OUT with my own algorithm. But when I run it, the motor only moves forward and doesn’t return. When it’s supposed to move back, it still interprets it as forward movement and doesn’t reverse direction. Where is the issue in this program? I want the motor to move forward and then return exactly according to the algorithm.
