Hello,I am Zi from Pakistan,i am new on this site,i need help regarding stepper motor color code 1(black,red,green and blue),i want to know about its connections of stepper motor with its driver and driver's connections with the controller(LMX card) as i want to install it with Laser Marking Machine.
lots of stuff at this link, it should answer your questions Stepper Motors.
Two of the wires are for one side of the motor and two are for the other side, they charge coils from pulses sent from the driver board.
Also try Wikipedia