A data acquisition system
By designing a data acquisition system, using the OPC UA protocol for data communication, and monitoring interactive timely values and effective protection values, the compatibility, delay and security issues of the PLC system when integrating with OPC UA is solved, and efficient and secure data acquisition is achieved.
Patent Information
- Application Number
- CN202411907840.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-12-24
AI Technical Summary
When integrating with OPC UA, PLC systems face problems such as poor compatibility, data latency and security, resulting in insufficient real-time monitoring capabilities and insecure data transmission.
A data acquisition system is designed, including welding PLC server, welding PLC client and communication components, data communication is carried out through the OPC UA protocol, and welding interaction data and processing data are obtained within the preset period to determine the interaction time value and the effective protection value, and the alarm device is activated when the conditions are not met.
It realizes timely reporting delays or security issues while collecting data in real time, improving the security and timeliness of PLC data collection.
Smart Images

Figure CN119356206B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data acquisition, and in particular to a data acquisition system. Background Art
[0002] With the rapid development of industrial automation, Programmable Logic Controller (PLC), as an important part of automation equipment, is widely used in various industrial scenarios. Especially in the welding industry, PLC can control and monitor the production process. However, PLC is often limited in terms of equipment data collection and interaction capabilities. As an industrial communication protocol, Object Linking and Embedding for Process Control Unified Architecture (OPC UA) aims to achieve interoperability between different devices and systems. OPC UA provides an efficient and secure data exchange mechanism, supports real-time data collection and analysis, and has become the standard for modern industrial data communication. However, PLC systems often face problems such as poor compatibility and limited application scope when integrated with OPC UA.
[0003] To solve the above problems, CN106773978B provides a device data acquisition system based on the OPC UA protocol, which quickly accesses the data of the underlying devices through the OPC UA middleware and transplants it to multiple platforms for operation, and writes open source OPC UA middleware software in multiple programming languages. This system has expanded the application scope of the PLC system when integrated with OPC UA to a certain extent, but it still faces problems such as compatibility, data delay and security.
[0004] Therefore, it is hoped to provide a data acquisition system that helps to improve the security of PLC data acquisition while solving the delay of PLC data acquisition. Summary of the invention
[0005] One or more embodiments of the present specification provide a data acquisition system, which includes a welding PLC server, a welding PLC client, and a communication component; the welding PLC server is located on the welding equipment, and the welding PLC server is configured to obtain welding data of the welding equipment and pre-process the welding data; the welding PLC client is located on the remote processor, and the welding PLC client includes a PLC compatible component, a processor, and an alarm device, and the PLC compatible component is implemented based on the OPC UA open protocol; the communication component is configured to perform data communication between the welding PLC server and the welding PLC client; the welding PLC client is configured to: based on the welding PLC server, obtain welding interaction data within a preset time period and processing data of the welding PLC server; based on the welding interaction data within the preset time period and the processing data, determine the interaction timely value of the welding PLC server; based on the welding interaction data within the preset time period and the processing data, determine the protection effective value of the welding PLC server; in response to the interaction timely value not meeting the preset interaction condition and / or the protection effective value not meeting the preset protection condition, start the alarm device.
[0006] One of the embodiments of the present specification provides a data collection method, which is executed by a welding PLC client, including: based on a welding PLC server, obtaining welding interaction data within a preset time period and processing data of the welding PLC server; based on the welding interaction data within the preset time period and the processing data, determining the interaction timely value of the welding PLC server; based on the welding interaction data within the preset time period and the welding parameters of the welding equipment, determining the protection effective value of the welding PLC server; in response to the interaction timely value not satisfying a preset interaction condition and / or the protection effective value not satisfying a preset protection condition, starting an alarm device. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:
[0008] Figure 1 is an exemplary module diagram of a data acquisition system according to some embodiments of this specification;
[0009] Figure 2 is an exemplary flow chart of a data collection method according to some embodiments of this specification;
[0010] Figure 3 is an exemplary schematic diagram of determining an interaction timely value according to some embodiments of this specification;
[0011] Figure 4 It is an exemplary schematic diagram of determining the effective protection value according to some embodiments of this specification. DETAILED DESCRIPTION
[0012] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of this specification. For ordinary technicians in this field, this specification can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0013] It should be understood that the "system", "device", "unit" and / or "module" used herein are a method for distinguishing different components, elements, parts, portions or assemblies at different levels. However, if other words can achieve the same purpose, the words can be replaced by other expressions.
[0014] As shown in this specification and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "comprise" and "include" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0015] Flowcharts are used in this specification to illustrate the operations performed by the system according to the embodiments of this specification. It should be understood that the preceding or following operations are not necessarily performed precisely in order. Instead, the steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes, or one or more operations may be removed from these processes.
[0016] PLCs from different manufacturers have differences in communication protocols, resulting in poor interoperability of the system and limiting data sharing and integration between devices. CN106773978B can transplant the collected data to multiple platforms through OPC UA middleware, which improves the interoperability of the system to a certain extent. However, the delay problem of PLC data acquisition is still a major pain point in industrial automation. The PLC cannot upload data to the monitoring system in time, which will lead to insufficient real-time monitoring capabilities. In addition, many PLC systems lack effective encryption and identity authentication mechanisms in the data process and are vulnerable to network attacks. In view of this, some embodiments of this specification, by determining the interaction time value and protection effective value of the welding PLC server, can collect data in real time, and report in time when delay problems or security problems occur, while solving the delay problem and improving the security of PLC data acquisition.
[0017] Figure 1 1 is an exemplary module diagram of a data acquisition system 100 according to some embodiments of the present specification. In some embodiments, the data acquisition system 100 may include a welding PLC server 110, a welding PLC client 120, and a communication component 130.
[0018] The welding PLC server 110 is a device or component for collecting data. For example, the welding PLC server can be an OPC UA server integrated inside the PLC.
[0019] In some embodiments, the welding PLC server may be located on the welding equipment, and the welding PLC server may be configured to obtain welding data of the welding equipment and pre-process the welding data.
[0020] Welding equipment refers to equipment for implementing welding processes. For example, welding equipment may include a weldment positioner, a welding machine positioner, a fixed clamping device, etc. In some embodiments, a welding device includes a welding PLC server.
[0021] Welding data refers to data related to the welding process. For example, welding data may include welding temperature, welding time, etc. In some embodiments, the welding PLC server can obtain welding data of the corresponding welding equipment and perform preprocessing.
[0022] Preprocessing welding data refers to denoising, filtering, standardizing and encrypting the welding data obtained by the welding PLC server.
[0023] The welding PLC client 120 is located on a remote processor. In some embodiments, the welding PLC client may include a PLC compatible component, a processor, and an alarm device.
[0024] A remote processor is a computing device or processing unit that runs away from the data source. The remote processor can be responsible for processing data or requests from local devices and returning the processing results or performing further operations through the network.
[0025] The PLC compatible component is a component that is compatible with multiple industrial communication protocols. In some embodiments, the PLC compatible component can be implemented based on the OPC UA open protocol. The PLC compatible component can identify the industrial communication protocols of different welding PLC servers, convert the welding data obtained by different PLC servers into welding data corresponding to the unified industrial communication protocol and store them; the PLC compatible component can also realize the mutual conversion and interaction between the welding data obtained by different PLC servers.
[0026] The processor is used to process information and / or data related to the data acquisition system 100. In some embodiments, the processor can process data, information and / or processing results obtained from other devices or system components, and execute program instructions based on these data, information and / or processing results to perform one or more functions described in this specification.
[0027] The alarm device is a device that warns the user when there is a delay problem or a safety problem in PLC data collection. For example, the alarm device may include an electronic alarm, a voice alarm, etc.
[0028] In some embodiments, the welding PLC client can be configured to: based on the welding PLC server, obtain the welding interaction data within a preset time period and the processing data of the welding PLC server; based on the welding interaction data and the processing data within the preset time period, determine the interaction timely value of the welding PLC server; based on the welding interaction data within the preset time period and the welding parameters of the welding equipment, determine the protection effective value of the welding PLC server; in response to the interaction timely value not meeting the preset interaction conditions and / or the protection effective value not meeting the preset protection conditions, activate the alarm device.
[0029] In some embodiments, the welding PLC client can be configured to: determine the PLC communication delay data of the welding equipment based on the welding interaction data; determine the interaction time value based on the processing data and the PLC communication delay data.
[0030] In some embodiments, the welding PLC client can be configured to determine the PLC communication delay data based on the welding interaction data and compatible conversion parameters and based on a delay determination model, where the delay determination model is a machine learning model.
[0031] In some embodiments, the welding PLC client can be configured to: determine the safety hazard data of the welding PLC server based on user interaction data, welding interaction data and welding parameters of the welding equipment; and determine the protection effectiveness value based on the safety hazard data.
[0032] In some embodiments, the welding PLC client may be configured to determine safety adjustment parameters based on the safety hazard data.
[0033] The communication component 130 refers to a component or device for data communication. For example, the communication component may include Bluetooth, wireless local area network, etc. In some embodiments, the communication component may be configured to perform data communication between the welding PLC server and the welding PLC client.
[0034] In some embodiments, the data acquisition system further includes an interactive device (not shown in the figure). In some embodiments, the interactive device can be configured to obtain user interaction data within a preset period of time. For example, the interactive device can include a user input device such as a control panel and a keyboard.
[0035] It should be noted that the above description of the data acquisition system 100 and its modules is only for convenience of description and does not limit the present specification to the scope of the embodiments. It is understandable that, after understanding the principle of the system, those skilled in the art may arbitrarily combine the modules or form a subsystem to connect with other modules without deviating from the principle.
[0036] In some embodiments, the welding PLC client can obtain the welding interaction data within a preset time period and the processing data of the welding PLC server based on the welding PLC server; determine the interaction timely value of the welding PLC server based on the welding interaction data and the processing data within the preset time period; determine the protection effective value of the welding PLC server based on the welding interaction data within the preset time period and the welding parameters of the welding equipment; in response to the interaction timely value not meeting the preset interaction conditions and / or the protection effective value not meeting the preset protection conditions, activate the alarm device.
[0037] Figure 2 is an exemplary flow chart of a data acquisition method according to some embodiments of this specification. In some embodiments, process 200 can be executed by a welding PLC client of a data acquisition system. Figure 2 As shown, process 200 includes the following steps:
[0038] Step S210, based on the welding PLC server, obtain the welding interaction data within a preset period and the processing data of the welding PLC server. For more information about the welding PLC server, please refer to Figure 1 and its related description.
[0039] The preset time period refers to a preset time period. In some embodiments, the preset time period can be preset by the user based on actual needs.
[0040] Welding interaction data refers to data related to the interactions that occur during the welding process.
[0041] Interaction refers to the data interaction between different welding equipment and between welding equipment and welding monitoring platform. Welding monitoring platform refers to a platform used to monitor the welding process. Exemplary welding monitoring platforms may include but are not limited to industrial computers. For more information about welding equipment, please refer to Figure 1 and its related description.
[0042] For example, welding interaction data may include interaction time and interaction object. Interaction time refers to the time when the interaction occurs. Interaction object refers to the object with which the interaction is performed. Interaction object may include welding equipment and / or welding monitoring platform.
[0043] Processing data refers to data related to data processing by the welding PLC server. For example, processing data may include the time required for the welding PLC server to preprocess the welding data, the time required for the welding PLC server to store the data, etc. For more information about welding data and preprocessing, please refer to Figure 1 and its related description.
[0044] In some embodiments, the welding PLC client can obtain welding interaction data and processing data based on the welding PLC server. For example, the welding PLC server can transmit the obtained welding interaction data within a preset time period and the processing data of the welding PLC server to the welding PLC client based on the communication component.
[0045] Step S220, determining the interaction time value of the welding PLC server based on the welding interaction data and processing data within a preset time period.
[0046] The interaction timeliness value refers to a parameter used to measure the timeliness of data interaction during the PLC data acquisition process. The larger the interaction timeliness value, the more timely the data interaction and the more reliable the interaction process.
[0047] In some embodiments, the welding PLC client can determine the interaction time value of the welding PLC server in a variety of ways based on the welding interaction data and processing data within a preset time period.
[0048] Exemplarily, the welding PLC client can determine the interaction time value through the following steps S221-S224 based on the welding interaction data and processing data within a preset period:
[0049] S221, determining a transmission time difference based on the interaction object.
[0050] The transmission time difference refers to the time required for interaction. In some embodiments, the welding PLC client can determine the time difference between the data sending time of the interactive sending object and the data receiving time of the interactive receiving object as the transmission time difference. Among them, the interactive sending object refers to the object that sends data in the interactive object; the interactive receiving object refers to the object that receives data in the interactive object.
[0051] S222, establishing a time window based on the interactive object.
[0052] The time window refers to a reference transmission time difference used to measure whether the interaction is timely. In some embodiments, the welding PLC client can determine the average transmission time difference and / or the longest transmission time difference of such interactive objects without accidents during the interaction process as the time window based on historical data.
[0053] This type of interaction object refers to the type of object that interacts. For example, the interaction objects may include welding equipment-welding monitoring platform and welding equipment-welding equipment. No accidents mean that there is no third-party attack during the interaction, the welding PLC server is not overloaded, and there is no problem with the network.
[0054] S223, based on the transmission time difference, processing data and time window, determine whether the interaction process is timely. In response to the difference between the transmission time difference and the preprocessing time being less than the time window, the welding PLC client can determine that the interaction process is timely and mark the timeliness of the interaction as 1; in response to the difference between the transmission time difference and the preprocessing time being not less than the time window, the welding PLC client can determine that the interaction process is not timely and mark the timeliness of the interaction as 0.
[0055] Preprocessing time refers to the time it takes for the welding PLC server to preprocess the welding data during the interaction process. For more information about preprocessing, see Figure 1 In some embodiments, the pre-processing time can be determined based on the processing data.
[0056] It should be noted that when the type of interaction object is welding equipment-welding monitoring platform, the welding PLC client can determine the time for the welding PLC server corresponding to the welding equipment to preprocess the welding data as the preprocessing time; when the type of interaction object is welding equipment-welding equipment, the welding PLC client can determine the sum of the time for the welding PLC servers corresponding to the two welding equipment to preprocess the welding data as the preprocessing time.
[0057] S224, determining an interaction timeliness value based on the timeliness corresponding to all interaction processes involved in the welding PLC server within a preset time period.
[0058] The welding PLC client can determine the interaction timeliness value as the ratio of the number of times the timeliness of the welding PLC server interaction is marked as 1 within a preset time period to the total number of interaction processes.
[0059] In some embodiments, the welding PLC client can determine the interaction time value based on the PLC communication delay data. For more information, see Figure 3 and its related description.
[0060] Step S230, determining the effective protection value of the welding PLC server based on the welding interaction data within a preset time period and the welding parameters of the welding equipment.
[0061] Welding parameters refer to parameters related to the welding process. For example, welding parameters may include welding objects, the orientation of the workpiece to be welded, the orientation of the welding machine, etc. Among them, the welding object refers to the object to be welded, for example, the welding object may be a welding workpiece being welded.
[0062] The welding equipment is provided with a variety of monitoring sensors, and the welding PLC client can obtain welding parameters based on the monitoring sensors. Exemplary monitoring sensors may include position sensors and the like.
[0063] The protection effective value refers to the parameter used to measure the security of data interaction during PLC data acquisition. The larger the protection effective value, the more effective the security protection is during the interaction.
[0064] In some embodiments, the welding PLC client can determine the protection effective value of the welding PLC server in a variety of ways based on the welding interaction data within a preset time period and the welding parameters of the welding equipment.
[0065] Exemplarily, the welding PLC client can determine the protection effective value through the following steps S231-S234 based on the welding interaction data within a preset period and the welding parameters of the welding equipment:
[0066] S231, based on all interaction processes of the welding PLC server within a preset time period, arrange the actual interaction order of the interaction objects interacting with the welding PLC server according to the timestamps of the interactions, and compare the actual interaction order with the interaction order set inside the welding PLC server; in response to the inconsistency between the actual sequence and the interaction order set inside the welding PLC server, the welding PLC client performs a marking, for example, marking the interaction order as questionable.
[0067] S232, based on the welding parameters, compare whether the orientation of the workpiece to be welded and the orientation of the welding machine are consistent with the expected production layout; in response to the orientation of the workpiece to be welded and the orientation of the welding machine being inconsistent with the expected production layout, the welding PLC client performs a marking, such as marking an incorrect configuration of the equipment.
[0068] The expected production layout refers to a pre-set production layout, which includes the workpieces to be welded and the expected positions of the welding machines in production.
[0069] S233, for each interaction process, compare whether the data transmitted and received by the interaction object are consistent, and the welding PLC client marks an interaction process in which the data transmitted and received by the interaction object are inconsistent, for example, marking it as data inconsistency.
[0070] S234, determining a protection effectiveness value based on all the aforementioned marking times and the total number of interaction processes within a preset time period.
[0071] The welding PLC client can determine the protection effective value through the first preset rule based on the number of markings and the total number of interactive processes. The first preset rule can be: the greater the proportion of the number of markings to the total number of interactive processes, the lower the protection effective value. An exemplary first preset rule can be: protection effective value = 1-number of markings / (2+total number of interactive processes).
[0072] In some embodiments, the welding PLC client can determine the effective protection value based on the safety hazard data. For more information, see Figure 4 and its related description.
[0073] Step S240, in response to the interaction time value not satisfying the preset interaction condition and / or the protection effective value not satisfying the preset protection condition, starting the alarm device.
[0074] The preset interaction condition refers to a preset condition for determining whether to remind the user of the delay problem. The preset interaction condition can be preset by the system or manually. An exemplary preset interaction condition can be: the interaction time value is greater than the interaction threshold. The interaction threshold can be set based on experience. The welding PLC client can count the lowest interaction time value in the historical data without any accidents and determine it as the interaction threshold.
[0075] The preset protection condition refers to a preset condition for determining whether to remind the user of a safety problem. The preset protection condition can be preset by the system or manually. An exemplary preset protection condition can be: the protection effective value is greater than the protection threshold. The protection threshold can be set based on experience. The welding PLC client can determine the lowest protection effective value in the historical data without accidents as the protection threshold.
[0076] In some embodiments, the welding PLC client can control the alarm device to start up to alarm the user.
[0077] In some embodiments of the present specification, data can be collected from multiple welding devices efficiently and in real time through a welding PLC server, supporting rapid updating and monitoring of production status; through PLC compatible components, it can be compatible with a variety of industrial communication protocols to ensure seamless integration with welding PLC servers of different brands and models; based on interactive timely values and protection effective values, it can provide real-time data processing and analysis functions, can quickly identify abnormal situations and generate reports, and help improve the security and timeliness of PLC data collection.
[0078] Figure 3 3 is an exemplary schematic diagram of determining the interaction time value according to some embodiments of the present specification. In some embodiments, the welding PLC client can determine the PLC communication delay data 350 of the welding equipment based on the welding interaction data 310; and determine the interaction time value 370 based on the processing data 360 and the PLC communication delay data 350.
[0079] PLC communication delay data refers to the delay time caused by communication during the interaction process.
[0080] In some embodiments, the welding PLC client can determine the PLC communication delay data in a variety of ways based on the welding interaction data. The welding interaction data can include the welding data that has been interacted with. The welding data that has been interacted with refers to the welding data transmitted between the interaction objects.
[0081] For example, the welding PLC client can determine the historical welding data that has interacted with the welding PLC server in the past based on historical data, and the historical welding data that has the highest similarity with the welding data that interacted within a preset time period, and determine the subsequent average delay time of the historical welding data as the PLC communication delay data. The welding PLC client can determine the aforementioned similarity through similarity calculation methods such as cosine similarity and Euclidean distance. The welding PLC client can capture and analyze network traffic through traffic monitoring tools such as Wireshark, Nagios, Zabbix or SolarWinds to obtain the average delay time corresponding to the historical welding data.
[0082] In some embodiments, the PLC communication delay data is also related to the compatible conversion parameters of the welding equipment; the welding PLC client can determine the PLC communication delay data 350 based on the welding interaction data 310, the compatible conversion parameters 320, and the delay determination model 340.
[0083] The compatible conversion parameter refers to a parameter related to the conversion of welding data of the welding equipment. For example, the compatible conversion parameter may include a compatible conversion time. The compatible conversion time refers to the time required for the welding data of the welding equipment to be converted. The aforementioned conversion includes converting the welding data of the welding equipment into welding data corresponding to the unified industrial communication protocol and / or welding data corresponding to the communication protocol of the interactive object. The welding PLC client can determine the compatible conversion parameter based on the PLC compatible component.
[0084] The delay determination model refers to a model used to determine the PLC communication delay data. In some embodiments, the delay determination model can be a machine learning model, such as a neural network model.
[0085] In some embodiments, the input of the delay determination model may include welding interaction data and compatible conversion parameters; the output may include PLC communication delay data.
[0086] In some embodiments, the input to the delay determination model may also include communication component parameters 330 .
[0087] Communication component parameters refer to parameters related to communication components. For example, communication component parameters may include communication protocols, communication types, etc. Communication protocols refer to protocols that provide communication support, for example, communication protocols may include TCP / IP protocols, AMQP protocols, etc. Communication types refer to different types of communication performed by communication components, such as Bluetooth, WiFi, etc. In some embodiments, communication component parameters are stored in PLC compatible components.
[0088] In some embodiments of this specification, PLC communication delay data is determined based on communication component parameters, and the communication transmission mode and transmission process can be considered to make the predicted PLC communication delay data more accurate.
[0089] In some embodiments, the delay determination model can be obtained by training multiple first training samples with first labels. The welding PLC client can perform the following training process to obtain the delay determination model. The training process includes: obtaining multiple first training samples with first labels to form a training sample set, and performing multiple rounds of iterations based on the training sample set.
[0090] Among them, at least one round of iteration includes: selecting one or more first training samples from the training data set, inputting the one or more first training samples into the initial delay determination model, and obtaining the model prediction output corresponding to the one or more first training samples; substituting the model prediction output corresponding to the one or more first training samples and the first labels corresponding to the one or more first training samples into the formula of a predefined loss function, and calculating the value of the loss function; iteratively updating the model parameters in the initial delay determination model according to the value of the loss function until the iteration end condition is met, and then terminating the iteration to obtain a trained delay determination model.
[0091] The iterative update of the model parameters of the initial delay determination model can be performed by a variety of methods, for example, it can be updated based on a gradient descent method. The iteration end condition can include the convergence of the loss function or the number of iterations reaching an iteration number threshold.
[0092] A set of first training samples for training the delay determination model may include sample welding interaction data and sample compatible conversion parameters. A first label corresponding to a set of first training samples is the PLC communication delay data actually corresponding to the first training samples. In some embodiments, when the communication component parameters are used as inputs to the delay determination model, a set of first training samples may also include sample communication component parameters.
[0093] In some embodiments, the first training sample can be obtained based on historical data. The welding PLC client can monitor the welding interaction data corresponding to the first training sample, and capture and analyze the network traffic through traffic monitoring tools such as Wireshark, Nagios, Zabbix or SolarWinds to obtain the first label corresponding to the first training sample.
[0094] In some embodiments of the present specification, a delay determination model can be used to integrate multiple factors such as welding interaction data and compatible conversion parameters, and combined with the self-learning ability of the machine learning model, patterns can be found from a large amount of data, thereby improving the accuracy and convenience of determining the PLC communication delay data.
[0095] In some embodiments, the welding PLC client can determine the interactive timely value based on the processing data and the PLC communication delay data. For example, the welding PLC client can refer to the aforementioned steps S222-S224, and when marking in S223, replace the transmission time difference with the PLC communication delay data for judgment to determine the interactive timely value.
[0096] In some embodiments of the present specification, the interaction timeliness value is determined based on the PLC communication delay data. The interaction timeliness value can be more accurately judged in combination with the PLC communication delay time, which helps to improve the accuracy of the delay judgment of data collection.
[0097] In some embodiments, in response to the interaction timely value not satisfying the preset interaction condition, the welding PLC client can determine at least one server to be adjusted; based on the at least one server to be adjusted and the interaction timely value, determine the interaction parameters of the welding PLC server.
[0098] The server to be adjusted refers to a welding PLC server that needs to adjust the interaction parameters. In some embodiments, the welding PLC client can determine the welding PLC server whose interaction time value does not meet the preset interaction condition as the server to be adjusted.
[0099] Interaction parameters refer to parameters related to the interaction of the welding PLC server. For example, the interaction parameters may include interaction priority, interaction time, data interaction volume, etc. Interaction priority refers to the priority of interaction; interaction time refers to the time required for interaction; data interaction volume refers to the amount of welding data for interaction.
[0100] In some embodiments, the welding PLC client can determine the interaction parameters of the welding PLC server in a variety of ways based on at least one server to be adjusted and the interaction time value.
[0101] For example, the welding PLC client can determine the interaction parameters by vector matching based on at least one server to be adjusted and the interaction time value.
[0102] Exemplarily, the welding PLC client can use the data in the historical data that does not cause any accidents after the interaction as sample data, construct the server to be adjusted, the timely interaction value of the server to be adjusted, and the interaction parameters of the welding PLC server in the sample data into a clustering vector, perform clustering, and form a preset number of cluster centers; construct the server to be adjusted and the timely interaction value of the server to be adjusted corresponding to the cluster center into a standard vector, and use the interaction parameters of the welding PLC server as the label of the standard vector; construct a vector to be matched based on at least one server to be adjusted and the timely interaction value, and perform vector similarity calculation on the standard vector, and determine the label corresponding to the standard vector with the highest similarity to the vector to be matched as the interaction parameter of the welding PLC server. Exemplary clustering methods may include K-means clustering, mean shift clustering, etc.
[0103] In some embodiments of the present specification, based on at least one server to be adjusted and an interaction timely value, the interaction parameters of the welding PLC server are determined, and the interaction parameters of the server to be adjusted can be adjusted, which is beneficial to improving the interaction timely value in the subsequent data collection process.
[0104] Figure 4 It is an exemplary schematic diagram of determining the effective protection value according to some embodiments of this specification.
[0105] In some embodiments, the welding PLC client can determine the safety hazard data 440 of the welding PLC server based on the user interaction data 410, the welding interaction data 310 and the welding parameters 420 of the welding equipment; and determine the protection effective value 450 based on the safety hazard data 440.
[0106] User interaction data refers to data related to user interaction. For example, user interaction data may include the interaction time and interaction items of the user. Among them, the interaction items may include adjusting welding equipment parameters, starting and closing the welding PLC server, etc. In some embodiments, the welding PLC client can obtain user interaction data within a preset period based on the interaction device. For more information about the interaction device, see Figure 1 and its related description.
[0107] Safety hazard data refers to data related to potential safety hazards in the data interaction process. For example, safety hazard data may include safety hazard types and confidence levels corresponding to safety hazard types.
[0108] The potential safety hazard type may include potential safety hazard caused by a user and potential safety hazard caused by no user. The confidence level corresponding to the potential safety hazard type refers to the confidence level of the potential safety hazard type.
[0109] In some embodiments, the welding PLC client may determine safety hazard data in a variety of ways based on user interaction data, welding interaction data, and welding parameters of the welding equipment.
[0110] For example, the welding PLC client can perform similarity matching on historical data based on user interaction data, welding interaction data, and welding parameters of welding equipment, and determine the historical safety hazard data corresponding to the historical user interaction data, historical welding interaction data, and historical welding parameters with the highest similarity as safety hazard data.
[0111] In some embodiments, the welding PLC client can record the historical data of the interaction items and their safety hazard types that have safety hazards from the start of the interaction to a preset time interval after the interaction during the historical interaction process; for each safety hazard type, determine the confidence level corresponding to the safety hazard type based on a second preset rule, and then determine the historical safety hazard data corresponding to the historical data.
[0112] The second preset rule may be: the time when the potential safety hazard occurs, the time distance from the start time of data interaction is within the time threshold, the higher the confidence. An exemplary second preset rule may be: the confidence corresponding to the potential safety hazard type = e^(time threshold - time distance from the time when the potential safety hazard occurs to the start time of data interaction). The time threshold may be set based on experience.
[0113] The welding PLC client can also count the relationship between a certain type of safety hazard and the time distance between the occurrence time of the safety hazard and the start time of data interaction, and perform function fitting to determine the function inflection point as the time threshold.
[0114] In some embodiments, the welding PLC client may determine safety hazard data through a hazard prediction model 430 based on user interaction data, welding interaction data, and welding parameters of welding equipment.
[0115] The hidden danger prediction model refers to a model used to determine safety hidden danger data. In some embodiments, the hidden danger prediction model can be a machine learning model, such as a deep neural network (DNN) model.
[0116] In some embodiments, the input of the hidden danger prediction model may include user interaction data, welding interaction data and welding parameters of welding equipment. The output of the hidden danger prediction model may be safety hidden danger data within a preset time interval after the welding interaction data is interacted.
[0117] In some embodiments, the hidden danger prediction model can be obtained by training based on a large number of second training samples with second labels. The training process of the hidden danger prediction model is similar to the training process of the delay determination model. For more information, please refer to Figure 3 Related description in the previous article.
[0118] In some embodiments, the second training sample may include sample user interaction data, sample welding interaction data, and sample welding parameters in the first period. The second training sample may be obtained based on historical data. The second label may be historical safety hazard data in the second period corresponding to the second training sample. The determination of historical safety hazard data may refer to Figure 4 The first time period is earlier than the second time period, and the second time period is a preset time interval after the first time period.
[0119] In some embodiments of this specification, user interaction data, welding interaction data and welding parameters of welding equipment are comprehensively considered, and the safety hazard data of welding PLC server is predicted through the hazard prediction model. It can not only effectively improve the safety of welding process, but also identify potential risks in advance, optimize welding operation process and reduce equipment failure, further improve the level of production automation and provide decision support for management.
[0120] In some embodiments, the welding PLC client may determine safety adjustment parameters based on the safety hazard data.
[0121] The security adjustment parameter is a parameter related to adjusting the security of interaction. For example, the security adjustment parameter may include an encrypted interaction object.
[0122] In some embodiments, the welding PLC client can determine the safety adjustment parameter based on the safety hazard data. For example, the welding PLC client can calculate the confidence mean of the safety hazard data of both interactive objects; and determine the corresponding interactive object when the confidence mean is greater than the encryption threshold as the safety adjustment parameter. The encryption threshold is usually set based on experience.
[0123] In some embodiments, the security adjustment parameter may also be related to the interaction parameter. In some embodiments, the higher the interaction priority in the interaction parameter, the lower the encryption threshold corresponding to the interaction object.
[0124] For more information about interaction parameters, see Figure 3 and its related description.
[0125] In some embodiments of this specification, the security adjustment parameters are adjusted according to the interaction parameters. For important welding processes, encryption protection needs to be strengthened. Lowering the encryption threshold helps to better protect key data, timely discover potential security issues and avoid risks caused by insufficient encryption. In addition, this measure can effectively schedule encryption resources and give priority to the security protection of high-priority interaction processes, thereby improving the overall security of the system and reducing security risks and the possibility of data leakage.
[0126] In some embodiments, the security adjustment parameters are also related to communication component parameters.
[0127] In some embodiments, the welding PLC client can determine the security adjustment parameter based on the communication component parameters. For example, when the communication protocol in the communication component parameters is the HTTP protocol, the transmission security is low, and the welding PLC client can determine the interactive object that communicates based on the HTTP protocol as the security adjustment parameter.
[0128] In some embodiments of this specification, by associating security adjustment parameters with communication component parameters, the encryption strategy can be dynamically adjusted according to the security of the communication method to protect the confidentiality and integrity of data during transmission. In addition, through security assessment, high-risk links can be identified, encryption resources can be reasonably allocated, and the overall security of the system can be improved and performance can be optimized.
[0129] In some embodiments of the present specification, security adjustment parameters are determined based on potential safety hazards data, and encryption processing can be performed when interacting with interactive objects that are prone to potential safety hazards, thereby improving the security of data interaction during data collection.
[0130] In some embodiments, the welding PLC client can determine the protection effectiveness value in a variety of ways based on the safety hazard data.
[0131] For example, the welding PLC client can record the safety hazard data of the welding PLC server and other PLC servers that interact with it within a preset time period within a preset time interval, and record the safety hazard data of the welding PLC server and other PLC servers with the same safety hazard type as a high-risk hazard set; based on the high-risk hazard set, the effective protection value is determined by a third preset rule.
[0132] Exemplarily, welding PLC server A interacts with welding PLC server B and welding PLC server C simultaneously within a preset time period. The safety hazard data of welding PLC server A within the preset time interval include [(safety hazard type 1, confidence 0.2), (safety hazard type 2, confidence 0.3), (safety hazard type 3, confidence 0.5)]; the safety hazard data of welding PLC server B within the preset time interval include [(safety hazard type 1, confidence 0.5), (safety hazard type 3, confidence 0.5)]; the safety hazard data of welding PLC server C within the preset time interval include [(safety hazard type 2, confidence 0.5), (safety hazard type 3, confidence 0.5)]; then the high-risk hazard set corresponding to welding PLC server A is [(safety hazard type 2, confidence 0.3)].
[0133] An exemplary third preset rule may be: the greater the ratio of the number of safety hazard types in the high-risk hazard set to the number of safety hazard types in the safety hazard data, and the greater the ratio of the average confidence level of the safety hazard types in the high-risk hazard set to the average confidence level of the safety hazard types in the safety hazard data, the smaller the protection effectiveness value.
[0134] For example, the third preset rule may be: protection effective value = 1 / [(number of safety hazard types in the high-risk hazard set / number of safety hazard types in the safety hazard data)*(average confidence of safety hazard types in the high-risk hazard set / average confidence of safety hazard types in the safety hazard data)].
[0135] In some embodiments of the present specification, the welding PLC client can accurately determine the safety hazard data of the welding PLC server by combining the user interaction data, the welding interaction data and the welding parameters of the welding equipment, thereby realizing the early identification and prevention of safety hazards. In addition, the effective value of protection is further determined based on the safety hazard data, and the possibility of occurrence of each type of safety hazard is evaluated, so that when measuring the effective value of safety protection of the welding PLC server, a detailed analysis is performed, the actual risk and its trend are controlled, and the security of data interaction is improved.
[0136] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of this specification. Although not explicitly stated here, those skilled in the art may make various modifications, improvements and corrections to this specification. Such modifications, improvements and corrections are suggested in this specification, so such modifications, improvements and corrections still belong to the spirit and scope of the exemplary embodiments of this specification.
[0137] At the same time, this specification uses specific words to describe the embodiments of this specification. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of this specification. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, certain features, structures or characteristics in one or more embodiments of this specification can be appropriately combined.
[0138] In addition, unless explicitly stated in the claims, the order of the processing elements and sequences described in this specification, the use of alphanumeric characters, or the use of other names are not intended to limit the order of the processes and methods of this specification. Although the above disclosure discusses some invention embodiments that are currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the attached claims are not limited to the disclosed embodiments. On the contrary, the claims are intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of this specification. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing server or mobile device.
[0139] Similarly, it should be noted that in order to simplify the description disclosed in this specification and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this specification, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the subject matter of this specification are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.
[0140] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining the digits. Although the numerical domains and parameters used to confirm the breadth of the range in some embodiments of this specification are approximate values, in specific embodiments, the setting of such numerical values is as accurate as possible within the feasible range.
[0141] Each patent, patent application, patent application publication, and other materials, such as articles, books, specifications, publications, documents, etc., cited in this specification is hereby incorporated by reference in its entirety. Except for application history documents that are inconsistent with or conflicting with the contents of this specification, documents that limit the broadest scope of the claims of this specification (currently or later attached to this specification) are also excluded. It should be noted that if the descriptions, definitions, and / or use of terms in the materials attached to this specification are inconsistent or conflicting with the contents described in this specification, the descriptions, definitions, and / or use of terms in this specification shall prevail.
[0142] Finally, it should be understood that the embodiments described in this specification are only used to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.
Claims
1. A data acquisition system, comprising a welding PLC server, a welding PLC client, and a communication component; the welding PLC server is located on a welding device, and the welding PLC server is configured to obtain welding data of the welding device and pre-process the welding data; The welding PLC client is located on a remote processor, and the welding PLC client includes a PLC compatible component, a processor and an alarm device, and the PLC compatible component is implemented based on the OPC UA open protocol; the communication component is configured to perform data communication between the welding PLC server and the welding PLC client; The welding PLC client is configured as: Acquire welding interaction data within a preset time period and processing data of the welding PLC server; Determining the interaction time value of the welding PLC server based on the welding interaction data and the processing data within the preset time period includes: Based on the welding interaction data, compatible conversion parameters and communication component parameters, PLC communication delay data is determined based on a delay determination model, wherein the delay determination model is a machine learning model, and the communication component parameters include a communication protocol and a communication type, and the communication component parameters are stored in the PLC compatible component; Based on the processing data and the PLC communication delay data, determining the interaction timeliness value, wherein the interaction timeliness value is a parameter used to measure the timeliness of data interaction during the PLC data acquisition process; Based on the welding interaction data within the preset time period and the welding parameters of the welding equipment, determining the effective protection value of the welding PLC server, wherein the effective protection value is a parameter used to measure the security of data interaction during the PLC data collection process; In response to the interaction time value not satisfying the preset interaction condition, determining at least one server to be adjusted; based on the at least one server to be adjusted and the interaction time value, determining the interaction parameters of the welding PLC server, the interaction parameters including interaction priority, interaction time and data interaction amount; In response to the interaction timely value not satisfying a preset interaction condition and / or the protection effective value not satisfying a preset protection condition, the alarm device is activated.
2. The system according to claim 1, characterized in that The system further includes an interaction device, which is configured to obtain user interaction data within the preset time period; the welding PLC client is further configured to: Determining safety hazard data of the welding PLC server based on the user interaction data, the welding interaction data and the welding parameters of the welding equipment; Based on the safety hazard data, the protection effectiveness value is determined.
3. The system according to claim 2, characterized in that The welding PLC client is further configured to determine a safety adjustment parameter based on the safety hazard data.
4. A real-time PLC data acquisition method based on the OPC UA open protocol, characterized in that: Executed by welding PLC client, including: Obtain welding interaction data within a preset period and processing data from the welding PLC server; Determining the interaction time value of the welding PLC server based on the welding interaction data and the processing data within the preset time period includes: Based on the welding interaction data, compatible conversion parameters and communication component parameters, PLC communication delay data is determined based on a delay determination model, wherein the delay determination model is a machine learning model, and the communication component parameters include a communication protocol and a communication type, and the communication component parameters are stored in a PLC compatible component; Based on the processing data and the PLC communication delay data, determining the interaction timeliness value, wherein the interaction timeliness value is a parameter used to measure the timeliness of data interaction during the PLC data acquisition process; Based on the welding interaction data within the preset time period and the welding parameters of the welding equipment, determining the effective protection value of the welding PLC server, wherein the effective protection value is a parameter used to measure the security of data interaction during the PLC data collection process; In response to the interaction time value not satisfying the preset interaction condition, determining at least one server to be adjusted; based on the at least one server to be adjusted and the interaction time value, determining the interaction parameters of the welding PLC server, the interaction parameters including interaction priority, interaction time and data interaction amount; In response to the interaction timely value not satisfying the preset interaction condition and / or the protection effective value not satisfying the preset protection condition, an alarm device is activated.
5. The method according to claim 4, characterized in that The determining of the protection effective value of the welding PLC server based on the welding interaction data within the preset time period and the welding parameters of the welding equipment includes: Determining safety hazard data of the welding PLC server based on user interaction data, the welding interaction data and the welding parameters of the welding equipment; Based on the safety hazard data, the protection effectiveness value is determined.
6. The method according to claim 5, characterized in that The method further includes determining a safety adjustment parameter based on the safety hazard data.
Citation Information
Patent Citations
A device data acquisition system based on the OPC UA protocol
CN106773978B
Workpiece welding quality prediction device and method based on OPC UA architecture
CN116245216A
Optical communication product laser welding performance monitoring system based on air floating type welding clamp
CN117655568A
Time setting method and device, equipment and storage medium
CN118413575A