 When the machine axis moves, the dark marks move under the optical encoders triggering them in succession.If movement is from, for example, left to right, encoder A is triggered first and encoder B afterwards.So the computer can know that the scale moved 5μm to the right.