Hey Macbahi,
not really, I tried but it is not accurate, the danfoss outputs 12 vdc or source power so no way to stay at 5V without external analog devices.
you can set like an oscillator to change states but the output does not respond that fast.
if you want to use a danfoss device with a stepper I recommend to use a stepper with CANopen, that will work and a stepper with microsteps will do the job better. thta was my fix for that.
I hope this helps
Regards