The inner structure, primary registers and instruction system of the PCL6143 are introduced, and then a four axes motion controller based on the PC104 bus is designed.How to write the function library of this motion controller is discussed in detail in this paper.