Compared with the general computer language, PLC programming language has obvious characteristics, it is different from the language, but also different from the general assembly language, it should be easy to write, but also easy to debug requirements. At present, there is no programming language that is compatible with all manufacturers' products. For example, Mitsubishi's products have their own programming language, and OMRON's products have their own language. But no matter what type of PLC, its programming language has the following characteristics:
1. Graphic instruction structure: the program is expressed by graphics, and the instructions are composed of different graphic symbols, which is easy to understand and remember. The operator has compiled the operational functions required in industrial control into symbolic graphics, and users combine these graphics according to their needs and fill in the appropriate parameters. In the logical operation part, almost all manufacturers use a ladder diagram similar to the relay control circuit, which is easy to accept. For example, Siemens also uses a control flow chart to express the control relationship, which uses the graphical symbols of binary logic elements, which is intuitive and easy to understand. More complex arithmetic operations, timing counting, etc., are generally also represented by reference to ladder diagrams or logic element diagrams, although the symbolism is not as good as the logical operation part, and they are also popular with users
2. Clear variable constant: the graph is equivalent to the operation code, which specifies the operation function, and the operand is filled by the user, such as: K400, T120, etc. PLC variables and constants and their value range are
It is clearly stipulated that it is determined by the product model and can be consulted in the product catalog manual.
3. Simplified program structure: The program structure of PLC is usually very simple, typical block structure, different blocks complete different functions, so that the debugger of the program has a clear concept of the control function and control sequence of the entire program.
4. Simplify application generation: the use of assembly language and language to write programs, to complete editing, compilation and connection of three, and the use of programming languages, only need to edit one, the rest is automatically completed, the entire editing is carried out under human-machine dialogue, does not require users to have advanced design capabilities.
5. Strengthen debugging means: whether it is assembler, or language program debugging, it is a headache for editors, and PLC program debugging provides complete conditions, the use of programming, the use of PLC and programming buttons, display and internal editing, debugging, monitoring, and with support, diagnosis and debugging operations are very simple.
In short, the PLC programming language is user-oriented, the user does not require advanced knowledge, does not need a long period of special training.
2 Form of programming language
This textbook uses two commonly used programming languages, one is ladder diagram, the other is mnemonic language table. Using ladder diagram programming, because it is intuitive and easy to understand, but requires a personal computer and the corresponding programming; The mnemonic form is easy to experiment with because it requires only a simple programmer rather than an expensive graphic programmer or computer.
Although some PLC also has a computer compatible C language, BASIC language, special language (such as Siemens GRAPH5, Mitsubishi MELSAP), as well as Boolean logic language, general computer compatible assembly language. In any case, each manufacturer's programming language can only be applied to our products.
Programming instructions: Instructions are codes or symbols that the PLC is told what to do and how to do it. In essence, the instructions are just some binary code, which is exactly the same as an ordinary computer. At the same time, PLC also has a compilation, it can compile some text symbols or graphic symbols into machine code, so the user sees the PLC instructions are generally not machine code but text code, or graphic symbols. Commonly used mnemonic statements use abbreviations and numbers of English words (which can be used in multiple languages) to represent each corresponding instruction. The commonly used graphic symbol is the ladder diagram, which is similar to the electrical schematic is a symbol, easy to be accepted by electrical workers.
Choose Xiamen control Smith after sale worry
Excellent product quality
Only cooperate with manufacturers of first-line brands in the industry
Imports/Products
Good pre-sale service
Communicated with customers repeatedly about product model, quality, price and delivery date
Work with the customer to determine the best solution
Address user concerns in advance
Business execution in place
Ordered products delivered on time
Make perfect delivery plan to ensure the time limit
Assist users to handle the acceptance procedures
Perfect after-sales service
During the warranty period, problems will only be replaced and not repaired
Never put a problem on the back of your head
Service hotline 7x24 hours service
Solemn promise
1. All the items sold by the company, module card parts, etc., the quality problems arising from normal use during the warranty period are replaced free of charge, and there is no evasion.
2. For materials and equipment that have not been discontinued beyond the warranty period, only the cost of relevant parts will be charged for quality problems.
3. Provide replacement models and equipment replacement process services for discontinued materials and equipment.
4. Customers have purchased materials and equipment, lifetime free upgrade system software, related technical information provided free of charge.
5. Visit the use of materials purchased by customers from time to time, and solve any problems in time.
6. The company hotline provides 24-hour service, and the questions raised by customers are answered within 1 hour.
7. Not done, the company spirit of "thoughtful service, responsible to the end" attitude, from the customer's point of view to solve the problem, with serious and rigorous enterprise style, dedicated to each customer service.
email:1583694102@qq.com
wang@kongjiangauto.com