Stepper motor stalling when ramping down and then back up?
The problem of course is in the PLC trajectory generator. The stepper driver itself only outputs the setpoint frequency (step/dir) to the motor. It seems that upon changing the setpoint position, your PLC program doesn't gradually decrease or increase the frequency, rather it jumps. Look for PLC documentation how to overcome this bug.