The Design and Realization of Embedded Programming Logical Controller Based on ATMEGA169

Author
LiSongBo
Advisor
ShiXiaoJuan
School
Xi'an University of Science and Technology
Major
Mechanical and Electronic Engineering
Classification
TP273 Automatic control,automatic control system
Degree
Master's thesis
Year
2010
Downloads
108
Citations
0

Request the full text

Abstract

This paper is designed a system based on AVR microcontroller ATMEGA169, it integrated use of embedded microcontroller technology, the traditional PLC technology and computer technology. The system is not only completed the basis of the traditional PLC functions, but also have a compact structure and low cost, it can satisfy the user’s individual requirements.The paper mainly include three parts: general design of embedded PLC, hardware circuit design and software design. Firstly, the general design, The paper proposed overall structure of the embedded PLC system design based on the full study of traditional PLC internal structure and working principle. Secondly, the hardware circuit design with ATMEGA169 as the core, it integrated the common sensors signal transmitter circuit in the core control circuit board and it designed more multi-channel analog acquisition; And the communication module of the system introducted the reliable CAN interface, using Modbus protocol, improve the system of communication distance, speed and reliability. The HCI module could achieve a real-time monitoring and controlling of the system with the methods of combined using button, LED and LCD. Thirdly, the SCM system program design, it uses modular design method. The system program module consists of the main program design, I/O module program design, HCI module program design, fault detection program design and the communication program design; Finally, The paper designed a ladder diagram integrated development environment based on Borland C++ Builder platform, with this design the ladder diagram can realize the functions of draw, edit, save and compile. It’s a useful try and explore to improve the standardization and generic of ladder software.This paper completed the production of circuit boards, and completed the main module debug of systems hardware and software, it verification the reasonable and feasible of the Embedded PLC system design. The research of this paper settle the foundation for the new embedded PLC technology with independent property rights .

Table of contents

Abstract 2-3 ABSTRACT 3-8 1 Introduction 8-15 the 1.1 topics the background and its research significance 8-9 1.1.1 topics of background 8-9 1.1.2 subject research significance 9 1.2 Programmable Logic Controller (PLC) the development and status of 9-11 the status of 1.2.1 programmable logic controller (PLC) 9-10 1.2.2 Programmable Logic Controller (PLC) trends 10-11 1.3 Embedded System Overview and its development trend 11-13 1.3.1 Embedded Systems Overview 11-12 the 1.3.2 embedded systems trends 12-13 development and significance of 1.4 Embedded PLC 13-14 1.5 In this paper, the main research work 14 1.6 This chapter Summary 14-15 2 embedded PLC overall program design 15-20 2.1 embedded PLC hardware overall program design 15-17 2.1.1 traditional PLC hardware structure 15-16 2.1.2 traditional PLC works 16 2.1.3 embedded PLC hardware overall program design 16-17 2.2 Embedded PLC software overall program design 17-19 2.2.1 SCM system program design 17-18 2.2.2 Ladder integrated development environment design 18-19 2.3 This chapter Summary 19-20 3 system hardware design 20-30 3.1 hardware design of the overall structure 20-21 3.2 The main hardware module design 21-28 the 3.2.1 master chip select their characteristics 21-22 3.2.2 Power and reset module design 22-23 3.2.3 Input Module design 23-24 3.2.4 Output Module design 24-25 3.2.5 Human Interface Module design 25-26 3.2.6 communication module design 26-28 3.3 hardware antijamming The design 28 3.4 This chapter Summary 28-30 the SCM system program design 30-41 4.1 SCM system program overall design 30-32 the 4.1.1 program design ideology 30-31 4.1.2 main program flow chart 31-32 4.2 analog acquisition program designed 32-33 4.3 key scanner design 33-34 4.4 LCD display program design 34-35 4.5 communication module program design 35-40 4.5.1 Modbus Protocol Introduction 35-36 4.5.2 Modbus protocol transfer mode 36-37 4.5.3 CRC checksum methods 37-38 4.5.4 communication module program design 38-40 4.6 This chapter Summary 40-41 5 ladder integrated development environment designed 41-51 5.1 ladder language introduced 41-42 5.2 Borland C + + Builder programming environment introduced 42-43 5.2.1 C Builder introduce 42-43 5.2.2 C + + Builder programming language features 43 5.3 Ladder Edit the module design 43-49 5.3.1 ladder design drawing toolbar 44-45 5.3.2 ladder editor 45-48 5.3.3 ladder storage 48-49 5.4 Ladder compiled module design 49-50 5.5 This chapter Summary 50-51 6 system debugging 51-56 6.1 system hardware debug solution 51-52 6.2 sensor selection 52-53 6.2.1 Pressure Sensor choose 52-53 6.2.2 Temperature sensor selection 53 6.3 system hardware debugging 53-55 6.4 This chapter Summary 55-56 7 Conclusion 56-57 Acknowledgements 57-58 the References 58-60 Appendix 60

Related dissertations

  1. Three Tank Water Level Control Based on Predictive Control Algorithm
    ZuoPeng ·Shenyang Ligong University ·2013 ·Master's thesis
  2. Research on the Method for Modeling and Analyzing PLC Programs Based on Petri Nets
    ChenXueZuo ·Huaqiao University ·2013 ·Master's thesis
  3. Research of Key Technology of Industrial Robots on ePLC
  4. Parallel Compile Analysis of Ladder Diagram and It’s Implementation on FPGA Platform
  5. The Research of Converting Ladder Diagram into VHDL Logic Expression
  6. Development and Wind Turbine Control Application of Soft Motion Controller Based on Embedded PLC
    ShenChao ·Xiangtan University ·2013 ·Master's thesis
  7. Fault Diagnosis of Train Center Plate Bolt Based on Digital Image Processing
    YeLianJie ·Harbin Institute of Technology ·2012 ·Master's thesis
  8. Research on Control System for Pillow-style Packing Machine Based on Embedded Soft PLC
    ChenLiuYang ·Hubei University of Technology ·2013 ·Master's thesis
  9. Research on Tool Wear and Tool Breakage Condition of CNC
  10. Design of NC Tenoning Machine's Control System Based on HUST H2Controller
    FeiXiaoJun ·Guangzhou University ·2013 ·Master's thesis
  11. Huangshi Severe Weather Warning Assist System
  12. Emulation Research of Daya Bay Nuclear Power Plant's Conventional Island Thermal System Based on C++Builder
    GuoLiang ·Harbin Engineering University ·2013 ·Master's thesis
  13. Software Design of Tunnel Information Automatic Monitoring System
    LiShan ·West China University ·2012 ·Master's thesis
  14. Study of Method for Constructing Numerical Control Language on PLC
  15. The Research on Configuration Control Strategy Embedded in PLC
  16. An Algorithm about Translating from Sequential Function Chart to Ladder Diagram
  17. The Research and Realization on a New Method of Embedded PLC Control System Fault Diagnosis
  18. Research and Development of the SoftPLC System Based on Windows
  19. Development on the Distributed CNC System Based on CAN Bus
    JinZhenHua ·Shandong University ·2013 ·Master's thesis
  20. The Research on Multi-Core Embedded Motion Control System