What is PLC? Classification and Functions Explained in Detail!

1. Definition and Classification of PLC

PLC (Programmable Logic Controller) is a new generation of general-purpose industrial control device based on microprocessor technology, integrating computer technology, automatic control technology, and communication technology. It uses user-friendly “natural language” programming for control processes, making it suitable for industrial environments, easy to understand, convenient to operate, and highly reliable.

PLC is developed from relay sequential control and is a general automatic control device centered around a microprocessor.

What is PLC? Classification and Functions Explained in Detail!

1. Definition of PLC

A Programmable Logic Controller is a digital operation electronic system designed specifically for applications in industrial environments.

It uses programmable memory to store instructions for executing logical operations, sequential control, timing, counting, and arithmetic operations, and controls various types of machinery or production processes through digital and analog inputs and outputs.

Programmable Logic Controllers and their related peripheral devices should be designed based on the principles of easy integration with industrial control systems and ease of functional expansion.

What is PLC? Classification and Functions Explained in Detail!

2. Classification of PLC

PLC products come in various types, with different specifications and performance. PLCs are generally classified based on their structural form, functional differences, and the number of I/O points.

2.1. Classification by Structural Form

According to the structural form of PLCs, they can be divided into two categories: integrated and modular.

(1) Integrated PLC

An integrated PLC consolidates components such as power supply, CPU, and I/O interfaces into a single chassis, as shown in the figure. It features a compact structure, small size, and low cost. Small PLCs generally adopt this integrated structure.

The integrated PLC consists of a basic unit (also known as the host) with different I/O points and expansion units. The basic unit contains the CPU, I/O interfaces, expansion ports connected to I/O expansion units, and interfaces connected to programmers or EPROM writers; the expansion unit contains only I/O and power supply, without a CPU. The basic unit and expansion unit are generally connected by flat cables. Integrated PLCs can also be equipped with special function units, such as analog units and position control units, to expand their functionality.

What is PLC? Classification and Functions Explained in Detail!

(2) Modular PLC

Modular PLCs consist of several separate modules for each component, such as CPU modules, I/O modules, power supply modules (some included in the CPU module), and various functional modules. Modular PLCs consist of a frame or baseboard and various modules, which are inserted into sockets on the frame or baseboard, as shown in the figure.

This modular PLC is characterized by flexible configuration, allowing different system scales to be selected as needed, and is easy to assemble, expand, and maintain. Medium and large PLCs generally adopt a modular structure.

What is PLC? Classification and Functions Explained in Detail!

Some PLCs combine the characteristics of both integrated and modular types to form what is known as a stacked PLC. The CPU, power supply, and I/O interfaces of a stacked PLC are also independent modules, but they are connected by cables, and each module can be stacked layer by layer. This not only allows for flexible system configuration but also enables a compact design.

2.2. Classification by Function

Based on different functions, PLCs can be classified into three categories: low-end, mid-range, and high-end.

(1) Low-end PLC

Low-end PLCs have basic functions such as logical operations, timing, counting, shifting, self-diagnosis, and monitoring, and may also have a small number of analog inputs/outputs, arithmetic operations, data transfer, comparison, and communication functions. They are mainly used for logical control, sequential control, or single-machine control systems with limited analog control.

(2) Mid-range PLC

Mid-range PLCs have all the functions of low-end PLCs, along with stronger analog input/output capabilities, arithmetic operations, data transfer, comparison, number system conversion, remote I/O, subroutine, and communication networking functions. Some may also add interrupt control, PID control, and other functions, suitable for complex control systems.

(3) High-end PLC

High-end PLCs have all the functions of mid-range PLCs, plus additional capabilities for signed arithmetic operations, matrix operations, bitwise logical operations, square root operations, and other special function calculations, as well as tabulation and table transfer functions. High-end PLCs have stronger communication networking capabilities and can be used for large-scale process control or form distributed network control systems, thus achieving factory automation.

2.3. Classification by I/O Points

Based on the number of I/O points, PLCs can be classified into small, medium, and large categories.

(1) Small PLC

Small PLCs have fewer than 256 I/O points, with a single CPU and an 8-bit or 16-bit processor, and a user memory capacity of less than 4KB. For example: Mitsubishi FX0S series.

(2) Medium PLC

Medium PLCs have 256 to 2048 I/O points, with dual CPUs and a user memory capacity of 2 to 8KB.

(3) Large PLC

Large PLCs have more than 2048 I/O points, with multiple CPUs and 16-bit or 32-bit processors, and a user memory capacity of 8 to 16KB.

In the world, PLC products can be divided into three major schools based on region: American products, European products, and Japanese products. The PLC technologies in the US and Europe were developed independently under isolated conditions, resulting in significant differences between American and European PLC products. Japanese PLC technology was introduced from the US, inheriting certain aspects of American PLC products, but Japan primarily focuses on small PLCs. The US and Europe are known for medium and large PLCs, while Japan is renowned for small PLCs.

Common PLCs are shown in the table below:

What is PLC? Classification and Functions Explained in Detail!

What is PLC? Classification and Functions Explained in Detail!

What is PLC? Classification and Functions Explained in Detail!

2. Functions and Application Areas of PLC

PLC is designed and developed by integrating the advantages of relay contactor control with the flexibility and convenience of computers, which gives PLC many characteristics that other controllers cannot compare with.

1. Functions of PLC

PLC is a general industrial automatic control device developed based on microprocessor technology, integrating computer technology, automatic control technology, and communication technology. It has a series of advantages such as high reliability, small size, strong functionality, simple program design, flexibility, and ease of maintenance, making it widely used in metallurgy, energy, chemical, transportation, and power industries, becoming one of the three pillars of modern industrial control (PLC, robots, and CAD/CAM). Based on the characteristics of PLC, its functional forms can be summarized into the following types.

(1) Switch Logic Control

PLC has powerful logical operation capabilities, enabling various simple and complex logical controls. This is the most basic and widely used application area of PLC, replacing traditional relay contactor control.

(2) Analog Control

PLC is equipped with A/D and D/A conversion modules. The A/D module can convert field analog quantities such as temperature, pressure, flow, and speed into digital quantities, which are then processed by the microprocessor in the PLC (the microprocessor can only process digital quantities), and then control; or converted back into analog quantities through the D/A module to control the object being controlled, thus enabling PLC to control analog quantities.

(3) Process Control

Modern medium and large PLCs are generally equipped with PID control modules for closed-loop process control. When a variable in the control process deviates, the PLC can calculate the correct output according to the PID algorithm, thereby controlling and adjusting the production process to keep the variable at the set value. Currently, many small PLCs also have PID control functionality.

(4) Timing and Counting Control

PLC has strong timing and counting capabilities, providing users with dozens or even hundreds or thousands of timers and counters.

The timing duration and counting values can be set by users when writing user programs or by operators on-site through programmers, thus achieving timing and counting control. If users need to count high-frequency signals, they can choose high-speed counting modules.

(5) Sequential Control

In industrial control, PLC can implement sequential control using step instruction programming or shift register programming.

(6) Data Processing

Modern PLCs can perform arithmetic operations, data transfer, sorting, and table lookup operations, as well as data comparison, data conversion, data communication, data display, and printing, demonstrating strong data processing capabilities.

(7) Communication and Networking

Most modern PLCs adopt communication and networking technologies, with RS-232 or RS-485 interfaces for remote I/O control. Multiple PLCs can network and communicate with each other, and external devices can exchange programs and data with one or more programmable controllers, such as program transfer, data document transfer, monitoring, and diagnostics. Communication interfaces or processors complete program and data transfer according to standard hardware interfaces or proprietary communication protocols.

2. Application Areas of PLC

Currently, PLCs are widely used in various industries such as steel, petroleum, chemical, power, building materials, machinery manufacturing, automotive, light textile, transportation, environmental protection, and cultural entertainment, with usage generally summarized into the following categories.

(1) Logic Control of Switch Quantities

This is the most basic and widely used application area of PLC, replacing traditional relay circuits to achieve logical control and sequential control; it can be used for controlling single devices as well as multi-machine group control and automated assembly lines, such as injection molding machines, printing machines, stapling machines, combination machine tools, grinding machines, packaging production lines, and electroplating production lines.

(2) Analog Control

In industrial production processes, many continuously changing quantities, such as temperature, pressure, flow, liquid level, and speed, are analog quantities. To enable PLC to process analog quantities, A/D and D/A conversions must be implemented. PLC manufacturers produce matching A/D and D/A conversion modules for analog control.

(3) Motion Control

PLC can be used for controlling circular or linear motion. In terms of control configuration, early PLCs directly connected switch quantity I/O modules to position sensors and actuators; now, dedicated motion control modules are generally used to drive single-axis or multi-axis position control modules for stepper motors or servo motors.

Major PLC manufacturers worldwide almost all have motion control capabilities, widely used in various machinery, machine tools, robots, elevators, and other applications.

(4) Process Control

Process control refers to closed-loop control of analog quantities such as temperature, pressure, and flow, with very wide applications in metallurgy, chemical, heat treatment, and boiler control. As an industrial control computer, PLC can compile various control algorithm programs to complete closed-loop control. PID regulation is a commonly used adjustment method in general closed-loop control systems, and medium and large PLCs have PID modules; currently, many small PLCs also have this functional module. PID processing generally runs a dedicated PID subroutine.

(5) Data Processing

Modern PLCs have mathematical operations (including matrix operations, function operations, logical operations), data transfer, data conversion, sorting, table lookup, and bit operations, enabling data collection, analysis, and processing. This data can be compared with reference values stored in memory, thus completing certain control operations; it can also be transmitted to other intelligent devices using communication functions or printed and tabulated. Data processing is generally used in large control systems, such as unmanned flexible manufacturing systems; it can also be used in process control systems, such as large control systems in papermaking, metallurgy, and food industries.

(6) Communication and Networking

PLC communication includes communication between PLCs and communication between PLCs and other intelligent devices. With the development of computer control, factory automation networks have developed rapidly, and PLC manufacturers pay great attention to PLC communication functions, each launching their own network systems.

Recently produced PLCs all have communication interfaces, making communication very convenient. Each manufacturer has launched their own network systems. Recently produced PLCs all have communication interfaces, making communication very convenient.

3. Basic Structure and Working Principle of PLC

As an industrial control computer, PLC has a structure similar to that of ordinary computers; however, due to different usage scenarios and purposes, there are some structural differences.

1. Hardware Composition of PLC

The basic structural block diagram of the PLC hardware system is shown in the figure.

What is PLC? Classification and Functions Explained in Detail!

In the figure, the PLC host consists of the CPU, memory (EPROM, RAM), input/output units, peripheral I/O interfaces, communication interfaces, and power supply. For integrated PLCs, all these components are housed within the same casing.

For modular PLCs, each component is independently packaged, referred to as modules, and connected together through a frame and cables.

Each part of the host is connected via power buses, control buses, address buses, and data buses, and certain external devices are equipped based on the actual control objects to form different PLC control systems.

Common external devices include programmers, printers, EPROM writers, etc. PLCs can be configured with communication modules to communicate with host computers and other PLCs, forming distributed control systems.

The following sections introduce each component of the PLC and its functions to help users further understand the control principles and working processes of PLCs.

(1) CPU

The CPU is the control center of the PLC, coordinating the orderly operation of the PLC under its control, thus achieving control over various field devices. The CPU consists of a microprocessor and a controller, capable of performing logical and mathematical operations, coordinating the work of various parts of the control system.

The role of the controller is to ensure that all components of the microprocessor operate in an orderly manner, with its basic function being to read instructions from memory and execute them.

(2) Memory

PLC is equipped with two types of memory: system memory and user memory. System memory is used to store system management programs, which users cannot access or modify.

User memory is used to store compiled application programs and working data states. The portion of user memory that stores working data states is also known as the data storage area, which includes input/output data image areas, timer/counter preset values and current values, and buffers for storing intermediate results.

The memory of PLC mainly includes the following types:

(1) Read-Only Memory

(2) Programmable Read-Only Memory

(3) Erasable Programmable Read-Only Memory

(4) Electrically Erasable Programmable Read-Only Memory

(5) Random Access Memory

(3) Input/Output (I/O) Modules

① Switch Quantity Input Module

Switch quantity input devices include various switches, buttons, sensors, etc. The input types of PLC can generally be DC, AC, and AC/DC. The power supply for the input circuit can be provided externally, and some can also be supplied internally by the PLC.

② Switch Quantity Output Module

The output module’s function is to convert the control signals output by the CPU, which are TTL levels, into signals required to drive specific devices in the production field, thus driving the actions of actuators.

(4) Programmer

The programmer is an important external device for PLC, allowing users to input programs into the PLC’s user program memory, debug programs, and monitor the execution process. Programmers can be structurally divided into the following three types.

(1) Simple Programmer

(2) Graphical Programmer

(3) General Computer Programmer

(5) Power Supply

The power supply unit’s function is to convert external power sources (220V AC power) into internal working voltages. The externally connected power supply is converted into the working power required by the PLC’s internal circuits (DC 5V, ±12V, 24V) through a dedicated switch-mode power supply within the PLC, and provides 24V DC power for external input components (for input endpoints only). The power supply for driving PLC loads is provided by the user.

(6) Peripheral Interfaces

The peripheral interface circuit is used to connect handheld programmers or other graphical programmers, text displays, and can form a control network for the PLC through peripheral interfaces. PLCs can connect to computers via RS-485 interfaces using PC/PPI cables or MPI cards, enabling programming, monitoring, networking, and other functions.

2. Software Composition of PLC

The software of PLC consists of system programs and user programs.

The system program is designed and written by the PLC manufacturer and stored in the PLC’s system memory, which users cannot directly read or modify. The system program generally includes system diagnostic programs, input processing programs, compilation programs, information transfer programs, and monitoring programs.

The user program is the program compiled by users using the PLC’s programming language according to control requirements. In PLC applications, the most important aspect is to write user programs using the PLC’s programming language to achieve control objectives.

Since PLCs are specially developed devices for industrial control, their main users are electrical technicians. To meet their traditional habits and capabilities, the main programming languages of PLCs adopt simpler, more understandable, and more intuitive specialized languages compared to computer languages.

1. Graphical Instruction Structure

2. Clear Variable Constants

3. Simplified Program Structure

4. Simplified Application Software Generation Process

5. Enhanced Debugging Tools

3. Basic Working Principle of PLC

The working mode of PLC scanning is mainly divided into three stages: input sampling stage, user program execution stage, and output refresh stage, as shown in the figure.

What is PLC? Classification and Functions Explained in Detail!

1. Input Sampling Stage

In the input sampling stage, the PLC reads all input states and data sequentially in a scanning manner and stores them in the corresponding units in the I/O image area. After the input sampling is completed, it transitions to the user program execution and output refresh stages. During these two stages, even if the input states and data change, the states and data in the I/O image area do not change.

Therefore, if the input is a pulse signal, the width of that pulse signal must be greater than one scanning cycle to ensure that the input can be read under any circumstances.

2. User Program Execution Stage

In the user program execution stage, the PLC always scans the user program (ladder diagram) in a top-down order. When scanning each ladder diagram, it first scans the control circuit composed of various contacts on the left side of the ladder diagram, performing logical operations on the control circuit composed of contacts in a left-to-right and top-to-bottom order; then, based on the results of the logical operations, it refreshes the state of the corresponding bit in the system RAM storage area for that logic coil, or refreshes the state of the corresponding bit in the I/O image area for that output coil, or determines whether to execute the special function instructions specified by that ladder diagram.

In the user program execution process, only the input points in the I/O image area do not change their states and data, while other output points and soft devices in the I/O image area or system RAM storage area may change, and the execution results of the ladder diagrams above will affect those below that use these coils or data; conversely, the logic coils’ states or data refreshed by the ladder diagrams below can only take effect on the ladder diagrams above in the next scanning cycle.

3. Output Refresh Stage

After the user program scanning is completed, the PLC enters the output refresh stage. During this period, the CPU refreshes all output latch circuits according to the states and data in the I/O image area, and then drives the corresponding external devices through the output circuit. This is when the PLC truly outputs.

Input/Output Lag Phenomenon

From the working process of the PLC, the following conclusions can be drawn:

1. The program is executed in a scanning manner, and there is a theoretical lag in the logical relationship between input/output signals. The longer the scanning cycle, the more severe the lag.

2. The scanning cycle includes not only the time occupied by the three main working stages (input sampling stage, user program execution stage, output refresh stage) but also the time occupied by system management operations. Among them, the execution time of the program is related to the length of the program and the complexity of the instruction operations, while other factors remain relatively constant. The scanning cycle is generally in the nanosecond range.

3. When executing the program for the nth time, the input data relied upon is the scanning value X from the sampling stage of that scanning cycle, while the output data is based on the output value Y from the previous scan (n-1) and the current output value Yn; the signal sent to the output terminal is the final result Yn after executing all calculations.

4. Input/output response lag is not only related to the scanning method but also to the arrangement of program design.

Thank you for your attention to Power Forum. For more electrical knowledge, please return to the public account and click on the article review!

Source: This article is sourced from the internet. We focus on sharing, and the copyright belongs to the original author.

What is PLC? Classification and Functions Explained in Detail!What is PLC? Classification and Functions Explained in Detail!Click “Read the Original” to join the Power Forum Electrical VIP Resource Library!

Leave a Comment