Research and Development of Key Technologies in a PC-Based Multi-Axis Open Architecture Software-CNC System
- Author
- MaXiongBo
- Advisor
- WangYongZhang
- School
- Harbin Institute of Technology
- Major
- Mechanical Manufacturing and Automation
- Classification
- TP273.5 Computer control, computer control system
- Degree
- Doctoral dissertation
- Year
- 2007
- Downloads
- 963
- Citations
- 12
Abstract
CNC system experienced the development from special&closed to open& modular feature. Along with the design philosophy of open architecture controller appeared in 80s of the last century and computer technology’s fast development, CNC system develops towards the goal of open architecture structure and software realization methodology. With the appearance of software PLC technology and IEC61131-3 international standard, using Software to realize PLC unit in CNC system becomes important in the research of open architecture controller.The realizing method of the software and hardware in the open architecture multi-axis software CNC system is analyzed and confirmed. Based on PC, general Windows OS and RTX real-time extension, SoftSERCANS plug-in card following SERCOS protocol, the system platform of the open architecture CNC system is constructed. High-speed serial communication among the system controller, drivers and IO devices can be realized in the platform to get independency between soft and hardware. Thus the controller becomes application software which entirely runs in the system platform.To attain an open architecture software CNC system following the user’s demand, based on the selection of the system interfaces, a series of technologies are adopted to ensure the openness of the system, in which OMAC API is referenced, FSM is adopted, and SERCOS technologies is applied. Object oriented C++ language and modular method are used to develop the system functions in Windows and Visual C++ environment.NC code translator decodes in compiling mode, in which the code information is translated into motion coordinator, speed and PLC switching value to be executed in the interpolation module. Each translated segment’s information is input into a deque as a knot. Then it’s transferred into the interpolation module through the shared memory to drive the machine tool. Besides C type plane cutter compensation, canned cycle instruction, plane and coordinator selection, rotation, scaling, mirror, subprogram calling functions are all realized in the translator. The instruction system is amplified to make the CNC system useful.According to IEC61131-3, Software PLC’s function and realizing method are analyzed and confirmed, and the system is composed of editor and compiling module. Ladder diagram editor, instruction list editor and the transfer function from ladder diagram to instruction list are realized in the editor module. Compiling module is composed of lexical analysis, syntax analysis, semantic analysis and aim code generation parts, and is developed by VC++ associating Lex and Yacc compiling software. The input code is instruction language and the generated aim code is C/C++ language code or binary code which can be run in the PLC running system.Object oriented technology and modular idea is adopted to develop the software PLC running system in the open multi-axis software CNC system and PLC’s functions can be well realized by the multi-task regime. Such means as well-organized multi-task system scheduling regime and data encapsulating technology and modular method can make the system works coordinately and reliably.Real time interpolation function is the core of a CNC system. On direct sculptured surface interpolation, a self-defined double NURBS spline interpolation method is realized in the system. The method is presented against the current 5-axis coordinated linear and the 3-axis NURBS interpolation methods, for the proposed method can be used in the machining of curve-level 5-axis sculptured surface.A well designed, function versatile open architecture software multi-axis coordinated CNC system is constructed successfully in the paper. Related experiments proved its function.
Table of contents
Abstract 4-6
Abstract 6-16
Chapter 1 Introduction 16-29
1.1 open numerical control system of the historical background and their definitions 16-17
1.2 open numerical control system research status 17-23
1.2.1 Foreign Research 17-21
1.2.2 of the domestic research 21-23
Research and significance of the
1.3 soft PLC technology 23-25
1.4 Open CNC system development trends 25-26
1.5 subject source 26
1.6 of this paper the purpose and significance 26-27
1.7 of this study 27-29
Chapter 2 CNC system open technology and system architecture research 29-47
2.1 open soft CNC system interface standard 29-32
2.2 open soft CNC system real-time operating system to determine 32-36
2.2.1 \
2.2.2 Real-time and non real-time operating system 32-33
2.2.3 real-time operating system 33-34
2.2.4 real-time operating system to determine 34
2.2.5 RTX real-time operating system 34-36
2.3 The OMAC project and its API in the system 36-39
2.3.1 dynamic link library technology 37-39
2.3.2 client / server communication model 39
2.4 finite state machine in the NC system 39-41
2.5 SERCOS interface technology 41-44
2.5.1 SERCOS interface 41-43
2.5.2 SoftSERCANS function 43-44
2.6 system architecture and composition of 44-46
2.6.1 System Architecture 44
2.6.2 system composed 44-46
2.7 Summary 46-47
Chapter 3
open soft NC NC code interpreter implementation 47-64
3.1 Overview 47
3.2 NC code interpreter overall structure 47-48
3.3 NC code segment format 48-49
3.4 NC code interpreter's implementation 49-52
3.4.1 Decoding data processing 49-50
3.4.2 read into the NC code 50-51
3.4.3 explain the NC code 51-52
3.5 error handling 52-53
3.5.1 Common Errors 52-53
3.5.2 error approach 53
3.6 The main task generation module commands and functions 53-59
3.6.1 instruction grouping 53-55
3.6.2 fixed-cycle instruction 55-56
3.6.3 coordinate system 56-57
3.6.4 system parameters 57
3.6.5 User-defined macros 57-58
3.6.6 operator and function 58-59
3.6.7 Notes 59
3.6.8 subroutine calls 59
3.7 tool compensation 59-62
3.7.1 Overview 59-60
3.7.2 Data storage management 60
3.7.3 tool compensation process 60-62
3.8 Summary 62-64
Chapter 4 soft PLC technology 64-85
4.1 soft PLC technology Overview 64-66
4.1.1 software the traditional PLC functions 64-65
4.1.2 IEC61131-3 software system 65-66
4.2 Soft PLC system architecture 66-67
4.3 Soft PLC programming development system designed 67-73
4.3.1 Programming editor 67-68
4.3.2 Development System compiler implementation 68-73
4.4 Soft PLC runtime system design 73-80
4.4.1 System division of tasks 75-77
4.4.2 Soft PLC basic scanning tasks 77-78
4.4.3 task scheduling 78-79
4.4.4 Soft PLC data structures 79-80
4.5 man-machine control 80-84
4.5.1 HMI and soft PLC communication 80-83
4.5.2 HMI designed 83-84
4.6 Summary 84-85
Chapter 5
open software CNC in real-time interpolation function Research and 85-102
5.1 Overview 85-86
5.2 data stream processing 86-87
5.3 linear interpolation method 87-93
5.3.1 system interpolation process 89-90
5.3.2 trapezoidal acceleration and deceleration in the system realization 90-93
5.4 Open CNC System 5-axis spline interpolation function 93-101
5.4.1 NURBS curve representation method 93-94
5.4.2 dual NURBS curve interpolation format 94-95
NURBS fitting of
5.4.3 tool path and NC code generation 95
5.4.4 NURBS curve data stream processing in the open numerical control system 95-101
5.5 Summary 101-102
Chapter 6, system implementation and related experiments 102-116
6.1 device debugging and system integration 102-104
6.2 CNC system to build and experiment 104-111
6.2.1 3-axis system 104-107
6.2.2 5-axis system 107-111
6.2.3 system openness 111
6.3 Soft PLC system experiments 111-114
6.3.1 Development System 111-113
6.3.2 running system 113-114
6.4 Summary 114-116
conclusions 116-118
References 118-127
published during the PhD thesis 127-130
thank 130-131
biographical 131
Related dissertations
- Design of Embedded Control System on LED Phosphor Coating Machine
- Design and Realization of the Soft PLC Developing Platform
- Research and development of software PLC platform
- Based on COM technology of Open CNC System Design and Research
- Research and Implementation of Software PLC Ladder Programming System
- The Research and Development of Software PLC in Open Computer Numerical Control System