The invention discloses an automatic dispensing machine for modules. The machine comprises a fence, a clamping sleeve is fixed to the upper end of the fence, and a base, a conveying line and supportsare arranged at the inner side of the fence; a mechanical arm is mounted at the upper end of the base, a dispensing plate is fixed to the output end of the mechanical arm, and glue guns are installedat the lower end of the dispensing plate; glue barrels are connected to the input ends of the glue guns through plunger pumps in sequence, the supports are located at one side of the base, and the glue barrels are installed in the supports in sequence; every two adjacent glue barrels are connected through a penetration mode and a communication pipe, a protection box and a safety door are arrangedat the exterior of the fence, and a handle is installed on the safety door. According to the automatic dispensing machine for the modules, by arranging the fence, the dispensing plate, the glue guns,a CCD correction base, the conveying line, the glue barrels, the communication pipes, an alarm and the plunger pumps, the problems are solved that during use, a dispensing device at this stage is poorin stability and is short of a positioning mechanism, and a glue supply system is poor in safety.