What are the characteristics of Hollysys PLC - PLC program?

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

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 be right, but also to be reliable. You can't have problems every now and then in three days.

Reliability reflects the long-term stability of the PLC program, which is also the basic requirement for the PLC program. Some PLC programs can work correctly under normal working conditions or legal operation, but after abnormal working conditions (such as temporary power failure, and power on soon) or illegal operation (such as some buttons are pressed out of order, or several buttons are pressed at the same time or pressed many times in a row), the program can not work normally. This kind of program is not very reliable, or unstable, and it is a bad program. A good PLC program can identify the occurrence of abnormal working conditions, and can connect it with normal conditions, so that the program can adapt to a variety of situations, and a good PLC program can refuse illegal operations without leaving "traces". Only legal operations, i.e., preventative robust programming, are accepted. Interlocking is a common means of rejecting illegal operation, and this method is commonly used in relay circuits, and PLCs and system integrators can also inherit this method.

3. Readability (low learning cost)

The designed program is required to be readable, easy to understand, easy to debug, easy for others to read and use your program, and easy to maintain; If necessary, the program can also be used as a standard template for easy promotion.

To make the program readable:

1) The design context of the program should be as clear as possible, and the structure should be hierarchical;

2) Modularization of the functional layer, or design using an object-oriented approach;

3) Use some standard designs and universal designs;

4) The variable layer should be programmed with symbolic names as much as possible;

5) Parameters are set immediately before they are used (set and use);

6) I/O address allocation should be regular, easy to remember and understand;

7) The use of internal devices should also be regular, and the address allocation of the same function should maintain a certain discontinuous "fault margin" (for example, the address allocation of the X function is used to K, then the address allocation of the next function should not start from K+1, but from K+N) to prevent function changes;

8) If necessary, do some annotation work; Readability is something to keep in mind at the beginning of programming. It's not easy to do. Because in the process of program debugging, the increase or decrease of instructions and the change of the use of internal devices may make the original clearer program become a little chaotic. Therefore, there is a certain leeway for debugging to increase or decrease during the design, and then tidy up after the debugging is completed, so that the designed program has higher quality.

4. Briefness (low storage cost)

Making the PLC program as short as possible is also a goal to be pursued.

Short procedures save user storage; In many cases, it is also possible to save time during execution, improve the response speed to input, and improve the readability of the program. Whether the program is short or not can generally be measured by the number of instructions used in the program, and the number of instructions used is small, and the program is naturally short. In general, it is necessary to pay attention to the program structure, extract the commonality of the code segments that implement the same function, and use subroutines, interrupts and other methods to reduce the amount of code; Use process control instructions to simplify procedures, reduce the workload at a certain point in time, do not do what is not needed, and do less if you can do as little as possible; In a small aspect, it is also necessary to replace the weak instructions with a single processing capacity with strong instructions with multi-processing capabilities (use large-level data to replace small-level data or data structures, such as instructions that replace bit-operands with bytes, words, and double-word operands, fault words, status words, control words, communication words, etc.); The same operation that uses indirect addressing instead of a continuous address storage unit; Use block transfer instructions instead of multiple byte, word, and double word transfer instructions, which can be summarized as "batch" operations) and pay attention to the order of instructions, etc., taking into account the readability of the program.

5. Time-saving (low operating cost)

Keeping a program short may save you time in running a program, but being short is not exactly the same thing as saving time.

Because the time to run the program is related to the number of instructions the program has, it is also related to what instructions are used, that is, it is related to the program algorithm. The execution time is different for different PLC algorithms. In addition, there are instructions that are executed at a different time when the logical condition ON is executed at a different time than when the command is off. In addition, due to the use of process control instructions, not all instructions are executed in the program, etc. Therefore, the calculation of the time to run the program is more complicated. However, it is necessary to require that the average time is small and the maximum time is not too long. This can improve the response speed of Beijing Tiantuo Sifang Technology Co., Ltd., which is the core distributor (first-level agent) and system integrator of Siemens Industrial Automation and Drive Group. The key to saving time is to use process control instructions well. Determine some instructions that must be executed according to the situation, as the necessary part, and the rest can be carried out according to the procedure, selectively executed, or designed for some time-sharing work, so as to avoid the maximum time being too long, etc.

6. Easy to modify (low variable cost)

To make the program easy to modify, that is, to be easy to modify.

One of the characteristics of PLCs is that they are convenient and can be flexibly adapted to various situations. The way to do this is by modifying or redesigning the program. Redesigning programs is used to change the situation of PLC process requirements, not only to reprogram but also to reallocate I/O. In most cases, you don't need to reprogram the program, just make some changes. This requires that the program be easily modifiable and easy to modify. Easy to change is flexible, which requires only a few changes to be made to achieve the purpose of changing parameters or changing actions. 1) The method of indirect assignment should be used for parameter setting as much as possible, and the symbol name should be used for constant parameter values as much as possible, so that the name can be known; 2) The control uses intermediate memory (such as M, W) as the medium and the middle layer as much as possible to isolate the direct coupling of I/O in logic and facilitate the change of logic; 3) Try to realize the function plug-in module block, so that users can "freely configure" to achieve on-demand addition, addition and use. In the process of designing PLC programs, the above requirements should be taken into account and balanced at the same time, and the gains outweigh the losses.
What are the characteristics of Hollysys PLC - PLC program?




More on that
Hollysys debuted at the 13th Berlin International Rail Transit Exhibition Hollysys debuted at the 13th Berlin International Rail Transit Exhibition

On September 20, 2022, Berlin time, the 13th Germany Berlin International Rail Transit Exhibition (InnoTrans 2022) opened at the Berlin International Exhibition Center in Germany. Following the 2018 exhibition, Hollysys once again appeared at the Berlin International Railway Exhibition (hereinafter referred to as the Berlin Exhibition) ...

HollySys PLC – 8 common error types of PLC HollySys PLC – 8 common error types of PLC

Various brands of PLCs have a self-diagnosis function, but the trick of PLC repair is to make full use of this function to analyze and then pinpoint the problem. Sorted out the 8 common types of errors that PLC repairmen need to know when the PLC presents abnormal alarms. 1. CPU abnormality ...

The main characteristics of Hollysys LE series PLC The main characteristics of Hollysys LE series PLC

LE series is a new generation of high-performance small and medium-sized PLC products launched by Hollysys, which is suitable for small and medium-sized industrial equipment control and distributed long-distance monitoring applications. LE-PLC combines the compact structure of small PLC products with the abundant functional advantages of medium-sized PLC products, and can support up to 20 local IOs or long ...

Hollysys PLC - Introduction to the classification of PLC according to the structure and form Hollysys PLC - Introduction to the classification of PLC according to the structure and form

According to the structural form of PLC, PLC can be divided into two categories: integral type and modular type. (1) Integral PLC The integral PLC is a centralized power, CPU, I/O interface and other components in a chassis, which has the characteristics of compact structure, small size and low price. Small PLC ...

Hollysys PLC - What are the selection methods of PLC? Hollysys PLC - What are the selection methods of PLC?

1. Budget for input and output (I/O) points When budgeting I/O points, the appropriate margin should be considered, usually based on the calculated number of input and output points, and then add 10%-20% of the expandable, and after the margin, it will be used as the budget data of input and output points. When ordering in practice, it is also necessary to rely on the manufacturer's ...

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 ...

Common fault parts and maintenance of Hollysys PLC Common fault parts and maintenance of Hollysys PLC

1. Lack of motivation It may sound simple, but it's good to check the simple stuff first. Thoroughly inspect all power connections and cables for damage that could cause a short circuit. Make sure your power supply is functioning properly. Use a voltmeter to check if the grounding and voltage are correct. 2. Bad ...

Hollysys signed a strategic cooperation agreement with Jinan Iron and Steel International in Jinan Hollysys signed a strategic cooperation agreement with Jinan Iron and Steel International in Jinan

Hangzhou Hollysys Automation Co., Ltd. (hereinafter referred to as Hanghe) and Jinan Iron and Steel Group International Engineering Technology Co., Ltd. (hereinafter referred to as Jinan Iron and Steel International) signed a strategic cooperation agreement in Jinan. Luan Yuandi, Deputy General Manager of Jinan Iron and Steel International, Sun Jiaying, Director of the Automation Division, and Liu Xinjie, Director of the Automation Office...

Hollysys PLC - What are the applications of PLC in CNC machine tools? Hollysys PLC - What are the applications of PLC in CNC machine tools?

1. The application form of PLC in CNC machine tools PLC is used in CNC machine tools, and there are usually two forms: one is called built-in: the other is called free-standing. Built-in PLC is also known as integrated PLC, the CNC system in this way, at the beginning of the design of the NC and PLC combined ...

Hollysys assisted the successful construction and operation of the largest natural gas deep processing base in Xinjiang Hollysys assisted the successful construction and operation of the largest natural gas deep processing base in Xinjiang

On August 16, 2021, the Tarim Oilfield Natural Gas Ethane Recovery Project, the largest natural gas deep processing base in Xinjiang (1), a key project of PetroChina, was successfully completed and put into operation, with stable operation and the production of qualified ethane products. Tarim Oilfield Natural Gas Ethane Recovery Project ...

Hollysys DCS - Introduction to DCS grounding classification Hollysys DCS - Introduction to DCS grounding classification

In general, DCS control systems require two types of grounding: protective ground and working ground (logical, shielded, etc.). For systems equipped with safety barrier explosion protection measures, such as those used in the chemical industry, intrinsically safe premises are also required. 2.1 Protected areas (CG, Cabinet Grounding...)

Hollysys PLC - PLC is classified according to function Hollysys PLC - PLC is classified according to 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 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 PLC - the design specification of PLC program Hollysys PLC - the design specification of PLC program

(1) Select the appropriate PLC model and I/O points, and select the special function module when there are special function requirements. (2) Familiar with the selected PLC programming instructions and compilation software. (3) Carry out soft component planning, including internal relays, holding relays, data registers, ...

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 PLC - the basic structure of PLC controller is introduced Hollysys PLC - the basic structure of PLC controller is introduced

PLC is essentially a kind of computer dedicated to industrial control, and its hardware structure is basically the same as that of a microcomputer, and its basic composition is as follows: 1. Power supply The power supply of the PLC plays a very important role in the whole system. If you don't have a good, reliable power system that is ...

Hollysys DCS - What are the four contents of DCS spare parts management? Hollysys DCS - What are the four contents of DCS spare parts management?

DCS spare parts In the process of using the DCS control system, its management is more important. The requirements of general DCS spare parts management are summarized in four aspects: storage, inspection, preparation for use, and use. 1. Storage DCS system, spare module storage should meet the requirements ...

Hollysys automation solutions Hollysys automation solutions

Hollysys Automation provides automation solutions for many fields.   Intelligent TCM solutions In order to make the drug achieve the harmony and unity of the doctor's peace of mind, the pharmacist's formula, and the patient's peace of mind, higher requirements are put forward for the pharmacy environment and hospital management. But...

Hollysys PLC - Classification and application of PLC Hollysys PLC - Classification and application of PLC

1. Switch logic control Switching logic control is the basis of PLC. It is the first use case and the most extensive of all. Replace the previous relay circuit control and realize logic sequence control; It can be used for the control of stand-alone equipment, and can also be used for group control and ...

Hollysys DCS - How to deal with DCS system failure? Hollysys DCS - How to deal with DCS system failure?

1. View the data on the monitoring screen When the following situations occur, it means that there is a problem with the control system, and the microcomputer maintenance personnel should be notified immediately for maintenance, and the operator should go to the site to deal with it. (1) Frequently changing data does not change for a long time, and several or all data do not ...

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