No harm was done. Obviously, unplugging the motor means there can be no back EMF. Any stepper driver will run quite happily while connected to a motor, or disconnected from a motor. In both cases the driver monitors its own output current, and regulates the output drive voltage to supply the requested current.
BUT...what actually happens is that if you disconnect a motor WHILE it is moving or holding, the driver may instantly try to provide more than maximum current, which may fry the driver. It really depends upon when the motor is disconnected, and is usually a matter of microseconds.
In summary, run your drivers either completely connected, or completely disconnected, from the motor. Do not disconnect the motor while the driver is trying to move it or hold it in position.
Edited 2 time(s). Last edit at 11/17/2021 06:46PM by rq3.