The invention provides an embedded control system for carton packing machines. The system comprises a paper feeding section controller (1), a printing section controller (2), a slotting section controller (3) and a die-cutting section controller (4), wherein the core controllers of sections consist of a superior central processor (5) and an inferior central processor (6) respectively, and are connected through each superior and inferior communication modules (7); an input interface of each superior central processor (5) is connected with a sensor, a button module (8) and an LCD module (9); and each inferior central processor (6) is connected with an photoelectric encoder input module (10), a transducer communication module (11), an interface driving module (12) and a fieldbus module (13) respectively, and is connected with the inferior central processors (6) of other sections through the fieldbus modules (13). The system has the advantages of concise structure, perfect functions, high reliability, low cost, low power consumption, and compatibility of carton packing machines of different types and specifications. The system can improve the openness of carton packing systems, shortens secondary development period, improves the scalability, portability, interchangeability and interoperability, and improves the functions of modularization, informatization, networking and intellectualization of the carton packing system.