Introduction to the working principle and working process of PLC

Publisher:飘然出尘Latest update time:2023-04-12 Source: elecfansKeywords:PLC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

How PLC works

PLC works in a "sequential scanning, continuous loop" mode. That is, when the PLC is running, the CPU performs periodic loop scanning according to the instruction step number (or address number) according to the program compiled by the user according to the control requirements and stored in the user memory. If there is no jump instruction, the user program will be executed sequentially from the first instruction until the program ends. Then it returns to the first instruction and starts the next round of scanning. In each scanning process, the sampling of input signals and the refreshing of output status must be completed.


A PLC scan cycle must go through three stages: input sampling, program execution and output refresh.


In the input sampling stage of PLC: firstly, the on/off status or input data of all input terminals temporarily stored in the input latch are read in sequence by scanning mode, and written into the corresponding input status register, i.e., the input is refreshed. Then the input port is closed and the program execution stage is entered.


During the program execution phase, the PLC scans and executes each instruction in the order in which the user program instructions are stored. After the corresponding calculations and processing, the results are written into the output status register. All contents in the output status register change as the program is executed.


Output refresh phase: When all instructions are executed, the on/off status of the output status register is sent to the output latch in the output refresh phase, and is output in a certain way (relay, transistor or thyristor) to drive the corresponding output device to work.


How PLC works

PLC working process PLC adopts

The working mode is "sequential scanning and continuous looping". This process can be divided into three stages: input sampling, program execution, and output refresh. The time required to scan and execute the entire process once is called a scanning cycle.

(1) In the input sampling phase, the PLC sequentially reads the on/off status or input data of all input terminals in a scanning manner and stores this status in the input image register, i.e., input refresh, and then enters the program execution phase. During program execution, the input status changes, but the content of the input image register does not change. It can only be read in the input processing phase of the next scan cycle.

(2) During the program execution phase, the PLC executes program instructions in the order of left first, right second, top first, bottom first. The process is as follows: the on/off status of the relevant components is read from the input image register and other component image registers, and logical operations are performed according to the user program, and the operation results are stored in the relevant image registers.

(3) After all instructions are executed, the on/off status of the output image register corresponding to each physical relay is transferred to the output register during the output refresh phase to control the on/off of each physical circuit breaker. This is the actual output of the PLC.


It can be seen from the working process of PLC that during the program execution phase of PLC, even if the input changes, the content of the input status register will not change immediately, and will have to wait until the next cycle input processing phase to change. The output signal temporarily stored in the output status register will be output to the output latch when a cycle ends, and then it becomes the actual CPU output. Therefore, the change of all input and output states requires a scan cycle. In other words, the input and output states are maintained for one scan cycle.


Keywords:PLC Reference address:Introduction to the working principle and working process of PLC

Previous article:Range of variable frequency motors
Next article:How big are two-phase motors? How to connect capacitors for two-phase motors?

Recommended ReadingLatest update time:2024-11-17 03:55

5 examples to help you get started with PLC step by step
PLC and frequency converter are the most commonly used devices in industrial control. They can be used alone or in close cooperation to achieve the purpose of automatic control. They are widely used. Today, let’s take a specific example: dual constant pressure towerless water supply system. This system is completed
[Embedded]
5 examples to help you get started with PLC step by step
Design of robot control based on PLC
With the continuous progress of social production and the accelerating pace of people's lives, people are constantly putting forward new requirements for production efficiency. Due to the rapid development of microelectronics technology and computing software and hardware technology and the continuous improvement of
[Industrial Control]
Design of robot control based on PLC
Siemens S7-1200PLC move operation move value instruction MOVE
In S7-1200PLC, MOVE instruction is often used to assign values ​​to memory or copy data from one memory to another memory. When this instruction performs data conversion, the source operand at the IN end is copied to the destination operand address of the OUT output. After the instruction is executed, the sour
[Embedded]
Siemens S7-1200PLC move operation move value instruction MOVE
Detailed explanation of Delta PLC + Jingyan inverter serial port 485 communication
Delta PLC and Jingyan inverter communicate via serial port 485, master-slave control detailed explanation #plc #electrician #automation #manufacturing #electrical
[Embedded]
Detailed explanation of Delta PLC + Jingyan inverter serial port 485 communication
Siemens PLC systems most commonly use memory cards
As I learn more about Siemens systems, I come into contact with more and more systems, including the 200, 300, 400 and 1200, 1500 series. The memory cards used in these systems are also different. Today I will briefly talk about the memory cards used in these systems. 1. The memory card used by 200 cpu is
[Embedded]
Siemens PLC systems most commonly use memory cards
PLC Counter Application Introduction
PLC Counter Application Find the counter operation in the basic instructions and click Add Count. The Q point of the counter is the output point, and the output is when the number of times is reached; the R point is the reset point; PV is the set value (number of times); CV is the current value
[Embedded]
PLC Counter Application Introduction
The difference between SCADA, DCS and PLC
The SCADA system, whose main functions are remote data collection and monitoring, is an indispensable basic system for industrial process automation and informatization, just like DCS and PLC. SCADA System SCADA is the abbreviation of Supervisory Control And Data AcquiSition System. The SCADA system
[Embedded]
The difference between SCADA, DCS and PLC
PLC communication based on PROFIBUS-DP
1 Introduction Fieldbus control system (FCS) replaces analog signals with digital signals to improve the reliability, accuracy and anti-interference ability of the system and extend the distance of information transmission. It is an open communication network, sometimes a fully distributed control system, a
[Industrial Control]
Latest Embedded Articles
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号