What is the essential difference between PLC and microcontroller?

Publisher:NanoScribeLatest update time:2017-04-04 Source: 21icKeywords:PLC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

I want to understand the difference between PLC and MCU. I searched a lot on the Internet, but I am still confused. Finally, I combined some sentences that hit the point, analyzed and summarized them carefully. I think the difference between PLC and MCU should be:

1.PLC is a relatively mature control system composed of single-chip microcomputers. It is a product of a single-chip microcomputer application system that has been debugged and matured and is highly versatile.

2. Single-chip microcomputers can form a variety of application systems and have a wider range of uses. As far as a "single-chip microcomputer" is concerned, it is just an integrated circuit and must be combined with other components and software to form a system before it can be used.

3. From the perspective of engineering use, for single projects or projects with very few repetitions, the use of PLC is quick and convenient, has a high success rate, and good reliability, but the cost is relatively high.

4. For large-scale supporting projects, the use of single-chip microcomputer system has the advantages of low cost and high efficiency, but this requires considerable R&D strength and industry experience to make the system stable.

In essence, PLC is actually a ready-made single-chip microcomputer (single-chip microcomputer has a wide range of) system.

But PLC also has its own characteristics: PLC widely uses ladder diagrams instead of computer languages, which has certain advantages for programming. You can understand ladder diagrams as a programming language like assembly and other computer languages, but the scope of use is different! And the usual practice is that the PLC software converts your ladder diagram into C or assembly language (determined by the CPU used by the PLC), and then compiles it into machine code using the assembly or C compilation system! PLC runs only machine code. Ladder diagrams just make it easier for users to use.

As mentioned, the MCS-51 microcontroller can certainly be used in PLC production, but the 8-bit CPU is not capable of some advanced applications such as: large-scale calculations (including floating-point calculations), embedded systems (UCOS can now be ported to MCS-51), etc. However, with the addition of DSP, it can meet general requirements. In addition, we can also use ladder diagram programming, and we can convert the ladder diagram into C51 and then use KEIL's C51 to compile. We can also find that different models of PLCs will use different CPUs, which actually shows that PLC is a set of ready-made microcontroller systems.

In this case, of course, you can also use a single-chip microcomputer to directly develop a control system, but the requirements for developers are quite high (not something that ordinary people can do), the development cycle is long, and the cost is high (for some larger systems, you need to do experiments, and printed circuit boards require a considerable amount of money. You can say that you use simulators and experimental boards to develop, but I want to tell you that by doing so, you only verify the feasibility of hardware and software, and it does not mean that it can be used in industrial control systems, because industrial control systems have very high requirements for anti-interference, stability first, not performance first, so your circuit board design must be constantly experimented and improved). When you solve the above problems, you will find that you have made a PLC. Of course, if you need others to be able to use it easily, you also need a set of software, so you don’t need to tell others about your circuit. You can’t tell others.

In this way, PLC is not mysterious. Many PLCs are very simple. Except for the high speed, the other functions of the CPU inside are not as good as those of ordinary single-chip microcomputers. Usually, PLC uses a 16-bit or 32-bit CPU with 1 or 2 serial channels to communicate with the outside world. It only needs one timer inside. If you want to improve reliability, you can add a watchdog timer to solve the problem.

In addition, the key technology of PLC lies in the fact that it has a program that can interpret the ladder diagram language and an auxiliary communication program solidified inside. The efficiency of the ladder diagram language interpretation program determines the performance of the PLC, and the communication program determines the difficulty of the PLC exchanging information with the outside world. For simple applications, it usually operates as an independent controller, without exchanging information with the outside world, and only needs to have a program that can interpret the ladder diagram language solidified inside. In fact, the main work of designing PLC is to develop a program that interprets the ladder diagram language. Today's single-chip microcomputer can completely replace PLC. The previous single-chip microcomputer was not comparable to PLC due to its relatively weak stability and anti-electromagnetic interference ability. Today's single-chip microcomputer has achieved high stability and strong anti-interference ability, and has been replaced in some fields.


Keywords:PLC Reference address:What is the essential difference between PLC and microcontroller?

Previous article:[STM8L]EEPROM operation read and write
Next article:Learning microcontrollers----what should we do?

Recommended ReadingLatest update time:2024-11-16 13:57

Comparison between PLC and motion controller
"Nowadays, the motion control function of PLC is getting stronger and stronger. Circular interpolation, spiral interpolation, and electronic cam can all be easily competent. So what is the difference between motion controller and PLC with motion control function? What are the advantages of motion controller in the f
[Embedded]
Comparison between PLC and motion controller
Siemens commonly used PLC instruction table
Siemens commonly used PLC instruction table Calculates the time difference between the current time and the time provided by IN and stores the time difference in ouT. The maximum time interval for a double-word millisecond value is 2 to the power of 32, or 49.7 days. Depending on when the BGN_ITIMB instruction
[Embedded]
Siemens commonly used PLC instruction table
Application of OMRON small PLC in chiller control system
Overview With the advancement of technology, automatic control systems composed of programmable logic controllers (PLCs) have been widely used in many industries and fields, and the refrigeration and air-conditioning industry is no exception. PLCs and industrial human-machine interfaces (HMIs) are widely us
[Industrial Control]
Choosing the right PLC modem solution for smart meters
In recent years, driven by green energy-saving awareness, smart grids with smart meters as the core have become a key area for many countries such as Europe, the United States, Japan and China to compete for development. For example, the European Commission has mandated that all meters in all EU member states be rep
[Industrial Control]
Realization of fuzzy control system of traffic lights at road intersections based on PLC
1 Introduction Traditional traffic lights at intersections are usually set in advance by using statistical methods after a traffic flow survey. However, the actual changes are unknown, so there are often few vehicles in the green light direction, while there are long queues waiting to pass in the red light d
[Power Management]
Realization of fuzzy control system of traffic lights at road intersections based on PLC
Several ways to write one-button start and stop of Siemens PLC
In production, due to factors such as installation environment, cost control, and ease of operation, one-button start and stop control will be used, such as motor control, valve control, etc. Today I will talk to you about several common writing methods. For the sake of intuitiveness and popularity, I will use LAD (
[Embedded]
Several ways to write one-button start and stop of Siemens PLC
Share the correspondence table between 20 PLC component numbers and Modbus number addresses
I have done Modbus RTU serial communication between a microcontroller and the following 20 PLCs. Now I would like to share the correspondence table between the input, output and register components of these 20 PLCs and their Modbus number addresses. Mitsubishi FX3G-40MR/ES-A, Siemens S7-200 CPU226 AC/DC/R
[Embedded]
Share the correspondence table between 20 PLC component numbers and Modbus number addresses
Explain the key points of learning Siemens PLC
Learning Siemens PLC is not as difficult as you think. It can be summarized in one sentence: for beginners, it is enough to roughly grasp the hardware composition, programming software, system instructions and program structure of PLC! Next, let us explain the key points of PLC learning one by one.
[Embedded]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号