I see a few problems with your setup
The max power input voltage on the 4035 is 42 volts, running it with a 48V power supply will damage it.
The max input voltage to the step & direction inputs is 5 volts. Trying to run them with 24 volts will damage them.
What controller are you using?
I have attached the manual