Speak with authority, quality is trustworthy.

The interrupt function of PLC has what effect? How should understand -

by:Coolmay     2020-07-12
What's the use of PLC interrupt function? How to understand! Understand it

PLC controller interrupt function in understanding is interrupted, the first thing to know that PLC controller cycle of operation or scan cycle, it is necessary to say of PLC sequence control loop execution process, this is the premise of understanding the interrupt, must grasp, is divided into three parts, input, process, output processing,

1, input processing, programmable controller before the execution procedures, the programmable controller reads all input terminal of the ON/OFF state of the input image area, the execution of a program change even if the input, the contents of the input image area also won't change, when performing the next cycle of input processing read the changes.

2, process and content of PLC according to the instructions of the program memory, from the input image and the image of the other soft components area read all the ON/OFF state of soft component, and then from zero step began operation in order, and each time the results in writing to the image area. As a result, the soft components of image area with the execution of the program to gradually change the content, in addition, the output relay internal contact according to the contents of the output image area and to perform an action.

3, output, processing, all at the end of the instruction execution, the output Y in the image area, the ON/OFF state will be sent to the output latch memory, the programmable controller as the actual output.

the time required to perform as an action is also called scanning operation cycle time, so what is the connection interruption and scan cycle, interrupt is not full execution according to the order from top to bottom, but the interrupt program first run separately processing and output are not involved in the whole cycle operation immediately.

what is the function of interruption, we know the PLC scan cycle is very short, so it is hard to see how PLC controller sequence control execution process, here we might as well assume that scan cycle of 10 s of time, is to perform all the program needs to 10 s of time, there is a very simple program LD X0, OUT Y0, according to the above when X0 to ON, Y0 is not immediately have output, but the output until after 10 s, disconnect after X0, Y0 also not immediately shut down, all need to get after the scan is the result. So for us in the practical application of PLC is no used equipment couldn't work, then need to interrupt handling, USES the input interrupt function, input executed immediately. Actually PLC operation time is very short only a few milliseconds, fully able to meet this need, but some such as high-frequency pulse input, the capture of the pulse time in microsecond must be under the influence of cycle operation.

so if in a cycle to accomplish a lot of time ON/OFF state handling, must use the interrupt function. In we usually rarely use interrupt, even need PLC high-speed instructions with the interrupt function need not oneself write interrupt subroutine, such as high-speed counter with the method of interruption of high-speed pulses from a particular input relay for processing, so no matter how much computing time can be counted, counts the result of the comparison of special instruction or using high-speed counter output immediately, or for the high-speed counter count with high-speed counter interrupt way to perform a particular program.

is not adopted for high frequency pulse counting high-speed counter to count, for example, we use the interrupt function to count for the high-speed input, example as follows, from EI to FEND is the main program, from a pointer I101 ( The interruption of input X0 pointer) Began to IRET is interrupt subroutine, whenever the induction to the X1 is executed delay subroutine will numerical immediately transferred to the D10, thus avoiding the influence of PLC operation cycle.


Shenzhen Coolmay Technology Co., Ltd. guarantees to providing quality products and services.
Shenzhen Coolmay Technology Co., Ltd. aims to hire several additional experienced marketing professionals that can add to our existing talent-pool and help continue the steady growth of our business.
Shenzhen Coolmay Technology Co., Ltd. is a initial company that supports expertise in searching marketing solutions.
Shenzhen Coolmay Technology Co., Ltd. has unique staffs who will serve you with their best ideas by affording you with high-quality service.
Chat Online
Chat Online
Chat Online inputting...
Sign in with: