Design and Implementation of Bus Testing System for Numerical Control System
- Author
- ChenYan
- Advisor
- HeFang
- School
- Graduate School of Chinese Academy of Sciences (Shenyang Institute of Computing Technology)
- Major
- Computer Science and Technology
- Classification
- TG659 Program control machine tools, CNC machine tools and machining
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 36
- Citations
- 0
Abstract
Field bus has the advantages of simple protocol, strong fault-tolerant, low cost.Field-bus based CNC system has become the future development trend of CNC system.Now, the blue sky CNC system has support MECHATROLINK-Ⅲ (hereinafter referredto as M-Ⅲ) and SSB-Ⅲ communication protocol. In order to test the communicationreliability of existing bus-based CNC system and measure the bus transfer data inreal-time and accuracy and provide the basic for the system’s reliable operation, weneed to develop a bus testing system oriented research and production. The maincontent of this paper is as follows.First of all, this paper introduces development of the bus-based CNC system, theapplication of field bus in CNC system, the M-Ⅲ bus technology and SSB-Ⅲ bustechnology. Then this paper gives the whole structure and working principle of bustesting system, and presents its design proposal.Secondly, on the ground of studying the three-layer architecture ofMECHATROLINK-Ⅲ bus, this paper designs and realizes test card based on M-Ⅲ bus.In this section, we analysis the functions of the test card, and then complete theinterconnection of physical layer and data link layer to realize the communicationbetween master station and slave station. We design the SOPC system in the FPGA anddeal with M-Ⅲ drivers and application layer protocol software in the NIOS processor.Thirdly, this paper design and implement the test card based on SSB-Ⅲ bus.According to the functions of test card, we need to realize the function of data link layerand complete the physical layer and link layer connection in the hardware, and also weneed to complete SSB-Ⅲ driver and application layer in the software.Finally, in order to visually display the motion state of slave station (speed andposition information and so on) and determine the information of the commandexecution results, and then test the correctness of the bus communication,human-computer interface is designed in this paper which use QT technology.
Table of contents
Summary 5-6
ABSTRACT 6-9
Introduction 9-11
first chapter 11-16 <br / > 1.1 bus -based CNC system 11-13
1.1.1 fieldbus in CNC systems 11-12
1.1.2 CNC system based on fieldbus system structure 12-13
1.2 MECHATROLINK-Ⅲ and SSB-Ⅲ bus technology 13-14
1.2.1 MECHATROLINK-Ⅲ bus 13-14 <br / > 1.2.2 SSB-Ⅲ bus background and significance of the research 14
1.3 of work content and organization of 14
1.4 papers 14-16 <br / > Research and Design Chapter Two bus test system 16-22
2.1 overall structure of each part of the test system introduced 16-18
2.1.1 test System The overall structure 16-17
connection between the various parts of the role and 2.1.2 test system 17-18
2.2 test system working principle and process 18-19
2.3 test system design 19-21
design master section 2.3.1 of 19
2.3.2 slaves part of the design 19-21
2.4 Summary 21-22
Chapter MECHATROLINK-Ⅲ bus test card design and implementation 22-37
3.1 MECHATROLINK-Ⅲ bus protocol describes 22-24
3.1.1 MECHATROLINK-Ⅲ architecture 22-23
3.1.2 command frame format 23-24
3.2 the overall design of the test card bus 24-27
3.2.1 functional Analysis bus test card 24-25
3.2.2 bus test card design 25-27 build
3.3 SOPC system 27-29
3.3.1 SOPC technology introduced 27
3.3.2 SOPC system 27-29
3.4 MECHATROLINK-Ⅲ driver 29-35
3.4.1 initialization phase 30-32
3.4.2 data communication phase 32-35
3.5 MECHATROLINK-Ⅲ communication protocol 35-36
3.5.1 communication protocol design 35
realize 3.5.2 protocol software 35-36
3.6 Summary 36-37
Chapter IV SSB-Ⅲ bus test card design and implementation 37-48
4.1 SSB-Ⅲ bus protocol description 37-39
4.1.1 SSB-Ⅲ bus structure 37
4.1.2 SSB-Ⅲ frame structure 37-39
4.2 SSB-Ⅲ bus test card design 39-41
4.2.1 test Card functional analysis 40
4.2.2 bus test card function structure 40-41 <br / > 4.3 bus link layer test card design 41-44
4.3.1 MAC register design 42-43
4.3.2 data exchange mechanism 43 - 44
4.4 SSB-Ⅲ driver design 44-45
4.4.1 important driver function 45
4.4.2 driver processes 45
4.5 SSB-Ⅲ application layer programming 45-47
4.5.1 driver processes 46
4.5.2 function function 46-47
4.6 Chapter Summary design and implementation of Chapter 47-48
HMI 48-58
5.1 development tools About 48-50
5.1.1 QT libraries introduced 48-49
5.1.2 signals and slots mechanism 49-50
5.2 man-machine interface design 50 - 52
5.2.1 HMI functional analysis 50-51
5.2.2 HMI underlying data structure 51
5.2.3 introduction interpolation motion commands 51-52
5.3 HMI display to achieve 52-57
5.3.1 home page displays 52-55
5.3.2 subpages Show 55-57
5.4 Summary 57-58
Conclusion 58-59
References 59-61 <br / > published articles and research 61-62
Thanks 62