| With the rapid development of the micro-electric technique, the hardware of CNC system trend towards standardization and module, the dependability of the hardware is more and more secure. Comparatively the quality of the software is being paid attention to, and the software platform design of open Numerical control system already became the key part in the Numerical control system design.The open numerical control system software platform is composed by the PLC software platform and the human-machine interface editor platform. The compiler is the most important part of "the PLC integration platform", through the translating of compiler, the user program will be translated to the content which the PLC hardware can understand, and using the ladder diagram-instruction list algorithm, this dissertation realized the transformation from the ladder diagram to the PLC instruction automatically. When carries on planning the human-machine interface surface software platform graphic unit, we must use many base graphic unit algorithm, Bresenham line algorithm and the Bresenham arc algorithm are the most typical.In the software platform realization part, this dissertation first carries on the modulation methods design to the PLC software integration platform, decomposed the PLC software integration environment to the project administration module, the editor module, the translation module, the simulation module and so on, simultaneously, designed the data flow direction between various modules of the PLC software platform, processes news transmission and the actuation between the modules. After modulation, the function of each module has been realized. The editor selected the vividly and direct-viewing ladder diagram language as the programming language, used the object-oriented modeling method to build the PLC system class level structure and the part storehouse model object, established the Ladder Diagram procedure by the graph input way. The compiler takes the tree structure as intermediary relates between the ladder diagram and the PLC instruction, has realized the transformation from the ladder diagram to the PLC instruction. The transformation takes the rundle as the unit; use " the direct deep prior scanning algorithm" to build the logic tree structure, then carries on the calendar to the tree structure, obtains the corresponding PLC instruction collection.Then established the human-machine interface editor platform portal frame construction as well as three object model, and have analyzed the relations between the object models. According to the model, the dissertation elaborated the concrete realization method of the human-machine interface editor platform various functions in detail, mainly included the software interface design, as well as h how to realize editing functions of graphic unit such as create, select, modify, change properties, etc. and how to realize the technology of effective management of the project graphics. In addition, the data format of the project file and realizing the method to save and load the project file are discussed in this paper. Then data structures of CNC display graphics are discussed, and the compiling method of the project graphics data are designed according to the features of the data, Apart from that, how to deal with some problems about compiling is explained in this dissertation.Through analyzing and researching to the PLC work principle, the simulator realized the algorithm simulation of the PLC instruction interpreter, has simulated the PLC movement process, and thus has realized the system off-line simulation. At the same time, we take the numerical control knee bend machine as the example to explain concrete utilization effect of the human-machine interface editor system.In brief, the open numerical control system software platform has developed the PLC ladder diagram edition environment, has realized the transformation from the ladder diagram to the PLC instruction, and designed the simulation part to make up the original similar software insufficiency. Had considered the characteristic of numerical control field as well as different user individual and common demand, we developed each kind "the components" which is needed on the numerical control system dialogue contact surface, when the user use the system, they would assemble "the components" into each kind of graphical interface like "builds the building block".The main innovation spot:1) The open numerical control system software platform have the integrated vector cartography function.2) use the exchange algorithm between the ladder diagram language and the sentence table language to design the ladder diagram compiler, the visualized ladder diagram language will be automatically transformed into the instruction list.3) The human-machine interface editor software platform has the PC simulation numerical control operation surface, has realized the PLC instruction interpreter simulation, and provides the tool that simulates the PLC input and output, simulates the PLC movement process, has realized the system off-line simulation, and may carry on the inspection, the revision to the user PLC procedure logical error.4) The multi- languages support of the numerical control operation surface... |