Hollysys PLC - What is the use of the PLC interrupt function?

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

PLC understands the interrupt function in this way, when understanding the interrupt, we must first be clear about the PLC operation cycle or the scanning cycle, it is necessary to say that the PLC sequential control cycle execution process, which is the premise of understanding the interrupt, must be mastered, divided into three parts, input processing, program processing, output processing
Hollysys PLC - What is the use of the PLC interrupt function?
  1. Input processing, before the programmable controller executes the program, the ON/OFF state of all input terminals of the programmable controller is read into the input image area, and even if the input changes during the program execution, the content of the input image area will not change, and the change is read when the input processing of the next cycle is executed.

2. According to the instruction content in the program memory, the program processing and plc read out the ON/OFF status of each software component from the input image area and the image area of other software components, and then start the operation from step 0 in turn, and write the results obtained each time into the image area. Therefore, the image area of each soft component gradually changes its contents as the program is executed, and the internal contacts of the output relay perform actions according to the contents of the output image area.

3. Output processing, after all instructions are executed, the ON/OFF state in the output Y image area will be transmitted to the output latch memory, which is used as the actual output of the programmable controller.

The time required to execute an action is the operation period, also called the scanning time, so what is the relationship between the interrupt and the scanning cycle, the interrupt is not in the complete execution from top to bottom, but the interrupt program is preferentially run separately and is an immediate output that does not participate in the whole cycle operation.

What is the function of the interruption, we know that the plc scanning cycle is very short, so it is difficult for us to see the plc sequential control execution process, here we might as well assume that the scanning cycle is 10s time, that is, it takes 10s to execute all the programs, there is a very simple program LD X0, OUT Y0, according to the above figure when X0 is ON, Y0 is not immediately output, but wait until 10s to output, after disconnecting X0, the same Y0 is not immediately closed, It needs to be scanned before the result is obtained. Then in our practical application, the PLC will not be able to work without using the equipment, and then it is necessary to interrupt the processing, and the input interrupt function is used to execute the input immediately. In fact, the operation time of PLC is very short, only a few milliseconds, which can fully meet the needs, but some times such as high-frequency pulse input and pulse capture in microseconds must be affected by periodic operation.

Therefore, if you want to complete the ON/OFF state process many times in a cycle, you must use the interrupt function. For example, the high-speed counter uses the interrupt mode to process the high-speed pulse from the specific input relay, so no matter how much the operation time is, the counting result is either output immediately using the special comparison instruction of the high-speed counter, or the counting value of the high-speed counter is interrupted by the high-speed counter to execute a specific program processing.

For example, from EI to FEND is the main program, starting from pointer I101 (the interrupt pointer of input X0) to IRET is an interrupt subroutine, and whenever the rising edge of X1 is sensed, the subroutine is executed to immediately transfer the value to D10, so as to avoid the influence of the plc calculation cycle.
Hollysys PLC - What is the use of the PLC interrupt function?

More on that
Hollysys PLC - PLC serial communication knowledge Hollysys PLC - PLC serial communication knowledge

1. What is serial communication? Serial is a very versatile protocol for device communication on a computer (not to be confused with Universal Serial Bus or USB). Most computers contain two serial ports based on RS232. The serial port is also an instrument ...

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 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 - the main factor of DCS signal interference Hollysys DCS - the main factor of DCS signal interference

Resistive coupling interference In the process of work, many factories ignore the problem of wire aging. When a variety of signal lines are transmitted together, other transmission signals will be affected due to the aging and leakage of the insulation material on the wire, and other transmission signals will be interfered with. ...

and Lisi PLC - the difference between PLC control system and relay control system and Lisi PLC - the difference between PLC control system and relay control system

(1) From the point of view of control methods The control logic of the electrical control system adopts hardware wiring, and the series connection or well connection of the electrical mechanical contact is combined into the control logic, and the connection is complex, large in size, and in large power consumption, and it is difficult to change or increase the function after the system is formed. Other than that...

Hollysys went to Shaanxi Traffic Control Group for a discussion and exchange Hollysys went to Shaanxi Traffic Control Group for a discussion and exchange

In order to further strengthen the comprehensive cooperation with Shaanxi Traffic Control Group, on August 11, 2022, Xu Yue, Chairman and Co-President of Hollysys Group, visited Zhang Wenqi, Secretary of the Party Committee and Chairman of Shaanxi Traffic Control Group, and the two sides conducted in-depth exchanges and cooperation on topics such as business ecology and smart highways.

Hollysys - Contribute to China's green development "Yizhuang Power" Hollysys - Contribute to China's green development "Yizhuang Power"

Facing China's "double carbon" strategic goals, the Beijing Economic and Technological Development Zone is guiding a large number of enterprises to explore the implementation plan of "carbon peak" and "carbon neutrality", and strive to build a number of green factories, green products and green supply chains. Recently, enterprises in the zone and Lisi Group signed a contract for the first time in China to use CO (dioxide...

Hollysys PLC - What are the three large quantities in PLC? Hollysys PLC - What are the three large quantities in PLC?

1. The switching quantity is also called the logical quantity, which means that there are only two values, 0 or 1, ON or OFF. It is the most commonly used control, and controlling it is the advantage of PLC, and it is also the most basic application of PLC. The purpose of switching control is to follow the current input combination with the historical input according to the switching quantity.

Hollysys DCS - DCS system operation problem analysis and preventive measures Hollysys DCS - DCS system operation problem analysis and preventive measures

1. Communication network failure: communication network faults are generally easy to occur at the contact bus and local bus, or caused by wrong address identification. 2. Node bus failure: The transmission medium of the node bus is generally coaxial cable, some use token signal transmission mode, and some use ...

Hollysys PLC - the control function of PLC Hollysys PLC - the control function of PLC

(1) Computing function The computing functions of a simple PLC include logic operation, timing and counting functions; The operation functions of ordinary PLC also include data shift, comparison and other calculation functions; More complex arithmetic functions include algebraic operations, data transmission, etc.; There are also analog PIDs in large PLCs.

Hollysys PLC - what are the commonly used networking methods of PLC? Hollysys PLC - what are the commonly used networking methods of PLC?

1 Universal serial port module Based on the serial port communication module to realize the network connection, the network structure is shown in Figure 1, the form of computer link is adopted, the corresponding settings are carried out in the configuration software of the host computer, and the communication can be carried out with multiple PLCs without programming, and the FXlS of Mitsubishi ...

Hollysys PLC - the use of PLC serial port communication Hollysys PLC - the use of PLC serial port communication

Serial communication is done using 3 wires: (1) ground, (2) sending, and (3) receiving. Since serial communication is asynchronous, ports are capable of sending data on one wire and receiving data on the other. Other threads are used for handshakes, but are not required. Serial communication is the heaviest ...

Hollysys was once again certified by the China Software Industry Association Hollysys was once again certified by the China Software Industry Association

Recently, identified by the Beijing Software and Information Service Industry Association, after a strict audit and evaluation process, in accordance with the relevant provisions of the national "Software Enterprise Evaluation Standards" and "Software Product Evaluation Standards", the China Software Industry Association announced the latest batch of "software enterprises" list, Beijing Heli ...

Hollysys PLC - Precautions in the operation of PLC (1) Hollysys PLC - Precautions in the operation of PLC (1)

First, the working environment (1) Temperature The PLC requires that the ambient temperature is 0-55oC, and it cannot be placed under the components with large heat generation during installation, and the surrounding ventilation and heat dissipation space should be large enough. (2) Humidity In order to ensure the insulation performance of PLC, the relative humidity of the air ...

Hollysys PLC – How to calculate the analog quantity in PLC Hollysys PLC – How to calculate the analog quantity in PLC

1、-10—10V。 When the voltage of -10V-10V is converted to F448-0BB8Hex (-3000-3000) at 6000 resolution; At 12000 resolution, it is converted to E890—1770Hex (-6000—6000). 2、0—10V。 At a voltage of 0-10V, at a resolution of 12000 ...

Hollysys PLC - nine precautions for the use of PLC Hollysys PLC - nine precautions for the use of PLC

1. PLCZ self-fault judgment In general, PLCs are extremely reliable devices with a very low failure rate. The probability of hardware damage such as the CPU of the PLC or software running errors is almost zero; If the PLC input point is not caused by strong current intrusion, it will hardly be damaged; PLC output relay ...

The characteristics of Hollysys LK series PLC are introduced in detail The characteristics of Hollysys LK series PLC are introduced in detail

LK is a programmable controller (PLC) product launched by Hollysys for medium and high-performance control fields. It fully integrates the advantages of DCS and PLC, adopts high-performance analog processing technology, miniaturized structural design, open industry standards, and a universal system platform, so that ...

Hollysys PLC - Introduction to the functions and application fields of PLC Hollysys PLC - Introduction to the functions and application fields of PLC

1. The function of PLC PLC is a general industrial automatic control device with microprocessor as the core, integrating computer technology, automatic control technology and communication technology, which has high reliability, small size, strong function, simple program design, flexible and universal and maintenance methods.

Hollysys DCS - the selection, design and debugging of DCS system Hollysys DCS - the selection, design and debugging of DCS system

1. The configuration of the system and controller should focus on reliability and load rate (including redundancy). The communication load rate must be controlled within a reasonable range, and the load rate of the controller must be balanced as much as possible to avoid the occurrence of "high load" problems. 2. The distribution of system control logic should not be too much.

Hollysys DCS control system configuration process Hollysys DCS control system configuration process

1. Preliminary preparations Engineering configuration is operated at the engineer station, and before engineering configuration, it is necessary to have the necessary tools and information, specifically: Tools: refers to the hardware environment and software environment used in engineering configuration, usually refers to the ...

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