Embedded PLC Design

Author
XinChangAn
Advisor
WangJianGang
School
Jilin University
Major
Electronics and Communication Engineering
Classification
TM571.61 Program controller
Degree
Master's thesis
Year
2007
Downloads
1,030
Citations
6

Request the full text

Abstract

Programmable Logic Controller (PLC) is a kind of digital arithmetic operational electronic system. It is specially designed for the application of industrial environment. It use programmable memory to store inner program, execute logical arithmetic, order control, timing, count and arithmetic operation and such as user oriented instruction. It controlled different type of machines or product process by digital or analog Input/Output (I/O) system.Embedded system is a special computer system based on computer technology and take the application as the first important thing, their software and hardware can be cut out, and they also fit for application system that have strict request with function, reliability, cost, power waste and bulk. As very important basic equipment, PLC is called one of the three major pillars in Automation Industry.Embedded system becomes more and more important as the development of computer technology, semiconductor technology, and electronic technology. Especially from 1970s, embedded system based on application was well developed, and varies of microprocessors and micro-controllers were applied on many fields for the success of the large scale integration technology. Embedded system is based on the application of single chip, so far, many application systems based and single chip also widely applied. This kind of embedded system was used to control varies of equipments such as automobile electronic equipment, home electronic appliances, industrial equipment, communicational equipment, and so on.C8051F04x series is completely integrated mix signal micro-programmed control unit (MCU), integrated analog components, digital peripheral equipment and functional components,well compatible with 8051 kernel. CIP-51 adopt assembly line structure, compared with standard 8051, the instruction execute speed improved very much. C8051F04x series based on CIP-51 increased peripheral equipments, improved integer capability and much more adapt to real application. The digital switch net allow assigning inner digital system source ports to P0,P1,P2 and P3 port. It is different with standard multiplexing I/O micro controller, this kind structure can support all of the functional assembly. By set across switch control register, we can do the changing startup input of counter/timer, serial bus and hardware interrupt, output of comparator and set micro controller inner digital signal as the output of I/O ports.Embedded PLC kernel construct PLC function on the software platform in controller. Main functions including ladder diagram language, communication and user drive interface. The kernel structure is fulfill real time response as the precondition, design special structure according to functional plan, combine design the real time kernel and system function to get optimized code efficiency and good real time effect.In the thesis, under the developed project“Embedded systems development based on C8051F040 single chip”, the paper presents design plan for the small PLC. The hardware is based on the high efficient 8 bit embedded microprocessor C8051F040, its input and output function is extended with its plenty of source on chip. The embedded PLC core programmer is taken as the center, and the needed application is developed, and is extended to a full and applied PLC system. Studied the kernel software of PLC core, including basic function, structure and realization of PLC core, managed and dispatched by PLC kernel.The basic components of PLC include CPU, memory, I/O system and communication 4 parts. The system programmer and user programmer of PLC was put in memory, the locale input signals were transmitted to CPU through I/O system, then CPU execute logical or arithmetic operation according to the instructions which were put in the user program memory. The instructions were transmitted to locale by I/O system and drive corresponding execute organ to finish the control task. The I/O system of PLC is the output channel of process state, parameter input and real time control signal. It provided varies of operation level and I/O interface template to fulfill level changer, electric insulation, serial/parallel changer, A/D and D/A changer function between controlled process and PLC I/O interface. Studied the PLC core hardware circuit based on the micro-controller C8051F040, including external RAM for power dropping, hardware watchdog circuit and the interface circuit for extent. The PLC core hardware including the input/output and the communication, and the hardware circuit for the small PLC is designed.The 14 points PLC software development of embedded PLC kernel mainly need programming user driver and user interruption program. User drive interface is user program embedded interface designed for DI/DO, AI/AO and special user function. It included 7 basic embedded interface and several interrupt entrance. Data store space including C8051F040 CPU memory and extend 64K power dropping RAM. These memory cells divide into system occupation, user embedded and PLC source 3 regions, the data store space is the 64K flash of CPU.CAN net is a subordinative construction, main node initiatively transmit commands to other nodes and get the information of nodes. 485 net is also subordinative construction, by ladder diagram set network, including net equipment address, net communication data content, net communication speed, and so on.By applied PLC kernel program, designed detail PLC application software. At last, combining real application system, basic function and basic instruction set is tested. By control a simple dolly, given the system ladder diagram program, results indicating sufficed for the basis function demands of PLC. Meanwhile, introduced how to extend and connect CAN net and 485 net.

Table of contents

Summary 4-7 first chapter 7-15 1.1 PLC System Description 7-11 1.1.1 PLC development history 7-8 1.1.2 PLC configuration 8 1.1.3 CPU configuration 8-9 1.1.4 I / O module 9-10 1.1.5 power Module 10 1.1.6 PLC system with other devices 10 1.1.7 PLC communication network 10-11 1.2 embedded system Introduction 11-12 1.3 fieldbus Control system Overview 12-14 1.4 the main work 14-15 Chapter embedded PLC kernel 15-27 2.1 C8051F040 chip Introduction 15-17 2.2 PLC chipset and pin 17-19 2.2.1 embedded PLC chipset principle and function 17-18 2.2.2 embedded PLC chipset external pin definitions 18 - 19 2.3 PLC kernel processes 19-27 2.3.1 kernel embedded PLC basic functions 19-21 2.3.2 kernel structure 21-23 2.3.3 task Manager 23-27 Chapter PLC hardware interface design 27-34 3.1 input and output ports of the design 28-31 3.1.1 input port design 28-29 3.1.2 output port design 29-31 3.1.3 input Output display Design 31 3.2 communication port design 31-34 3.2.1 serial communication design 31-33 3.2.2 CAN communication port design 33-34 Chapter PLC software design 34-47 4.1 C51 compiler 34-38 4.2 PLC software development 38 -44 4.2.1 users to embed task scheduling 38-41 4.2.2 storage Management 41-44 4.2.3 function call 44 4.3 HEX and HEX file download document describes 44-47 Chapter V system functional testing and network functions 47-57 5.1 ladder Instruction test 47-50 5.2 system network functions 50-57 5.2.1 CAN network expansion 50-53 5.2.2 485 network expansion 53-57 Chapter text summary of the work 57-59 References 59-61 Chinese Abstract 61-64 <br / > ABSTRACT 64-68 Thanks 68

Related dissertations

  1. Reseach and Design of Automated Production Line of the New Prefabricated Exhaust for Residential Ketchen
  2. Development of Automated Production Line Teaching Experiment Platform Based on Profibus
    HuYa ·Dalian University of Technology ·2013 ·Master's thesis
  3. Development and Application about Data Management System of PVC Glove Production Line
  4. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  5. Based on PLC Street-lamps Romote Monitoring System Research and Implementation
    JiangYang ·Dalian Polytechnic University ·2011 ·Master's thesis
  6. The Development and Research of an Intelligent Sewage Trestment System Based on Cast Craft
  7. Monitoring System of Motion Position Platform Design Based on Wincc
  8. Design of Monitoring System in Oilfield Metering Station Based on PLC
  9. The Sewage Treatment Plant of Langfang Development Zone Control System Analysis
    SunChenZuo ·Yanshan University ·2012 ·Master's thesis
  10. Mine Drainage Automation Monitoring System Design and Implementation
  11. The Study of Remote Video Monitor System Baced on ARM
    GuoZuo ·Hebei University of Technology ·2012 ·Master's thesis
  12. Design and implementation of computer monitoring and control system of pumping station based on PLC
    XieZhengHua ·Jiangxi University of Technology ·2013 ·Master's thesis
  13. Research and Development of Variable Frequency Speed Regulation Monitoring System for Coal Main Fan
  14. The Design and Application of Monitoring System for Wet Resin Ingredients Based on DCS
    GuManMan ·Hefei University of Technology ·2013 ·Master's thesis
  15. Design and Implementation of Intelligent Video Surveillance System Based on Embedded Linux
    JinPing ·Central South University ·2013 ·Master's thesis
  16. Design of Monitoring Control System for Three-dimensional Steel Samples Warehouse on KingView
    WangXiaoWei ·Ningxia University ·2013 ·Master's thesis
  17. Video Surveillance System Based on Embedded Technology Research
  18. Research on Tunnel Monitoring System Key Technology
    ChenGuangJing ·Xi'an University of Petroleum ·2013 ·Master's thesis
  19. Automatic Monitoring System for Preparation and Pumping of the Filling Paste
    GuoKeWei ·Hebei University of Engineering ·2013 ·Master's thesis
  20. Design of Video Monitoring System Based on the Embedded