SAP 6 , 0 , 255 // Set run current SAP 7 , 0 , 8 // Set standby current SAP 254 , 0 , 1 // Activate step / direction mode SAP 251 , 0 , 1 // Reverse shaft SAP 140 , 0 , 4 // 16 microsteps SAP 160 , 0 , 1 // Activate step interpolation (only works with 16 microsteps) SAP 161 , 0 , 1 // Activate double step STOP // End of this program