Stepper Motor One-Way Movement Issue in DMX OUT Program

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.

Hi @Roozvelt,

can you share your project and also the spec of the motor?

cheers
Markus

Hi @Roozvelt,

theoretically this looks fine but without knowing how the DMX channel is converted for the stepper motor, this is hard to debug.

cheers
Markus