Hollysys PLC - Introduction to the working principle and operation mode of PLC controller

Create Date: 2024-8-30 12:03:23|Source: HollySys/HollySys

How a PLC controller works

1. Scanning technology

When the PLC is put into operation, its working process is generally divided into three stages, namely input sampling, user program execution and output refresh. The completion of these three phases is called a scan cycle. Throughout the entire run, the PLC's CPU repeats the above three phases at a certain scanning speed.

1. Input sampling stage In the input sampling stage

The PLC reads all input statuses and data sequentially in a scanning manner and stores them in the corresponding cells in the I/O image area. After the input sampling is complete, it moves to the user program execution and output refresh phase. In both phases, even if the input state and data change, the state and data of the corresponding cells in the I/O image area do not change. Therefore, if the input is a pulsed signal, the width of the pulse signal must be greater than one scan period to ensure that the input can be read in any case.

2. User program execution stage

During the user program execution phase, the PLC always scans the user program in sequence from top to bottom (ladder diagram). When scanning each ladder diagram, the control circuit composed of each contact on the left side of the ladder diagram is always scanned first, and the control circuit composed of the contacts is logically operated in the order of first left and then right, first up and then down, and then according to the result of the logical operation, the state of the corresponding bit of the logic coil in the system RAM storage area is refreshed; Or refresh the state of the corresponding bit of the output coil in the I/O image area; or to determine whether to execute the special function instructions specified in the ladder.

That is, in the process of user program execution, only the state and data of the input point in the I/O image area will not change, while the state and data of other output points and software devices in the I/O image area or the system RAM storage area may change, and the ladder diagram ranked above, the program execution result will play a role in the ladder diagram of all coils or data used in the below; Conversely, the ladder below, the state or data of the refreshed logic coils can only be used for the program above it until the next scan cycle.

If the immediate I/O command is used during program execution, the I/O points can be accessed directly. Even if the I/O command is used, the value of the input process image register will not be updated, and the program will take the value directly from the I/O module, and the output process image register will be updated immediately, which is somewhat different from immediate input.

3. Output refresh stage

When the scanning user program is finished, the PLC enters the output refresh phase. During this period, the CPU flushes all output latch circuits according to the corresponding state and data in the I/O image area, and then drives the corresponding peripherals through the output circuits. At this time, it is the real output of the PLC.
Hollysys PLC - Introduction to the working principle and operation mode of PLC controller

How a PLC controller works

Although many names such as relays, timers and counters are often used in the ladder diagram programs used in PLCs, PLCs do not have these hardware physically, but use memory and program programming to do logic control and editing, and connect external mechanical devices through output components for physical control. Therefore, the hardware space required by the controller can be greatly reduced. In fact, the PLC executes the ladder diagram program line by line, first reading the ladder diagram code into the CPU in a scanning way, and finally performing the control operation. The whole scanning process consists of three steps, "Input Status Check", "Program Execution", and "Output Status Update" are described as follows:

Step 1 "Input Status Checking":P LC first checks the status of each point switch or sensor connected to the input component (1 or 0 means on or off), and writes its status to the corresponding position Xn in memory.

Step 2 "Program Execution": Extract the ladder diagram program into the CPU line by line, if the program execution needs to input the contact status, the CPU will directly query and take it out from the memory. The calculation result of the output coil is stored in the corresponding position in the memory, and is not reflected to the output Yn for the time being.

Step 3 "Output Status Update": Update the output status in Step 2 to the PLC output contact, and return to Step 1. These three steps are called the PLC scanning cycle, and the time required to complete is called the PLC reaction time, if the PLC input signal time is less than this reaction time, there is a possibility of misreading. After each program execution and before the next program execution, the output and input states will be updated once, so this mode of operation is called "program end regeneration" at the output and input terminals.
More on that
Hollysys signed a contract with Lysys for the integrated management platform project of smart tunnel of Linzhou-Changzhi Expressway in Henan Hollysys signed a contract with Lysys for the integrated management platform project of smart tunnel of Linzhou-Changzhi Expressway in Henan

Recently, Hollysys signed a contract for the comprehensive management platform project of smart tunnel of Linzhou-Changzhi Expressway in Henan Province. Linzhou to Changzhi Expressway is a traffic artery that crosses the Grand Canyon of Taihang Mountain, through Henan and Shanxi, with a total of 7 pairs (14) tunnels.

Hollysys OCS industrial optical bus control system was successfully applied in Sinopec project Hollysys OCS industrial optical bus control system was successfully applied in Sinopec project

On November 13, 2022, Zhong'an United Coal Chemical Branch came with exciting news that the 20,000 tons/year butene-1 plant produced qualified butene-1 products at 22 o'clock on the same day, and the one-time start-up was successful. The control system of the device adopts the innovative technology product "OCS Industrial Optical Bus Control ...

Hollysys DCS - Introduction to the hardware architecture of DCS distributed control system Hollysys DCS - Introduction to the hardware architecture of DCS distributed control system

DCS usually adopts a hierarchical and progressive structure, each level is composed of several subsystems, and each subsystem achieves a number of specific finite goals, forming a pyramid structure. Examining the hierarchical structure of DCS, DCS level and control management level are the two most basic links that make up DCS. Process control...

Hollysys DCS - Introduction to the hardware architecture of DCS Hollysys DCS - Introduction to the hardware architecture of DCS

Examining the hierarchical structure of DCS, DCS level and control management level are the two most basic links that make up DCS. The process control stage specifically realizes the decentralized control functions such as signal input, conversion, operation and output. The controls at the process control level vary in different DCS, ...

Hollysys released a new DCS control system Hollysys released a new DCS control system

Hollysys' safe and trustworthy DCS control system uses the controller K-CU11 for the K series large-capacity trusted controller module, which adopts advanced PowerPC architecture high-performance main processor and security components based on national cryptography algorithm, and has the security functions of static trusted start and dynamic trusted measurement. ...

Hollysys PLC - a component of the PLC control cabinet Hollysys PLC - a component of the PLC control cabinet

1. Open empty A master air switch that is the power control for the entire cabinet. 2. Power supply A 24VDC switching power supply. 3、PLC This should be chosen according to the needs of the project. If the scale of the project is small, the integrated PLC can be used directly; If the item ...

Hollysys successfully signed a contract with Luxi Chemical for a 1.2 million tons/year bisphenol A plant project Hollysys successfully signed a contract with Luxi Chemical for a 1.2 million tons/year bisphenol A plant project

Recently, Hollysys successfully signed a contract with Luxi Chemical Group Co., Ltd. (hereinafter referred to as Luxi Chemical) for a 1.2 million tons/year bisphenol A equipment project. The project is a key project in Shandong Province in 2021, which will not only greatly improve the competitiveness of Luxi Chemical polycarbonate in the industry, but also have a significant impact on China's phenol ...

Hollysys PLC - the six application functions of PLC Hollysys PLC - the six application functions of PLC

1. It is used for switching control The ability of PLC to manipulate switching quantities is very strong. The number of points in and out of the control, less than a dozen points, dozens of points, more can be hundreds, thousands, or even tens of thousands of points, because it can be networked, the number of points is almost unlimited, no matter how many points can be controlled, the control ...

Hollysys DCS - What is DCS distributed control system? Hollysys DCS - What is DCS distributed control system?

DCS is the English abbreviation of distributed control system (Distributed Control System), distributed control system is referred to as DCS, which can also be literally translated as "distributed control system" or "distributed computer control system". The decentralized control system is based on the microprocessor, and the control function is decentralized.

What are the characteristics of Hollysys PLC - PLC program? What are the characteristics of Hollysys PLC - PLC program?

1. Correctness (low debugging cost) First of all, the PLC program must be able to work correctly to meet the requirements of the actual control process. This is the essence of the PLC program, and if you don't do that, nothing else makes sense. 2. Reliability (low maintenance cost) Not only to ...

Hollysys DCS - Introduction to the main features of DCS Hollysys DCS - Introduction to the main features of DCS

(1) High reliability DCS is designed to be fault-tolerant, so that when a computer fails, it does not cause the system to lose other functions. In addition, because the tasks undertaken by the individual computers in the system are relatively simple, it is possible to adopt a specific structure and ...

Hollysys DCS - What are the characteristics of DCS? Hollysys DCS - What are the characteristics of DCS?

1. High reliability Because DCS disperses the system control function on each computer, and the system structure adopts a fault-tolerant design, the failure of one computer will not lead to the loss of other functions of the system. In addition, due to the fact that the tasks undertaken by the various computers in the system are comparatively ...

and Lisi PLC - the difference between PLC and inverter and Lisi PLC - the difference between PLC and inverter

1. The role is different A PLC (Programmable Logic Controller) is an electronic system designed for digital operations in an industrial environment. The inverter is the application of frequency conversion technology and microelectronics technology to control the AC motor by changing the frequency of the motor working power supply.

Hollysys DCS - DCS common communication faults and solutions Hollysys DCS - DCS common communication faults and solutions

01 Node bus failure The node bus material is usually a coaxial cable, so as long as there is a cable disconnected, the communication of all devices on the bus will be paralyzed, which will cause serious phenomena such as data loss, equipment stoppage and operation interruption, and may eventually directly or indirectly cause huge ...

Hollysys PLC - How to maintain the PLC control cabinet? Hollysys PLC - How to maintain the PLC control cabinet?

1. Data backup When carrying out maintenance, we must cut off the power, data backup between power outages is an important link, for the data that needs to be archived for a long time, you can back up the historical trend data to the mobile hard disk, and then turn off the Windows-based operating system (Note...

Hollysys DCS - the connection method between thermocouple and DCS Hollysys DCS - the connection method between thermocouple and DCS

1. The thermocouple uses a compensation wire, and there can be a node in the middle, but the corresponding compensation cable must be used to directly connect to the DCS thermocouple module, such as the LLMUX card in HONEYWELLTPS. Minimize nodes to reduce interference. In addition, in the DCS configuration, it is necessary to select the corresponding thermocouple model, and supplement the ...

Hollysys PLC - PLC is classified by function Hollysys PLC - PLC is classified by function

According to the different functions of PLC, PLC can be divided into three categories: low-grade, mid-range and high-end. (1) Low-grade PLC Low-grade PLC has basic functions such as logic operation, timing, counting, shifting, self-diagnosis, monitoring, etc., and can also have a small amount of analog input/output, arithmetic operation, math...

Hollysys helped China's first 20,000-ton green electricity to green hydrogen demonstration project be fully put into operation Hollysys helped China's first 20,000-ton green electricity to green hydrogen demonstration project be fully put into operation

On August 30, Sinopec announced that China's largest photovoltaic power generation direct production green hydrogen project, Xinjiang Kuqa Green Hydrogen Demonstration Project (hereinafter referred to as the Green Hydrogen Demonstration Project), was fully completed and put into operation, marking a breakthrough in the large-scale industrial application of green hydrogen in China. In this project, and ...

Hollysys released a new 100% localized system Hollysys released a new 100% localized system

On the morning of October 20, 2021, at the Epec Industrial Products Exhibition, Hollysys released a new 100% localized system - 'HOLLiAS MACS IC fully autonomous and controllable DCS system'. The system integrates the controller microkernel architecture independently developed by Lisi, embedded ...

Hollysys successfully signed the first 100 billion cubic meter gas field project in Bohai Bay to help achieve the "double carbon" goal Hollysys successfully signed the first 100 billion cubic meter gas field project in Bohai Bay to help achieve the "double carbon" goal

Recently, Hangzhou Hollysys Automation Co., Ltd. successfully signed the first 100 billion cubic meters of gas field project in Bohai Bay (1) - CNOOC Tianjin Branch Bozhong 19-6 condensate gas field phase I development project (hereinafter referred to as: Bozhong 19-6 project), and will provide PCS (DCS), ESD, FGS, ...

CATEGORIES BYPASS
Customer Service Center

Online Consultation:QQ


ContactContact

Contact: Manager Huang

Contact QQ: 3271883383

Contact number: 13522565663


Scan the code to add WeChat (please save the picture first on the mobile phone)

working hoursworking hours

Weekdays: 9:00-17:00

Holidays: Only emergencies are handled

Contact us

Contact us

Contact number QQ consultation
QQ consultation

3271883383

Company address
Back to top