There are three photoelectric sensors on M1, corresponding to X-axis, Y-axis, and Z-axis respectively. When the machine returns to the origin, the position information is detected by the photoelectric sensor to realize the machine reset. When the M1 is laser processed, a certain amount of smoke will be generated, and the smoke will adhere to these photoelectric sensors. After a long time, the photoelectric sensors may fail and cause a reset failure. Therefore, when the error code of reset failure occurs（Qx14 1、Qx14 2、Qx14 3）, the corresponding photoelectric sensor can be cleaned first to eliminate the fault.