Arduino Uno Nema 23, DM542T Driver, Control

The standard Stepper library is not intended for stepper drivers that take step and direction inputs. Have a look at the AccelStepper library

Or just write your own code.

These links may be of interest
Stepper Motor Basics
Simple Stepper Code

What stepper motor power supply are you using (volts and amps) ?

...R