PLC module is an important part of embedded NC system, and mainly accomplishes the auxiliary functions of CNC machine tools. This paper completes the work of research and development of the PLC programming software for PC side of the host computer, and the software is developed in VC++6.0 environment based on windows XP system, to realize the editing functions and the mutual conversion between the ladder and instruction language. Focus on the realization of the mutual conversion between ladder with instruction table, use the logical structure of tree when the ladder converts to the instruction table, and use the data structure of stack to complete the conversion. Instruction table is transformed to Ladder by the operation of the stack to complete the conversion.