A method and system for recording log data of fully automatic PLC control equipment

By obtaining roll surface pressure and steel strip thickness data in the cold rolling mill, cluster analysis and abnormal screening are performed, which solves the problem of being unable to accurately judge abnormal conditions in the cold rolling mill, realizes efficient PLC control equipment log data recording, and improves Control precision and data accuracy.

CN118605377BActive Publication Date: 2024-10-15JIGUAN IRON & STEEL (SHANDONG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411080299.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-10-15
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

The existing technology cannot accurately determine whether there is an abnormal state in a cold rolling mill that is put into use for the first time, and cannot effectively record control equipment log data, resulting in reduced control accuracy and data recording accuracy.

Method used

By obtaining the pressure and steel strip thickness data at different positions on the roll surface, draw a scatter plot, conduct cluster analysis, screen out suspected abnormal points and normal positions, calculate the rolling effect and abnormality degree, and record the PLC control equipment log data.

Benefits of technology

It improves the accuracy of exception identification and data recording, simplifies the complexity of data analysis, reduces data redundancy, and improves system work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118605377B_ABST
    Figure CN118605377B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data processing technology, and in particular to a method and system for recording log data of a fully automatic PLC control device, comprising: screening out a number of suspected abnormal points from all data points according to the thickness and pressure of the steel strip corresponding to each data point; screening out a number of normal positions from all positions on the surface of the roller according to the distance between each data point and the corresponding cluster center after screening out the suspected abnormal points, the thickness and pressure of the steel strip corresponding to each data point, and obtaining the log data recording result of the PLC control device according to the possibility of the existence of abnormality of the cold rolling mill itself at each normal position and the degree of abnormality of each data point corresponding to each rolling. The present invention improves the accuracy of abnormality identification by analyzing points with large differences from the overall rolling effect, determining whether there is rolling abnormality at the corresponding position of the point according to the difference of multiple rolling effects at the point, and lossy compression of points in the normal area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method and system for recording log data of a fully automatic PLC control device. Background Art

[0002] In the current industrial environment, programmable logic controllers (PLCs) are often used to achieve automated control in industrial production. For example, during the operation of a cold rolling mill, the distance between the rollers, speed, start and stop, winding and unwinding of the cold rolling mill are precisely controlled through its own control devices and control programs, thereby improving the production efficiency of the cold rolling mill and enabling the cold rolling mill to operate stably. The PLCs can process the data of various sensors and equipment operation data in real time, and control them according to preset logical conditions to prevent equipment failures. However, the preset logical conditions and criteria for judging abnormalities are based on the analysis of a large amount of historical data on the operation of the cold rolling mill. Due to the differences in the operating conditions of each cold rolling mill, for example, the distance between the rollers of different cold rolling mills is different, the difference in roller materials leads to uneven roller hardness, and there are different degrees of deformation or cracks and pits on the surface of the rollers, which leads to differences in the pressure between the rollers in different cold rolling mills; during the rolling process of the cold rolling mill, the thickness of the strip is also unevenly distributed, resulting in differences in the rolling effects of different rollers on the strip, making it impossible to achieve precise control of the operation process of the cold rolling mill using unified parameters, and it is impossible to accurately judge whether different cold rolling mills are in an abnormal state at a certain moment using unified standards, and it is impossible to judge whether a cold rolling mill that is put into use for the first time and has no historical operating data has any abnormalities. When analyzing the uneven rolling effect of steel strips in a cold rolling mill based on the log data of a PLC control device in the prior art, the normal operating rules of the cold rolling unit are usually set according to the distribution of a large amount of historical data, and the degree to which the data of the cold rolling unit obtained during the subsequent operation conforms to the normal operating rules is analyzed to obtain data that does not meet the operating effect standards. The above method cannot determine whether the data obtained is valid for a cold rolling unit that is put into use for the first time (without historical reference data), thereby reducing the accuracy of the control device log data records. Summary of the invention

[0003] The present invention provides a full-automatic PLC control equipment log data recording method and system to solve the existing problems.

[0004] A fully automatic PLC control equipment log data recording method and system of the present invention adopts the following technical solutions:

[0005] An embodiment of the present invention provides a method for recording log data of a fully automatic PLC control device, the method comprising the following steps:

[0006] Obtain the pressure at different positions on the roller surface at each moment in each rolling process and the thickness of the steel strip at different positions after each rolling process; in any rolling process, draw a scatter plot of all different positions with the thickness of the steel strip after the rolling process as the horizontal axis and the pressure at any moment as the vertical axis; cluster all data points in the scatter plot to obtain several clusters;

[0007] According to the number of data points in each cluster, the distance from each data point to the center of the cluster, the thickness and pressure of the steel strip corresponding to each data point, the abnormality degree of each data point in each cluster is obtained; according to the abnormality degree of each data point in each cluster, several suspected abnormal points are screened out from all data points;

[0008] According to the number of data points in each cluster, the distance between each data point and the corresponding cluster center after screening out suspected abnormal points, and the steel strip thickness and pressure corresponding to each data point, the rolling effectiveness of each cluster is obtained; according to the abnormality of each data point corresponding to each position on the roll surface and the rolling effectiveness of the cluster where each data point is located, several normal positions are screened out from all positions on the roll surface;

[0009] According to the abnormal degree of each data point corresponding to each normal position, the rolling effectiveness of the cluster where each data point is located, and the abnormal degree of each data point corresponding to each rolling process, the PLC control equipment log data recording results are obtained.

[0010] Furthermore, the abnormality degree of each data point in each cluster is obtained according to the number of data points in each cluster, the distance from each data point to the center of the cluster, the thickness and pressure of the steel strip corresponding to each data point, and the specific steps include the following:

[0011] According to the number of data points in each cluster, the distance from each data point to the center of the cluster, the thickness and pressure of the steel strip corresponding to each data point, the rolling effect of each cluster is obtained;

[0012] According to the rolling effect of each cluster and the distance from each data point to the center of the cluster, the abnormal degree of each data point in each cluster is obtained.

[0013] Furthermore, according to the number of data points in each cluster, the distance from each data point to the center of the cluster, the thickness and pressure of the steel strip corresponding to each data point, the specific calculation formula for the rolling effect of each cluster is obtained as follows:

[0014]

[0015] in, Indicates The rolling effect of clusters, Indicates The mean value of the steel strip thickness corresponding to all data points in the clusters, represents the mean value of the steel strip thickness corresponding to all data points, Indicates The mean pressure value corresponding to all data points in the cluster, represents the mean pressure corresponding to all data points, Indicates The first Data points to The distance between the cluster centers, Indicates The number of data points in a cluster. represents the absolute value function.

[0016] Furthermore, according to the rolling effect of each cluster and the distance from each data point to the center of the cluster, the specific calculation formula for the abnormality degree of each data point in each cluster is obtained as follows:

[0017]

[0018] in, Indicates The first The degree of abnormality of the data point, Indicates The first Data points to The distance between the cluster centers, Indicates All data points in the cluster to the The mean distance between the cluster centers, Indicates The rolling effect of clusters, represents the mean of the rolling effect of all clusters; represents the absolute value function, represents the linear normalization function.

[0019] Furthermore, the specific steps of selecting a number of suspected abnormal points from all data points according to the abnormal degree of each data point in each cluster are as follows:

[0020] Data points whose abnormality is greater than or equal to the preset first judgment threshold are recorded as suspected abnormal points.

[0021] Furthermore, according to the number of data points in each cluster, the distance between each data point and the corresponding cluster center after screening out suspected abnormal points, and the steel strip thickness and pressure corresponding to each data point, the specific calculation formula for the rolling effectiveness of each cluster is obtained as follows:

[0022]

[0023] in, Indicates The rolling effectiveness of the clusters, Indicates the number of The rolling effect of clusters, Indicates The rolling effect of clusters, It represents the maximum rolling effect of all clusters after screening out suspected abnormal points. Indicates the number of All data points in the clusters are The mean distance between the cluster centers, Indicates All data points in the clusters are The mean distance between the centers of the clusters.

[0024] Furthermore, according to the abnormality degree of each data point corresponding to each position on the roll surface and the rolling effectiveness degree of the cluster where each data point is located, a number of normal positions are screened out from all positions on the roll surface, including the following specific steps:

[0025] According to the abnormal degree of each data point corresponding to each position on the roll surface and the rolling effectiveness of the cluster where each data point is located, the possibility of the cold rolling mill itself being abnormal at each position on the roll surface is obtained;

[0026] The roller surface position where the possibility of the cold rolling mill itself being abnormal is less than or equal to a preset second judgment threshold is recorded as a normal position.

[0027] Furthermore, according to the abnormality degree of each data point corresponding to each position on the roll surface and the rolling effectiveness of the cluster where each data point is located, the specific calculation formula for obtaining the possibility of the cold rolling mill itself having abnormality at each position on the roll surface is:

[0028]

[0029] in, Indicates the roller surface There is a possibility of abnormality in the cold rolling mill itself. It represents the first The number of suspected outliers corresponding to the position, It represents the first The mean of the abnormality of all data points corresponding to the position, It represents the surface of the roll at all times during the rolling process. The variance of the abnormality of all data points corresponding to the position, It represents the surface of the roll at all times during the rolling process. The mean rolling effectiveness of all data points in the cluster corresponding to the position, represents the absolute value function, Represents the normalization function.

[0030] Further, the PLC control device log data recording result is obtained according to the abnormality degree of each data point corresponding to each normal position, the rolling effectiveness of the cluster where each data point is located, and the abnormality degree of each data point corresponding to each rolling process, and the specific steps included are as follows:

[0031] Replace the abnormality degree of all data points in the cluster except the abnormal point with the abnormality degree of the center point in each cluster;

[0032] Calculate the The sum of the abnormality levels of all data points corresponding to the normal position at all times in each rolling process, and then calculate the The average of the abnormality and values ​​of all data points corresponding to the normal position in all rolling processes, and the average and The product of the probability that the cold rolling mill itself is abnormal in each normal position is recorded as The compression value of the rolling effect in the normal position;

[0033] The abnormality levels of all data points corresponding to each normal position are replaced by the compressed value of the rolling effect of each normal position, and the abnormality levels of all data points corresponding to each replaced normal position at all moments in all rolling processes are stored in the database using run-length encoding.

[0034] The present invention also proposes a fully automatic PLC control device log data recording system, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program stored in the memory to implement the steps of the aforementioned fully automatic PLC control device log data recording method.

[0035] The beneficial effects of the technical solution of the present invention are:

[0036] In the embodiment of the present invention, the pressure and steel strip thickness at different positions on the roller surface are obtained; a scatter plot is drawn with the steel strip thickness as the horizontal axis and the pressure as the vertical axis; all data points in the scatter plot are clustered to obtain a number of clusters; according to the number of data points in each cluster, the distance from each data point to the cluster center, the steel strip thickness and pressure corresponding to each data point, a number of suspected abnormal points are screened out from all data points; it simplifies the complexity of data analysis by clustering the data points in the scatter plot, facilitates subsequent in-depth analysis of suspected abnormal points, and improves the work efficiency of the system. According to the number of data points in each cluster, the distance from each data point to the corresponding cluster center after screening out suspected abnormal points, the steel strip thickness and pressure corresponding to each data point, a number of normal positions are screened out from all positions on the roller surface; according to the accurate identification of the normal position, the data at the normal position is lossily compressed, effectively reducing data redundancy, and further improving the work efficiency of the system. According to the abnormal degree of each data point corresponding to each normal position, the rolling effectiveness of the cluster where each data point is located, and the abnormal degree of each data point corresponding to each rolling, the PLC control device log data recording result is obtained. The present invention analyzes the points with large differences from the overall rolling effect, and determines whether there is a rolling abnormality at the corresponding position of the point according to the difference in multiple rolling effects at the point, and lossy compresses the points in the normal area, thereby improving the accuracy of abnormality identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 A flow chart of the steps of a method for recording log data of a fully automatic PLC control device according to the present invention;

[0039] Figure 2 It is a schematic diagram of the rolling process of the cold rolling mill in this embodiment. DETAILED DESCRIPTION

[0040] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a method and system for recording log data of a fully automatic PLC control device proposed by the present invention, its specific implementation, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0041] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0042] The following is a detailed description of a method and system for recording log data of a fully automatic PLC control device provided by the present invention in conjunction with the accompanying drawings.

[0043] See also Figure 1 , which shows a flow chart of the steps of a method for recording log data of a fully automatic PLC control device provided by an embodiment of the present invention, the method comprising the following steps:

[0044] Step S001: Obtain the pressure at different positions on the roller surface at each moment in each rolling process and the thickness of the steel strip at different positions after each rolling process; in any rolling process, draw a scatter plot of all different positions with the thickness of the steel strip after the rolling process as the horizontal axis and the pressure at any moment as the vertical axis; cluster all data points in the scatter plot to obtain a number of clusters.

[0045] This embodiment takes the working data of a cold rolling mill based on a PLC control device as an example, and analyzes the possibility of abnormal operation of the cold rolling mill by obtaining the pressure difference at different positions of the cold rolling mill and the difference in thickness of the steel strip coil.

[0046] Take the cold rolling mill that was put into use for the first time as an example. Since the cold rolling mill has no historical operation data, the PLC may not be accurate enough in regulating the roller distance and roller speed. There may also be uneven roller surfaces and uneven thickness distribution of steel strips at different positions, which may result in differences in contact pressure at different positions, leading to uneven thickness distribution of cold-rolled plates at different positions after rolling. Therefore, the pressure differences at different positions and the differences in steel strip thickness during multiple rolling processes are used to analyze whether the cold rolling mill has poor rolling effects (each rolling of a roll of strip is considered a rolling process). Figure 2 As shown, Figure 2 The schematic diagram of the cold rolling mill rolling process in this embodiment is as follows: The coiled strip is fixed and rolled with rollers.

[0047] Within a preset time period, pressure sensors are set at different positions on the roller surface to obtain the pressure at different positions on the roller surface at each moment during each rolling process, and the corresponding position when the sensor obtains the pressure is marked on the steel strip. After each rolling, a thickness gauge is used to obtain the thickness of the steel strip at the marked position on the steel strip.

[0048] It should be noted that the unit of the obtained steel strip thickness is millimeter. In this embodiment, the preset time period is 1 day. There are multiple rollings in the preset time period. The collection frequency is once every 1 minute. This example is used for description.

[0049] First The thickness of the steel strip after the first rolling is the horizontal axis. During the rolling process The pressure at the moment is taken as the vertical axis, and a scatter plot corresponding to all different positions is drawn.

[0050] According to the Euclidean distance between the data points in the scatter plot, the K-means clustering algorithm is used to cluster all the data points in the scatter plot to obtain several clusters.

[0051] It should be noted that: the number of clusters set in this embodiment is 4, and this is taken as an example for description. Among them, Euclidean distance and k-means algorithm are both well-known technologies, and the specific methods are not introduced here.

[0052] Step S002: According to the number of data points in each cluster, the distance from each data point to the center of the cluster, the thickness and pressure of the steel strip corresponding to each data point, the abnormality degree of each data point in each cluster is obtained; according to the abnormality degree of each data point in each cluster, a number of suspected abnormal points are screened out from all the data points.

[0053] Taking a single rolling process as an example, since each cluster represents a type of data with similar rolling effects, the rolling effect of each cluster is obtained based on the differences between clusters.

[0054] First Taking clusters as an example, the The calculation formula for the rolling effect of a cluster is:

[0055]

[0056] in, Indicates The rolling effect of clusters, Indicates The mean value of the steel strip thickness corresponding to all data points in the clusters, represents the mean value of the steel strip thickness corresponding to all data points, Indicates The mean pressure value corresponding to all data points in the cluster, represents the mean pressure corresponding to all data points, Indicates The first Data points to The distance between the cluster centers, Indicates The number of data points in a cluster. represents the absolute value function.

[0057] What needs to be explained is: Indicates All data points in the cluster to the The reciprocal of the mean distance of the cluster centers. The larger the value, the The data points within a cluster are more clustered. Indicates The larger the difference between the data points in a cluster and the rest of the data points, the smaller the difference and the better the rolling effect.

[0058] According to the above method, the rolling effect of each cluster can be obtained.

[0059] Ideally, the cold rolling mill can roll the strips at different positions evenly and to a good degree. However, in actual operation, due to the uneven thickness of the strips at different positions, there may be cracks and other unevenness on the roller surface, which makes the pressure at different positions of the cold rolling mill different, and thus leads to differences in rolling effect (for example, if the strip at a certain position is thinner and the pressure is smaller, the rolling effect may be qualified. If the pressure at this position is normal or too large, it may cause the finished steel strip at this position to be too thin, etc.), that is, the thickness of the finished steel strip at different positions is uneven; since the current cold rolling mill is a cold rolling mill that has been put into use for the first time, and different cold rolling machine parts have differences in roll stiffness and smoothness, the rolling degree of different cold rolling mills is different. At this time, the judgment criteria of other cold rolling mills cannot accurately analyze whether the currently obtained data has abnormalities. Therefore, the difference in rolling effects at different positions is used to analyze whether there are locations with abnormal rolling effects during a single rolling process.

[0060] Based on the characteristic of k-means clustering that each data point in the scatter plot is assigned to the nearest cluster center, in order to obtain data points with possible abnormal rolling effects, the outliers of each cluster are screened by the similarity between the data points, and the obtained outliers are marked, that is, if a data point in a cluster has a greater distance from the center of the cluster than the other data points, the greater the degree of abnormality of the data point.

[0061] First The first For example, the first data point The first The calculation formula for the abnormality degree of a data point is:

[0062]

[0063] in, Indicates The first The degree of abnormality of the data point, Indicates The first Data points to The distance between the cluster centers, Indicates All data points in the cluster to the The mean distance between the cluster centers, Indicates The rolling effect of clusters, represents the mean of the rolling effect of all clusters; represents the absolute value function, represents the linear normalization function.

[0064] What needs to be explained is: Indicates The first Data points to The distance between the center points of the clusters is larger. The farther the data point is from the center. Indicates The first The difference between the data point and the distance from the rest of the points in the cluster to the center of the cluster. The larger the difference, the more abnormal it is. Indicates The difference in rolling effect between a cluster and the rest of the clusters.

[0065] According to the above method, the abnormality degree of each data point in each cluster can be obtained.

[0066] A first judgment threshold is preset, and data points whose abnormality degree is greater than or equal to the preset first judgment threshold are recorded as suspected abnormal points.

[0067] It should be noted that: the first judgment threshold preset in this embodiment is 0.7, and this is taken as an example for description.

[0068] Step S003: According to the number of data points in each cluster, the distance between each data point and the corresponding cluster center after screening out suspected abnormal points, and the steel strip thickness and pressure corresponding to each data point, the rolling effectiveness of each cluster is obtained; according to the abnormality of each data point corresponding to each position on the roller surface and the rolling effectiveness of the cluster where each data point is located, a number of normal positions are screened out from all positions on the roller surface.

[0069] In the actual working process, the rolling effects at most positions may be relatively consistent, but there may be some points that are quite different from the rest. For example, the strip may be thicker at a certain position, and because of scratches on the rollers or the long distance between the rollers, the pressure at the current position is relatively small, resulting in a rolling effect at this position that is quite different from the overall one. In addition, the rolling effects at other positions are relatively uniform. Therefore, based on the characteristics of k-means clustering, the existence of this point has a greater impact on the overall rolling effect of the cluster, which may significantly reduce the rolling effect of the cluster, that is, except for this point, the rolling effect of the current cluster is better; and when the roller is uneven at a certain place, the rolling effect of all data points corresponding to that place is poor, that is, the rolling effect of most points in the cluster is poor. At this time, screening out the abnormal points in the cluster has little effect on the rolling effect judgment of the entire cluster. Therefore, taking a cluster with suspected abnormal points as an example, the above situations are distinguished according to the difference in rolling effects before and after excluding the suspected abnormal points in the cluster, that is, if the rolling effect of the cluster is greatly improved after screening out the suspected abnormal points, it is a single data point abnormality. If the cluster has no significant change and the rolling effect is poor, then the abnormality of all data points in the cluster is high.

[0070] The above steps obtain several suspected abnormal points in each cluster. The suspected abnormal points are outliers, that is, each suspected abnormal point has poor similarity with the other data points in the cluster. The existence of the suspected abnormal point may affect the overall rolling effect of the cluster. Therefore, the rolling effectiveness of each cluster is determined by analyzing the difference in rolling effect between before and after removing the suspected abnormal points.

[0071] It should be noted that if there are no suspected outliers in a cluster, the cluster will not be analyzed.

[0072] According to The rolling effect of the clusters is obtained by filtering out the suspected abnormal points. The rolling effect of the clusters.

[0073] First Taking clusters as an example, the The calculation formula for the rolling effectiveness of a cluster is:

[0074]

[0075] in, Indicates The rolling effectiveness of the clusters, Indicates the number of The rolling effect of clusters, Indicates The rolling effect of clusters, It represents the maximum value of the rolling effect of all clusters after screening out suspected outliers. Indicates the number of All data points in the clusters are The mean distance between the cluster centers, Indicates All data points in the clusters are The mean distance between the centers of the clusters.

[0076] What needs to be explained is: Indicates The rolling effect of the clusters, that is, The rolling effect before the clusters are screened out suspected abnormal points. Indicates the number of times before and after the suspected abnormal points are screened out. The greater the difference, the greater the impact of the suspected abnormal point on the current cluster. After filtering out suspected abnormal points, The difference between the rolling effect of the cluster and the maximum rolling effect of all clusters is greater, indicating that the rolling effect of the cluster is better after the suspected abnormal points are screened out. The better the rolling effect of the clusters, Indicates the number of times before and after the suspected abnormal points are screened out. The change in the degree of aggregation of data points within a cluster. The greater the difference in the degree of aggregation, the The greater the effectiveness of the clusters.

[0077] There are situations where the rolling effect at a certain position is poor due to occasional factors, for example, the thickness of the strip at a certain position is significantly different from the thickness of the entire strip, etc., which makes the result of a single measurement at a certain position poor; there are situations where the rolling effect at a certain position is poor due to factors of the cold rolling mill itself, for example, the uneven surface of the rollers causes the distance between the two rollers at a certain position to be too small or too large, making the effect of each measurement at this position poor. Therefore, by comparing the data measured by the cold rolling mill multiple times within one day, if the data measured at a certain sensor location has multiple anomalies and the difference in the degree of anomalies is small, it is considered that the anomaly at this location is an anomaly of the cold rolling mill roller itself. If the frequency of the corresponding data point being marked as a suspected anomaly point is smaller and the difference in the degree of anomaly is larger, it is considered that the anomaly at the corresponding position is an occasional anomaly.

[0078] According to the above method, the abnormal degree of each data point in the scatter plot corresponding to each moment in each rolling process, the rolling effectiveness of each cluster and the abnormal data points among all the data points are obtained.

[0079] Roller surface For example, the first position on the roller surface The calculation formula for the possibility of the cold rolling mill itself having an abnormality at each position is:

[0080]

[0081] in, Indicates the roller surface There is a possibility of abnormality in the cold rolling mill itself. It represents the first The number of suspected abnormal points corresponding to the position, It represents the first The mean of the abnormality of all data points corresponding to the position, It represents the surface of the roll at all times during the rolling process. The variance of the abnormality of all data points corresponding to the position, It represents the surface of the roll at all times during the rolling process. The mean rolling effectiveness of all data points in the cluster corresponding to the position, represents the absolute value function, Represents the normalization function.

[0082] What needs to be explained is: It represents the roll surface at all times during the rolling process. The variance of the abnormality of all data points corresponding to the position is smaller, and the smaller the variance is, the higher the abnormality of the roller surface is. The more consistent the abnormality of the data points corresponding to the positions, the The greater the possibility that there is an abnormality in the cold rolling mill itself.

[0083] A second judgment threshold is preset, and the roller surface position where the possibility of the cold rolling mill itself being abnormal is less than or equal to the preset second judgment threshold is recorded as a normal position. The roller surface position where the possibility of the cold rolling mill itself being abnormal is greater than the preset second judgment threshold is recorded as an abnormal position.

[0084] It should be noted that: in this embodiment, the second judgment threshold is preset to 0.5, and this is taken as an example for description.

[0085] Step S004: According to the abnormality degree of each data point corresponding to each normal position, the rolling effectiveness of the cluster where each data point is located, and the abnormality degree of each data point corresponding to each rolling process, the PLC control device log data recording result is obtained.

[0086] The above steps distinguish the abnormality of the cold rolling mill itself from occasional abnormalities, that is, it is considered that except for the abnormality of the cold rolling mill itself, the rolling effect of the cold rolling mill itself at other positions is normal. Therefore, the data at the normal position can be lossily compressed and the data at the abnormal position can be losslessly stored, thereby reducing data redundancy and improving data storage efficiency.

[0087] The abnormal degree of all data points in the cluster except the abnormal point is replaced by the abnormal degree of the center point in each cluster.

[0088] It should be noted that: since the similarity of the data points corresponding to the normal positions is relatively high within the clusters where they are located, the abnormality of all data points except the abnormal points in the clusters is replaced by the abnormality of the center point in each cluster, so as to calculate the optimal compression value of the lossy compression of the normal positions.

[0089] First For example, the normal position The calculation formula for the compression value of the rolling effect in a normal position is:

[0090]

[0091] in, Indicates The compression value of the rolling effect in the normal position, Indicates There is a possibility that the cold rolling mill itself is abnormal in the normal position. Indicates The normal position is The sum of the abnormality levels of all data points corresponding to all moments in the rolling process, Indicates the number of rolling times.

[0092] The abnormality levels of all data points corresponding to each normal position are replaced by the compressed value of the rolling effect of each normal position, and the abnormality levels of all data points corresponding to each replaced normal position at all moments in all rolling processes are stored in the database using run-length encoding.

[0093] What needs to be explained is that run-length encoding is used to achieve lossy compression of the data corresponding to the normal position, and the abnormal degree of all data points corresponding to each abnormal position is directly stored without compression. This method can effectively save storage space, record the data corresponding to the position where the rolling effect is poor due to the abnormality of the cold rolling mill itself in the PLC control device, and display it through a visual display screen, so that the staff can maintain the equipment in time. Among them, run-length encoding will be a well-known technology, and the specific method will not be introduced here. In this embodiment, when the denominator in the formula is 0, let the denominator be 1, and take this as an example to describe it to ensure that the formula is established.

[0094] So far, the present invention is completed.

[0095] In summary, in the embodiment of the present invention, the pressure at different positions on the roller surface at each moment in each rolling process and the thickness of the steel strip at different positions after each rolling process are obtained; in any rolling process, the thickness of the steel strip after the rolling process is taken as the horizontal axis and the pressure at any moment is taken as the vertical axis to draw a scatter plot of all different positions; all data points in the scatter plot are clustered to obtain a number of clusters; according to the number of data points in each cluster, the distance from each data point to the center of the cluster, the thickness of the steel strip and the pressure corresponding to each data point, the abnormality degree of each data point in each cluster is obtained; according to the abnormality degree of each data point in each cluster, the abnormality of each data point is screened out from all the data points. Several suspected abnormal points; according to the number of data points in each cluster, the distance between each data point and the corresponding cluster center after screening out the suspected abnormal points, the thickness and pressure of the steel strip corresponding to each data point, the rolling effectiveness of each cluster is obtained; according to the abnormal degree of each data point corresponding to each position on the roller surface and the rolling effectiveness of the cluster where each data point is located, several normal positions are screened out from all positions on the roller surface; according to the abnormal degree of each data point corresponding to each normal position, the rolling effectiveness of the cluster where each data point is located, and the abnormal degree of each data point corresponding to each rolling process, the PLC control device log data recording result is obtained. The present invention analyzes the points with large differences from the overall rolling effect, determines whether there is a rolling abnormality at the corresponding position of the point according to the difference in multiple rolling effects at the point, and performs lossy compression on the points in the normal area, thereby improving the accuracy of abnormality identification.

[0096] The present invention also provides a fully automatic PLC control equipment log data recording system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program stored in the memory to implement the steps of the aforementioned fully automatic PLC control equipment log data recording method.

[0097] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for recording log data of a fully automatic PLC control device, characterized in that: The method comprises the following steps: Obtain the pressure at different positions on the roller surface at each moment in each rolling process and the thickness of the steel strip at different positions after each rolling process; in any rolling process, draw a scatter plot of all different positions with the thickness of the steel strip after the rolling process as the horizontal axis and the pressure at any moment as the vertical axis; cluster all data points in the scatter plot to obtain several clusters; According to the number of data points in each cluster, the distance from each data point to the center of the cluster, the thickness and pressure of the steel strip corresponding to each data point, the abnormality degree of each data point in each cluster is obtained; according to the abnormality degree of each data point in each cluster, several suspected abnormal points are screened out from all data points; According to the number of data points in each cluster, the distance between each data point and the corresponding cluster center after screening out suspected abnormal points, and the steel strip thickness and pressure corresponding to each data point, the rolling effectiveness of each cluster is obtained; according to the abnormality of each data point corresponding to each position on the roll surface and the rolling effectiveness of the cluster where each data point is located, several normal positions are screened out from all positions on the roll surface; According to the abnormal degree of each data point corresponding to each normal position, the rolling effectiveness of the cluster where each data point is located, and the abnormal degree of each data point corresponding to each rolling process, the PLC control device log data recording result is obtained; The specific steps of obtaining the abnormality degree of each data point in each cluster according to the number of data points in each cluster, the distance from each data point to the center of the cluster, the thickness and pressure of the steel strip corresponding to each data point, include the following: According to the number of data points in each cluster, the distance from each data point to the center of the cluster, the thickness and pressure of the steel strip corresponding to each data point, the rolling effect of each cluster is obtained; According to the rolling effect of each cluster and the distance from each data point to the center of the cluster, the abnormal degree of each data point in each cluster is obtained; According to the number of data points in each cluster, the distance from each data point to the center of the cluster, the thickness and pressure of the steel strip corresponding to each data point, the specific calculation formula for the rolling effect of each cluster is obtained as follows: in, Indicates The rolling effect of clusters, Indicates The mean value of the steel strip thickness corresponding to all data points in the clusters, represents the mean value of the steel strip thickness corresponding to all data points, Indicates The mean pressure value corresponding to all data points in the clusters, represents the mean pressure corresponding to all data points, Indicates The first Data points to The distance between the cluster centers, Indicates The number of data points in a cluster. represents the absolute value function; According to the rolling effect of each cluster and the distance from each data point to the center of the cluster, the specific calculation formula for the abnormality degree of each data point in each cluster is obtained as follows: in, Indicates The first The degree of abnormality of the data point, Indicates The first Data points to The distance between the cluster centers, Indicates All data points in the cluster to the The mean distance between the cluster centers, Indicates The rolling effect of clusters, represents the mean of the rolling effect of all clusters; represents the absolute value function, represents the linear normalization function; According to the number of data points in each cluster, the distance between each data point and the corresponding cluster center after screening out suspected abnormal points, and the steel strip thickness and pressure corresponding to each data point, the specific calculation formula for the rolling effectiveness of each cluster is obtained as follows: in, Indicates The rolling effectiveness of the clusters, Indicates the number of The rolling effect of clusters, Indicates The rolling effect of clusters, It represents the maximum rolling effect of all clusters after screening out suspected outliers. Indicates the number of All data points in the clusters are The mean distance between the cluster centers, Indicates All data points in the clusters are The mean distance between the cluster centers; According to the abnormality of each data point corresponding to each position on the roll surface and the rolling effectiveness of the cluster where each data point is located, a number of normal positions are screened out from all positions on the roll surface, and the specific steps include the following: According to the abnormal degree of each data point corresponding to each position on the roll surface and the rolling effectiveness of the cluster where each data point is located, the possibility of the cold rolling mill itself being abnormal at each position on the roll surface is obtained; The roller surface position where the possibility of the cold rolling mill itself being abnormal is less than or equal to the preset second judgment threshold is recorded as a normal position; The specific calculation formula for obtaining the possibility of the existence of abnormality of the cold rolling mill itself at each position on the roll surface according to the abnormality degree of each data point corresponding to each position on the roll surface and the rolling effectiveness of the cluster where each data point is located is: in, Indicates the roller surface There is a possibility of abnormality in the cold rolling mill itself. It represents the first The number of suspected outliers corresponding to the position, It represents the first The mean of the abnormality of all data points corresponding to the position, It represents the surface of the roll at all times during the rolling process. The variance of the abnormality of all data points corresponding to the position, It represents the surface of the roll at all times during the rolling process. The mean rolling effectiveness of all data points in the cluster corresponding to the position, represents the absolute value function, represents the normalization function; The specific steps of obtaining the PLC control device log data recording result according to the abnormality degree of each data point corresponding to each normal position, the rolling effectiveness of the cluster where each data point is located, and the abnormality degree of each data point corresponding to each rolling process are as follows: Replace the abnormality degree of all data points in the cluster except the abnormal point with the abnormality degree of the center point in each cluster; Calculate the The sum of the abnormality levels of all data points corresponding to the normal position at all times in each rolling process, and then calculate the The average of the abnormality and values ​​of all data points corresponding to the normal position in all rolling processes, and the average and The product of the probability that the cold rolling mill itself is abnormal in each normal position is recorded as The compression value of the rolling effect in the normal position; The abnormality levels of all data points corresponding to each normal position are replaced by the compressed value of the rolling effect of each normal position, and the abnormality levels of all data points corresponding to each replaced normal position at all moments in all rolling processes are stored in the database using run-length encoding.

2. According to claim 1, a method for recording log data of a fully automatic PLC control device, characterized in that: According to the abnormality degree of each data point in each cluster, a number of suspected abnormal points are screened out from all data points, and the specific steps include the following: Data points whose abnormality is greater than or equal to the preset first judgment threshold are recorded as suspected abnormal points.

3. A fully automatic PLC control equipment log data recording system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is executed by the processor, the steps of a fully automatic PLC control device log data recording method as described in any one of claims 1-2 are implemented.