Self-study PLC programming steps sharing

Publisher:HuanleLatest update time:2024-03-08 Source: elecfansKeywords:PLC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The scientific PLC programming steps are actually very simple, but most engineers often think it is simple and ignore many details. Ignoring details will inevitably lead to problems in the future. To avoid future problems, you can only follow the rules well. There is no order without rules. PLC programming also has its own rules. (For reference only)


The first step seems simple enough, but many engineers cannot do it. They think this step is a waste of time, or even only learn about the equipment through supplier training.


Reading the manual carefully is the first step in programming. First, you need to read the safety rules to know which actuators may cause harm to people, which mechanisms are most likely to collide, and how to solve the problem when danger occurs. These most fatal problems are in the safety rules. Why not read them? In addition, the characteristics, usage methods, and debugging methods of each component of the equipment are also in the manual. If you don’t read them, even if the program is correct, if the components are not debugged well, the equipment will not work. In addition, all circuit diagrams, pneumatic and hydraulic circuit diagrams, and assembly drawings are also in the manual. If you don’t read them, how can you know what kind of transformation can be done for each component?

According to the manual, check the I/O

Checking I/O is commonly known as "dotting". There are many ways to check I/O, but you must check them one by one according to the addresses provided in the manual, and check them under absolutely safe conditions. When checking the input points, the general input signals are nothing more than various sensors, such as capacitors, inductors, photoelectric, piezoresistive, ultrasonic, magnetic and travel switches. Checking these components is relatively simple. According to the component instructions, place the workpiece on the workstation, or move the actuator to check whether the sensor has a signal. Of course, different equipment may have different detection methods, which depends on the specific situation.

However, you must be extra careful when checking the output signal. If it is an electric drive product, the actuator driver must be powered on in a safe situation, especially under the premise of ensuring that the equipment will not be hit, to check whether the actuator can move. If it is a hydraulic or pneumatic actuator, the reversing valve must be powered on manually in a safe situation to control the actuator. When checking the output signal, no matter what the actuator drive method is, it must be based on the component manual. First, ensure the safety of the equipment and personnel. Note that not all equipment actuators can be powered on for testing, so sometimes individual output signals may not be tested manually. Whether it is an input or output device, when the sensor has a signal or the actuator drive device is powered on, it is necessary to check whether the I/O module indicator on the PLC is also on. In many devices, the input and output signals are connected to the PLC through the wiring terminal. Sometimes the indicator light of the wiring terminal has a signal, but it cannot be guaranteed that the corresponding address on the PLC has no signal connected due to the internal circuit of the connecting wire. Pay special attention to this.

After measuring the input and output signals, you should also record the measured address to ensure that the signal address is consistent with the instruction manual. If there is a difference, measure the device address again. If it is still inconsistent after multiple measurements, contact the device manufacturer first, because at this time, it cannot be guaranteed that the address provided by the manufacturer is correct.

49f547ca-69cd-11ee-939d-92fbcf53809c.jpg

Open the programming software and configure the hardware

Open the programming software, configure the hardware, and write the I/O address in the symbol table

Different PLCs use different programming software. However, for any software, the first step before programming is to configure the hardware, and establish the hardware configuration and corresponding communication configuration according to the actual PLC type. After the hardware configuration is completed, write the I/O address previously recorded on paper in the symbol table of the software. Due to different software, the definition of the symbol table may be different, but general software has this function, and this step is crucial. When writing the symbol table, not only should the absolute address of the input and output of the device be written correctly, but it is also best to name each address and add comments, which will be very convenient for subsequent programming. There is no need to query the absolute address every time when programming, just fill in the named name. Of course, this also depends on whether the software has this function.

Write a program flow chart

Before programming, be sure to write out the program's flowchart on the draft. A complete program should include the main program, stop program, emergency stop program, reset program and other parts. If the software allows, each program should be written in the form of "blocks", that is, one program is a block, and each block can be called as needed. PLC is best at handling sequential control. In sequential control, the main process is the core. Make sure that the established process is correct and check it carefully on the draft. If there is a problem with the main process, when the program is executed by the PLC, it is likely to cause a collision, damage the equipment or cause danger to personnel.

Writing programs in software

After ensuring that there are no problems with the main process, you can write the program in the software. In addition, you must also pay attention to the correctness of the stop, emergency stop and reset procedures, especially the stop and emergency stop procedures, which are the most important procedures related to personal safety and equipment safety and must not be underestimated. It must be ensured that under any circumstances, as long as the stop or emergency stop procedures are executed, the equipment will never cause harm to people.

4a148842-69cd-11ee-939d-92fbcf53809c.jpg

Debugging Programs

In the step of debugging the program, it can be divided into two aspects.

1. If conditions permit, or if you have strong logical ability, you can use the simulation function of the software to test first, but it is difficult to use software simulation to see whether the program is correct for many cumbersome programs. 2. Download the program to the PLC for online debugging. If the device does not move or an abnormal situation occurs during operation, do not modify the program first. It is likely that the sensor has not been debugged in place. If you are sure that the sensor is correct, then modify the program.

After debugging is completed, edit the program again

In the previous step of debugging, since the program has been modified, it is necessary to check or edit the program as a whole again, and then download the final program to the PLC.

Save Program

In this step, we need to pay attention to one question, that is, where should the program be saved? PC hard disk? Flash device? Mobile hard disk? Of course, none of these are allowed, as all these storage devices may be infected with viruses. Therefore, the program must and can only be burned to a CD. And there is another question, which program is burned? Previously, we have downloaded the final debugged and modified program to the PLC. If the PLC executes the program without any error, upload the program to the PC and burn it to the CD. All of the above is for safety.

Fill out the report

After completing the programming, you should fill out the final debugging report, recording the problems you encountered and some difficult problems of the program one by one. Because after a long time, you will forget some of the skills of the program, and it will also make it easier for other colleagues to understand the program you wrote.


Keywords:PLC Reference address:Self-study PLC programming steps sharing

Previous article:EtherCAT motion control: RTSys controller monitoring and setting principle
Next article:Introduction to Mitsubishi Electric SiC power devices of different voltage and power levels

Recommended ReadingLatest update time:2024-11-16 09:23

Programmable Controller PLC XC3-32RT-E Parameter Description
XC series PLC model description takes XC3-32RT-E as an example: XC3——serial number, 32——I/O points, RT——output type (R stands for relay/T stands for transistor), E/C——Indicates power supply (E indicates 220v AC power supply/C indicates 24v DC power supply) Expansion module model description, taking XC
[Embedded]
Basic steps in programming PLC
1 System Design 2 Design PLC ladder diagram program For elevator electrical control that uses PLC as the intermediate process control, after the circuit schematic and installation wiring diagram are designed and drawn, the PLC ladder diagram program corresponding to the circuit schematic must a
[Embedded]
Introduction to Siemens S7-200 SMART PLC programming software
The programming soft element of PLC is essentially a memory unit, and each unit has a unique address. In order to facilitate different programming functions, the memory unit is partitioned, so there are different types of programming elements. Soft elements are devices with certain functions inside the PLC. These de
[Embedded]
Introduction to Siemens S7-200 SMART PLC programming software
PLC programming skills, special function modules and touch screen
Programmable Controller (PC or PLC for short) is an electronic system for digital computing operations, specially designed for use in industrial environments. The programmable controller was developed based on electrical control technology and computer technology, and has gradually developed into a new ty
[Embedded]
PLC programming skills, special function modules and touch screen
Steps to run and debug plc
Many electrical novices are not sure how to start debugging after designing electrical control cabinets and PLC programs. Or some people have caused problems such as PLC burnout due to inappropriate debugging methods. So how should the designed electrical system be debugged? You can follow the following seven steps.
[Embedded]
Siemens S7-200PLC has integrated high-speed counting function
Siemens S7-200 PLC integrates high-speed counting function, which is a very important function of PLC. In the industrial field, pulse instruments, such as rotary encoders, are generally used to measure rotation speed and cycle. The frequency of such instruments is much greater than the acquisition frequency of PLC,
[Embedded]
Working principle of PLC programmer
Programmable Logic Controller, or PLC for short, is an electronic controller based on an electronic computer and suitable for industrial field work. It is derived from a relay control device, but unlike a relay device, it does not achieve control through the physical process of the circuit, but mainly relies on runn
[Embedded]
Reasons for the programmable controller PLC crashing during operation
Programmable controller PLC may crash during operation, which will cause unpredictable losses to industrial production. Therefore, we must first understand the cause of PLC crash and investigate the cause. Software or hardware errors may cause PLC crash. The following are introduced separately: 1. Hardware
[Embedded]
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号