Fault diagnosis method based on PLC IO module
By observing the indicator light status and digital tube display of the PLC IO module, combined with the use of the Web management interface and IDE, the existing fault diagnosis methods have poor adaptability and low diagnostic accuracy under complex operating conditions, achieving efficient and accurate Troubleshooting and repairing reduces system costs.
Patent Information
- Application Number
- CN202411598228.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-02-18
AI Technical Summary
The existing fault diagnosis method based on PLC IO module is poorly adaptable under complex and variable operating conditions. The diagnostic accuracy is limited by the sensor sensitivity and the frequency of data acquisition. It has a large calculation amount and high cost, and lacks multivariate synthesis. Analytical ability can easily lead to false positives or missed reports.
By observing the status of the indicator lights on the IO module, check the digital tube display on the PLC CPU unit, log in to the PLC system's web management interface to find the fault report, use the IDE to open the fault diagnosis window to view the fault information, determine the cause of the fault based on the collected information and take the Repair accordingly.
It realizes a quick understanding of the working status of the PLC IO module, displays the system status and error codes in real time, supports remote fault diagnosis, in-depth analysis of software problems, and systematic repair measures, improves the accuracy and efficiency of fault diagnosis, and reduces system cost and complexity.
Smart Images

Figure CN119472601A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of automatic control, and in particular to a fault diagnosis method based on a PLC IO module. Background Art
[0002] In the field of industrial automation, the stability and reliability of the programmable logic controller (PLC) as the core control device is directly related to the normal operation of the entire production process. PLC exchanges data with field equipment through input and output (IO) modules to achieve precise control of production equipment. In industrial automation systems, programmable logic controllers (PLCs) and their input and output (IO) modules play a vital role, responsible for connecting sensors, actuators and other peripherals to achieve precise control of production processes. With the rise of Industry 4.0 and smart manufacturing concepts, the requirements for the reliability and stability of PLC systems are getting higher and higher. The performance of PLC IO modules directly affects the accuracy of data acquisition, the execution efficiency of control instructions, and the response speed of the entire system.
[0003] In the existing fault diagnosis methods based on PLC IO modules, the current fault diagnosis technology often relies on preset fault models and rules, and has poor adaptability to complex and changeable actual working conditions; at the same time, the diagnostic accuracy is limited by the sensitivity of the sensor and the frequency of data acquisition, and it is difficult to capture instantaneous subtle faults; in addition, some diagnostic algorithms have large computational complexity and high requirements on processor performance, which increases the cost and complexity of the system; finally, the existing fault warning mechanisms are mostly based on single parameter threshold judgment, lacking the ability to comprehensively analyze multiple variables, which may lead to false alarms or missed alarms. Therefore, a fault diagnosis method based on PLC IO modules is provided. Summary of the invention
[0004] The purpose of the present invention is to provide a fault diagnosis method based on a PLC IO module to solve the problems raised in the above background technology. In the existing fault diagnosis methods based on PLC IO modules, the current fault diagnosis technology often relies on preset fault models and rules, and has poor adaptability to complex and changeable actual working conditions; at the same time, the diagnostic accuracy is limited by the sensitivity of the sensor and the frequency of data acquisition, and it is difficult to capture subtle faults that occur instantaneously; in addition, some diagnostic algorithms have large computational complexity and high requirements on processor performance, which increases the cost and complexity of the system; finally, most of the existing fault warning mechanisms are based on single parameter threshold judgment, lack the ability to comprehensively analyze multiple variables, and may lead to the occurrence of false alarms or missed alarms.
[0005] To achieve the above object, the present invention provides a fault diagnosis method based on a PLC IO module, comprising the following steps: S1. Observe the indicator light status on the IO module; S2. Check the digital tube display on the PLC CPU unit; S3. Log in to the Web management interface of the PLC system and find the fault report section; S4. Use IDE to open the fault diagnosis window to view fault information; S5. Determine the cause of the failure based on the collected information and take appropriate measures to repair it.
[0006] As a further improvement of the technical solution, in S1, the specific steps of observing the status of the indicator light on the IO module are: S2.1. Turn on the PLC power supply and observe the indicator light on the IO module; S2.2. Record the status of each indicator light; S2.3. Compare the status of the indicator light under normal working conditions to determine whether there is any abnormality.
[0007] As a further improvement of the technical solution, in S2.3, the specific judgment rule for comparing the state of the indicator light under normal working state is: A steady red indicator light indicates a module failure; The green indicator light is always on, indicating that the module is working properly; The flashing yellow indicator light indicates that the module communication is interrupted; An off light indicates the module is not powered or connected.
[0008] As a further improvement of the technical solution, in S2, the specific steps of checking the digital tube display on the PLC CPU unit are: S3.1. Confirm that the CPU unit is properly powered and in operating mode; S3.2. Observe the code displayed on the digital tube and refer to the error code table in the PLC user manual to understand the meaning of the current displayed code; S3.3. If any abnormal code is displayed, record it for subsequent analysis.
[0009] As a further improvement of the technical solution, in S3.2, the code displayed on the digital tube is observed, and the error code table in the PLC user manual is referred to to understand the specific distinction rules of the meaning of the current display code: Displaying "0000" indicates that the system is operating normally; Displaying "E001" indicates a memory error; Displaying "E002" indicates a communication error; "E003" displayed indicates an I / O module error.
[0010] As a further improvement of the technical solution, in S3, the specific steps of logging into the Web management interface of the PLC system and searching for the fault report part are as follows: S4.1. Use a computer to connect to the PLC network; S4.2. Open the web browser and enter the IP address of the PLC in the address bar to access the Web management interface; S4.3. Enter your username and password to log in; S4.4. Find and open the "Status", "Log" and "Fault Report" options in the navigation menu; S4.5. Read and record any error messages, warnings, and abnormal events; S4.6. Export the fault report for further analysis.
[0011] As a further improvement of the technical solution, in S4, the specific steps of using the IDE to open the fault diagnosis window to view the fault information are: S5.1. Install an IDE compatible with PLC on the computer; S5.2. Connect the PLC device to the IDE; S5.3. Select “Fault Diagnosis” in IDE; S5.4. Check all warning and error messages listed in the diagnostic window, analyze the information, and locate the source of the fault.
[0012] As a further improvement of the technical solution, in S5.4, all warning and error messages listed in the diagnostic window are checked, and the information is analyzed. The specific positioning rules for locating the fault source are as follows: Error code "F001" indicates a hardware failure; Error code "F002" indicates a software error; Error code "F003" indicates a configuration error.
[0013] As a further improvement of the technical solution, in S5, the specific steps of determining the cause of the fault according to the collected information and taking corresponding measures to repair the fault are: S6.1. Repair the fault according to the determined fault cause; S6.2. After completing the repair, thoroughly test the system to confirm that the problem has been resolved; S6.3. Prepare a fault handling report, including the fault phenomenon, diagnosis process, measures taken and final results; S6.4. Archive the troubleshooting report for future reference when similar problems occur.
[0014] As a further improvement of the technical solution, in S6.1, according to the determined fault cause, the specific steps of repairing the fault are: S6.11. When a hardware failure occurs, turn off the PLC power supply, disconnect the faulty component, prepare a spare hardware component, and install the spare component in the same position. Restart the PLC system, observe the indicator light status and digital tube display, and ensure that there is no new error information. S6.12. When a software error occurs, open the IDE, load the program code of the current project, check the program code line by line, find the part that causes the error, modify the timer settings, adjust the I / O address allocation, update the communication protocol, save the modified program code, re-upload the program code to the PLC, and restart the system; S6.13. When a configuration error occurs, check whether the IP address is set correctly, whether the subnet mask is set correctly, and whether the gateway address is set correctly. If an error is found, modify the settings and save them.
[0015] Compared with the prior art, the present invention has the following beneficial effects: 1. In this fault diagnosis method based on PLC IO module, by observing the indicator light on the IO module, the working status of the module can be quickly understood. The digital tube on the CPU unit can display the system status and error code in real time, helping technicians to understand the system operation status in time. Through the Web management interface, technicians can remotely access the PLC system and perform fault diagnosis without going to the site in person.
[0016] 2. In this fault diagnosis method based on PLC IO module, the IDE can be used to deeply analyze program code and system settings to find potential software problems. According to the determined cause of the fault, systematic repair measures are taken to ensure that the problem is effectively solved. By archiving fault handling reports, experience can be accumulated, fault diagnosis and repair methods can be continuously optimized, and the overall maintenance level can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 The figure is a flow chart of the overall method of the present invention. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Example
[0019] See also Figure 1As shown, this embodiment provides a fault diagnosis method based on a PLC IO module, comprising the following steps: S1. Observe the indicator light status on the IO module; In this example, the specific steps to observe the indicator status on the IO module are as follows: S2.1. Turn on the PLC power supply and observe the indicator light on the IO module; S2.2. Record the status of each indicator light; S2.3. Compare the status of the indicator light under normal working conditions to determine whether there is any abnormality.
[0020] In this example, the specific judgment rule for comparing the status of the indicator light under normal working conditions is: A steady red indicator light indicates a module failure; The green indicator light is always on, indicating that the module is working properly; The flashing yellow indicator light indicates that the module communication is interrupted; An off light indicates the module is not powered or connected.
[0021] Specifically, by observing the indicator light status on the IO module, turning on the PLC power supply and recording the status of each indicator light, and then comparing it with the normal working status, it is possible to preliminarily determine whether the system is abnormal. This series of steps not only ensures the safety of operation, but also provides a basis for quickly locating the faulty module through detailed records and standard comparisons, thus laying the foundation for subsequent fault diagnosis and repair work.
[0022] S2. Check the digital tube display on the PLC CPU unit; In this example, the specific steps to view the digital tube display on the PLC CPU unit are: S3.1. Confirm that the CPU unit is properly powered and in operating mode; S3.2. Observe the code displayed on the digital tube and refer to the error code table in the PLC user manual to understand the meaning of the current displayed code; In this example, observe the code displayed on the digital tube and refer to the error code table in the PLC user manual to understand the specific rules for distinguishing the meaning of the current displayed code: Displaying "0000" indicates that the system is operating normally; Displaying "E001" indicates a memory error; Displaying "E002" indicates a communication error; "E003" displayed indicates an I / O module error.
[0023] S3.3. If any abnormal code is displayed, record it for subsequent analysis.
[0024] Specifically, by checking the digital tube display on the PLC CPU unit, confirm that the CPU unit is correctly powered and in operation mode, observe and record the code displayed on the digital tube, refer to the user manual to understand the meaning of the code, and finally record the abnormal code for subsequent analysis. This series of steps ensures accurate judgment of the CPU unit status, provides detailed fault information, and lays a solid foundation for subsequent fault diagnosis and repair work.
[0025] S3. Log in to the Web management interface of the PLC system and find the fault report section; In this example, the specific steps to log in to the PLC system's Web management interface and find the fault report section are: S4.1. Use a computer to connect to the PLC network; S4.2. Open the web browser and enter the IP address of the PLC in the address bar to access the Web management interface; S4.3. Enter your username and password to log in; Specifically, the login process is: On the PLC's web management interface login page, find the username and password input boxes. Enter the preset username and password. The default username and password can usually be found in the PLC's user manual. If you forget your password, you can try to reset it or contact your system administrator for help. Click the "Login" button and wait for the system to verify your credentials.
[0026] S4.4. Find and open the "Status", "Log" and "Fault Report" options in the navigation menu; Specifically, the process of finding and opening the "Status", "Log", and "Fault Report" options in the navigation menu is as follows: Once you have successfully logged in, check the navigation menu at the top or side of the page. Look for options such as "Status," "Log," or "Fault Report." The names of these options may vary depending on the brand and model of your PLC. Click the appropriate option to go to the relevant page. If you cannot find these options, try using the search function or consulting the PLC's user manual.
[0027] S4.5. Read and record any error messages, warnings, and abnormal events; Specifically, the recording process is: On the Status page, check the current operating status of the system and pay attention to any abnormal prompts.
[0028] On the Logs page, browse the system logs, paying special attention to the most recent records.
[0029] On the Crash Reports page, look for and read all error messages, warnings, and exceptions.
[0030] Use a notebook or electronic document to record all important information, including timestamps, error codes, and descriptions. Watch for recurring errors or warnings, which may be key clues to the problem.
[0031] S4.6. Export the fault report for further analysis.
[0032] Specifically, log in to the PLC system's Web management interface, find the fault report section, make sure the computer is connected to the PLC network, enter the correct IP address to access the Web management interface, enter the username and password to log in, find and open the "Status", "Log" and "Fault Report" options in the navigation menu, read and record any error messages, warnings and abnormal events, and finally export the fault report for further analysis. This series of steps ensures a comprehensive understanding of the PLC system status, provides detailed fault information, and lays a solid foundation for subsequent fault diagnosis and repair work.
[0033] S4. Use IDE to open the fault diagnosis window to view fault information; In this example, the specific steps to use the IDE to open the fault diagnosis window to view fault information are as follows: S5.1. Install an IDE compatible with PLC on the computer; Specifically, IDE is the abbreviation of "Integrated Development Environment". IDE is a software application that provides developers with a centralized interface for writing, debugging and managing code. In the field of PLC (Programmable Logic Controller), IDE is usually used to program, configure, monitor and diagnose PLC systems.
[0034] S5.2. Connect the PLC device to the IDE; Specifically, the process of connecting the PLC device to the IDE is: Confirm that the PLC device is properly connected to the power supply and the power switch is turned on. Prepare the corresponding connection equipment according to the communication method between the PLC and the computer. Common communication methods include Ethernet, USB, RS-232, etc.
[0035] Connect the PLC device to the computer using the appropriate cable. For example, if using an Ethernet connection, make sure the cable is securely plugged into both the computer's Ethernet port and the PLC's network port.
[0036] Open the network settings on the computer and make sure the network adapter is enabled and configured correctly. If necessary, you can manually set the IP address so that it is on the same subnet as the PLC. Use a command prompt or terminal tool (such as the ping command) to test connectivity with the PLC and make sure the computer can successfully ping the PLC's IP address.
[0037] S5.3. Select “Fault Diagnosis” in IDE; Specifically, the process of selecting "Fault Diagnosis" in the IDE is as follows: Start the installed IDE software. On the IDE main interface, find and click the "File" or "Project" menu. Select "New Project" or "Open Existing Project" to create or open a project as needed. In the project settings, select the correct PLC model and communication parameters (such as IP address, port number, etc.). Click the "Connect" button to establish a communication connection with the PLC. After the connection is successful, find and click the "Fault Diagnosis" or "Online Monitoring" option on the IDE main interface. The location of these options varies depending on the different IDE software, and is usually located in the toolbar or menu bar.
[0038] S5.4. Check all warning and error messages listed in the diagnostic window, analyze the information, and locate the source of the fault.
[0039] In this example, check all warning and error messages listed in the diagnostic window, analyze the information, and locate the specific rules for locating the fault source as follows: Error code "F001" indicates a hardware failure; Error code "F002" indicates a software error; Error code "F003" indicates a configuration error.
[0040] Specifically, by using the IDE to open the fault diagnosis window to view the fault information, ensure that the IDE compatible with the PLC is installed on the computer, connect the PLC device to the IDE, select the "Fault Diagnosis" function, check all warning and error messages listed in the diagnostic window, and analyze the information to locate the source of the fault. This series of steps ensures a detailed inspection of the PLC system status, provides accurate fault information, and lays a solid foundation for subsequent fault diagnosis and repair work.
[0041] S5. Determine the cause of the failure based on the collected information and take appropriate measures to repair it.
[0042] In this example, the specific steps to determine the cause of the fault based on the collected information and take appropriate measures to repair it are as follows: S6.1. Repair the fault according to the determined fault cause; In this example, according to the determined fault cause, the specific steps to repair the fault are: S6.11. When a hardware failure occurs, turn off the PLC power supply, disconnect the faulty component, prepare a spare hardware component, and install the spare component in the same position. Restart the PLC system, observe the indicator light status and digital tube display, and ensure that there is no new error information. S6.12. When a software error occurs, open the IDE, load the program code of the current project, check the program code line by line, find the part that causes the error, modify the timer settings, adjust the I / O address allocation, update the communication protocol, save the modified program code, re-upload the program code to the PLC, and restart the system; S6.13. When a configuration error occurs, check whether the IP address is set correctly, whether the subnet mask is set correctly, and whether the gateway address is set correctly. If an error is found, modify the settings and save them.
[0043] S6.2. After completing the repair, thoroughly test the system to confirm that the problem has been resolved; Specifically, the process of testing the system is: Test all modules and functions to ensure that they work properly. Record the test results of each module to ensure that there are no new error messages or abnormal behaviors. Simulate the actual operating environment of the system to test the system's response time and stability. Record the test results to ensure that the system can operate normally under various conditions. Let the system run continuously for a period of time (for example, 24 hours) and observe the system status. Record any abnormalities during long-term operation.
[0044] S6.3. Prepare a fault handling report, including the fault phenomenon, diagnosis process, measures taken and final results; Specifically, the troubleshooting report writing process is as follows: Create a new document or use an existing template; Describe the fault phenomenon: record the time, location and specific manifestation of the fault, including error codes, warning information and abnormal events.
[0045] Document the diagnostic process: Record the actions and observations of each step in detail. This includes the hardware components checked, program code, and system settings.
[0046] Describe the actions taken: record the replaced hardware components, modified program code, and system settings. Include the specific steps and times of the actions.
[0047] Record final results: Record test results to ensure the system returns to normal operation. This includes the system's response time and stability test results.
[0048] Add additional information: Add any other relevant information, such as references, technical support contacts, etc.
[0049] S6.4. Archive the troubleshooting report for future reference when similar problems occur.
[0050] Specifically, by determining the cause of the fault based on the collected information and taking appropriate measures to repair it, ensure that the cause of the fault is accurately determined, hardware and software problems are effectively solved, and external interference problems are eliminated. After the repair is completed, thoroughly test the system to confirm that the problem has been solved, write a detailed fault handling report, record the fault phenomenon, diagnosis process, measures taken and final results, and archive the report for reference when encountering similar problems in the future. This series of steps ensures the systematic and effective fault diagnosis and repair work, and provides a guarantee for the long-term stable operation of the system.
[0051] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments, and the above embodiments and descriptions are only preferred examples of the present invention, and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements all fall within the scope of the present invention to be protected.
Claims
1. A fault diagnosis method based on a PLC IO module, characterized in that: The following steps are involved: S1. Observe the indicator light status on the IO module; S2. Check the digital tube display on the PLC CPU unit; S3. Log in to the Web management interface of the PLC system and find the fault report section; S4. Use IDE to open the fault diagnosis window to view fault information; S5. Determine the cause of the failure based on the collected information and take appropriate measures to repair it.
2. The fault diagnosis method based on PLC IO module according to claim 1, characterized in that: In S1, the specific steps for observing the indicator light status on the IO module are as follows: S2.
1. Turn on the PLC power supply and observe the indicator light on the IO module; S2.
2. Record the status of each indicator light; S2.
3. Compare the status of the indicator light under normal working conditions to determine whether there is any abnormality.
3. The fault diagnosis method based on PLC IO module according to claim 2 is characterized in that: In S2.3, the specific judgment rule for comparing the status of the indicator light under normal working condition is: A steady red indicator light indicates a module failure; The green indicator light is always on, indicating that the module is working properly; The flashing yellow indicator light indicates that the module communication is interrupted; An off light indicates the module is not powered or connected.
4. The fault diagnosis method based on PLC IO module according to claim 1, characterized in that: In S2, the specific steps for checking the digital tube display on the PLC CPU unit are: S3.
1. Confirm that the CPU unit is properly powered and in operating mode; S3.
2. Observe the code displayed on the digital tube and refer to the error code table in the PLC user manual to understand the meaning of the current displayed code; S3.
3. If any abnormal code is displayed, record it for subsequent analysis.
5. The fault diagnosis method based on PLC IO module according to claim 4 is characterized in that: In S3.2, observe the code displayed on the digital tube and refer to the error code table in the PLC user manual to understand the specific rules for distinguishing the meaning of the current displayed code: Displaying "0000" indicates that the system is operating normally; Displaying "E001" indicates a memory error; Displaying "E002" indicates a communication error; "E003" displayed indicates an I / O module error.
6. The fault diagnosis method based on PLC IO module according to claim 1, characterized in that: In S3, the specific steps of logging into the Web management interface of the PLC system and searching for the fault report part are as follows: S4.
1. Use a computer to connect to the PLC network; S4.
2. Open the web browser and enter the IP address of the PLC in the address bar to access the Web management interface; S4.
3. Enter your username and password to log in; S4.
4. Find and open the "Status", "Log" and "Fault Report" options in the navigation menu; S4.
5. Read and record any error messages, warnings, and abnormal events; S4.
6. Export the fault report for further analysis.
7. The fault diagnosis method based on PLC IO module according to claim 1, characterized in that: In S4, the specific steps of using the IDE to open the fault diagnosis window to view fault information are as follows: S5.
1. Install an IDE compatible with PLC on the computer; S5.
2. Connect the PLC device to the IDE; S5.
3. Select "Fault Diagnosis" in IDE; S5.
4. Check all warning and error messages listed in the diagnostic window, analyze the information, and locate the source of the fault.
8. The fault diagnosis method based on PLC IO module according to claim 7 is characterized in that: In S5.4, all warning and error messages listed in the diagnostic window are checked and analyzed. The specific rules for locating the fault source are as follows: Error code "F001" indicates a hardware failure; Error code "F002" indicates a software error; Error code "F003" indicates a configuration error.
9. The fault diagnosis method based on PLC IO module according to claim 1, characterized in that: In S5, the specific steps of determining the cause of the fault based on the collected information and taking corresponding measures to repair the fault are as follows: S6.
1. Repair the fault according to the determined fault cause; S6.
2. After completing the repair, thoroughly test the system to confirm that the problem has been resolved; S6.
3. Prepare a fault handling report, including the fault phenomenon, diagnosis process, measures taken and final results; S6.
4. Archive the troubleshooting report for future reference when similar problems occur.
10. The fault diagnosis method based on PLC IO module according to claim 9, characterized in that: In S6.1, according to the determined fault cause, the specific steps for repairing the fault are: S6.
11. When a hardware failure occurs, turn off the PLC power supply, disconnect the faulty component, prepare a spare hardware component, and install the spare component in the same position. Restart the PLC system, observe the indicator light status and digital tube display, and ensure that there is no new error information. S6.
12. When a software error occurs, open the IDE, load the program code of the current project, check the program code line by line, find the part that causes the error, modify the timer settings, adjust the I / O address allocation, update the communication protocol, save the modified program code, re-upload the program code to the PLC, and restart the system; S6.
13. When a configuration error occurs, check whether the IP address is set correctly, whether the subnet mask is set correctly, and whether the gateway address is set correctly. If an error is found, modify the settings and save them.
Citation Information
Cited By
Three-layer architecture CPU intelligent diagnosis system and method based on ECN communication bus
CN122194946A