PLC control system with self-diagnosis function and self-diagnosis method of PLC control system
By designing self-diagnosis functions in the PLC control system, including automatic addressing, pin detection and data transmission path abnormality judgment, the problems of incomplete addressing functions and low troubleshooting efficiency in traditional PLC systems are solved, and an efficient and stable PLC control system is realized.
Patent Information
- Application Number
- CN202410459410.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-17
- Publication Date
- 2025-03-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The addressing function in traditional PLC control systems is incomplete and lacks programmability, which leads to long-term PLC controllers that are prone to transmission failures, but it is difficult to effectively understand their status information, which reduces repair efficiency and affects system stability and reliability.
A PLC control system with self-diagnosis is designed, including a communication interface module, a user read and write module, a self-addressing detection module, a self-test module and an alarm module. Through the mutual cooperation of these modules, automatic addressing, detection of pin exceptions, judgment of transmission exceptions in the data transmission path, and alarms are issued when problems occur and fault information is recorded.
It realizes automatic addressing and fault detection, simplifies the work of programmers, improves programming efficiency, and provides clear fault indications when a fault occurs, simplifies the troubleshooting process and ensures the stable operation of the system.
Smart Images

Figure CN119717668A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of industrial control and computer technology, and more particularly to a PLC control system with self-diagnosis and a self-diagnosis method of the PLC control system. Background Art
[0002] PLC, or programmable logic controller, is a digital operating electronic system widely used in modern industrial applications. PLC control system occupies an important position in the field of industrial control due to its high programmability, stability and reliability, as well as easy maintenance and expansion.
[0003] The self-diagnosis function of the PLC control system is one of its core advantages. The self-diagnosis function allows the PLC to automatically detect existing problems. Once a module fails, the PLC will immediately issue an alarm and record the fault information.
[0004] However, in traditional PLC control systems, the addressing function is imperfect and lacks programmability. In addition, PLC controllers that work for a long time may have transmission failures, but since their status information cannot be effectively understood, when these failures are found, it is necessary to troubleshoot the problem before targeted repairs can be carried out, which reduces the repair efficiency and affects the stability and reliability of the PLC system.
[0005] In summary, how to provide a PLC control system and control method with self-diagnosis that can solve the above problems is an issue that technical personnel in this field urgently need to solve. Summary of the invention
[0006] In view of this, the present invention provides a PLC control system with self-diagnosis and a self-diagnosis method of the PLC control system, so as to solve the problems existing in the traditional PLC control system.
[0007] In order to achieve the above object, the present invention provides the following technical solutions:
[0008] A PLC control system with self-diagnosis, comprising:
[0009] Communication interface module, user read-write module, self-addressing detection module, self-checking module and alarm module;
[0010] Among them, the user read-write module is connected to the external access unit through the communication interface module for reading and writing programs; the self-addressing detection module is connected to the user read-write module for automatic addressing according to the read-write program and detecting whether there is a pin abnormality; the self-check module is connected to the communication interface module for detecting in the data transmission path to determine whether there is a transmission abnormality; the alarm module is respectively connected to the self-addressing detection module and the self-check module for alarming and recording fault information when a pin abnormality and / or transmission abnormality occurs.
[0011] Furthermore, it also includes an isolation module, which is connected to the communication interface module and is used for isolating data transmission paths.
[0012] Furthermore, the user read-write module is connected to the external access unit via a data line, and is used to receive or upload program information from the external access unit, and convert the program information into data that can be processed inside the PLC.
[0013] Furthermore, the self-addressing detection module includes:
[0014] An address unit, connected to the user read-write module, detects and verifies the read-write program, and provides corresponding address information;
[0015] A confirmation unit is connected to the address unit and confirms the address information.
[0016] Furthermore, the self-check module includes:
[0017] A detection unit performs detection in a data transmission path to obtain a sampling signal;
[0018] A processing unit, processing the sampled signal through a Hanning window;
[0019] The computing unit performs fast Fourier transform based on the processed sampling signal, analyzes the frequency components of the signal, and diagnoses whether there is any abnormality in the data transmission path.
[0020] A self-diagnosis method for a PLC control system, comprising:
[0021] Read and write programs;
[0022] Automatically address according to the read and write procedures and detect whether the pins are normal;
[0023] Perform detection in the data transmission path to determine whether there is transmission abnormality;
[0024] When pin abnormality and / or transmission abnormality occurs, an alarm is issued and fault information is recorded.
[0025] Furthermore, it also includes isolating data transmission paths.
[0026] Furthermore, the read and write program includes receiving or uploading program information from an external access unit, and converting the program information into data that can be processed within the PLC.
[0027] Furthermore, the automatic addressing according to the read-write program and detecting whether the pin is normal include:
[0028] S210: Detect and verify the read and write program, and provide corresponding address information;
[0029] S220: Confirm the address information.
[0030] Further, the detecting in the data transmission path to determine whether the transmission is abnormal includes:
[0031] S310: Perform detection in the data transmission path to obtain a sampling signal;
[0032] S320: Processing the sampled signal through a Hanning window;
[0033] S330: Perform fast Fourier transform based on the processed sampling signal, analyze the frequency component of the signal, and diagnose whether there is any abnormality in the data transmission path.
[0034] It can be seen from the above technical solution that, compared with the prior art, the present invention discloses a PLC control system with self-diagnosis and a self-diagnosis method for a PLC control system, which realizes the functions of automatic addressing, detecting and confirming whether the addressing is abnormal through the cooperation of the communication interface module, the user read-write module, the self-addressing detection module, the self-test module and the alarm module, thereby greatly simplifying the programmer's work and improving programming efficiency; at the same time, it also has the function of judging whether the transmission is abnormal in the data transmission path; once one or both of the above abnormalities occur, the PLC will immediately issue an alarm and record the fault information, providing maintenance personnel with clear fault indication information, thereby greatly simplifying the troubleshooting process and ensuring the stable operation of the system.
[0035] In summary, the present invention has high programmability, stability and reliability, and provides an efficient, stable and easy-to-maintain solution for the industrial control field. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0037] Figure 1 It is a schematic diagram of the system structure of the present invention;
[0038] Figure 2 It is a schematic diagram of the method flow of the present invention. DETAILED DESCRIPTION
[0039] 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.
[0040] See also Figure 1 , the embodiment of the present invention discloses a PLC control system with self-diagnosis, comprising:
[0041] Communication interface module, user read-write module, self-addressing detection module, self-checking module and alarm module;
[0042] Among them, the user read-write module is connected to the external access unit through the communication interface module for reading and writing programs; the self-addressing detection module is connected to the user read-write module for automatic addressing according to the read-write program and detecting whether there is a pin abnormality; the self-check module is connected to the communication interface module for detecting in the data transmission path to determine whether there is a transmission abnormality; the alarm module is respectively connected to the self-addressing detection module and the self-check module for alarming and recording fault information when a pin abnormality and / or transmission abnormality occurs.
[0043] In a specific embodiment, it also includes an isolation module connected to the communication interface module for isolating data transmission paths.
[0044] In a specific embodiment, the user read-write module is connected to the external access unit via a data line, and is used to receive or upload program information from the external access unit, and convert the program information into data that can be processed inside the PLC.
[0045] In a specific embodiment, the self-addressing detection module includes:
[0046] An address unit, connected to the user read-write module, detects and verifies the read-write program, and provides corresponding address information;
[0047] A confirmation unit is connected to the address unit and confirms the address information.
[0048] In a specific embodiment, the self-check module includes:
[0049] A detection unit performs detection in a data transmission path to obtain a sampling signal;
[0050] A processing unit, processing the sampled signal through a Hanning window;
[0051] The computing unit performs fast Fourier transform based on the processed sampling signal, analyzes the frequency components of the signal, and diagnoses whether there is any abnormality in the data transmission path.
[0052] Specifically, the communication interface module includes an Ethernet interface (Ethernet interface) and other local area network interfaces based on the general Internet protocol. These interfaces allow PLC devices to perform high-speed, large-capacity data transmission with other external access units (such as host computers, servers, other PLCs, etc.). However, for broadband PLC and indoor power line communication (PLC) operating in a higher frequency range, their data transmission can be considered to be high-frequency, and it is difficult to detect their transmission failures in a timely and effective manner in the prior art. Based on the above method, FFT (Fast Fourier Transform) analysis is performed to quickly and accurately determine whether there is an abnormality in the data transmission path of the PLC device itself. At the same time, in FFT analysis, the raised cosine window is used as a weighting function to intercept the required signal for FFT analysis.
[0053] See also Figure 2 The embodiment of the present invention also discloses a self-diagnosis method of a PLC control system, comprising:
[0054] Read and write programs;
[0055] Automatically address according to the read and write procedures and detect whether the pins are normal;
[0056] Perform detection in the data transmission path to determine whether there is transmission abnormality;
[0057] When pin abnormality and / or transmission abnormality occurs, an alarm is issued and fault information is recorded.
[0058] In a specific embodiment, the method further includes isolating the data transmission paths.
[0059] In a specific embodiment, the read and write program includes receiving or uploading program information from an external access unit, and converting the program information into data that can be processed within the PLC.
[0060] In a specific embodiment, the automatic addressing according to the read and write program and detecting whether the pin is normal include:
[0061] S210: Detect and verify the read and write program, and provide corresponding address information;
[0062] S220: Confirm the address information.
[0063] In a specific embodiment, the detecting in the data transmission path to determine whether the transmission is abnormal includes:
[0064] S310: Perform detection in the data transmission path to obtain a sampling signal;
[0065] S320: Process the sampled signal through a Hanning window, and the expression is:
[0066] w(n)=0.5[1-\cos(2\pi n / (N-1))];
[0067] Wherein, n is the index of the sampling signal, from 0 to (N-1), and N is the number of sampling points in one cycle. S330: Perform fast Fourier transform based on the processed sampling signal, analyze the frequency components of the signal, and diagnose whether there is any abnormality in the data transmission path.
[0068] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0069] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A PLC control system with self-diagnosis, characterized in that: include: Communication interface module, user read-write module, self-addressing detection module, self-checking module and alarm module; Among them, the user read-write module is connected to the external access unit through the communication interface module for reading and writing programs; the self-addressing detection module is connected to the user read-write module for automatic addressing according to the read-write program and detecting whether there is a pin abnormality; the self-check module is connected to the communication interface module for detecting in the data transmission path to determine whether there is a transmission abnormality; the alarm module is respectively connected to the self-addressing detection module and the self-check module for alarming and recording fault information when a pin abnormality and / or transmission abnormality occurs.
2. A PLC control system with self-diagnosis according to claim 1, characterized in that: It also includes an isolation module connected to the communication interface module for isolating data transmission paths.
3. A PLC control system with self-diagnosis according to claim 1, characterized in that: The user read-write module receives or uploads program information from an external access unit through the communication interface module, and converts the program information into data that can be processed inside the PLC.
4. A PLC control system with self-diagnosis according to claim 1, characterized in that: The self-addressing detection module comprises: An address unit, connected to the user read-write module, detects and verifies the read-write program, and provides corresponding address information; A confirmation unit is connected to the address unit and confirms the address information.
5. A PLC control system with self-diagnosis according to claim 1, characterized in that: The self-check module comprises: A detection unit performs detection in a data transmission path to obtain a sampling signal; A processing unit, processing the sampled signal through a Hanning window; The computing unit performs fast Fourier transform based on the processed sampling signal, analyzes the frequency components of the signal, and diagnoses whether there is any abnormality in the data transmission path.
6. A self-diagnosis method for a PLC control system, characterized in that: include: Read and write programs; Automatically address according to the read and write procedures and detect whether the pins are normal; Perform detection in the data transmission path to determine whether there is transmission abnormality; When pin abnormality and / or transmission abnormality occurs, an alarm is issued and fault information is recorded.
7. A self-diagnosis method for a PLC control system according to claim 6, characterized in that: It also includes isolation between data transmission paths.
8. A self-diagnosis method for a PLC control system according to claim 6, characterized in that: The read and write program includes receiving or uploading program information from an external access unit and converting the program information into data that can be processed inside the PLC.
9. A self-diagnosis method for a PLC control system according to claim 6, characterized in that: The automatic addressing according to the read and write program and the detection of whether the pin is normal include: S210: Detect and verify the read and write program, and provide corresponding address information; S220: Confirm the address information.
10. A self-diagnosis method for a PLC control system according to claim 6, characterized in that: The detecting in the data transmission path to determine whether the transmission is abnormal includes: S310: Perform detection in the data transmission path to obtain a sampling signal; S320: Processing the sampled signal through a Hanning window; S330: Perform fast Fourier transform based on the processed sampling signal, analyze the frequency component of the signal, and diagnose whether there is any abnormality in the data transmission path.
Citation Information
Patent Citations
Self-diagnosis PLC (programmable logic controller) and self-diagnosis PLC storage chip method
CN102591762A
PLC communication system
CN103873549A
Programmable logic controller and control system thereof
CN105511371A
PLC wireless communication fault detection system and method
CN112286130A
Communication system for programmable controller
JP1992149704A