Speak with authority, quality is trustworthy.

5 working process of PLC program loop scanning explanation -

by:Coolmay     2020-07-10
1

CPU self-checking phase CPU self-checking including CPU from diagnostic testing and monitoring of reset timers.

in the diagnostic testing, to detect the state of PLC module, CPU if abnormal immediate diagnosis and treatment, fault signal is given at the same time, light up the CPU on the front panel LED indicators. When a fatal error, the CPU was forced to STOP, STOP the execution procedure. The CPU as diagnostic tests will help to prompt discovery or fault early warning system, improve the reliability of the system.

monitoring timer is also called WDT watchdog timer, it is a hardware within the CPU clock, time each scanning is to monitor PLC. CPU run a set of regulations before the scan time, each scan cycle to monitor the scanning time is more than a specified value. So that you can avoid the PLC in the process of executing programs into dead circulation, or due to PLC controller to execute programs unscheduled system failure, leading to system paralysis. If the program is running normal in each scan cycle of internal processing stage to reset (WDT Reset) 。 If the program is run wrong into an infinite loop, the WDT not reset and trigger the timeout overflow in time, the CPU will give alarm signal or stop working. The WDT technology is an effective measure to enhance the reliability of the system.

2 communication processing stage

3 read input

at read input stage, PLC to scan all the input terminal, and the on/off state at the input in the corresponding to the input image register, set the value of the input image to register. Since then, the input image register isolation with the outside world, no matter how changes in peripheral inputs, the input image will not change the contents of a register. The input state changes can only be read input of the next cycle scan cycle were picked up. So that you can guarantee in a cyclical scan cycle using the same state of the input signal. Therefore, attention should be paid to the input signal is greater than the width of a scan cycle, otherwise it may cause the loss of the signal.

4 executable program stage programmable controller of the user program is composed of several instruction, instruction in sequence in the memory. When PLC execute a program in the run mode, the CPU to the user program in order to scan. If a program expressed in ladder diagram, the press after the first down, from left to right in order to perform a detailed application instructions. Each scan to an instruction, the state of the input signals are needed to read from the input image register, rather than directly use the input terminal of the on/off state. In the process of execution of user programs, according to the instruction to do the corresponding operation or process, each time the result of the operation is not directly to the output terminal immediately drive external load, but the result will be written to the output image register first. Behind the values in the output image register can be used to read instructions.

5 refresh output stage after perform the user program, enter the output refresh stage. Programmable controller to send on/off state of the output image register to the output latch, drives through the output terminal user output device or load, realize the control function. The value of the output latch remained till the next refresh the output.

at the end of the output refresh stage, CPU scan cycle to the next cycle.


is emerging as one of the most popular plc manufacturers, moving beyond its plc controller price benefits, with conclusive scientific evidence suggesting the positive role play in programmable control systems.
As manufacturers we are determined to be the very best in plc manufacturers, regardless of the size, pedigree or inclinations of our competitors.
The stability of the system, controllability of the plc controller price process, and mobility of the machines provide with a flexible and reliable plc manufacturers system.
Shenzhen Coolmay Technology Co., Ltd. expects to reach the desired profits in the first year and does not anticipate serious cash flow problems.
Shenzhen Coolmay Technology Co., Ltd. must adopts new technology and internal procedures to increase responsiveness and mitigate costs going forward.
Chat Online
Chat Online
Chat Online inputting...
Sign in with: