Based on the matrix keyboard with PMAC motion controller built-in PLC design program, the program is used for control of machine tool control panel. In a quick feed ratio knob button as an example, the key code is given. Compiled by the control program is simple, has the versatility and portability, great savings with PMAC motion controller I/O points, reduce the cost, and application in VNCZT - 545 machining center.