Using DM542T driver, motor doesn't rotate

I am using the DM542T driver with a NEMA 23 stepper motor.

This is how it is wired.

The program in the Arduino UNO is a basic for loop that alternates between high and low with a delay after each. The motor is not rotating.

I used a multimeter to confirm the following:
24V power at +Vdc
12V on all four motor lines (A+, A-, B+, B-)
5V signal alternating on and off at PUL+

Regardless of what the Arduino program is doing, if the driver has power and is receiving alternating high/low pulse signals, it should rotate.

I have a second DM542T driver connected to a NEMA 17 motor. All voltages confirmed as above on the second driver and also no motion. It is highly unlikely that both drivers and motors are bad so I must be doing something fundamentally incorrect.

I forgot to say, I also did a continuity test with my multimeter to make sure I identified the correct coil wire pairs.

Your driver has a switch to change the input voltage between 24V and 5V. By default this switfh is in the 24V position. Did you change that to 5V?

+1

Also,

What do you mean by "Arduino"?? We can't guess the IO pins

Could you also (in case that you already change the position of the switch to be on 5V) give your code so we can check it pls

Wow, I never saw the switch to change the input voltage to 5V. Working now. Thank you so much.

You're welcome. Have fun!