Summary: The article put forward to be based on 89C51/52 sheet piece the processing of intelligence of face plate of numerical control machine tool of machine is unit, introduced soft hardware of its job principle and system, designed a kind of new software to eliminate key to shake algorithmic. This processing unit strings together mouth and news of trade of numerical control system through the standard, had used hand of milling machine of 3 coordinate numerical control to use the control that operates face plate, soft hardware all can work reliably. Keyword: Numerical control machine tool; Odd a computer; Serial communicationClassify date: TP368.2 document label piles up: AArticle number: 1001-2265(2000) 02-0027-0289C51/52-based Flexible Panel Adapter For CNC Machine ToolsLi Lichuan of of Zhao Zhongsheng of Mao Junhong Abstract: A Flexible Panel Adapter For CNC Machine Tools Based On 89C51/52 Single-chip Computer Is Presented.The Hardware And Software Of This Adapter Are Described.A New Design For Noise Rejection Using State Transfer Graphs Is Given.This Adapter Is Interfaced Wit. Key Words: CNC Machine Tool;single Chip Computer;serial Communication1 forewordIn numerical control machine tool, the hand uses operation face plate always is indispensable, its characteristic is 1. Some inputs quantity is mutually exclusive, do not allow to be operated by accident, by mechanical each other lock relation assures a requirement; 2. Of key / break spark with n different position, is not to use an edge to spark different position; 3. Allow to many condition are inputted at the same time and make corresponding response reliably; 4. Can current to equipment condition undertakes necessary clew, if use diode of signal lamp, glow or liquid crystal,display screen. The input that existing design changes the hand operation face plate mostly / the one part that output regards switch as quantity I/O, unified by the one buy inside the stage or outside of buy can make up Cheng controller (PLC) undertakes controlling. Numerical control machine tool produces manufacturer him basis the craft characteristic of the machine tool, buy numerical control system, pass development 2 times, fashion the product of numerical control machine tool with technical properties and operation not same each other. The workload majority that develops 2 times is measuring the design of I/O at switch, and the job that has 60% above again among them is a basis technical properties and operation design hand use operation face plate  . In fact, the input that the hand uses operation face plate / output is I/O of quantity of control signal switch merely, very low to the requirement of its drive ability, it is I/O of a kind of special quantity of switch of numerical control machine tool. If change the hand the input that operates face plate / output and I/O of quantity of switch of other of numerical control machine tool do not try to distinguish, can increase the workload that numerical control system develops 2 times greatly, hand of numerical control machine tool moves an operation face plate cannot be standardized and modular, its economy also can get very big impact. The article put forward a kind to be based on 89C51/52 sheet piece the processing of intelligence of face plate of numerical control machine tool of machine is unit, this processing unit strings together mouth and news of trade of numerical control system through the standard, the fundamental condition that can show numerical control machine tool and undertake to its the hand moves an operation. This job is a country 863 plans ” machine tool of PC peripheral complete number and research of its key technology ” study content partly, had used at milling machine of 3 coordinate numerical control. 2 jobs principle89C51/52 is odd piece machines and tools has piece inside 16 ROM, computation and standard string together a mouth  . In 89C51/52 sheet piece the orgnaization handles unit into intelligence of face plate of numerical control machine tool in, do not need exterior and patulous ROM and RAM commonly, odd a correspondence of the mouth inputs a machine I/O / sendout, be like sheet piece machine I/O mouth is insufficient, can undertake expanding. Odd a machine interrupt in order to time detect input, once discover input n changes, give numerical control the system its corresponding new position by the hair that string together a mouth. On the other hand, the information that numerical control system indicates need through stringing together a mouth sends sheet piece machine. Because used serial communication, numerical control system and the interface with unit processing of face plate intelligence are a standard, the information processing that operates face plate basically does not take up the time of CPU of numerical control system, and face plate intelligence handles unit itself to become module of a standardization. Graph the principle picture that 1 amount to dominates intelligence of milling machine face plate to handle unit. In the graph, the input that hand of numerical control milling machine uses operation face plate / output information has the following kinds roughly: Graph intelligence of face plate of milling machine of 1 numerical control handles unit principle plan1) work way chooses: The hand is moved / automatic / answer originFeed of 2) weak condition choosesSpeed of 3) successive feed choosesFold of 4) feed speed chooses5) feed coordinate choosesBrake of separation and reunion of electric machinery of 6) main shaft, pump, electromagnetism / break control7) stops urgently8) time-out and show9) feed coordinate exceeds the journey to show10) breakdown showsAmong them, the choice that wait and feed speed fold choose feed of working way, weak condition and successive feed speed to use transfer switch respectively 1 with transfer switch 2 in the switch between different position. Same condition has a transfer switch pilot lock of mechanical each other, because be operated by accident,can avoid two to put through at the same time or the state that two above have each other to lock up a relation. Graph 1 in the input of the others / sendout all by sheet piece the I/O mouth of machine is controlled directly, can make sure many condition are inputted reliably at the same time / output. 3 systems software89C51/52 is odd a processing of intelligence of face plate of machine tool of engine numerical control is unit after electrify restoration initialization, enter suspend working status, allow to time interrupt and serial interrupt. Be in time in interrupting, will detect input condition has invariant, the input condition that will change by string together a mouth to dispatch numerical control system; The information that numerical control system needs to move operation face plate to show by the hand presents sheet from the hair that string together a mouth piece machine, and by sheet piece machine is serial interrupt service program to make corresponding processing, its program block diagram is shown 2 times like the graph, pursue among them 2(a) gives priority to program block diagram, graph 2(b) interrupts service program block diagram to time, graph 2(c) is serial interrupt service program block diagram. Graph 2 programs block diagramOdd a machine electrify restoration and initialization can be finished inside cutty time, and the initialization of numerical control system needs longer time. When the initialization of numerical control system was not finished, serial communication misfires, after because this is odd,the main program of a machine is finishing initialization, should await numerical control system from string together a mouth to send ” READY ” signal, receiving receive ” READY ” the input that pair of operation face plate begin after signal / output undertakes controlling. Be in time in suspending service program, one by one checks the status of every key, if discover the condition that certain bolts produces change, will new position from string together a mouth to dispatch numerical control system, exit at the same time suspend service program, otherwise, exit after checking all key suspend service program. Bolt to detect the change of condition, must deposit the position with former key inside in putting, state with 00H key is in put through condition, FFH states key is in disconnect condition. Should read a certain key to be in put through when condition, the value in judging its memory first is 80H or ＜ 80H, be like 80H of memory median , demonstrative key is in so disconnect condition, decrease its 1 hind the FCH that be like , stock memory, be like ＜ FCH, make clear read in key 3 times to put through continuously, the condition that bolts namely by disconnect turn into put through, put through memory Qing Dynasty for 00H(condition) ; Be like the 80H is worth ＜ in memory, demonstrative key is in so put through condition, the condition of key does not have a change, because have all sorts of disturbing,be memory Qing Dynasty 00H(, the likelihood in memory is the several) of 03H of a ＜ . Should read a certain key to be in disconnect when condition, the value in still judging its memory first is 80H or ＜ 80H, be like the 80H is worth in memory, demonstrative key is in so disconnect condition, the condition of key does not have a change, because have all sorts of disturbing,be memory buy FFH(, the likelihood in memory is the several) of FCH of a ; Be like the 80H is worth ＜ in memory, demonstrative key is in so put through condition, add its 1 hind the 04H that be like ＜ , stock memory, be like 04H, make clear read in key 3 times to disconnect continuously, the condition that bolts namely by put through turn into disconnect, put through memory buy for FFH(condition) . Because bolt,can avoid effectively to shake so the miscarriage of justice that causes with other interference is broken. The state move that these processes show 3 times well and truly with the graph will try to describe. Graph 3 condition change a plan 4 conclusionThe article put forward a kind to be based on 89C51/52 sheet newly piece processing of intelligence of face plate of machine tool of engine numerical control is unit, from theory analysis and actual application can get the following verdict: (Intelligence of 1) face plate handles hand of machine tool of unit and contented numerical control to change the functional requirement that operates face plate, soft hardware design is reasonable, reliability is high; (2) uses serial communication, make the hand moves operation face plate to become an interface simple and standard module; (The article put forward 3) the algorithm that a kind of software eliminates key to shake, this algorithm is had mix reliably wait for an advantage simply; (Intelligence of 4) face plate handles unit to have very good expansibility, can very expand sheet nods an input conveniently / output mouth, still can drive number or liquid crystal to show.