Differences between MCU and PLC

Publisher:脑力风潮Latest update time:2013-02-23 Source: 21IC Keywords:MCU  PLC  IC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Comparison between MCU and PLC

To understand the similarities and differences between MCU and PLC, we must first clarify what is MCU and what is PLC. In this regard, it may be helpful for us to briefly review the development history of computers. According to the original definition of computer experts, the computer system consists of five parts: control unit (CU), arithmetic operation unit (ALU), memory, input device (Input), and output device (Output). The CU or ALU of early computers (transistor or integrated circuit, excluding vacuum tubes) consisted of one or more circuit boards. The CU and ALU were separate. With the improvement of integration, the CU and ALU were combined to form a central processing unit (CPU). Then, the CPU was integrated into a single integrated circuit to produce an MPU or MCU, and MPUs such as Intel4004, 8008, 8080, 8085, 8086, 8088, and Z80 appeared. Since then, the development of MPU has produced two branches. One branch is developing towards high performance, high speed and large capacity. Typical chips include Intel80186, 286, 386, 486, 586, P2, P3, P4, etc., with speeds ranging from 4.7MHz to the current 3.2GHz. The other branch is developing towards multi-functions, integrating all memories (ROM, PROM, EPROM, EEPROM, FLASH ROM, SRAM, etc.) and input/output interfaces (Timer/Counter, PWM, ADC/DAC, UART, IIC, SPI, RTC, PCA, FPGA, etc.) into one integrated circuit to become SOC (System On a Chip). In my humble opinion, this is the single-chip computer widely used today, referred to as a single-chip microcomputer. This branch can be said to have a wide variety of varieties, with bit widths ranging from 8 bits to 32 bits, pin counts ranging from 6 to hundreds, operating frequencies ranging from tens of KHz to hundreds of MHz, and architectures including both CISC and RISC, which are countless. Commonly used ones include MCS-51 series, MCS-96 series, PIC series, AVR series, ARM7/9 series, TMS320 series, MSP430 series, many MOTOROLA microcontrollers and so on.

At this point, we can divide the development of computer core processors into three stages: board-level CPU, chip-level MPU and SOC.

What is PLC? The full name of PLC is Programmable Logic Controller. When it was first introduced to China, it was abbreviated as PC. Later, IBM-PC was widely used, and PC became synonymous with personal computer, and then it was changed to PLC. PLC also has another meaning, Power Line Carrier.

PLC is a product, but this product is a bit special. Before the control program is downloaded, it does not have any control function, that is, a PLC without an application is useless. PLC is actually a universal control platform designed for industrial environments. It must be secondary developed to achieve the ultimate control purpose. Therefore, it also requires the cooperation of program editing/debugging software.

PLC is an intelligent product. What solution should be used for its core controller? Board-level CPU is definitely not an option. MPU also needs several integrated circuits. For example, Z80 MPU requires Z80MPU, PIO, CTC, SIO, EPROM, SRAM, etc. These integrated circuits are installed on a circuit board. This is an early single-board computer. This solution is too large and not suitable for modern requirements. Therefore, it is most appropriate to use a single-chip microcomputer as the core controller of PLC.

From this we can conclude that:

1.PLC is a product based on a single-chip microcomputer, which is an integrated circuit. The two are not comparable. [page]

2. Single-chip microcomputers can form a variety of application systems, from micro, small to medium and large. PLC is a special case of single-chip microcomputer application system.

3. PLCs from different manufacturers have the same working principle, similar functions and indicators, certain interchangeability, guaranteed quality, and programming software is moving towards standardization. This is the basis for PLCs to be widely used. However, single-chip microcomputer application systems are like the Eight Immortals crossing the sea, each showing their magical powers, with a wide range of functions and uneven quality, making it difficult to learn, use and maintain.

Finally, from an engineering perspective, let’s talk about the selection of PLC and single-chip microcomputer systems;

1. For single projects or projects with very few repetitions, adopting PLC solution is a wise and quick way, with high success rate, good reliability, and less trouble, but the cost is higher.

2. For large-scale supporting projects, the use of single-chip microcomputer systems has the advantages of low cost and high efficiency, but this requires considerable R&D strength and industry experience to operate efficiently. The best method is to embed the single-chip microcomputer system into the PLC function, which can greatly simplify the development time of the single-chip microcomputer system, ensure performance, and ensure efficiency.

The Difference Between PLC and MCU

Seeing netizens discussing the difference between PLC and MCU, I would like to say a few words: PLC is actually a ready-made single-chip (MCU has a wide range of) system.

You can think of the ladder diagram of PLC 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 a few machine codes. The ladder diagram just makes it easier for users to use.

Similarly, MCS-51 microcontrollers can also be used for 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. An industrial system used by our company is made using MCS-51 microcontrollers, but with the addition of DSP, it can already meet our requirements (our equipment is slow and mainly logic control, but the number of points is not small, 128 points of I/O!!), and it also uses ladder diagram programming. We convert our ladder diagram into C51 and then use KEIL's C51 to compile it. Have you noticed that different models of PLCs use different CPUs?!

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 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 either).

The above are just some of my humble opinions. Please correct me if I am wrong. But please don’t hit me or scold me! I just want to discuss with you all!!!

Many people think that PLC is very mysterious, but in fact, PLC is very simple. Its internal CPU is fast, but its other functions are not as good as 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, and an internal timer is sufficient. If you want to improve reliability, adding a watchdog timer is enough.

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. 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 internally. In fact, the main work of designing a PLC is to develop a program that interprets the ladder diagram language.

Keywords:MCU  PLC  IC Reference address:Differences between MCU and PLC

Previous article:What are the characteristics of a microcontroller?
Next article:Selected recruitment topics for microcontroller electronics companies

Recommended ReadingLatest update time:2024-11-16 19:46

PLC and electrical knowledge points illustrated introduction
In recent years, with the development of PLC, PLC has been applied to the field of industrial automation control, such as chemical plants, large logistics companies, agricultural irrigation, clothing factories and various machine controls are PLC systems. Coupled with the development of human-machine interface and r
[Embedded]
PLC and electrical knowledge points illustrated introduction
What is the application of PIC microcontroller in temperature transmitter?
introduction A/D converters are often used in the design of intelligent instruments. Among the commonly used A/D converters, 7135 is the most widely used. It has 41/2-bit A/D conversion accuracy, strong anti-interference ability, and low price. It is mainly used for the measurement and display of detection parameters.
[Microcontroller]
What is the application of PIC microcontroller in temperature transmitter?
Renesas Electronics' New Li-ion Battery Management IC Extends Battery Life
Renesas Electronics, a global leading supplier of semiconductor solutions, recently announced the launch of the fourth-generation lithium-ion battery management chip, providing high accuracy and service life. The ISL78714 provides accurate cell voltage and temperature monitoring, as well as cell balancing and extensiv
[Automotive Electronics]
Renesas Electronics' New Li-ion Battery Management IC Extends Battery Life
Application Analysis of Automation System Based on PLC
Abstract: The feed industry is a very important hub connecting multiple industries such as agriculture, breeding and planting, animal husbandry, and agricultural and sideline product processing. The feed industry used to be manual, unable to accurately control the production process, the production model was ineffic
[Embedded]
Description of the USB (D12) data communication process between PC and MCU
When communicating with netizens about the development experience of D12, I found that some netizens were confused about the process of data exchange between PC application software and MCU. They did not understand how PC application software sent data to MCU and how MCU sent data to PC application software through D12
[Microcontroller]
XS128 MCU Experiment: Reading DIP Switch Values
#include /* common defines and macros */ #include "derivative.h" /* derivative-specific definitions */ /************************************************************ //Function: Read the status of the DIP switch of port PORTA and display it through the LED light of port B. //This is the third program of mine //Has
[Microcontroller]
[51 MCU Quick Start Guide] 4.4.1: Python serial port receives magnetometer data and performs least squares ellipsoid fitting
STC15F2K60S2 16.384MHz Keil uVision V5.29.0.0 PK51 Prof. Developers Kit Version:9.60.0.0 Python 3.8.11 (default, Aug 6 2021, 09:57:55) :: Anaconda, Inc. on win32 References: Note: Python reads serial port data and saves it to a local txt file - Big Head Engineer's Note Least squares fitting - basic principles - Tie
[Microcontroller]
[51 MCU Quick Start Guide] 4.4.1: Python serial port receives magnetometer data and performs least squares ellipsoid fitting
Design of equivalent sampling oscilloscope based on microcontroller
Abstract: This paper introduces the method of equivalent sampling of high-frequency signals (1MHz ~ 80MHz) based on the precision clock generation circuit of the microcontroller system, and designs and implements a simple digital oscilloscope with an analog bandwidth of 1Hz ~ 80MHz. Keywords: MCU equivalent sampling di
[Test Measurement]
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号