Development and Realization of Comprehensive PLC Experimental System
- Author
- LiuYuFang
- Advisor
- LiXiuJuan
- School
- Nanjing University of Aeronautics and Astronautics
- Major
- Control Theory and Control Engineering
- Classification
- TP391.9 Computer simulation
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 498
- Citations
- 3
Abstract
PLC experimental teaching due to the premises, equipment, funds , and many other objective constraints , it is difficult in the laboratory with real control object , the experimental result is not intuitive . In view of this situation , we developed a set of applicable teaching, full-featured PLC experimental apparatus , dynamic display of the work of the PLC control system , effectively improve the the PLC integrated system designed experiments . PLC comprehensive experimental system consists of a computer controlled object simulation software and I / O interface circuit . This paper first introduces the PLC basic structure and working principle of the experimental system , and then analyze the system software and hardware implementation of the technology and development methodology , and the specific design of the single - chip interface technology , USB communication technology and computer simulation technology , etc. elaboration. Secondly, the design of the USB microcontroller C8051F340 as the core I / O interface circuit to complete the PLC and analog transmission of information between the charged object , and PLC switch / analog signal conditioning . PLC experimental system functional requirements, using C language to complete microcontroller firmware development, data transfer between the MCU and PC USB bus protocol processing . Again , in the Visual C environment , the use of the Windows operating system I / O device driver for the dynamic link library technology developed USB communication program ; external code interface mechanism in the LabVIEW platform , the DLL is called communication with the MCU , PLC switch / analog input signal is set , the output signal is read regularly . Then , the system uses the the Labview software establishment of controlled object simulation model , charged with the actual running of the object dynamic display . Developed five sequential control system experiments , the results show that the image of the PLC experimental system interface is friendly , able to meet the teaching requirements and improve the efficiency of PLC experiments to improve the experimental results .
Table of contents
Abstract 4-5
ABSTRACT 5-13
The first chapter 13-20
1.1 Introduction 13-14
1.2 Background 14-17
1.2.1 System Development necessity 14-15
1.2.2 Labivew Features 15-16
1.2.3 USB bus Features 16-17
1.3 PLC experimental system and major contents of 17-19
1.3.1 System Introduction 17-18
1.3.2 The main research contents 18-19
1.4 This chapter arrangements 19-20
Chapter II system design and hardware implementation 20-35
2.1 Introduction 20
2.2 overall system design 20-21
2.3 system hardware design 21-23
2.4 MCU Selection and Features 23-26
2.4.1 MCU Selection 23-24
2.4.2 C8051F340 Features 24-25
2.4.3 A / D converter 25
2.4.4 USB controller 25-26
2.5 microcontroller module circuit design 26-27
2.5.1 USB interface circuit 26-27
2.5.2 reset circuit 27
2.6 signal conditioning module circuit design 27-33
2.6.1 D / A conversion circuit 27-28
2.6.2 analog conditioning circuit 28-30
2.6.3 Switch conditioning circuit 30-31
2.6.4 Power supply system 31-33
2.7 PCB circuit board design 33-34
2.8 Summary 34-35
Chapter microcontroller firmware design 35-51
3.1 Introduction 35
3.2 USB Device Development 35-39
3.2.1 USB basic structure 35-36
3.2.2 USB data transfer 36-37
3.2.3 USB device descriptor 37-38
3.2.4 USB device request mechanism 38-39
3.3 firmware programming 39-50
3.3.1 firmware design ideas 39-40
3.3.2 The main loop program module 40-44
3.3.3 Digital input / output modules 44
3.3.4 Analog input / output modules 44-47
3.3.5 USB communication module 47-50
3.4 Summary 50-51
Chapter USB communication program 51-61
4.1 Introduction 51
4.2 dynamic link library 51-53
4.2.1 Dynamic Link Library necessity 51-52
4.2.2 dynamic link library concept 52-53
4.3 device drivers and Win32 API 53-56
4.3.1 device driver 53-54
4.3.2 WIN32 API functions 54-56
4.4 USB Communication Program Design 56-57
4.4.1 USB communication program overall design 56-57
4.5 dynamic link library function interface devices 57-60
4.5.1 Finding a USB device 57-58
4.5.2 Turn on / off the USB device 58
4.5.3 reader USB device 58-59
4.5.4 Data read / write functions 59-60
4.6 Summary 60-61
Chapter PLC experimental system simulation program design 61-75
5.1 Introduction 61
5.2 DLL calls and USB communication to achieve 61-62
5.3 Labiew graphical realization 62-65
5.3.1 Labview programming 62-64
5.3.2 graphical interface making 64-65
5.4 PLC controlled object simulation experiment system programming 65-74
5.4.1 Emulator general framework 65-66
5.4.2 PLC controlled object emulator instance 66-74
5.5 Summary 74-75
Chapter VI system verification and summary 75-80
6.1 system debugging and verification 75-77
6.1.1 system debugging problems and solutions 75-76
6.1.2 System Verification 76-77
6.2 Work Summary 77-78
6.3 follow-up prospects 78-80
References 80-83
Thanks 83-84
during the study period of scientific research and published papers 84
Related dissertations
- Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
- Grating Data Acquisition and Error Correction Technology
- Research of Data Acquistion System Based on FPGA
- The Research on Valve Control Equipment Based on PLC and LabVIEW
- Intelligent feeding cage key technology research and system development
- Design and Implement of a Control System for Pulsed Magnet Winding Machine Based on LabVIEW and PLC
- Research on the Road Rigidity Detecting System Based on Lab VIEW
- Development of a Measurement and Control System of the Sliding Bearing Test Bench for the Fuel Pump
- The Development of Oil-film Bearing Test Rig System
- Development of Experimental Platform for Certain Type Vertical and Horizontal Reducer Mechanical Properties Test
- The Mill Monitoring System Design and Research Based on Labview
- Monitoring and Control Technology Research of Underwater Oil Storage Automated Production Process
- The Research of Imaging Technique and Theory for Defect Detection Focusing on Oil and Water Well Casings Based on Electromagnetism
- Design of Software about Marine Sediment Ultrasonic Testing System Based on LabVIEW
- Research on Coherent Diffraction Grating Laser Detection Technology
- Employee Assistance Program (EAP) System Research and Realization
- Research on the Monitoring System of Heating Based on LabVIEW
- Study of a small high speed programmable multi-channel data acquisition and storage system
- Design of Digital MCA Based on FPGA Technology
- USB interface technology based smart gun shooting logger research