The present invention discloses a
machine tool with a self-lubricating function, including a base plate, a column, a connecting part, a
rocker arm, a guide rail, a spindle box, an
oil tank, an oil pipeline, a power box, a storage shell, a rack, a driving gear, a driven gear, a transmission shaft, a sleeve, a conveying wheel, an oil valve, a limit shell, an isolation plate, a first spring, a push rod, an oil outlet
pipe, an oil outlet
branch pipe, a
workbench, an outer cover, a storage groove, a shield plate, a connecting cross bar, a fixing hole, a latch, a second spring, a waste shell, a high-pressure
air pump, an air pipeline, an air outlet and an identification piece. The present invention uses the sliding of the spindle box on the
rocker arm guide rail to provide power to drive the conveying wheel to rotate, and uses the conveying wheel to provide power for pumping oil. At the same time, a push rod is added to the conveying wheel, and the push rod can be used to push open the isolation plate, so that self-
lubrication is achieved without adding an additional power source; a liftable shield plate is added around the
workbench to improve the safety performance of the
machine tool during operation without affecting the
processing.