Connecting a stepper controller to a Arduino uno wifi

I am a beginner.
I am able to get a servo motor working but can't get the stepper working.
I need to confirm the wiring.
How to wire a stepper controller. I am using Digital Stepper DM542T to a uno4 wifi
Using ths sample sketch- Stepper_onerevolution
PUL+
PUL-
DIR+
DIR-
ENA+
ENA-
Where do they connect to the ardunio?
using Arduino pins 8,9,10 and 11

Help

2 ways.

Connect PUL-, DIR-, ENA- all together and to ground. Then control the stepper via the PUL+, DIR+, ans ENA+ pins.

or

Connect PUL+, DIR+, ENA+ all together and to Vcc. Then control the stepper via the PUL-, DIR-, and ENA- pins.

The PUL, DIR and ENA inputs on the driver are all optoisolated. R is not required for 5V system. The built in 270Ω is sufficient.

Here is the manual >>> https://www.omc-stepperonline.com/download/DM542T.pdf

Use your DMM to confirm the stepper coil pairs.

What did you try so far? And which version of the DM542T do you have?

The newer ones (V4.0) have builtin resistors for 24V and 5V input. Standard setting is 24V. It will not work with an Arduino unless setting the selection switch to 5V input.

Thanks for letting me know about that.

Thank you all. Very helpful.