The plc programming is generally divided into the following steps:
1. Preparation before programming
The preparation work before programming is to understand the full function, scale, control mode, type and quantity of input/output signals, interface with special functions, relationship with other devices, content and method of communication, etc. Establish a holistic concept for the entire control system. Then further familiar with the controlled object, the control object and control functions can be classified according to the response requirements, signal usage or control area, determine the physical location of the detection device and the control device, and understand the form, function and scale of each detection signal and control signal. The relationship between.
2. Design block diagram
According to the overall requirements of the software design specification and the specific conditions of the control system, determine the basic structure of the application program, draw a block diagram of the program structure according to the program design standard, and then draw the functional flow chart of each functional unit according to the process requirements.
3. Write the program
The control program is written one by one according to the designed block diagram. The program should be annotated in time during the writing process.
4. Program debugging
When debugging, start with each functional unit, set the input signal, and observe the change of the output signal. After the debugging of each functional unit is completed, debug all the programs and debug the interface of each part until it is satisfied. Program debugging can be done in the lab or on site. If the test is performed in the field, the programmable controller system should be isolated from the live signal, and the external power supply of the input/output template can be cut off to avoid causing mechanical equipment to operate. Errors are found first during program debugging, and then error correction is performed. The basic principle is to "focus on finding errors and focus on correcting mistakes."
5. Write the program manual
In the specification, the control requirements of the program, the structure of the program, the flowchart, and the like are usually given as necessary, and the steps of the installation operation of the program are given.
Newest Vape,New E-Cigarette,Electronic Cigarette Vaporizer Pen,Custom Vaporizer Pen
Guangzhou Yunge Tianhong Electronic Technology Co., Ltd , https://www.e-cigarettesfactory.com