In this paper, a new embedded numerical control (ENC) system for carton samplemaker based on Windows CE is presented. The hardware design of ENC system based on ARM9 processor S3C2440A and motion control chip MCX314As is discussed principally. Besides, the device driver of MCX314As is developed by using stream interface driver model under Windows CE operating system. Furthermore, the software structure of the ENC system is introduced, and the way how to utilize multi-thread technology to realize the real-time control of the carton samplemaker is also discussed in detail. The system is proved to be good at dealing with multiple tasks processing, real-time and reliability of motion control.