The function of a metal detector on a coal conveyor belt is to detect the presence of foreign metal objects mixed with the coal during the transportation process. This device acts as a preventive measure to protect equipment such as crushers, conveyors, and other machinery from damage caused by unwanted metal objects. By utilizing a metal detector, operational efficiency can be improved, and the risk of equipment damage or downtime can be minimized.