The invention discloses a numerical control bagged spring machine which comprises a feeding mechanism, a spring rolling mechanism, a chain box conveying mechanism, a cloth rolling mechanism and a welding and assembling mechanism. A compressing and heating mechanism is arranged on the front side of the left end of the spring rolling mechanism and comprises a slope guide groove, an L-shaped push plate, a downward pressing mechanism and heating electrodes, a magnetic patch is arranged on the side of a chain box of the chain box conveying mechanism, and a third inductor is arranged corresponding to the magnetic patch. The welding and assembling mechanism comprises a triangular cloth folding frame, a cloth guide cover, a push rod chuck, a horizontal push head, spring extruding blocks, a horizontal welding mechanism and a vertical welding mechanism, and a drive mechanism of the L-shaped push plate, a drive mechanism of the downward pressing mechanism, a drive mechanism of the cloth rolling mechanism, a drive mechanism of the horizontal push head, drive mechanisms of the spring extruding blocks, a drive mechanism of the horizontal welding mechanism and a drive mechanism of the vertical welding mechanism are all servo motors. The numerical control bagged spring machine is simple in structure and clear in method, the servo motors are adopted as the drive mechanisms, the current situation that an air cylinder is adopted as a drive mechanism of existing equipment is changed, energy is saved, and meanwhile it is guaranteed that the mechanisms move more reliably.