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.
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
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- DSP C6000 Architecture
- Application of millimeter wave radar technology in barriers
- (Bonus 3) GD32L233 Review - Unboxing and showing off the big box
- CPLD
- Help, after the load power supply has been working for a period of time, the microcontroller will shut down automatically
- The silk screen is AA6B SOT23-6 package with 2.2UH inductor 3.7~4.2V boost to 5V
- Add uart6 driver
- How fast can electric vehicles be “fast charged”?
- 5G millimeter wave RF algorithm technology
- Share NFC universal card reader circuit diagram