A PLC remote monitoring and control method and system based on industrial Internet of Things

Through the PLC remote monitoring and control method based on the Industrial Internet of Things, the problems of low efficiency and safety risks of traditional PLC monitoring methods are solved, efficient remote monitoring and control of PLC equipment is achieved, and the stability and safety of the production line are ensured.

CN118363346BActive Publication Date: 2024-08-30SHENZHEN HUICHEN AUTOMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410802633.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-08-30
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

Traditional PLC monitoring methods rely on manual observation and manual testing, resulting in low resource utilization efficiency and inability to meet the needs of modern industrial production. There are also problems such as equipment failures, sensor abnormalities, and communication interruptions, leading to production interruptions and safety risks.

Method used

Using the PLC remote monitoring and control method based on the Industrial Internet of Things, by obtaining the PLC equipment structure diagram and communication interaction data, multi-level component decomposition, topology analysis and dynamic path optimization are performed to build a distributed flow computing architecture to achieve real-time status monitoring and dynamic Resource scheduling ensures system communication efficiency and stability.

Benefits of technology

It improves the efficiency of remote monitoring and control of PLC equipment, enhances the maintainability and scalability of the system, predicts equipment failures in a timely manner, optimizes communication performance, and ensures the stability and safety of the production line.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118363346B
    Figure CN118363346B
Patent Text Reader

Abstract

The present invention relates to the field of PLC control technology, and in particular to a PLC remote monitoring control method and system based on industrial Internet of Things, the method comprising the following steps: obtaining a PLC device structure diagram; performing multi-level component decomposition of the PLC device to obtain device component nodes; performing spatial topological structure analysis on the device component nodes to obtain component topological structure data; performing topological distribution reconstruction on the component topological structure data to construct a component logical topological structure diagram; obtaining PLC device communication interaction data; generating component communication logic data based on the PLC device communication interaction data; performing stable communication link learning between components on the component logical topological structure diagram according to the component communication logic data to obtain component communication paths; obtaining path delay frequency hopping data based on the component communication paths; performing shortest path analysis of adjacent components on the component logical topological structure diagram to generate shortest path data between components. The present invention achieves high utilization of PLC devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of PLC control technology, and in particular to a PLC remote monitoring control method and system based on industrial Internet of Things. Background Art

[0002] With the improvement of industrial automation level, PLC (Programmable Logic Controller) system widely used in factories and production lines has become the key equipment to realize automated operation. PLC system is responsible for controlling and monitoring the operation status and production process of industrial equipment to ensure the stability and efficiency of production line. However, in the process of long-term continuous operation, PLC system will be affected by various internal and external factors, such as equipment failure, sensor abnormality, communication interruption, etc. These factors lead to equipment shutdown, production interruption and safety risks. Traditional PLC monitoring method mainly relies on manual observation and manual testing. There is a problem of low efficiency of PLC resource control utilization, which cannot meet the needs of modern industrial production. Therefore, in order to solve the limitations of traditional methods, an intelligent PLC remote monitoring and control method is needed. Summary of the invention

[0003] In order to solve the above technical problems, the present invention proposes a PLC remote monitoring and control method and system based on industrial Internet of Things to solve at least one of the above technical problems.

[0004] To achieve the above object, the present invention provides a PLC remote monitoring and control method based on industrial Internet of Things, comprising the following steps:

[0005] Step S1: obtaining a PLC device structure diagram; performing multi-level component decomposition of the PLC device to obtain device component nodes; performing spatial topological structure analysis on the device component nodes to obtain component topological structure data; performing topological distribution reconstruction on the component topological structure data to construct a component logical topological structure diagram;

[0006] Step S2: obtaining PLC device communication interaction data; generating component communication logic data based on the PLC device communication interaction data; and learning the component logic topology structure diagram for stable communication links between components according to the component communication logic data to obtain the component communication path;

[0007] Step S3: Based on the component communication path to obtain the path delay frequency hopping data; perform the shortest path analysis between adjacent components on the component logical topology structure diagram to generate the shortest path data between components; perform dynamic path optimization on the component logical topology structure diagram based on the path delay frequency hopping data and the shortest path data between components to construct the component topology optimization structure diagram;

[0008] Step S4: Perform real-time status monitoring on the PLC device to obtain real-time status data of the PLC device; perform status change trend analysis on the real-time status data of the PLC device to generate device status change trend data;

[0009] Step S5: Generate a microservice component package based on the device component node; perform distributed stream computing architecture fitting on the microservice component package based on the component topology optimization structure diagram to build a distributed stream computing framework;

[0010] Step S6: Based on the device status change trend data, use the distributed stream computing framework to dynamically schedule the PLC device's computing resources to obtain PLC dynamic computing resource scheduling data; build a PLC dynamic scheduling model based on the PLC dynamic computing resource scheduling data to execute PLC dynamic control operations.

[0011] The present invention obtains a PLC device structure diagram and performs multi-level component decomposition to deeply understand the internal composition and hierarchical structure of the PLC device, thereby providing a basis for subsequent remote monitoring and control, performs spatial topological structure analysis and topological distribution reconstruction, establishes the association relationship and topological structure between components, provides a basis for subsequent communication and path optimization, constructs a component logical topological structure diagram to clearly display the logical relationship between components, provides a visual reference for system design and troubleshooting, obtains PLC device communication interaction data to understand the communication mode and communication requirements between components, provides a basis for subsequent communication optimization and path planning, generates component communication logic data based on communication interaction data to describe the communication rules and methods between components, helps understand the communication process of the system, determines a reliable communication path by learning stable communication links between components, ensures accurate information transmission and stable operation of the system, obtains path delay frequency hopping data, evaluates the delay and frequency hopping frequency of the communication path, provides a basis for optimizing communication performance, performs shortest path analysis of adjacent components, determines the shortest path between components, shortens the communication distance and reduces communication delay, improves communication efficiency, and dynamically optimizes the path according to real-time path delay frequency hopping data and shortest path data. Component logical topology diagram, optimize communication paths, make system communication more efficient and stable, real-time status monitoring obtains the real-time working status of PLC equipment, including temperature, pressure, current and other parameters, to help monitor the operation of equipment in real time, through the state change trend analysis of real-time status data, find the change law and trend of equipment status, timely predict equipment failure or abnormal situation, take corresponding monitoring and control measures, generate microservice component package based on equipment component node, abstract and encapsulate the functions and modules of PLC equipment, form independent microservice components, improve the maintainability and scalability of the system, fit the distributed stream computing architecture of microservice component package, combine the component package with the distributed stream computing framework, realize efficient data stream processing and distributed computing, improve the performance and concurrent processing capability of the system, realize dynamic computing resource scheduling of PLC equipment based on equipment status change trend data and distributed stream computing framework, reasonably allocate computing resources according to the change of equipment status, improve the operation efficiency and responsiveness of the system, build PLC dynamic scheduling model, formulate corresponding scheduling strategy and control operation according to PLC dynamic computing resource scheduling data, realize dynamic control and optimization of PLC equipment.

[0012] Preferably, step S1 comprises the following steps:

[0013] Step S11: Obtain a PLC device structure diagram;

[0014] Step S12: performing multi-level component decomposition of the PLC device to obtain device component nodes;

[0015] Step S13: marking the physical position of the device component nodes based on the PLC device structure diagram to obtain the component position coordinates;

[0016] Step S14: performing spatial topological structure analysis on the device component nodes based on the component position coordinates to obtain component topological structure data;

[0017] Step S15: Performing topological connection logic association analysis on the component topological structure data to obtain topological logic relationship data between components;

[0018] Step S16: Reconstruct the topological distribution of device component nodes according to the topological logical relationship data between components, and construct a component logical topological structure diagram.

[0019] The present invention obtains a PLC device structure diagram to fully understand the composition and hierarchical structure of the device. The structure diagram provides the relationship and connection mode between various components of the device, providing a basis for subsequent analysis and control. The multi-level component decomposition decomposes the PLC device into smaller component units, making the device structure clearer and modularized. The obtained device component nodes are more convenient for subsequent analysis and control operations. The position of each device component in the actual physical space is determined by physical position marking. The obtained component position coordinates provide the spatial relationship between the device components, providing a basis for subsequent spatial topology analysis and path planning. The spatial topology structure analysis reveals the spatial topology between the components by considering the physical position relationship between the components. The obtained component topology structure data provides a basis for subsequent communication optimization, path planning and layout optimization. The topology connection logic association analysis reveals the logical relationship between the components, including the connection mode, communication requirements, etc. The obtained inter-component topology logic relationship data provides a basis for subsequent communication path optimization and control logic design. The topology distribution reconstruction reorganizes and arranges the device component nodes based on the logical relationship and spatial position between the components. The constructed component logic topology structure diagram can intuitively display the connection relationship and layout between the components, providing a visual reference for PLC remote monitoring and control.

[0020] Preferably, the specific steps of step S2 are:

[0021] Step S21: Acquire PLC device communication interaction data;

[0022] Step S22: performing functional abstract analysis on the device component node to obtain component communication interface type data;

[0023] Step S23: performing inter-component communication logic analysis on the component communication interface type data based on the PLC device communication interaction data to generate component communication logic data;

[0024] Step S24: performing inter-component stable communication link learning on the component logic topology diagram according to the component communication logic data to obtain the component communication path.

[0025] The present invention obtains the communication interaction data of PLC devices to understand the communication mode, protocol and data transmission requirements between devices. The communication interaction data provides a basis for information transmission between devices and provides data support for subsequent functional abstraction and communication logic analysis. The functional abstraction analysis converts the device component nodes from specific implementations into functional modules, extracts the functional characteristics and interface requirements of the components, and the obtained component communication interface type data describes the input and output interface type of each component, providing a basis for subsequent communication logic analysis. The communication logic analysis between components is based on the communication interaction data of the devices and the communication interface type data of the components, and analyzes the communication logic relationship between components. The generated component communication logic data describes the communication requirements, communication mode and data transmission relationship between components, and provides a basis for subsequent communication path learning. The stable communication link learning between components is based on the communication logic data between components, and analyzes and learns the stable communication path between components. The obtained component communication path describes the stable communication link between different components in the PLC device, and establishes a reliable communication path for remote monitoring and control operations.

[0026] Preferably, the specific steps of step S24 are:

[0027] Calculate the component communication frequency of the PLC device communication interaction data to obtain the component communication frequency;

[0028] Based on the component communication frequency, the frequently communicating components of the device component nodes are identified to extract the frequently communicating component nodes;

[0029] Perform node connection analysis on frequently communicating component nodes according to component communication logic data. When the frequently communicating component nodes are directly connected, identify the node communication path based on the component logical topology diagram to obtain the component direct communication path.

[0030] When the frequently communicating component nodes are indirectly connected, the transit component nodes are identified based on the component logical topology diagram to obtain the transit component nodes;

[0031] Based on the transit component nodes, node communication paths are identified on the component logical topology structure diagram to obtain component transit communication paths;

[0032] Based on the component communication frequency, low-frequency paths are identified in the component logical topology diagram to extract the component low-frequency paths;

[0033] Based on the low-frequency paths of the components, the low-frequency paths of the component logical topology diagram are eliminated, and based on the direct communication paths of the components and the low-frequency paths of the components, the stable communication links of the component logical topology diagram are identified to obtain the component communication paths.

[0034] The present invention calculates the communication frequency between each component by analyzing the communication interaction data of the PLC device. The component communication frequency provides the activeness of the communication between each component, and provides a basis for the subsequent frequent communication component identification. The frequent communication component identification identifies the component nodes that frequently communicate in the PLC device according to the component communication frequency. The extracted frequent communication component nodes are important and have a guiding role in the subsequent communication path identification and stable communication link construction. The node connection analysis determines whether there is a direct connection relationship between the frequent communication component nodes according to the component communication logic data. By identifying the node communication path based on the component logical topology structure diagram, the direct communication path between the frequent communication component nodes is obtained, and a direct communication path is provided for remote monitoring and control. When there is no direct connection between the frequent communication component nodes, the transit component node identification identifies the component nodes that play a transit role between the frequent communication component nodes according to the component logical topology structure diagram. The identification of transit component nodes is helpful for the construction of subsequent component transit communication paths. The node communication paths of the component logical topology diagram are identified based on the transit component nodes, and the communication paths between the frequently communicating component nodes passing through the transit component nodes are obtained. The component transit communication paths provide the path information of indirect communication between the frequently communicating components, and provide a reference for the transit communication paths for remote monitoring and control. The low-frequency path identification identifies the paths with low communication frequencies in the PLC device according to the component communication frequency. The extracted component low-frequency paths are used for subsequent path elimination and stable communication link identification to reduce the communication load and optimize the communication efficiency. The low-frequency paths are eliminated based on the component low-frequency paths to remove the paths with low communication frequencies in the PLC device, reduce the communication load and optimize the communication efficiency. The stable communication links of the component logical topology diagram are identified based on the component direct communication paths and the component low-frequency paths, and the stable communication paths are determined to ensure the reliability and stability of the remote monitoring and control operations.

[0035] Preferably, the specific steps of step S3 are:

[0036] Step S31: performing communication delay frequency hopping calculation on the component communication path based on the PLC device communication interaction data to obtain path delay frequency hopping data;

[0037] Step S32: Performing shortest path analysis between adjacent components on the component logical topology structure diagram to generate shortest path data between components;

[0038] Step S33: Analyze the optimal communication path based on the path delay frequency hopping data and the shortest path data between components, so as to obtain the optimal communication path of the component;

[0039] Step S34: dynamically optimize the component logical topology structure diagram through the component optimal communication path to construct the component topology optimization structure diagram.

[0040] The present invention calculates the communication delay and frequency hopping frequency between components by analyzing the communication interaction data of the PLC device. The path delay frequency hopping data provides the information of the communication delay and frequency hopping between different components, and provides a basis for the subsequent optimal communication path analysis. The shortest path analysis of adjacent components calculates the shortest path between each component according to the component logical topology structure diagram. The generated shortest path data between components provides the information of the shortest path between different components, and provides a basis for the subsequent optimal communication path analysis. The optimal communication path analysis combines the path delay frequency hopping data and the shortest path data between components, and finds the optimal communication path between components by comprehensively considering the influence of delay and frequency hopping. The optimal communication path of the component is optimized and calculated. Under the premise of ensuring the communication quality, the best path is selected to perform remote monitoring and control operations. The logical topology structure diagram of the component is dynamically optimized through the optimal communication path of the component, and the path in the original topology structure diagram is adjusted to make it more suitable for the optimal communication path. The constructed component topology optimization structure diagram reflects the communication relationship between the components after the path optimization, and provides an optimized topology structure for realizing PLC remote monitoring and control.

[0041] Preferably, the specific steps of step S4 are:

[0042] Step S41: Perform real-time status monitoring on the PLC device to obtain real-time status data of the PLC device;

[0043] Step S42: Analyze the execution device action behavior of the PLC device real-time status data to obtain the execution device behavior status data;

[0044] Step S43: quantifying the performance peak value of the real-time status data of the PLC device to generate PLC performance data;

[0045] Step S44: Performing state change trend analysis on the PLC performance data based on the execution device behavior state data to generate device state change trend data.

[0046] The present invention timely obtains the current status information of the PLC device through real-time status monitoring, including the status of each component, connection status, sensor data, etc., and obtains the real-time status data of the PLC device to provide basic data for subsequent device behavior analysis and performance evaluation. By analyzing the real-time status data of the PLC device, the action behavior mode of the device, such as the switch status, sensor triggering status, etc., is identified. The obtained execution device behavior status data reflects the actual working status of the device, and provides a basis for subsequent state change trend analysis. The performance peak value of the real-time status data of the PLC device is quantitatively evaluated to evaluate the performance level of the device, including indicators such as response time, throughput, and resource utilization. The generated PLC performance data provides an objective evaluation of the device performance, and provides a basis for subsequent state change trend analysis and performance optimization. By analyzing the execution device behavior status data and PLC performance data, the change trend of the device status, such as performance degradation, fault warning, etc., is identified. The generated device status change trend data provides monitoring and analysis of the device operation status, and potential problems are discovered in time and corresponding measures are taken for remote monitoring and control.

[0047] Preferably, the specific steps of step S43 are:

[0048] Calculate the CPU utilization of the PLC device real-time status data to obtain the device CPU utilization;

[0049] Perform memory usage analysis on the real-time status data of PLC devices to generate device memory usage data;

[0050] Perform I / O response situation analysis on the real-time status data of PLC equipment to obtain the I / O response situation data of the equipment;

[0051] Perform response delay analysis on device I / O response status data based on device CPU utilization to generate device response delay data;

[0052] Calculate the task concurrency peak value based on the device memory usage data and generate the device task concurrency peak value parameters;

[0053] The performance peak is quantified for the equipment response delay data and equipment task concurrency peak parameters to generate PLC performance data.

[0054] The present invention evaluates the processor load of the PLC device by calculating the CPU utilization rate, understands the working condition and resource utilization of the CPU, and the obtained device CPU utilization rate data provides a quantitative index of the device CPU performance, providing a basis for subsequent performance evaluation and optimization. The memory occupancy analysis evaluates the memory resource usage of the PLC device, understands the allocation and utilization of the memory, and the generated device memory occupancy data provides a quantitative index of the device memory usage, providing a basis for subsequent performance evaluation and resource management. The I / O response situation analysis evaluates the input and output response of the PLC device, understands the response capability of the device to external input and output signals, and the obtained device I / O response situation data reflects the response speed and stability of the device to the input and output signals, providing a basis for subsequent response delay analysis. Based on this, the response delay analysis combines the device CPU utilization and I / O response status data to evaluate the device's response delay to input and output signals. The generated device response delay data provides quantitative indicators of device response speed and delay, providing a basis for subsequent performance evaluation and optimization. The task concurrency peak calculation evaluates the peak number of tasks that the device can handle simultaneously based on the device memory usage data. The generated device task concurrency peak parameters provide quantitative indicators of the device's concurrent processing capabilities, providing a basis for subsequent performance evaluation and resource management. Performance peak quantification comprehensively considers device response delay and task concurrency capabilities, evaluates the performance peak level of PLC devices, and the generated PLC performance data provides quantitative indicators of the overall performance of the device, providing a basis for performance evaluation and optimization of remote monitoring and control.

[0055] Preferably, the specific steps of step S5 are:

[0056] Step S51: Performing dynamic association analysis between components on device component nodes, thereby generating component status association data;

[0057] Step S52: dividing the device component nodes into microservice functions based on the component status association data, and generating a microservice component package;

[0058] Step S53: Fit the distributed stream computing architecture to the microservice component package based on the component topology optimization structure diagram to build a distributed stream computing framework.

[0059] The present invention analyzes the dynamic association between components to understand the relationship between each component node in the device and identify the state dependency between them. The generated component state association data provides information on state transfer and interaction between components, providing a basis for subsequent microservice function division and distributed stream computing architecture. Microservice function division is performed based on component state association data to divide the functions of the device into independent microservice components, thereby improving the maintainability and flexibility of the system. The generated microservice component package contains mutually related component nodes and divides the functions into independent modules, thereby providing a basis for the subsequent distributed stream computing architecture. Distributed stream computing architecture fitting is performed based on the component topology optimization structure diagram to deploy the microservice component package to a suitable computing node to realize distributed computing and stream computing. The constructed distributed stream computing framework can improve the concurrency, scalability and fault tolerance of the system, and provide efficient data processing and real-time response capabilities.

[0060] Preferably, the specific steps of step S6 are:

[0061] Step S61: performing abnormal state prediction on the equipment state change trend data to obtain equipment abnormal state prediction data;

[0062] Step S62: using the distributed stream computing framework to perform distributed task flow operation processing on the PLC device to obtain task flow operation data;

[0063] Step S63: dynamically schedule the task flow operation data based on the equipment abnormal state prediction data to obtain PLC dynamic computing resource scheduling data;

[0064] Step S64: Based on the PLC dynamic computing resource scheduling data, the distributed stream computing framework is dynamically expanded and reduced in capacity, and a PLC dynamic scheduling model is constructed to execute PLC dynamic control operations.

[0065] The present invention predicts abnormal conditions based on the trend data of equipment status changes, detects abnormal conditions of equipment in advance, realizes fault warning and preventive maintenance, and the obtained equipment abnormal status prediction data provides a prediction basis for subsequent task flow operation and computing resource scheduling, which is helpful to optimize the remote monitoring and control effect of PLC, adopts distributed stream computing framework to perform distributed operation processing of task flow on PLC equipment, improves computing efficiency and data processing capability, realizes real-time data analysis and decision-making, and the obtained task flow operation data contains the real-time status and operation information of the equipment, which provides a basis for subsequent dynamic computing resource scheduling, and performs dynamic computing resource scheduling based on equipment abnormal status prediction data. According to the real-time status of the equipment and the results of abnormal prediction, the computing resources are flexibly allocated and the execution efficiency of the computing tasks is optimized. The obtained PLC dynamic computing resource scheduling data includes the load conditions and task allocation conditions of each computing node, which provides a basis for the subsequent framework dynamic expansion and contraction optimization. The framework dynamic expansion and contraction optimization is performed based on the PLC dynamic computing resource scheduling data. According to the load conditions of the computing nodes and task requirements, the allocation and scale of computing resources are automatically adjusted to improve the resource utilization and performance of the system. The constructed PLC dynamic scheduling model can realize automated PLC dynamic control operations and dynamically adjust the execution and control strategies of the task flow according to the real-time computing resource requirements and equipment status changes.

[0066] In this specification, a PLC remote monitoring and control system based on industrial Internet of Things is provided, which is used to execute the PLC remote monitoring and control method based on industrial Internet of Things as described above, including:

[0067] The topology module obtains the PLC device structure diagram; performs multi-level component decomposition on the PLC device to obtain device component nodes; performs spatial topology structure analysis on the device component nodes to obtain component topology structure data; performs topological distribution reconstruction on the component topology structure data to construct a component logical topology structure diagram;

[0068] The communication link identification module obtains the communication interaction data of the PLC device; generates the component communication logic data based on the communication interaction data of the PLC device; and performs stable communication link learning between components on the component logic topology structure diagram according to the component communication logic data to obtain the component communication path;

[0069] The dynamic path optimization module obtains the path delay frequency hopping data based on the component communication path; performs the shortest path analysis between adjacent components on the component logical topology structure diagram to generate the shortest path data between components; performs dynamic path optimization on the component logical topology structure diagram based on the path delay frequency hopping data and the shortest path data between components to construct the component topology optimization structure diagram;

[0070] The status change trend module performs real-time status monitoring on PLC devices and obtains real-time status data of PLC devices; performs status change trend analysis on real-time status data of PLC devices and generates device status change trend data;

[0071] The distributed computing module generates microservice component packages based on device component nodes; based on the component topology optimization structure diagram, the distributed stream computing architecture of the microservice component package is fitted to build a distributed stream computing framework;

[0072] The dynamic scheduling module uses the distributed stream computing framework to dynamically schedule the computing resources of the PLC device based on the equipment status change trend data to obtain the PLC dynamic computing resource scheduling data; and builds a PLC dynamic scheduling model based on the PLC dynamic computing resource scheduling data to execute PLC dynamic control operations.

[0073] The present invention obtains the structural diagram of the PLC device to understand the components of the device and the connection methods between them, which helps to establish a comprehensive device model and provide a basis for subsequent remote monitoring and control. The multi-level component decomposition decomposes the device into smaller component nodes, making the analysis and management of the device more flexible and refined. The spatial topological structure analysis reveals the spatial layout and relative positions between components, which helps to understand the physical structure and wiring of the device, which is very useful for troubleshooting, optimizing and adjusting the device configuration. The topological distribution reconstruction can construct a component logical topological structure diagram and show the logical relationship between components, which helps to understand the functional modules, data flow and control logic of the device, providing a basis for the design of remote monitoring and control, and obtaining the PLC device The communication interaction data understands the communication mode, communication protocol and data exchange mode between components, which is the basis of remote monitoring and control, and helps to establish a communication framework and plan data transmission. The communication logic data of components is generated based on the communication interaction data to clarify the communication relationship and data exchange requirements between components, which helps to establish a communication model between components and provide a basis for subsequent stable communication link learning. The stable communication link learning between components can determine the stable communication path between components and ensure the reliability and stability of communication, which is crucial for the real-time and reliability of remote monitoring and control. The path delay hopping data is used to evaluate the communication performance between components, help select the best communication path and optimize the communication delay, which helps to improve the efficiency of remote monitoring and control. and response time, generation of the shortest path data between components determines the shortest path between components, and provides the best data transmission path for remote monitoring and control, which helps to reduce data transmission delays and energy consumption, and improve system performance, construction of dynamic path optimization and component topology optimization structure diagrams based on path delay frequency hopping data and shortest path data between components, optimizes the communication path and topology between components, which helps to improve communication efficiency, stability and scalability, real-time status monitoring of PLC equipment to obtain the current working status and performance parameters of the equipment, which helps to monitor the operation of the equipment in real time and detect anomalies and faults in a timely manner, generation of equipment status change trend data analyzes the changing trend of the equipment status, and predicts the working status of the equipment and future occurrences This helps to take measures in advance to prevent equipment failures and reduce downtime. Generate microservice component packages based on device component nodes to divide the functions of the device into independent microservice components, providing flexible modular design, which helps to achieve independent development, deployment and maintenance of functions, and improve the scalability and maintainability of the system. Fit the distributed stream computing architecture of the microservice component package based on the component topology optimization structure diagram. According to the communication and data flow characteristics between components, design an architecture suitable for distributed stream computing, which helps to achieve efficient data processing and real-time response, and improve the performance and reliability of the system. Based on the equipment status change trend data, use the distributed stream computing framework to dynamically schedule computing resources for PLC equipment according to the real-time status and needs of the equipment.Dynamically allocate computing resources to ensure the stability and efficiency of the system. Build a PLC dynamic scheduling model based on PLC dynamic computing resource scheduling data to establish a dynamic control model for PLC equipment. Perform job scheduling and execution based on real-time data and control strategies, which helps to achieve remote monitoring and control and optimize the operating efficiency and performance of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1 A schematic diagram of the steps of a PLC remote monitoring and control method based on industrial Internet of Things of the present invention;

[0075] Figure 2 Detailed implementation flow chart of step S1;

[0076] Figure 3 Detailed implementation flow chart of step S2;

[0077] Figure 4 Detailed implementation flow chart of step S3. DETAILED DESCRIPTION

[0078] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0079] The present application example provides a PLC remote monitoring and control method and system based on the industrial Internet of Things. The execution subject of the PLC remote monitoring and control method and system based on the industrial Internet of Things includes but is not limited to the following: mechanical equipment, data processing platform, cloud server node, network upload device, etc. equipped with the system can be regarded as the general computing node of the present application, and the data processing platform includes but is not limited to: at least one of an audio and image management system, an information management system, and a cloud data management system.

[0080] See also Figures 1 to 4 The present invention provides a PLC remote monitoring and control method based on the industrial Internet of Things, and the PLC remote monitoring and control method based on the industrial Internet of Things comprises the following steps:

[0081] Step S1: obtaining a PLC device structure diagram; performing multi-level component decomposition of the PLC device to obtain device component nodes; performing spatial topological structure analysis on the device component nodes to obtain component topological structure data; performing topological distribution reconstruction on the component topological structure data to construct a component logical topological structure diagram;

[0082] Step S2: obtaining PLC device communication interaction data; generating component communication logic data based on the PLC device communication interaction data; and learning the component logic topology structure diagram for stable communication links between components according to the component communication logic data to obtain the component communication path;

[0083] Step S3: Based on the component communication path to obtain the path delay frequency hopping data; perform the shortest path analysis between adjacent components on the component logical topology structure diagram to generate the shortest path data between components; perform dynamic path optimization on the component logical topology structure diagram based on the path delay frequency hopping data and the shortest path data between components to construct the component topology optimization structure diagram;

[0084] Step S4: Perform real-time status monitoring on the PLC device to obtain real-time status data of the PLC device; perform status change trend analysis on the real-time status data of the PLC device to generate device status change trend data;

[0085] Step S5: Generate a microservice component package based on the device component node; perform distributed stream computing architecture fitting on the microservice component package based on the component topology optimization structure diagram to build a distributed stream computing framework;

[0086] Step S6: Based on the device status change trend data, use the distributed stream computing framework to dynamically schedule the PLC device's computing resources to obtain PLC dynamic computing resource scheduling data; build a PLC dynamic scheduling model based on the PLC dynamic computing resource scheduling data to execute PLC dynamic control operations.

[0087] The present invention obtains a PLC device structure diagram and performs multi-level component decomposition to deeply understand the internal composition and hierarchical structure of the PLC device, thereby providing a basis for subsequent remote monitoring and control, performs spatial topological structure analysis and topological distribution reconstruction, establishes the association relationship and topological structure between components, provides a basis for subsequent communication and path optimization, constructs a component logical topological structure diagram to clearly display the logical relationship between components, provides a visual reference for system design and troubleshooting, obtains PLC device communication interaction data to understand the communication mode and communication requirements between components, provides a basis for subsequent communication optimization and path planning, generates component communication logic data based on communication interaction data to describe the communication rules and methods between components, helps understand the communication process of the system, determines a reliable communication path by learning stable communication links between components, ensures accurate information transmission and stable operation of the system, obtains path delay frequency hopping data, evaluates the delay and frequency hopping frequency of the communication path, provides a basis for optimizing communication performance, performs shortest path analysis of adjacent components, determines the shortest path between components, shortens the communication distance and reduces communication delay, improves communication efficiency, and dynamically optimizes the path according to real-time path delay frequency hopping data and shortest path data. Component logical topology diagram, optimize communication paths, make system communication more efficient and stable, real-time status monitoring obtains the real-time working status of PLC equipment, including temperature, pressure, current and other parameters, to help monitor the operation of equipment in real time, through the state change trend analysis of real-time status data, find the change law and trend of equipment status, timely predict equipment failure or abnormal situation, take corresponding monitoring and control measures, generate microservice component package based on equipment component node, abstract and encapsulate the functions and modules of PLC equipment, form independent microservice components, improve the maintainability and scalability of the system, fit the distributed stream computing architecture of microservice component package, combine the component package with the distributed stream computing framework, realize efficient data stream processing and distributed computing, improve the performance and concurrent processing capability of the system, realize dynamic computing resource scheduling of PLC equipment based on equipment status change trend data and distributed stream computing framework, reasonably allocate computing resources according to the change of equipment status, improve the operation efficiency and responsiveness of the system, build PLC dynamic scheduling model, formulate corresponding scheduling strategy and control operation according to PLC dynamic computing resource scheduling data, realize dynamic control and optimization of PLC equipment.

[0088] In the embodiment of the present invention, refer to Figure 1 , is a schematic flow chart of a PLC remote monitoring and control method based on the industrial Internet of Things of the present invention. In this example, the steps of the PLC remote monitoring and control method based on the industrial Internet of Things include:

[0089] Step S1: obtaining a PLC device structure diagram; performing multi-level component decomposition of the PLC device to obtain device component nodes; performing spatial topological structure analysis on the device component nodes to obtain component topological structure data; performing topological distribution reconstruction on the component topological structure data to construct a component logical topological structure diagram;

[0090] In this embodiment, after obtaining authorization, a structure diagram of the PLC device is obtained, which describes the relationship and connection method of each component in the device, and the accuracy and completeness of the structure diagram are ensured, including the representation of each component, module and other important connections of the device. According to the structure diagram of the PLC device, the device is decomposed into multiple levels, and the device is divided into smaller component nodes step by step. The main components in the device are identified, such as input and output modules, processor units, communication modules, etc. Each main component is further decomposed and subdivided into smaller subcomponents or submodules. The above steps are repeated until the required granularity is reached, and the component node hierarchical structure of the device is obtained. Based on the component node hierarchical structure of the PLC device, each component node is analyzed. The relative position and layout in the equipment, based on the actual situation, taking into account factors such as the physical connection, electrical wiring, and signal transmission of the equipment, determine the connection method and communication path between component nodes based on equipment documents or related information, record the spatial relationship and topological connection information between component nodes, and form component topological structure data. Based on the component topological structure data, determine the position and relationship of the components in the logical topological diagram, draw a logical topological diagram, treat each component node as a node in the diagram, use lines or arrows to represent the connection relationship between nodes, consider optimizing the layout of the diagram to make the diagram clearer, easier to understand and use, and ensure that the logical topological diagram accurately reflects the topological structure relationship between device components to facilitate subsequent remote monitoring and control.

[0091] Step S2: obtaining PLC device communication interaction data; generating component communication logic data based on the PLC device communication interaction data; and learning the component logic topology structure diagram for stable communication links between components according to the component communication logic data to obtain the component communication path;

[0092] In this embodiment, the communication protocol and communication mode of the PLC device are studied, the communication mechanism between the devices is understood, the communication interaction data of the PLC device is analyzed, the communication relationship and data interaction mode between the components are identified, and the communication mode between the components, such as point-to-point communication, broadcast communication, etc., is determined based on the communication data. The communication data is extracted and organized, and the component communication logic data is generated. The communication requirements and communication mode between each component are recorded. Based on the component communication logic data, the communication requirements and communication mode between the components are analyzed. According to the communication requirements, the input and output ports of each component are determined. Through the statistics and analysis of the communication data, the stable communication links between the components are learned, that is, it is determined which components have frequent and persistent communications. Based on the stable communication links, communication paths between the components are established, and the primary communication paths and secondary communication paths between the components are identified.

[0093] Step S3: Based on the component communication path to obtain the path delay frequency hopping data; perform the shortest path analysis between adjacent components on the component logical topology structure diagram to generate the shortest path data between components; perform dynamic path optimization on the component logical topology structure diagram based on the path delay frequency hopping data and the shortest path data between components to construct the component topology optimization structure diagram;

[0094] In this embodiment, the delay on the communication path is analyzed (delay refers to the transmission time of data from the sending end to the receiving end), the network topology of the device and the characteristics of the transmission medium are considered, the delay value of each communication path is calculated or estimated, and based on the component logical topology structure diagram, the shortest path algorithm (such as the Dijkstra algorithm or the Floyd-Warshall algorithm) is applied to calculate the shortest path between each pair of components, and the obtained shortest path data is recorded to form the shortest path data between components, including the shortest path between each pair of components and the corresponding path length. Combined with the path delay frequency hopping data and the shortest path data between components, dynamic path optimization is performed. For paths with high delay or frequent communication, attempts are made to optimize path selection, such as selecting other paths or adjusting the data transmission method to reduce delay and improve communication efficiency. Based on the optimized path information, a component topology optimization structure diagram is constructed, which reflects the optimal communication path between components after path optimization.

[0095] Step S4: Perform real-time status monitoring on the PLC device to obtain real-time status data of the PLC device; perform status change trend analysis on the real-time status data of the PLC device to generate device status change trend data;

[0096] In this embodiment, a monitoring system or sensor is configured to monitor various status parameters of the PLC device in real time, such as temperature, pressure, current, etc., to ensure that an effective connection and communication is established between the monitoring system and the PLC device to obtain real-time status data of the device, set the sampling frequency of the monitoring system, determine the time interval for obtaining real-time status data, obtain real-time status data from the PLC device within the set time interval, and the real-time status data includes device status information such as sensor readings, switch status, alarm information, etc. The acquired real-time status data is recorded and stored for subsequent analysis and processing, and the acquired real-time status data is processed and analyzed to identify the trend of state changes. Appropriate data analysis techniques and algorithms, such as time series analysis, regression analysis, etc., are used to perform trend analysis on the state data to determine the mode, rate and amplitude of state changes, as well as the periodic or trend changes that exist. Based on the results of the state change trend analysis, the state change trend data is recorded and sorted to generate a data set including timestamps, state parameter values ​​and change trends for subsequent visualization, report generation or decision support.

[0097] Step S5: Generate a microservice component package based on the device component node; perform distributed stream computing architecture fitting on the microservice component package based on the component topology optimization structure diagram to build a distributed stream computing framework;

[0098] In this embodiment, the associated data of the device component nodes encapsulates the functionally complete node group into a microservice component package. Each microservice component package contains the code, configuration files and required dependencies for executing specific functions. According to specific needs, appropriate technologies and frameworks, such as Docker, Kubernetes, etc., are used to package and prepare for deployment of the microservice component package. According to the communication relationship and data flow between components, a suitable distributed stream computing architecture, such as pipeline, graph computing, etc., is determined. Considering the requirements of data transmission, parallel computing, fault-tolerant processing, etc., a distributed stream computing architecture that conforms to the component topology optimization structure diagram is designed. According to the selected distributed stream computing framework, such as Apache Flink, ApacheStorm, etc., a corresponding cluster environment is built, and the microservice component package is deployed to the corresponding nodes in the distributed computing cluster to build a distributed stream computing framework.

[0099] Step S6: Based on the device status change trend data, use the distributed stream computing framework to dynamically schedule the PLC device's computing resources to obtain PLC dynamic computing resource scheduling data; build a PLC dynamic scheduling model based on the PLC dynamic computing resource scheduling data to execute PLC dynamic control operations.

[0100] In this embodiment, a distributed stream computing framework, such as Apache Flink, Apache Storm, etc., is used to build a real-time data stream processing task. In the stream computing task, the device state change trend data is used as input to design the computing logic and algorithm to realize the dynamic computing resource scheduling of the PLC device. The dynamic computing resource scheduling adjusts the allocation of computing resources according to the change trend of the device state, and optimizes the execution efficiency and performance of the computing task. In the distributed stream computing framework, the device state change trend data is processed in real time to obtain the PLC dynamic computing resource scheduling data. These data include computing resource allocation schemes, task scheduling strategies, optimization parameters, etc., which are used to guide the dynamic scheduling operation of the PLC device. Based on the PLC dynamic computing resource scheduling data, the PLC is constructed. Dynamic scheduling model, the dynamic scheduling model is a set of rules, algorithms or models, which is used to formulate dynamic scheduling strategies according to the real-time device status and computing resource conditions. The scheduling model considers factors such as task priority, resource utilization, and device load balancing to achieve the best scheduling effect. Based on the constructed PLC dynamic scheduling model, it is applied to the actual PLC device control operation. According to the real-time device status and computing resource scheduling data, the dynamic scheduling model determines when to execute which control operations and how to allocate computing resources. The execution of dynamic control operations is carried out by real-time communication with the PLC device, sending control instructions, receiving feedback information, and adjusting the scheduling strategy in real time to meet the actual control needs.

[0101] In this embodiment, refer to Figure 2 , is a flowchart of detailed implementation steps of step S1. In this embodiment, the detailed implementation steps of step S1 include:

[0102] Step S11: Obtain a PLC device structure diagram;

[0103] Step S12: performing multi-level component decomposition of the PLC device to obtain device component nodes;

[0104] Step S13: marking the physical position of the device component nodes based on the PLC device structure diagram to obtain the component position coordinates;

[0105] Step S14: performing spatial topological structure analysis on the device component nodes based on the component position coordinates to obtain component topological structure data;

[0106] Step S15: Performing topological connection logic association analysis on the component topological structure data to obtain topological logic relationship data between components;

[0107] Step S16: Reconstruct the topological distribution of device component nodes according to the topological logical relationship data between components, and construct a component logical topological structure diagram.

[0108] In this embodiment, a structure diagram of a PLC device is obtained, which describes the relationship and connection mode between various components in the device. The PLC device structure diagram contains information such as physical connection, electrical connection, signal transmission, etc. of the device, as well as the hierarchical structure and dependency relationship between components. The PLC device structure diagram is subjected to component decomposition, and the device is decomposed into multiple components. The component division is performed based on the functional modules, physical parts, logical units, etc. of the device to obtain device component nodes with clear functions. In the device structure diagram, entity position information is marked for each device component node, which is a physical position or a logical position. The entity position marking is performed based on the layout of the device, the connection mode, and the installation position of the component. The spatial topological structure analysis is performed using the position coordinate information of the component. By analyzing the distance, relative position, and other information between the components, the spatial topological structure data between the components, that is, the physical connection relationship between the components, is obtained. A topological connection logical association analysis is performed, and the connection mode, data transmission path, control relationship, etc. between the components are analyzed to obtain the topological logical relationship data between the components. According to the topological logical relationship data between the components, the topological distribution of the device component nodes is reconstructed. By reorganizing and connecting the device component nodes, a component logical topological structure diagram is constructed, which reflects the logical relationship and connection mode between the components.

[0109] In this embodiment, refer to Figure 3 , is a flowchart of detailed implementation steps of step S2. In this embodiment, the detailed implementation steps of step S2 include:

[0110] Step S21: Acquire PLC device communication interaction data;

[0111] Step S22: performing functional abstract analysis on the device component node to obtain component communication interface type data;

[0112] Step S23: performing inter-component communication logic analysis on the component communication interface type data based on the PLC device communication interaction data to generate component communication logic data;

[0113] Step S24: performing inter-component stable communication link learning on the component logic topology diagram according to the component communication logic data to obtain the component communication path.

[0114] In this embodiment, communication interaction data is obtained from the PLC device, including communication messages, data transmission, command execution and other information between devices. The communication interaction data is collected and recorded based on the physical connection between devices, network communication protocol, data transmission method, etc., and functional abstract analysis is performed on the device component nodes, that is, the function and role of each component are identified and described, and the input and output, data processing, control logic and other aspects of the component are analyzed to obtain component communication interface type data, describe the communication interface of the component and its type, analyze the component communication interface type data, analyze the communication interaction mode, data flow path, message transmission rules, etc. between components to generate component communication logic data, describe the communication logic relationship between components, and analyze and learn the component logic topology structure diagram based on the component communication logic data to find a stable communication link between components. The stable communication link represents a reliable communication path between components, which is determined by analyzing the communication frequency, transmission method, communication protocol, etc. The component communication path obtained through learning is used to establish a stable communication connection between components for subsequent data transmission, control instruction transmission and other operations.

[0115] In this embodiment, the specific steps of step S24 are:

[0116] Calculate the component communication frequency of the PLC device communication interaction data to obtain the component communication frequency;

[0117] Based on the component communication frequency, the frequently communicating components of the device component nodes are identified to extract the frequently communicating component nodes;

[0118] Perform node connection analysis on frequently communicating component nodes according to component communication logic data. When the frequently communicating component nodes are directly connected, identify the node communication path based on the component logical topology diagram to obtain the component direct communication path.

[0119] When the frequently communicating component nodes are indirectly connected, the transit component nodes are identified based on the component logical topology diagram to obtain the transit component nodes;

[0120] Based on the transit component nodes, node communication paths are identified on the component logical topology structure diagram to obtain component transit communication paths;

[0121] Based on the component communication frequency, low-frequency paths are identified in the component logical topology diagram to extract the component low-frequency paths;

[0122] Based on the low-frequency paths of the components, the low-frequency paths of the component logical topology diagram are eliminated, and based on the direct communication paths of the components and the low-frequency paths of the components, the stable communication links of the component logical topology diagram are identified to obtain the component communication paths.

[0123] In this embodiment, the communication interaction data of the PLC device is analyzed, and the communication frequency of each component is calculated, that is, the number of communications between the component and other components. The component communication frequency is calculated by counting the number of interactions such as communication messages and data transmission, and the component nodes that communicate frequently, that is, the component nodes with higher communication frequency, are identified. The connection analysis of the frequently communicating component nodes is performed to determine the direct connection or indirect connection relationship between them. For the directly connected frequently communicating component nodes, the communication path between them, that is, the direct communication path, is identified according to the component logical topology structure diagram. For the indirectly connected frequently communicating component nodes, the intermediate transit component nodes are identified according to the component logical topology structure diagram. In the component logical topology structure diagram, for the transit component nodes, the communication path between them and other components, that is, the transit communication path, is identified. According to the component communication frequency, the path with lower communication frequency, that is, the path with less communication times between components is identified, and these paths are removed from the component logical topology structure diagram. The stable communication link is identified by combining the component direct communication path and the topology structure diagram after removing the low-frequency path, and the final component communication path is obtained.

[0124] In this embodiment, refer to Figure 4 , is a flowchart of detailed implementation steps of step S3. In this embodiment, the detailed implementation steps of step S3 include:

[0125] Step S31: performing communication delay frequency hopping calculation on the component communication path based on the PLC device communication interaction data to obtain path delay frequency hopping data;

[0126] Step S32: Performing shortest path analysis between adjacent components on the component logical topology structure diagram to generate shortest path data between components;

[0127] Step S33: Analyze the optimal communication path based on the path delay frequency hopping data and the shortest path data between components, so as to obtain the optimal communication path of the component;

[0128] Step S34: dynamically optimize the component logical topology structure diagram through the component optimal communication path to construct the component topology optimization structure diagram.

[0129] In this embodiment, the communication interaction data of the PLC device is used to analyze the communication delay and frequency hopping between each component. According to the communication delay and the frequency hopping frequency, the delay frequency hopping data of each component communication path, that is, the communication delay and the number of frequency hopping on the path, is calculated. Based on the component logical topology structure diagram, the shortest path analysis of adjacent components is performed using a shortest path algorithm (such as the Dijkstra algorithm). For each pair of component nodes, the shortest path between them is calculated, and the shortest path data between components is generated. The path delay frequency hopping data and the shortest path data between components are combined to perform an optimal communication path analysis. Considering the communication delay and the number of frequency hopping, as well as the shortest path between components, the advantages and disadvantages of each communication path are comprehensively evaluated to determine the optimal communication path of the component. Based on the obtained optimal communication path of the component, the component logical topology structure diagram is dynamically optimized. According to the optimal communication path, the connection relationship between the components is adjusted, and the component topology optimization structure diagram is constructed to achieve more efficient communication configuration and path selection.

[0130] In this embodiment, step S4 includes the following steps:

[0131] Step S41: Perform real-time status monitoring on the PLC device to obtain real-time status data of the PLC device;

[0132] Step S42: Analyze the execution device action behavior of the PLC device real-time status data to obtain the execution device behavior status data;

[0133] Step S43: quantifying the performance peak value of the real-time status data of the PLC device to generate PLC performance data;

[0134] Step S44: Performing state change trend analysis on the PLC performance data based on the execution device behavior state data to generate device state change trend data.

[0135] In this embodiment, appropriate sensors or monitoring devices are used to monitor the PLC device in real time, and various parameters, indicators or status information of the PLC device, such as temperature, voltage, current, operating status, etc., are obtained through the monitoring device. The acquired real-time status data of the PLC device is analyzed and parsed, and the action behavior information in the data, such as switch status, operating mode, fault status, etc., is analyzed, and the behavioral status data of the execution device is extracted. Based on the real-time status data of the PLC device, its performance is quantified, and the performance peak data of the PLC device is calculated according to relevant indicators in the data, such as operating speed, response time, load conditions, etc., and the state change trend analysis is performed in combination with the behavioral status data of the execution device and the performance data of the PLC. The change trend of the PLC performance under different behavioral states is analyzed, such as performance fluctuations, stability, changes in response time, etc., and the device state change trend data is generated.

[0136] In this embodiment, the specific steps of step S43 are:

[0137] Calculate the CPU utilization of the PLC device real-time status data to obtain the device CPU utilization;

[0138] Perform memory usage analysis on the real-time status data of PLC devices to generate device memory usage data;

[0139] Perform I / O response situation analysis on the real-time status data of PLC equipment to obtain the I / O response situation data of the equipment;

[0140] Perform response delay analysis on device I / O response status data based on device CPU utilization to generate device response delay data;

[0141] Calculate the task concurrency peak value based on the device memory usage data and generate the device task concurrency peak value parameters;

[0142] The performance peak is quantified for the equipment response delay data and equipment task concurrency peak parameters to generate PLC performance data.

[0143] In this embodiment, a suitable sensor or monitoring device is used to monitor the PLC device in real time, and various parameters, indicators or status information of the PLC device, such as temperature, voltage, current, CPU utilization, memory occupancy, I / O response, etc., are obtained through the monitoring device. Information related to CPU utilization is extracted from the real-time status data of the PLC device. Based on the extracted information, the CPU utilization of the PLC device is calculated to indicate the percentage of CPU usage during operation. Information related to memory occupancy is extracted from the real-time status data of the PLC device, and the extracted information is analyzed to calculate the memory occupancy data of the PLC device to indicate the current memory usage. Information related to I / O response is extracted from the real-time status data of the PLC device, and the extracted information is analyzed to obtain the device I / O response. The situation data of the device describes the response of the I / O signal, such as response time, stability, etc., and combines the device CPU utilization and I / O response situation data to perform response delay analysis, analyze the impact of CPU utilization on I / O response, calculate the device response delay data, and indicate the delay of the I / O signal. Use the device memory usage data to perform task concurrency peak calculation, analyze the memory usage, determine the task concurrency peak parameters that the device can support, and indicate the maximum task concurrency that the device can handle. Combine the device response delay data and task concurrency peak parameters to quantify the performance peak. According to the definition and calculation method of performance indicators, convert the response delay data and task concurrency peak parameters into performance data of the PLC device, indicating the performance of the device under specific conditions.

[0144] In this embodiment, the specific steps of step S5 are:

[0145] Step S51: Performing dynamic association analysis between components on device component nodes, thereby generating component status association data;

[0146] Step S52: dividing the device component nodes into microservice functions based on the component status association data, and generating a microservice component package;

[0147] Step S53: Fit the distributed stream computing architecture to the microservice component package based on the component topology optimization structure diagram to build a distributed stream computing framework.

[0148] In this embodiment, the device component nodes are analyzed to understand the dynamic association relationship between each component. According to the real-time status data or event data, the state transfer and dependency relationship between the components are analyzed to generate component status association data to describe the association between the components. Based on the component status association data, the device component nodes are divided into microservice functions. According to the association between the components, the related components are divided into the same microservice component package to form logically independent functional units. Based on the component topology optimization structure diagram, the distributed stream computing architecture of the microservice component package is designed and optimized. According to the data flow and communication requirements between the components, the microservice component package is allocated to the appropriate computing node to form a distributed stream computing framework to achieve efficient data processing and communication.

[0149] In this embodiment, the specific steps of step S6 are:

[0150] Step S61: performing abnormal state prediction on the equipment state change trend data to obtain equipment abnormal state prediction data;

[0151] Step S62: using the distributed stream computing framework to perform distributed task flow operation processing on the PLC device to obtain task flow operation data;

[0152] Step S63: dynamically schedule the task flow operation data based on the equipment abnormal state prediction data to obtain PLC dynamic computing resource scheduling data;

[0153] Step S64: Based on the PLC dynamic computing resource scheduling data, the distributed stream computing framework is dynamically expanded and reduced in capacity, and a PLC dynamic scheduling model is constructed to execute PLC dynamic control operations.

[0154] In this embodiment, the device state change trend data, including various sensor data, device parameters, etc., are collected, the device state change trend data is analyzed and modeled, and a suitable anomaly detection algorithm or machine learning method is used to predict the abnormal state of the device. According to the prediction results, the device abnormal state prediction data is generated to identify the time period or specific event when the device is abnormal. The previously constructed distributed stream computing framework is used to perform distributed operation processing on the task flow of the PLC device, divide the task flow into suitable task units, and assign them to appropriate computing nodes for parallel processing. The task flow is executed, and the task flow operation data, including task execution time, resource utilization, etc., is collected. The device abnormal state prediction data is used to Dynamic computing resource scheduling is performed based on the task flow operation data. According to the predicted abnormal state of the equipment, the resource allocation of the task flow is adjusted, such as increasing or decreasing the number of computing nodes, adjusting the load of the computing nodes, etc., to generate PLC dynamic computing resource scheduling data, which represents the dynamic adjustment plan for the abnormal state of the equipment to optimize the execution efficiency and reliability of the task flow. According to the PLC dynamic computing resource scheduling data, the distributed stream computing framework is optimized for dynamic expansion and contraction, and computing nodes are increased or decreased as needed. The distributed execution strategy of the task flow is adjusted to adapt to the dynamic computing resource requirements of the equipment. A PLC dynamic scheduling model is constructed, and the optimized distributed stream computing framework is deployed on the PLC device to perform dynamic control operations.

[0155] In this embodiment, a PLC remote monitoring and control system based on the industrial Internet of Things is provided, which is used to execute the PLC remote monitoring and control method based on the industrial Internet of Things as described above, including:

[0156] The topology module obtains the PLC device structure diagram; performs multi-level component decomposition on the PLC device to obtain device component nodes; performs spatial topology structure analysis on the device component nodes to obtain component topology structure data; performs topological distribution reconstruction on the component topology structure data to construct a component logical topology structure diagram;

[0157] The communication link identification module obtains the communication interaction data of the PLC device; generates the component communication logic data based on the communication interaction data of the PLC device; and performs stable communication link learning between components on the component logic topology structure diagram according to the component communication logic data to obtain the component communication path;

[0158] The dynamic path optimization module obtains the path delay frequency hopping data based on the component communication path; performs the shortest path analysis between adjacent components on the component logical topology structure diagram to generate the shortest path data between components; performs dynamic path optimization on the component logical topology structure diagram based on the path delay frequency hopping data and the shortest path data between components to construct the component topology optimization structure diagram;

[0159] The status change trend module performs real-time status monitoring on PLC devices and obtains real-time status data of PLC devices; performs status change trend analysis on real-time status data of PLC devices and generates device status change trend data;

[0160] The distributed computing module generates microservice component packages based on device component nodes; based on the component topology optimization structure diagram, the distributed stream computing architecture of the microservice component package is fitted to build a distributed stream computing framework;

[0161] The dynamic scheduling module uses the distributed stream computing framework to dynamically schedule the computing resources of the PLC device based on the equipment status change trend data to obtain the PLC dynamic computing resource scheduling data; and builds a PLC dynamic scheduling model based on the PLC dynamic computing resource scheduling data to execute PLC dynamic control operations.

[0162] The present invention obtains the structural diagram of the PLC device to understand the components of the device and the connection methods between them, which helps to establish a comprehensive device model and provide a basis for subsequent remote monitoring and control. The multi-level component decomposition decomposes the device into smaller component nodes, making the analysis and management of the device more flexible and refined. The spatial topological structure analysis reveals the spatial layout and relative positions between components, which helps to understand the physical structure and wiring of the device, which is very useful for troubleshooting, optimizing and adjusting the device configuration. The topological distribution reconstruction can construct a component logical topological structure diagram and show the logical relationship between components, which helps to understand the functional modules, data flow and control logic of the device, providing a basis for the design of remote monitoring and control, and obtaining the PLC device The communication interaction data understands the communication mode, communication protocol and data exchange mode between components, which is the basis of remote monitoring and control, and helps to establish a communication framework and plan data transmission. The communication logic data of components is generated based on the communication interaction data to clarify the communication relationship and data exchange requirements between components, which helps to establish a communication model between components and provide a basis for subsequent stable communication link learning. The stable communication link learning between components can determine the stable communication path between components and ensure the reliability and stability of communication, which is crucial for the real-time and reliability of remote monitoring and control. The path delay hopping data is used to evaluate the communication performance between components, help select the best communication path and optimize the communication delay, which helps to improve the efficiency of remote monitoring and control. and response time, generation of the shortest path data between components determines the shortest path between components, and provides the best data transmission path for remote monitoring and control, which helps to reduce data transmission delays and energy consumption, and improve system performance, construction of dynamic path optimization and component topology optimization structure diagrams based on path delay frequency hopping data and shortest path data between components, optimizes the communication path and topology between components, which helps to improve communication efficiency, stability and scalability, real-time status monitoring of PLC equipment to obtain the current working status and performance parameters of the equipment, which helps to monitor the operation of the equipment in real time and detect anomalies and faults in a timely manner, generation of equipment status change trend data analyzes the changing trend of the equipment status, and predicts the working status of the equipment and future occurrences This helps to take measures in advance to prevent equipment failures and reduce downtime. Generate microservice component packages based on device component nodes to divide the functions of the device into independent microservice components, providing flexible modular design, which helps to achieve independent development, deployment and maintenance of functions, and improve the scalability and maintainability of the system. Fit the distributed stream computing architecture of the microservice component package based on the component topology optimization structure diagram. According to the communication and data flow characteristics between components, design an architecture suitable for distributed stream computing, which helps to achieve efficient data processing and real-time response, and improve the performance and reliability of the system. Based on the equipment status change trend data, use the distributed stream computing framework to dynamically schedule computing resources for PLC equipment according to the real-time status and needs of the equipment.Dynamically allocate computing resources to ensure the stability and efficiency of the system. Build a PLC dynamic scheduling model based on PLC dynamic computing resource scheduling data to establish a dynamic control model for PLC equipment. Perform job scheduling and execution based on real-time data and control strategies, which helps to achieve remote monitoring and control and optimize the operating efficiency and performance of the system.

[0163] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.

[0164] The above is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those 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 should conform to the widest scope consistent with the principles and novel features invented herein.

Claims

1. A PLC remote monitoring and control method based on industrial Internet of Things, characterized in that: The following steps are involved: Step S1: Obtain a PLC device structure diagram; Perform multi-level component decomposition on the PLC device to obtain device component nodes; perform spatial topological structure analysis on the device component nodes to obtain component topological structure data; perform topological distribution reconstruction on the component topological structure data to construct a component logical topological structure diagram; Step S2: obtaining PLC device communication interaction data; generating component communication logic data based on the PLC device communication interaction data; and learning the component logic topology structure diagram for stable communication links between components according to the component communication logic data to obtain the component communication path; Step S3: Based on the component communication path to obtain the path delay frequency hopping data; perform the shortest path analysis between adjacent components on the component logical topology structure diagram to generate the shortest path data between components; perform dynamic path optimization on the component logical topology structure diagram based on the path delay frequency hopping data and the shortest path data between components to construct the component topology optimization structure diagram; Step S4: Perform real-time status monitoring on the PLC device to obtain real-time status data of the PLC device; Analyze the state change trend of the real-time state data of PLC equipment and generate equipment state change trend data; Step S5: Generate a microservice component package based on the device component node; Based on the component topology optimization structure diagram, the distributed stream computing architecture of the microservice component package is fitted to build a distributed stream computing framework; Step S6: Based on the device status change trend data, the distributed stream computing framework is used to dynamically schedule the PLC device computing resources to obtain PLC dynamic computing resource scheduling data; based on the PLC dynamic computing resource scheduling data, a PLC dynamic scheduling model is constructed to perform PLC dynamic control operations; the specific steps of step S6 are: Step S61: performing abnormal state prediction on the equipment state change trend data to obtain equipment abnormal state prediction data; Step S62: using the distributed stream computing framework to perform distributed task flow operation processing on the PLC device to obtain task flow operation data; Step S63: dynamically schedule the task flow operation data based on the equipment abnormal state prediction data to obtain PLC dynamic computing resource scheduling data; Step S64: Based on the PLC dynamic computing resource scheduling data, the distributed stream computing framework is dynamically expanded and reduced in capacity, and a PLC dynamic scheduling model is constructed to execute PLC dynamic control operations; the PLC dynamic control operation is specifically: dynamically adjusting the execution and control strategy of the task flow according to the real-time computing resource requirements and equipment status changes.

2. The PLC remote monitoring and control method based on industrial Internet of Things according to claim 1 is characterized in that: The specific steps of step S1 are: Step S11: Obtain a PLC device structure diagram; Step S12: performing multi-level component decomposition of the PLC device to obtain device component nodes; Step S13: marking the physical position of the device component nodes based on the PLC device structure diagram to obtain the component position coordinates; Step S14: performing spatial topological structure analysis on the device component nodes based on the component position coordinates to obtain component topological structure data; Step S15: Performing topological connection logic association analysis on the component topological structure data to obtain topological logic relationship data between components; Step S16: Reconstruct the topological distribution of device component nodes according to the topological logical relationship data between components, and construct a component logical topological structure diagram.

3. The PLC remote monitoring and control method based on industrial Internet of Things according to claim 1 is characterized in that: The specific steps of step S2 are: Step S21: Acquire PLC device communication interaction data; Step S22: performing functional abstract analysis on the device component node to obtain component communication interface type data; Step S23: performing inter-component communication logic analysis on the component communication interface type data based on the PLC device communication interaction data to generate component communication logic data; Step S24: performing inter-component stable communication link learning on the component logic topology diagram according to the component communication logic data to obtain the component communication path.

4. The PLC remote monitoring and control method based on industrial Internet of Things according to claim 3 is characterized in that: The specific steps of step S24 are: Calculate the component communication frequency of the PLC device communication interaction data to obtain the component communication frequency; Based on the component communication frequency, the frequently communicating components of the device component nodes are identified to extract the frequently communicating component nodes; Perform node connection analysis on frequently communicating component nodes according to component communication logic data. When the frequently communicating component nodes are directly connected, identify the node communication path based on the component logical topology diagram to obtain the component direct communication path. When the frequently communicating component nodes are indirectly connected, the transit component nodes are identified based on the component logical topology diagram to obtain the transit component nodes; Based on the transit component nodes, node communication paths are identified on the component logical topology structure diagram to obtain component transit communication paths; Based on the component communication frequency, low-frequency paths are identified in the component logical topology diagram to extract the component low-frequency paths; Based on the low-frequency paths of the components, the low-frequency paths of the component logical topology structure diagram are eliminated, and based on the component direct communication paths and the low-frequency paths of the components, the stable communication links of the component logical topology structure diagram are identified to obtain the component communication paths.

5. The PLC remote monitoring and control method based on industrial Internet of Things according to claim 1 is characterized in that: The specific steps of step S3 are: Step S31: performing communication delay frequency hopping calculation on the component communication path based on the PLC device communication interaction data to obtain path delay frequency hopping data; Step S32: Performing shortest path analysis between adjacent components on the component logical topology structure diagram to generate shortest path data between components; Step S33: Analyze the optimal communication path based on the path delay frequency hopping data and the shortest path data between components, so as to obtain the optimal communication path of the component; Step S34: dynamically optimize the component logical topology structure diagram through the component optimal communication path to construct the component topology optimization structure diagram.

6. The PLC remote monitoring and control method based on industrial Internet of Things according to claim 1 is characterized in that: The specific steps of step S4 are: Step S41: Perform real-time status monitoring on the PLC device to obtain real-time status data of the PLC device; Step S42: Analyze the execution device action behavior of the PLC device real-time status data to obtain the execution device behavior status data; Step S43: quantifying the performance peak value of the real-time status data of the PLC device to generate PLC performance data; Step S44: Performing state change trend analysis on the PLC performance data based on the execution device behavior state data to generate device state change trend data.

7. The PLC remote monitoring and control method based on industrial Internet of Things according to claim 6 is characterized in that: The specific steps of step S43 are: Calculate the CPU utilization of the PLC device real-time status data to obtain the device CPU utilization; Perform memory usage analysis on the real-time status data of PLC devices to generate device memory usage data; Perform I / O response situation analysis on the real-time status data of PLC equipment to obtain the I / O response situation data of the equipment; Perform response delay analysis on device I / O response status data based on device CPU utilization to generate device response delay data; Calculate the task concurrency peak value based on the device memory usage data and generate the device task concurrency peak value parameters; The performance peak is quantified for the equipment response delay data and equipment task concurrency peak parameters to generate PLC performance data.

8. The PLC remote monitoring and control method based on industrial Internet of Things according to claim 1 is characterized in that: The specific steps of step S5 are: Step S51: Performing dynamic association analysis between components on device component nodes, thereby generating component status association data; Step S52: dividing the device component nodes into microservice functions based on the component status association data, and generating a microservice component package; Step S53: Fit the distributed stream computing architecture to the microservice component package based on the component topology optimization structure diagram to build a distributed stream computing framework.

9. A PLC remote monitoring and control system based on industrial Internet of Things, characterized in that: Used to execute the PLC remote monitoring and control method based on industrial Internet of Things as claimed in claim 1, comprising: The topology module obtains the PLC device structure diagram; performs multi-level component decomposition on the PLC device to obtain device component nodes; performs spatial topology structure analysis on the device component nodes to obtain component topology structure data; performs topological distribution reconstruction on the component topology structure data to construct a component logical topology structure diagram; The communication link identification module obtains the communication interaction data of the PLC device; generates the component communication logic data based on the communication interaction data of the PLC device; and performs stable communication link learning between components on the component logic topology structure diagram according to the component communication logic data to obtain the component communication path; The dynamic path optimization module obtains the path delay frequency hopping data based on the component communication path; performs the shortest path analysis between adjacent components on the component logical topology structure diagram to generate the shortest path data between components; performs dynamic path optimization on the component logical topology structure diagram based on the path delay frequency hopping data and the shortest path data between components to construct the component topology optimization structure diagram; The status change trend module performs real-time status monitoring on PLC devices and obtains real-time status data of PLC devices; performs status change trend analysis on real-time status data of PLC devices and generates device status change trend data; The distributed computing module generates microservice component packages based on device component nodes; based on the component topology optimization structure diagram, the distributed stream computing architecture of the microservice component package is fitted to build a distributed stream computing framework; The dynamic scheduling module uses the distributed stream computing framework to dynamically schedule the computing resources of the PLC device based on the equipment status change trend data to obtain the PLC dynamic computing resource scheduling data; and builds a PLC dynamic scheduling model based on the PLC dynamic computing resource scheduling data to execute PLC dynamic control operations.

Citation Information

Patent Citations

  • Data-driven offline and online integrated simulation system and method for power distribution network

    CA3242113A1

  • Shrimp culture product remote on-line monitoring management system and implementation method

    CN112650177A