PLC controller function module with hot plug function
Through the quick-release connection structure and hot-swappable interface, combined with intelligent identification and fault diagnosis functions, the problem of complex operation and low identification efficiency of the PLC controller function module is solved, and rapid replacement and failure are achieved without interrupting the operation of the system. processing, improving system availability and stability.
Patent Information
- Application Number
- CN202411004440.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-25
AI Technical Summary
The existing hot-swappable PLC controller functional modules have problems such as complex structure, cumbersome operation, unstable locking effect, and low efficiency in functional module identification and signal and data transmission.
It adopts quick-release connection structure and hot-swappable interface, combined with intelligent identification unit, fault diagnosis unit, data storage unit and fine current control strategy to realize rapid identification of functional modules, signal and data transmission without interrupting system operation. Perform replacement and troubleshooting.
It enables the replacement or upgrade of functional modules without interrupting system operation, improves system availability and maintenance efficiency, enhances system stability and security, reduces troubleshooting time, and reduces maintenance costs.
Smart Images

Figure CN118760049A_ABST
Abstract
Description
Technical Field
[0001] The invention provides a PLC controller function module with a hot-swap function, belonging to the technical field of PLC controllers. Background Art
[0002] With the continuous improvement of industrial automation level, programmable logic controller (PLC) plays a vital role in industrial automation control system. PLC controller realizes control, monitoring and data collection of field equipment by connecting various functional modules. However, in complex industrial environment, functional modules may fail or need to be upgraded and maintained. At this time, replacement or upgrading of functional modules often requires shutting down the entire system, resulting in production interruption and efficiency loss.
[0003] In order to solve the above problems, PLC controller function modules with hot-swap function have appeared in recent years. Hot-swap technology allows the function module to be unplugged or plugged into the system without turning off the system power, thereby achieving online replacement and upgrading, greatly improving the system availability and maintenance efficiency.
[0004] In the existing hot-swappable PLC controller function module technology, mechanical locking or electronic locking is usually used to fix and unlock the function module. However, these locking methods may have problems such as complex structure, cumbersome operation, and unstable locking effect. At the same time, there is a lack of efficient and reliable solutions for the identification and signal and data transmission of the function module. Summary of the invention
[0005] The present invention provides a PLC controller function module with hot-swap function to solve the problems mentioned in the above background technology: The present invention proposes a PLC controller functional module with hot-swap function, comprising a main controller, a functional module body, a hot-swap interface and a quick-release connection structure. The main controller and the functional module body are connected and separated by the quick-release connection structure, and the hot-swap interface is used for signal and data transmission when the functional module is connected and separated from the main controller.
[0006] Furthermore, the functional module body includes an intelligent identification unit, a communication interface unit, a data processing unit, an I / O interface unit, a quick-release connection structure interface, a fault diagnosis unit and a storage unit.
[0007] Furthermore, the data storage step of the data storage unit includes: When the main controller of the functional module is connected, the data storage unit performs initialization operations and establishes storage areas according to the preset data structure and format; and allocates storage space to each storage area, and sets corresponding access rights and security mechanisms; The data storage unit collects the operation data of the functional module in real time through the I / O interface unit, and pre-processes the collected data; and organizes the pre-processed data according to the timestamp; Compress the organized data through compression algorithms, and optimize the storage and retrieval performance of data through indexes and data structures; Based on distributed storage and redundant backup mechanisms, the storage space is further configured; the stored sensitive data is encrypted, access control policies are set, and the encryption algorithm and access control policies are regularly updated.
[0008] Furthermore, the fault diagnosis step of the fault diagnosis unit includes: The fault diagnosis unit collects the operation data of the PLC controller and the functional modules through the communication interface unit and pre-processes the collected data; Based on the built-in fault diagnosis model, the processed data is analyzed to detect whether there are anomalies or faults; If an anomaly or fault is detected, it will be classified according to the fault type and severity, and a detailed fault diagnosis report will be generated. The fault diagnosis report will be further analyzed and verified in combination with historical data and expert knowledge base; Through the input / output signal detection function of the PLC controller and the fault diagnosis report, the fault location can be located; If the fault is located successfully, the isolation mechanism is activated to isolate the faulty part from the normal part; If the fault location fails, perform secondary location by simulating the fault scenario through the analog signal fault diagnosis method. If the location is successful, execute the previous step; According to the results of fault diagnosis and location, formulate corresponding fault handling plans to handle the faults. After the fault handling is completed, test and verify the system; Based on the test and verification results, analyze the causes and patterns of failures, and formulate corresponding preventive measures and optimization plans; The process and results of each fault diagnosis and handling shall be recorded in detail, and a fault report shall be generated. The fault reports shall be summarized and analyzed regularly to identify common and regular problems, and to develop improvement measures and optimization plans.
[0009] Furthermore, the fault handling solution includes replacing faulty parts, repairing damaged equipment, and adjusting parameter settings.
[0010] Furthermore, if the fault location fails, a secondary location is performed by simulating a fault scenario through an analog signal fault diagnosis method, and the previous step is performed after the location is successful, including: Based on the known working principles and fault characteristics of PLC controllers and functional modules, a fault scenario model is constructed. Through simulation software, fault conditions similar to those in the real environment are simulated, and different parameters and variables are set to simulate multiple possible fault modes. In the simulated fault scenario, the analog signals are collected in real time through sensors, processed, and key information is extracted; the analog signals are analyzed by spectrum, time domain, and correlation through data analysis tools; Combine expert knowledge and historical data to build a fault feature library, store the signal features corresponding to various faults, and use pattern recognition algorithms to match and identify the extracted analog signal features; If a signal feature that matches a known fault feature is identified, it is determined to be a corresponding fault; If the initial positioning fails, a secondary positioning strategy is developed based on the results of the analog signal analysis; By utilizing the redundant design and backup function of the PLC controller, the fault scope can be reduced by switching the backup channel or standby equipment; and the fault propagation path can be inferred by combining the system topology and the dependency between functional modules; According to the formulated secondary positioning strategy, the fault point is checked and verified through the step-by-step approach and elimination method; The results of the secondary positioning are fed back into the fault diagnosis model to update and optimize the model.
[0011] Furthermore, the quick-release connection structure includes a guiding structure, a locking mechanism and an unlocking mechanism.
[0012] Furthermore, the quick-release connection structure adopts magnetic locking.
[0013] Furthermore, the steps for implementing the hot-swap function include: When the function module body approaches the PLC controller, the main controller detects through the communication interface unit whether there is a new function module ready to be connected; If a new functional module is detected, the main controller starts the intelligent identification unit to identify the information of the functional module to be connected; If the identification is successful, the main controller guides the functional module body to align through the guide structure of the quick-release connection structure. At the same time, the main controller starts the fault diagnosis unit to pre-check the electrical environment of the PLC controller and the functional module body; Before the functional module body contacts the hot-swap interface, the main controller pre-adjusts the resistance value of the PTC through the control circuit to put it into a preheating state; When the function module body contacts the hot-swap interface, the main controller accurately controls the on-time of the MOS tube through the timing circuit. When the function module body contacts the interface completely, the main controller gradually increases the on-time of the MOS tube according to the signal of the timing circuit. During the connection between the functional module body and the main controller, the main controller monitors the current change in real time through the MOS tube current detection resistor; if the current is abnormal, it is adjusted through the conduction state of the MOS tube of the main controller; When the function module body is stably connected to the main controller, the locking mechanism of the quick-release connection structure fixes the function module body on the PLC controller, the main controller activates the function module, and transmits signals and data through the I / O interface unit; When the functional module needs to be separated, the main controller stops the signal and data transmission with the functional module and starts the unlocking mechanism to release the locking state of the functional module body; While unlocking, the main controller controls the MOS tube to turn off, disconnects the electrical connection between the function module and the main controller, and pulls the function module body out of the main controller through the quick-release connection structure.
[0014] Furthermore, during the connection between the functional module body and the main controller, the main controller monitors the current change in real time through the MOS tube current detection resistor; if the current is abnormal, the conduction state of the MOS tube of the main controller is adjusted, including: When the functional module body starts to contact the hot-swap interface, the main controller starts the monitoring function of the MOS tube current detection resistor, and obtains the current value in the MOS tube in real time through the high-precision current detection circuit, and converts it into a digital signal; After receiving the current data, the main controller performs data analysis to determine whether the current is within the preset safety range. At the same time, it compares it with historical data, analyzes the trend of current changes, and predicts abnormal situations. If the current value is found to exceed the preset safety threshold, or the current change trend is abnormal, an early warning signal will be issued through the main controller; The main controller selects an adjustment strategy based on the specific situation of the current anomaly and the system status; If the adjustment strategy cannot control the current anomaly, or the anomaly continues to worsen, the safety protection mechanism is activated through the main controller.
[0015] Beneficial effects of the present invention: The hot-swap function allows the replacement or upgrade of functional modules without interrupting the operation of the system, which greatly shortens the maintenance time and reduces the downtime cost caused by maintenance, and improves the continuous operation capability and reliability of the industrial automation system; users can quickly add or replace modules with different functions according to actual needs, such as adding I / O interfaces, communication protocol conversion modules, etc., which facilitates the flexible configuration and future upgrades of the system; through the integrated intelligent recognition and fault diagnosis unit, the system can automatically identify the type and version of the newly connected module, perform self-configuration, and implement strict electrical environment monitoring and fault prediction during the connection and operation process, effectively avoiding system failures caused by misoperation or hardware problems, and enhancing the stability and safety of the system; precise current control The dynamic adjustment of the control strategy and the conduction time of the MOS tube, combined with the fast current abnormality response mechanism, can effectively prevent large current shocks and overloads, protect modules and systems from electrical damage, and extend service life; the data storage unit not only provides efficient real-time data collection and processing capabilities, but also realizes efficient data compression, indexing and encryption storage. Combined with distributed storage and redundant backup, it ensures the security and integrity of the data, and provides a reliable data basis for subsequent analysis, decision-making and fault tracing; through the integrated fault diagnosis unit, combined with the analog signal fault diagnosis method, it can accurately locate and quickly respond to various faults, reduce fault troubleshooting time, and continuously optimize preventive measures and system performance based on in-depth analysis of fault history, thereby improving the overall fault recovery speed and system robustness. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a schematic diagram of a functional module of a PLC controller with hot-swap function according to the present invention; Figure 2 This is a schematic diagram of the functional module body of the present invention. DETAILED DESCRIPTION
[0017] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0018] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. The embodiments described are only a part of the embodiments of the present invention, rather than 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.
[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0020] One embodiment of the present invention, as Figure 1 As shown, a PLC controller functional module with hot-swap function includes a main controller, a functional module body, a hot-swap interface and a quick-release connection structure. The main controller and the functional module body are connected and separated by the quick-release connection structure, and the hot-swap interface is used for signal and data transmission when the functional module is connected and separated from the main controller.
[0021] The working principle of the above technical solution is as follows: the quick-release connection structure is the key component that connects the main controller and the functional module body. This design makes the connection and separation between the two quick and simple. When it is necessary to add or remove a functional module, the user can quickly achieve this goal by operating the quick-release connection structure without shutting down or restarting the entire PLC system. The hot-swap interface is another key component, which is responsible for signal and data transmission when the functional module is connected or separated from the main controller. This means that when the functional module is inserted or removed, the system can still remain in operation and perform real-time data transmission. When the functional module is inserted, the hot-swap interface will quickly identify and establish a communication connection with the main controller. During this process, the module's status information, configuration data, and possible control signals are transmitted through the interface. If the functional module needs to be removed, the hot-swap interface will ensure that all data transmission has been completed and the system status has been correctly updated before disconnecting. This can avoid data loss or system crashes. The main controller is the core component of the PLC system, responsible for processing input signals, executing control logic, and outputting control signals. The functional module provides specific functions or interfaces to expand the capabilities of the main controller. When the functional module is connected to the main controller through the quick-release connection structure, the main controller will identify the module and configure it accordingly according to its type and function. The main controller can then communicate with the functional module through the hot-swap interface to achieve data exchange and execution of control commands. Due to the hot-swap design, users can easily add, remove or replace functional modules without interrupting system operation. This makes system maintenance and upgrades simpler and more efficient. For example, if a functional module fails, users can quickly unplug it and insert a new or spare module to replace it. This minimizes system downtime and reduces production losses.
[0022] The effect of the above technical solution is: due to the hot-swap design, users can dynamically add, remove or replace functional modules while the system is running without shutting down or restarting the entire system. This greatly improves the flexibility of the system, enabling it to better adapt to changing production needs and control requirements. When a functional module fails or needs to be upgraded, the user can directly unplug it through the quick-release connection structure and replace it with a new or backup module. This plug-and-play design greatly simplifies the system maintenance process, reduces downtime, and improves production efficiency. In traditional PLC systems, if a functional module needs to be replaced or upgraded, the entire system usually needs to be shut down, which will cause production interruptions. The hot-swap function allows module replacement without interrupting system operation, thereby significantly reducing system downtime and reducing production losses. The hot-swap design allows the system to isolate and replace faulty modules without interrupting operation, thereby reducing the risk of the entire system crashing due to a single module failure. In addition, by dynamically adding spare modules, the redundancy and fault tolerance of the system can also be improved. When a new functional module is inserted, the main controller can automatically identify its type and function and configure it accordingly. This makes the system configuration process simpler and more automated, reducing human errors and configuration complexity. By adding modules with different functions, users can easily expand the capabilities of the PLC system. This scalability enables the system to better adapt to future technological developments and changes in business needs. The quick-release connection structure and hot-swap interface make the module replacement and upgrade process easier and more intuitive, improving the user experience. At the same time, by reducing system downtime and maintenance complexity, it also reduces the user's operation and maintenance costs and pressure.
[0023] One embodiment of the present invention, as Figure 2 As shown, the functional module body includes an intelligent identification unit, a communication interface unit, a data processing unit, an I / O interface unit, a quick-release connection structure interface, a fault diagnosis unit and a storage unit.
[0024] The working principle and effect of the above technical solution are as follows: the intelligent identification unit is usually activated first when the functional module is inserted into the PLC controller, and exchanges information with the main controller through the communication interface unit to identify the type, version and functional characteristics of the module. The communication interface unit serves as a bridge for data exchange between the module and the main controller and other devices, and supports multiple communication protocols (such as Ethernet / IP, PROFINET, Modbus, etc.) to ensure the efficiency and compatibility of data transmission. It is responsible for receiving control instructions, uploading status information and data, and is the basis for realizing collaborative work between modules. The data processing unit receives instructions and data from the main controller or external sensors, and performs necessary calculations, logical processing and decision making. It generates control instructions for the I / O interface unit according to the preset control algorithm or user program, or processes the collected data and prepares to upload it to the main controller or a higher-level management system. The I / O interface unit is directly connected to the field equipment and is responsible for receiving input signals from sensors (such as temperature, pressure, position, etc.) and sending output instructions to actuators (such as starting motors, valve control, etc.). The flexibility and diversity of this unit are the key to achieving the wide applicability of PLC systems. The quick-release connection structure interface provides a physical level of quick connection and disconnection functions, ensuring that the functional module can be quickly replaced or upgraded without interrupting the operation of the system. The ingenious design of the guide structure, locking mechanism and unlocking mechanism ensures the simplicity of the plug-in process and the stability of the electrical connection. The fault diagnosis unit monitors the working status of the module and the system in real time, and identifies potential signs of faults by analyzing operating data (such as current, voltage, temperature, etc.). Once an abnormality is detected, the unit can take quick action, such as cutting off the power supply, issuing a warning, or adjusting the operating parameters to prevent the fault from expanding and protect the safe operation of the entire system. The storage unit is used to save configuration information, operating parameters, historical data, and fault records. When the module is first connected, the storage unit will be initialized to create the necessary data structure. During operation, real-time data is collected and stored here after preprocessing, providing data support for fault diagnosis, performance evaluation, and system optimization. In addition, data encryption and access control mechanisms ensure data security.
[0025] In one embodiment of the present invention, the data storage step of the data storage unit includes: When the function module main controller is connected, the data storage unit performs initialization operations and establishes a storage area according to the preset data structure and format; the storage area includes a configuration information area, an operation status area, a historical data area, etc. Storage space is allocated to each storage area, and corresponding access rights and security mechanisms are set; The data storage unit collects the operation data of the functional module in real time through the I / O interface unit, such as sensor readings, actuator status, etc., and preprocesses the collected data; the preprocessing includes data cleaning, format conversion and standardization, etc.; and organizes the preprocessed data according to timestamps; Compress the organized data through compression algorithms to reduce storage space and improve transmission efficiency, and optimize data storage and retrieval performance through indexes and data structures such as hash tables and B-trees; Based on distributed storage and redundant backup mechanisms, the storage space is further configured; the stored sensitive data is encrypted, access control policies are set, and the encryption algorithm and access control policies are regularly updated.
[0026] The working principle of the above technical solution is as follows: when the functional module is connected to the main controller, the data storage unit first performs an initialization operation. This process involves planning the storage space according to the predefined data structure and format, and creating different storage areas, such as the configuration information area, the operation status area, and the historical data area. Each area will be assigned a specific storage space size, and access rights and security measures will be configured to ensure the isolation and protection of data at different levels; the data storage unit is connected to the sensors and actuators of the functional module through the I / O interface to capture the operation data in real time. These raw data undergo a preprocessing stage, including removing invalid or erroneous data (data cleaning), converting the data format to match the storage requirements (format conversion), and standardizing the data for comparison and analysis. The processed data is sorted by timestamp, which enhances the time series characteristics and query efficiency of the data; in order to improve storage efficiency and data transmission speed, the preprocessed data will be processed by a compression algorithm to reduce its size. At the same time, the data is organized through an efficient index structure (such as a hash table or a B-tree), making data retrieval fast and accurate, and the required information can be quickly located even in massive data; in order to improve the reliability of the data and the scalability of the system, the data is stored in different physical locations to form a distributed storage architecture. Combined with a redundant backup mechanism, that is, the same data has copies on multiple nodes, it ensures that even if some storage units fail, the data is still accessible, which enhances the system's fault tolerance; sensitive data will be encrypted before storage to ensure that even if the data is illegally accessed, its content cannot be directly read. At the same time, strict access control policies limit data access rights, and only authorized users and applications can perform read and write operations. Encryption algorithms and access control policies are regularly updated to respond to changing security threats and maintain the forefront of data security.
[0027] The effects of the above technical solution are: by real-time collection and preprocessing of operating data, including data cleaning, format conversion and standardization, the quality of stored data is ensured and the complexity of subsequent analysis and processing is reduced. At the same time, the use of timestamps to organize data facilitates quick search for information at a specific time point and improves data retrieval speed; the application of data compression technology significantly reduces the demand for storage space, allowing limited storage resources to accommodate more data. This is particularly important for industrial control systems that need to store a large amount of historical data for a long time, reducing storage costs and improving the overall economy of the system; through distributed storage and redundant backup mechanisms, even if a part of the storage system fails, data can still be obtained from other backup nodes, ensuring the continuity and integrity of the data. The encryption processing of sensitive data and strict access control policies further strengthen the security protection of data and effectively prevent the risk of unauthorized access and data leakage; the preset data structure and format and the ability to dynamically allocate storage space enable the system to flexibly adapt to data needs of different types and sizes. With the development of the system and the growth of data volume, the storage area can be easily expanded to support the continuous optimization and upgrading of the system; regular updates of encryption algorithms and access control policies ensure that data protection measures are always synchronized with the latest security standards and reduce the risks caused by aging technology. Clear access permission settings simplify operation and maintenance management, facilitate tracking of data operation records, and are extremely beneficial for troubleshooting and responsibility definition.
[0028] In one embodiment of the present invention, the fault diagnosis step of the fault diagnosis unit includes: The fault diagnosis unit collects the operation data of the PLC controller and the functional module through the communication interface unit, and the operation parameters include input / output signals, communication status, power supply status, etc.; and pre-processes the collected data; the pre-processing includes removing noise, filling missing values and data standardization; Based on the built-in fault diagnosis model, the processed data is analyzed to detect whether there are anomalies or faults; If an anomaly or fault is detected, it will be classified according to the fault type and severity, and a detailed fault diagnosis report will be generated. The fault diagnosis report will be further analyzed and verified in combination with historical data and expert knowledge base; Through the input / output signal detection function of the PLC controller and the fault diagnosis report, the fault location can be located; If the fault is located successfully, the isolation mechanism is activated to isolate the faulty part from the normal part; If the fault location fails, perform secondary location by simulating the fault scenario through the analog signal fault diagnosis method. If the location is successful, execute the previous step; According to the results of fault diagnosis and location, formulate corresponding fault handling plans to handle the fault, which include replacing faulty parts, repairing damaged equipment, and adjusting parameter settings. After the fault handling is completed, test and verify the system; Based on the test and verification results, analyze the causes and patterns of failures, and formulate corresponding preventive measures and optimization plans; The process and results of each fault diagnosis and handling shall be recorded in detail, and a fault report shall be generated. The fault reports shall be summarized and analyzed regularly to identify common and regular problems, and to develop improvement measures and optimization plans.
[0029] The working principle of the above technical solution is: collect real-time operation data from the PLC controller and each functional module through the communication interface. These data cover key parameters such as input / output signal status, communication status and power supply status. The preprocessing stage will filter out the noise in the data, fill in the missing values, and implement data standardization to eliminate data deviations, providing an accurate and reliable basis for subsequent analysis; use the built-in fault diagnosis model (which may include machine learning algorithms, rule engines, etc.) to conduct in-depth analysis of the preprocessed data to identify any patterns or indicators that deviate from normal operating conditions, that is, abnormal or fault signals. This process involves complex algorithmic analysis, which aims to accurately determine the existence and characteristics of the fault; once an abnormality is detected, the system will further classify the fault type and assess its severity, and generate a diagnostic report. Combined with historical fault data and expert system knowledge, the preliminary diagnostic results are cross-validated to ensure the accuracy of the diagnosis; the PLC's input / output monitoring function and diagnostic report are used to accurately locate the fault location. Once the location is successful, the isolation mechanism is immediately activated to prevent the impact of the fault from expanding. If the initial positioning is unsuccessful, a secondary positioning is performed using advanced diagnostic methods that simulate the fault scenario; based on the positioning results, specific fault handling measures are formulated and implemented, such as replacing parts, repairing equipment, or adjusting parameters. After processing, a comprehensive system test and verification is performed to ensure that all faults have been completely resolved and the system has resumed normal operation; the cause of the fault is deeply analyzed, the law of fault occurrence is summarized, and preventive measures and system optimization plans are formulated accordingly to reduce the probability of future faults; the entire process and results of each fault handling are recorded in detail, a fault report is formed, and regular summary and analysis are conducted to identify common problems and trends, and guide future system improvements and maintenance strategy optimization.
[0030] The effects of the above technical solutions are as follows: through real-time monitoring and intelligent analysis, it is possible to quickly identify anomalies at the early stage of a fault, reduce the production interruption time caused by the failure to be discovered in time, and ensure the high accuracy of the diagnostic results to avoid false alarms and missed reports; the fault location and isolation mechanism can quickly lock and isolate the problem area, effectively prevent the spread of the fault, ensure the normal operation of other system components, and reduce the risk of the entire system being completely paralyzed due to a single point of failure; based on the detailed report and regular analysis of fault diagnosis, enterprises can plan maintenance activities more scientifically, shift from passive maintenance to predictive maintenance, reduce unnecessary maintenance operations, save maintenance costs, and extend equipment life; through rapid fault response and processing, it can minimize downtime, maintain the continuous operation of the production line, directly improve production efficiency and capacity, and create more value for the enterprise; regularly summarize and analyze fault reports to help enterprises discover and solve common problems and promote continuous improvement in technology and management. Based on fault data analysis, potential optimization space can also be discovered to guide technological innovation and system upgrades; the historical data and expert knowledge base accumulated during the fault diagnosis process provide management with a wealth of decision-making basis, which helps to make more wise choices when facing complex problems and improve decision-making efficiency and quality.
[0031] In one embodiment of the present invention, if the fault location fails, a secondary location is performed by simulating a fault scenario through an analog signal fault diagnosis method, and the previous step is performed after the location is successful, including: Based on the known working principles and fault characteristics of PLC controllers and functional modules, a fault scenario model is constructed. Through simulation software, fault conditions similar to those in the real environment are simulated, and different parameters and variables are set to simulate multiple possible fault modes. In the simulated fault scenario, the analog signal is collected in real time by the sensor, and the collected analog signal is processed, including filtering, amplification and digitization, and key information is extracted; the analog signal is subjected to spectrum analysis, time domain analysis and correlation analysis through data analysis tools; Combine expert knowledge and historical data to build a fault feature library, store the signal features corresponding to various faults, and use pattern recognition algorithms to match and identify the extracted analog signal features; If a signal feature that matches a known fault feature is identified, it is determined to be a corresponding fault; If the initial positioning fails, a secondary positioning strategy is developed based on the results of the analog signal analysis; By utilizing the redundant design and backup function of the PLC controller, the fault scope can be reduced by switching the backup channel or standby equipment; and the fault propagation path can be inferred by combining the system topology and the dependency between functional modules; According to the formulated secondary positioning strategy, the fault point is checked and verified through the step-by-step approach and elimination method; The results of the secondary positioning are fed back into the fault diagnosis model to update and optimize the model.
[0032] The working principle of the above technical solution is as follows: First, a virtual fault scenario model is constructed based on the actual working principle and known fault characteristics of the PLC controller and functional modules. Simulation software is used to simulate various fault conditions that may be encountered in the real environment, including but not limited to electrical faults, communication interruptions, hardware damage, etc. By adjusting different parameters and variables, a wide range of fault mode libraries are generated to lay the foundation for subsequent simulation analysis; in the simulation environment, sensors are used to monitor the changes of analog signals in real time. These signals undergo pre-processing steps such as filtering, amplification, and digitization to eliminate interference and convert them into data forms that are easy to analyze. Subsequently, advanced data analysis methods such as spectrum analysis, time domain analysis, and correlation analysis are used to extract key feature information from the signal; expert systems and historical fault cases are used to build a database containing typical fault features. By performing pattern recognition on the processed analog signal features and matching them with the fault feature library, if a match is found, the fault type can be preliminarily identified. This process incorporates machine learning algorithms to improve the accuracy and efficiency of recognition; if the initial simulation positioning fails, the system will adjust the strategy based on the results of the simulation signal analysis. By utilizing the redundant design of the PLC system, switching to the backup channel or enabling the backup equipment, the scope of the fault is reduced, and the possible propagation path of the fault is analyzed in combination with the system structure. Then, the step-by-step approach and elimination method is adopted to systematically check each potential fault point until it is accurately located; finally, the results of the secondary positioning are fed back to the fault diagnosis model for continuous updating and optimization of the model. This means that each diagnostic process is not only a treatment of the current fault, but also a training and improvement of the fault diagnosis capability, ensuring that the model can adapt to a wider range of and more complex fault conditions, forming a closed-loop system that is constantly learning and evolving.
[0033] The effect of the above technical solution is: by simulating fault scenarios and deeply analyzing analog signals, the source of the fault can be quickly located without interrupting actual production or system operation, reducing time delays and resource waste caused by blind disassembly and inspection. At the same time, combined with advanced signal processing technology and pattern recognition algorithms, the accuracy of diagnosis is improved and the possibility of misjudgment is reduced; using the redundant design and backup function of the PLC controller, it can quickly switch when a fault occurs to ensure the continuity of system operation and reduce downtime losses. In addition, accurate fault location can replace or repair faulty components in a targeted manner, avoiding unnecessary replacement of parts and greatly saving maintenance costs; this solution can provide early warning of potential faults through the establishment and continuous optimization of the fault feature library, and preventive maintenance reduces the risk of sudden faults and enhances the stability and safety of the system. Analyzing the fault propagation path in combination with the system topology structure helps to design a more robust system architecture and prevent chain reactions of faults; after each fault diagnosis, the experience is fed back to the model for updating and optimization, forming a self-learning and continuous improvement mechanism. This not only improves the efficiency of future fault diagnosis, but also promotes the entire maintenance system to move towards a higher level of intelligence and automation; the solution combines expert knowledge with historical data, transforming valuable experience into an operational fault feature library and diagnostic rules, which is helpful for knowledge inheritance and new employee training. At the same time, with the accumulation and analysis of more cases, the capabilities of the expert system are continuously expanded and deepened.
[0034] In one embodiment of the present invention, the quick-release connection structure includes a guide structure, a locking mechanism, and an unlocking mechanism. The guide structure is used to align the functional module body during the insertion process; the locking mechanism is used to fix the inserted functional module body on the PLC controller; and the unlocking mechanism is used to unlock and pull out the fixed functional module body.
[0035] The quick-release connection structure adopts magnetic locking.
[0036] The working principle of the above technical solution is as follows: the guide structure is designed with precise geometric shapes or guide grooves, which match the corresponding features on the functional module to ensure that the module can slide into place smoothly along the correct path. This not only simplifies the installation process, but also avoids damage caused by incorrect docking and ensures the correct alignment of the electrical interface. Once the functional module is correctly aligned and contacts the quick-release connection structure, the magnetic locking mechanism will come into play. This mechanism usually includes magnetic elements located on the functional module and the controller, and when the two are close, they are automatically locked due to magnetic attraction. The size of the magnetic force is carefully designed to be sufficient to firmly fix the module and ensure that it will not loosen under vibration or slight external force, while allowing it to be easily unlocked by specific operations when necessary. When the functional module needs to be removed, the unlocking mechanism intervenes. The unlocking mechanism neutralizes the locking magnetic force through an electromagnet controlled by an electronic signal. In the case of electromagnetic locking, an electrical signal is sent to the unlocking electromagnet, causing it to generate a magnetic field of opposite polarity, thereby offsetting the attraction of the fixed magnet and allowing the module to be safely removed.
[0037] The effects of the above technical solutions are as follows: the quick-release connection structure enables the functional modules to be replaced or upgraded quickly and easily without the need for complex tools or professional skills, significantly shortening the time required for maintenance and upgrading, and improving production efficiency and system availability; the guide structure ensures that the functional modules can be accurately aligned with the interface, so that even non-professionals can easily complete the plug-in and unplug operations, reducing the difficulty of operation and the error rate; the magnetic locking mechanism ensures a stable connection while avoiding the wear and failure problems that may exist in traditional mechanical locks, enhancing the reliability of the connection and reducing the risk of accidents caused by loose connections; the quick-release design simplifies the maintenance process, reduces the manpower and time costs required for maintenance, and also reduces the additional repair costs caused by improper maintenance. In the long run, it is conducive to reducing overall operating costs; the quick-release structure enables the system to flexibly adapt to different functional module configurations, facilitates rapid adjustment or upgrading according to production needs, and increases the adaptability of the system and compatibility with future technological developments; when a fault occurs, the ability to quickly replace the faulty module can significantly reduce system downtime and ensure production continuity, which is particularly important for continuous production processes and helps maintain production efficiency and economic benefits.
[0038] In one embodiment of the present invention, the steps for implementing the hot-swap function include: When the function module body approaches the PLC controller, the main controller detects through the communication interface unit whether there is a new function module ready to be connected; If a new functional module is detected to be connected, the main controller starts the intelligent identification unit to identify the information of the functional module to be connected; the information includes type and version; If the identification is successful, the main controller guides the functional module body to align through the guide structure of the quick-release connection structure. At the same time, the main controller starts the fault diagnosis unit to pre-check the electrical environment of the PLC controller and the functional module body; Before the functional module body contacts the hot-swap interface, the main controller pre-adjusts the resistance value of the PTC (positive temperature coefficient thermistor) through the control circuit to put it into a preheating state; the preheating of the PTC helps to reduce the temperature shock at the moment of insertion, thereby indirectly reducing the current shock.
[0039] When the functional module body contacts the hot-swap interface, the main controller accurately controls the on-time of the MOS tube through the timing circuit, and in the initial contact stage, the MOS tube is in the off state to prevent the generation of instantaneous large current. When the functional module body contacts the interface completely, the main controller gradually increases the on-time of the MOS tube according to the signal of the timing circuit, so that the current rises steadily; During the connection between the functional module body and the main controller, the main controller monitors the current change in real time through the MOS tube current detection resistor; if the current is abnormal, it is adjusted through the conduction state of the MOS tube of the main controller; When the function module body is stably connected to the main controller, the locking mechanism of the quick-release connection structure fixes the function module body on the PLC controller, the main controller activates the function module, and transmits signals and data through the I / O interface unit; When the functional module needs to be separated, the main controller stops the signal and data transmission with the functional module and starts the unlocking mechanism to release the locking state of the functional module body; While unlocking, the main controller controls the MOS tube to turn off, disconnects the electrical connection between the function module and the main controller, and pulls the function module body out of the main controller through the quick-release connection structure.
[0040] The working principle of the above technical solution is as follows: when the functional module approaches the PLC controller, the main controller first senses this event through the communication interface unit and starts the intelligent identification unit. This unit is responsible for identifying the type and version information of the module, confirming whether it is compatible with the current system, and preparing for subsequent operations; after successful identification, the main controller uses the guide mechanism of the quick-release connection structure to guide the module to accurately align. At the same time, the fault diagnosis unit is started to pre-check the electrical environment to ensure the safety of the connection. In order to reduce the temperature and current shock at the moment of hot plugging, the main controller controls the preheating of the PTC thermistor and adjusts its resistance value to achieve a smooth transition; at the moment when the functional module contacts the hot plug interface, the main controller precisely controls the conduction time of the MOS tube through the timing circuit, initially keeping the MOS tube closed to avoid instantaneous shocks of large current. As the contact is gradually completed, the main controller gradually increases the conduction time of the MOS tube to make the current rise smoothly and ensure the stability of the electrical connection; during the connection process, the main controller monitors the current changes in real time through the MOS tube current detection resistor. Once an abnormality is detected, the conduction state of the MOS tube is immediately adjusted or disconnected to prevent damage to the system, which reflects a high degree of self-protection mechanism; after the functional module is stably connected to the main controller, the locking mechanism of the quick-release connection structure fixes it, and the main controller activates the functional module, starts two-way transmission of signals and data through the I / O interface, and realizes the normal operation of the module; when the module needs to be separated, the main controller first stops data transmission, activates the unlocking mechanism to release the module, and controls the MOS tube to disconnect the electrical connection to ensure safe separation. Through the quick-release connection structure, the functional module can be quickly and non-destructively pulled out from the main controller.
[0041] The effects of the above technical solution are as follows: through fast and uninterrupted hot-swap operations, functional modules can be replaced or upgraded while the system is running, which greatly shortens maintenance time, reduces unplanned downtime, and improves the maintainability and flexibility of the system; before and after the module is connected, through intelligent identification, electrical environment pre-inspection, PTC preheating, MOS tube control and other measures, risks such as electrical shock, current overload and short circuit are effectively prevented, system hardware is protected from damage, and operator safety is guaranteed; precise MOS tube conduction time control and real-time current monitoring ensure a steady rise in current. Once a current abnormality is detected, it can be quickly adjusted or disconnected to avoid the expansion of electrical faults and enhance the stability and reliability of the system; from module identification to fault diagnosis, electrical The full automation of environmental pre-inspection, current control, and other processes reduces manual intervention, relies on intelligent identification and control logic, improves work efficiency, and reduces operational errors; the hot-swap function enables the system to easily accept new or upgraded functional modules, provides convenience for continuous optimization and functional expansion of the system, supports rapid iteration of technology, and adapts to the needs of different application scenarios; during the replacement or upgrade of functional modules, the impact on system operation is minimized to ensure the continuity of production or service, which is crucial for applications such as industrial automation and data centers with high availability requirements; rapid maintenance response, reduced downtime, and automated fault prevention and handling mechanisms jointly reduce maintenance costs, while improving equipment utilization and enhancing return on investment.
[0042] In one embodiment of the present invention, during the connection between the functional module body and the main controller, the main controller monitors the current change in real time through the MOS tube current detection resistor; if the current is abnormal, the conduction state of the MOS tube of the main controller is adjusted, including: When the functional module body starts to contact the hot-swap interface, the main controller starts the monitoring function of the MOS tube current detection resistor, and obtains the current value in the MOS tube in real time through the high-precision current detection circuit, and converts it into a digital signal; After receiving the current data, the main controller performs data analysis to determine whether the current is within the preset safety range. At the same time, it compares it with historical data, analyzes the trend of current changes, and predicts abnormal situations. If the current value is found to exceed the preset safety threshold, or the current change trend is abnormal, an early warning signal will be issued through the main controller; The main controller selects an adjustment strategy according to the specific situation of the current anomaly and the system status; for example, the on-time of the MOS tube can be gradually reduced to reduce the current value; or other related parameters such as voltage, frequency, etc. can be adjusted to optimize the electrical environment.
[0043] If the adjustment strategy cannot control the current anomaly, or the anomaly continues to worsen, the main controller will start the safety protection mechanism, including immediately disconnecting the MOS tube and completely isolating the electrical connection between the functional module and the main controller; or starting the backup power supply to ensure safe and stable operation of the system.
[0044] The working principle of the above technical solution is as follows: when the functional module starts to contact the hot-swap interface, the main controller activates the monitoring function of the MOS tube current detection resistor. Through the high-precision current detection circuit, the current value is continuously and real-time obtained from the MOS tube and converted into a digital signal that is easy to process. This step ensures real-time monitoring of current changes; after receiving the current data, the main controller immediately analyzes it. First, determine whether the current remains within the preset safety threshold to avoid overload. At the same time, the system will compare historical data, analyze the current change trend, and use algorithms to predict potential abnormalities, which will help to detect potential problems early; if the analysis results show that the current exceeds the safety range or the trend is abnormal, the main controller immediately triggers the early warning mechanism. The early warning can quickly notify the operator or system administrator in the form of sound and light alarms or system log records, providing timely information for manual intervention; according to the specific situation of the current abnormality and the system status, the main controller adopts corresponding adjustment strategies. It may include dynamically adjusting the conduction time of the MOS tube to reduce the current, or adjusting electrical parameters such as voltage and frequency, optimizing the operating environment, and trying to solve the problem without affecting the system performance; if the above adjustment strategy cannot effectively control the current abnormality, or the abnormality intensifies, the main controller will execute safety protection measures. This includes immediately disconnecting the MOS tube and completely isolating the electrical connection between the functional module and the main controller to prevent the fault from spreading.
[0045] The effects of the above technical solutions are as follows: real-time current monitoring and rapid response mechanisms can detect and handle current anomalies in a timely manner, effectively preventing safety accidents such as equipment damage, short circuit or fire caused by overcurrent, and greatly enhancing the operational safety of the system; timely issuance of over-warning signals enables operators to quickly learn of problems and intervene in the processing, reducing troubleshooting time and improving the efficiency of maintenance work. At the same time, system log records help trace the cause of the fault, facilitating subsequent analysis and prevention; the main controller can dynamically adjust the conduction state or electrical parameters of the MOS tube according to the abnormal current situation. This adaptive adjustment strategy can optimize the electrical environment, ensure that the current is within a safe range, maintain stable operation of the system, and reduce human intervention. The system can effectively manage the current to avoid the impact of overload and current mutation on components, thereby extending the service life of key equipment such as functional modules and main controllers, and reducing the maintenance and replacement costs caused by electrical problems. When the current anomaly cannot be controlled by adjusting the strategy, the system can automatically start the safety protection mechanism, such as disconnecting or enabling the backup power supply. This fast fault isolation and response strategy ensures that the core functions of the system are not affected to the greatest extent and maintains business continuity. The automated monitoring and intelligent management of the entire process reduce the complexity and error rate of manual operations, improve the automation and intelligence level of the system, and meet the development trend of modern industrial automation and intelligent operation and maintenance.
[0046] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A PLC controller function module with hot-swap function, comprising a main controller, a function module body, a hot-swap interface and a quick-release connection structure, characterized in that: The main controller and the functional module body are connected and separated by a quick-release connection structure, and the hot-swap interface is used for signal and data transmission when the functional module body is connected and separated from the main controller.
2. According to claim 1, a PLC controller function module with hot-swap function is characterized in that: The functional module body includes an intelligent identification unit, a communication interface unit, a data processing unit, an I / O interface unit, a quick-release connection structure interface, a fault diagnosis unit and a data storage unit.
3. According to claim 2, a PLC controller function module with hot-swap function, characterized in that: The data storage step of the data storage unit comprises: When the main controller of the functional module is connected, the data storage unit performs initialization operations and establishes storage areas according to the preset data structure and format; and allocates storage space to each storage area, and sets corresponding access rights and security mechanisms; The data storage unit collects the operation data of the functional module in real time through the I / O interface unit, and pre-processes the collected data; and organizes the pre-processed data according to the timestamp; Compress the organized data through compression algorithms, and optimize the storage and retrieval performance of data through indexes and data structures; Based on distributed storage and redundant backup mechanisms, the storage space is further configured; the stored sensitive data is encrypted, access control policies are set, and the encryption algorithm and access control policies are regularly updated.
4. According to claim 2, a PLC controller function module with hot-swap function, characterized in that: The fault diagnosis step of the fault diagnosis unit includes: The fault diagnosis unit collects the operation data of the PLC controller and the functional modules through the communication interface unit and pre-processes the collected data; Based on the built-in fault diagnosis model, the processed data is analyzed to detect whether there are anomalies or faults; If an anomaly or fault is detected, it will be classified according to the fault type and severity, and a detailed fault diagnosis report will be generated. The fault diagnosis report will be further analyzed and verified in combination with historical data and expert knowledge base; Through the input / output signal detection function of the PLC controller and the fault diagnosis report, the fault location can be located; If the fault is located successfully, the isolation mechanism is activated to isolate the faulty part from the normal part; If the fault location fails, perform secondary location by simulating the fault scenario through the analog signal fault diagnosis method. If the location is successful, execute the previous step; According to the results of fault diagnosis and location, formulate corresponding fault handling plans to handle the faults. After the fault handling is completed, test and verify the system; Based on the test and verification results, analyze the causes and patterns of failures, and formulate corresponding preventive measures and optimization plans; The process and results of each fault diagnosis and handling shall be recorded in detail, and a fault report shall be generated. The fault reports shall be summarized and analyzed regularly to identify common and regular problems, and to develop improvement measures and optimization plans.
5. A PLC controller function module with hot-swap function according to claim 4, characterized in that: The troubleshooting solution includes replacing faulty parts, repairing damaged equipment, and adjusting parameter settings.
6. A PLC controller function module with hot-swap function according to claim 4, characterized in that: If the fault location fails, a secondary location is performed by simulating a fault scenario through an analog signal fault diagnosis method. After the location is successful, the previous step is performed, including: Based on the known working principles and fault characteristics of PLC controllers and functional modules, a fault scenario model is constructed. Through simulation software, fault conditions similar to those in the real environment are simulated, and different parameters and variables are set to simulate multiple possible fault modes. In the simulated fault scenario, the analog signals are collected in real time through sensors, processed, and key information is extracted; the analog signals are analyzed by spectrum, time domain, and correlation through data analysis tools; Combine expert knowledge and historical data to build a fault feature library, store the signal features corresponding to various faults, and use pattern recognition algorithms to match and identify the extracted analog signal features; If a signal feature that matches a known fault feature is identified, it is determined to be a corresponding fault; If the initial positioning fails, a secondary positioning strategy is developed based on the results of the analog signal analysis; By utilizing the redundant design and backup function of the PLC controller, the fault scope can be reduced by switching the backup channel or standby equipment; and the fault propagation path can be inferred by combining the system topology and the dependency between functional modules; According to the formulated secondary positioning strategy, the fault point is checked and verified through the step-by-step approach and elimination method; The results of the secondary positioning are fed back into the fault diagnosis model to update and optimize the model.
7. The PLC controller function module with hot-swap function according to claim 1, characterized in that: The quick-release connection structure comprises a guiding structure, a locking mechanism and an unlocking mechanism.
8. The PLC controller function module with hot-swap function according to claim 7, characterized in that: The quick-release connection structure adopts magnetic locking.
9. The PLC controller function module with hot-swap function according to claim 1, characterized in that: The steps for implementing the hot-swap function include: When the function module body approaches the PLC controller, the main controller detects through the communication interface unit whether there is a new function module ready to be connected; If a new functional module is detected, the main controller starts the intelligent identification unit to identify the information of the functional module to be connected; If the identification is successful, the main controller guides the functional module body to align through the guide structure of the quick-release connection structure. At the same time, the main controller starts the fault diagnosis unit to pre-check the electrical environment of the PLC controller and the functional module body; Before the functional module body contacts the hot-swap interface, the main controller pre-adjusts the resistance value of the PTC through the control circuit to put it into a preheating state; When the function module body contacts the hot-swap interface, the main controller accurately controls the on-time of the MOS tube through the timing circuit. When the function module body contacts the interface completely, the main controller gradually increases the on-time of the MOS tube according to the signal of the timing circuit. During the connection between the functional module body and the main controller, the main controller monitors the current change in real time through the MOS tube current detection resistor; if the current is abnormal, it is adjusted through the conduction state of the MOS tube of the main controller; When the function module body is stably connected to the main controller, the locking mechanism of the quick-release connection structure fixes the function module body on the PLC controller, the main controller activates the function module, and transmits signals and data through the I / O interface unit; When the functional module needs to be separated, the main controller stops the signal and data transmission with the functional module and starts the unlocking mechanism to release the locking state of the functional module body; While unlocking, the main controller controls the MOS tube to turn off, disconnects the electrical connection between the function module and the main controller, and pulls the function module body out of the main controller through the quick-release connection structure.
10. A PLC controller function module with hot-swap function according to claim 9, characterized in that: During the connection between the functional module body and the main controller, the main controller monitors the current change in real time through the MOS tube current detection resistor; If the current is abnormal, the conduction state of the main controller MOS tube is adjusted, including: When the functional module body starts to contact the hot-swap interface, the main controller starts the monitoring function of the MOS tube current detection resistor, and obtains the current value in the MOS tube in real time through the high-precision current detection circuit, and converts it into a digital signal; After receiving the current data, the main controller performs data analysis to determine whether the current is within the preset safety range. At the same time, it compares it with historical data, analyzes the trend of current changes, and predicts abnormal situations. If the current value is found to exceed the preset safety threshold, or the current change trend is abnormal, an early warning signal will be issued through the main controller; The main controller selects an adjustment strategy based on the specific situation of the current anomaly and the system status; If the adjustment strategy cannot control the current anomaly, or the anomaly continues to worsen, the safety protection mechanism is activated through the main controller.
Citation Information
Patent Citations
Programmable logic controller supporting hot swap / hot plug
CN102169334A
High speed backboard bus communication control device and method
CN105573239A
Industrial protocol message recording device and method
CN109600258A
HOT PLUG DEVICE FOR PLC backboard
CN110096021A
Automatic disassembly split type case system based on hot plug and working method
CN110618738A
Cited By
Intelligent fault detection and real-time hot plug system
CN119597523A
Intelligent monitoring device connection method based on PCIE (Peripheral Component Interface Express) slot
CN119861602A
PCIE slot-based intelligent monitoring device connection method
CN119861602B
Universal serial bus (USB) flash disk hot plug protection self-adaptive current regulation and control system
CN119994816A
USB Flash Drive Hot Plugging Protection Adaptive Current Regulation System
CN119994816B
