Takt time detection method and detection system
By performing sub-sequence interception and similarity judgment on the current sequence of electrical equipment, and calculating the time difference to obtain the takt time, the applicability and cost problems of takt time detection between devices in the existing technology are solved, and simple and efficient takt time detection is realized. .
Patent Information
- Application Number
- CN202111026681.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-02
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-09-02
AI Technical Summary
The existing technology is difficult to provide a takt time detection method that is universally applicable to a variety of electrical equipment, and the configured controller can only collect the takt time of a single electrical equipment and cannot be switched to other equipment, resulting in increased costs.
By receiving the current sequence of the electrical equipment, intercepting part to generate a sub-sequence, and judging the similarity based on the preset start sequence and end sequence, calculating the time difference of the sub-sequence to obtain the beat time, using the data processing unit and current acquisition unit for analysis , output the current beat time after noise reduction processing.
It realizes the cycle time detection of a variety of electrical equipment, is simple and efficient, and can be applied to new and old production lines, reducing costs and improving efficiency.
Smart Images

Figure CN115761932B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of equipment data analysis, and in particular to a beat time detection method and detection system. Background Art
[0002] The detection and management of cycle time is a very important part of lean production. Its purpose is to shorten the gap between the actual production cycle time and the cycle time required by customers, improve production efficiency, reduce and eliminate waste in the production process, and ultimately achieve balanced and orderly production.
[0003] To achieve the management of the beat time, it is first necessary to detect and analyze the beat time. The technical solution provided in the prior art is to configure the execution program of the PLC or other controller to collect the beat time of the electrical equipment in the working state. However, when using this technical solution, on the one hand, due to the large differences in program logic between different devices, it is difficult to provide a controller execution program that is generally applicable to all electrical equipment, especially for old production lines or equipment, which requires targeted customized development; on the other hand, the configured controller can only collect the beat time of a single electrical equipment, and the controller cannot be switched to other electrical equipment, which greatly increases the cost.
[0004] Therefore, it is necessary to provide a technical solution that can overcome the above shortcomings and easily obtain beat time data. Summary of the invention
[0005] One of the purposes of the present invention is to provide a beat time detection method which is generally applicable to a variety of electrical equipment and has a simple and efficient collection and analysis process.
[0006] One of the objectives of the present invention is to provide a tact time detection system.
[0007] To achieve one of the above-mentioned purposes of the invention, an embodiment of the present invention provides a beat time detection method for detecting the beat time of an electrical device in a working state, comprising: receiving a current current sequence, and intercepting the current current sequence according to a preset time length, and correspondingly generating at least two subsequences; wherein the at least two subsequences include a first subsequence and a second subsequence; respectively calculating the similarity between the first subsequence and the second subsequence and a preset start sequence and a preset end sequence; if the similarity between the first subsequence and the start sequence and the similarity between the second subsequence and the end sequence both meet preset conditions, then calculating the time difference between the first subsequence and the second subsequence to obtain the current beat time.
[0008] As a further improvement of an embodiment of the present invention, the method also includes: collecting the working current of the electrical equipment at a preset frequency to obtain corresponding current data and time data; generating an original current sequence based on the current data and the time data; performing noise reduction processing on the original current sequence to obtain the current current sequence.
[0009] As a further improvement of an embodiment of the present invention, the method specifically includes: selecting current data as sampling data in the original current sequence, and searching for reference data corresponding to the sampling data in the original current sequence according to a preset step size; calculating the average value of the current data between the reference data and the sampling data in the original current sequence to obtain noise reduction data; and calculating the current current sequence based on the noise reduction data.
[0010] As a further improvement of an embodiment of the present invention, the noise reduction data satisfies: ,in, is the noise reduction data, is the sampling data, is the reference data, For the reference data To the sample data The current data between is the step length, is the current sequence, is the original current sequence, is the total number of bits of the original current sequence and the current current sequence.
[0011] As a further improvement of an embodiment of the present invention, the duration of the start sequence and the duration of the end sequence are equal to the preset time length, and the method includes: arranging the start sequence and the first subsequence, and the end sequence and the second subsequence respectively according to the preset time length; calculating the Euclidean distance between the current data in the start sequence and the current data in the first subsequence to obtain a first distance; calculating the Euclidean distance between the current data in the end sequence and the current data in the second subsequence to obtain a second distance; if the first distance and the second distance respectively meet the preset first condition and the preset second condition, then storing the first subsequence and the second subsequence as the start subsequence and the end subsequence respectively; calculating the time difference between the start subsequence and the end subsequence to obtain the current beat time.
[0012] As a further improvement of an embodiment of the present invention, the method specifically includes: extracting the first current data in the starting subsequence and the last current data in the ending subsequence respectively; calculating the time difference between the first current data and the last current data to obtain the current beat time.
[0013] As a further improvement of an embodiment of the present invention, the method specifically includes: calculating the Euclidean distance between the current data of each subsequence in the at least two subsequences and the current data of the starting sequence, and the Euclidean distance between the current data of each subsequence and the current data of the ending sequence, and obtaining at least four sets of distance data accordingly; traversing the at least four sets of distance data, respectively obtaining the minimum distance data corresponding to the starting sequence, and the minimum distance data corresponding to the ending sequence, and storing them as the starting distance and the ending distance respectively; searching for the subsequences corresponding to the starting distance and the ending distance respectively, and obtaining and storing the starting subsequence and the ending subsequence.
[0014] As a further improvement of an embodiment of the present invention, the first distance satisfies: ; in, is the first distance, is the first subsequence, is the starting sequence, The first subsequence With the start sequence The first one after being arranged according to the preset time length, is the number of digits in the sequence corresponding to the preset time length, is the current data of the first subsequence within the preset time length, is the current data of the start sequence within the preset time length, The first subsequence Middle Bit current data, For the start sequence Middle Bit current data, The first subsequence The total number of digits, For the start sequence The total number of digits.
[0015] To achieve one of the above-mentioned purposes of the invention, an embodiment of the present invention provides a beat time detection system for detecting the beat time of an electrical device in a working state, comprising a data processing unit, the electrical device being connected to the data processing unit, the data processing unit comprising an analysis module and a judgment module connected to each other; wherein the analysis module is configured to receive a current current sequence, intercept the current current sequence, and output at least two sub-sequences accordingly; the judgment module is configured to receive the at least two sub-sequences, and judge the similarity between the at least two sub-sequences and a preset start sequence and a preset end sequence, and when the similarity meets the preset conditions, calculate the time difference between the sub-sequences, and output the current beat time accordingly.
[0016] As a further improvement of an embodiment of the present invention, it is characterized in that the system also includes a preprocessing module, a current acquisition unit and a terminal device, and the current acquisition unit, the preprocessing module, the data processing unit and the terminal device are connected in sequence; the current acquisition unit includes a current sensor, a network acquisition device, a gateway device and a server connected in sequence; the terminal device includes a communication device, a management device, an input device, a display device and an external interface; the current acquisition unit is configured to collect the working current of the electrical equipment at a preset frequency, and obtain and output current data and time data accordingly; the preprocessing module is configured to generate an original current sequence according to the current data and time data, perform noise reduction processing on the original current sequence, and obtain and output a current current sequence; the terminal device is configured to comprehensively analyze multiple groups of beat times of a single and / or multiple electrical equipment, generate a visual analysis report, and accept data storage and call from the outside.
[0017] Compared with the prior art, the beat time detection method provided by the present invention detects the current fluctuations of the electrical equipment under working conditions, intercepts part of the current sequence for comparison and analysis, thereby obtaining the subsequences corresponding to the start sequence and the end sequence, and calculating the time difference of the subsequences as the beat time of the electrical equipment. In this way, the beat time of a variety of electrical equipment can be obtained without intervening in the execution program of the electrical equipment, which can be generally applied to different types of electrical equipment in new and old production lines, and the analysis process is simple and rapid, which can greatly save costs and improve efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a structural principle diagram of a beat time detection system in one embodiment of the present invention;
[0019] Figure 2 is a structural principle diagram of a beat time detection system in another embodiment of the present invention;
[0020] Figure 3is a schematic diagram of the steps of a beat time detection method in one embodiment of the present invention;
[0021] Figure 4 is a schematic diagram of the steps of a beat time detection method in another embodiment of the present invention;
[0022] Figure 5 is a schematic diagram of a specific embodiment of step 203 of the beat time detection method in another embodiment of the present invention;
[0023] Figure 6 is a schematic diagram of a first embodiment of step 22 and step 23 of a beat time detection method in yet another embodiment of the present invention;
[0024] Figure 7 It is a step principle diagram of a second embodiment of step 22 and step 23 of a beat time detection method in yet another embodiment of the present invention. DETAILED DESCRIPTION
[0025] The present invention will be described in detail below in conjunction with the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention, and any structural, methodological, or functional changes made by a person skilled in the art based on these embodiments are all within the scope of protection of the present invention.
[0026] It should be noted that the term "comprises" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In addition, the terms "first", "second", etc. are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0027] Takt time is the time interval required for a production line and electrical equipment installed in the production line to complete the processing or production of two or two batches of the same products. It takes a certain takt time for a production line or electrical equipment to process a single product, and it takes a corresponding production cycle time to complete all production work. In actual working conditions, the shorter the takt time, the better. Instead, it is necessary to match the appropriate takt time based on the customer demand obtained through analysis to prevent problems such as overcapacity. Therefore, it is crucial to provide a takt time detection method and takt time detection system that can adapt to different production lines and working conditions and have a high degree of accuracy.
[0028] like Figure 1As shown, an embodiment of the present invention provides a tact time detection system to detect the tact time of a production line or electrical equipment in a working state. Taking the detection of the tact time of the electrical equipment 10 as an example, the tact time detection system provided in this embodiment specifically includes a data processing unit 11, and the electrical equipment 10 to be detected is connected to the data processing unit 11, so that the data processing unit 11 can receive data from the electrical equipment 10 and analyze it to obtain the tact time.
[0029] It is worth noting that the "data" referred to here refers to current data in the present invention. The data processing unit 11 is specifically configured to carry a beat time detection method to receive the current data of the electrical equipment 10 to analyze the beat time accordingly; the electrical equipment 10 referred to here may also include automation equipment, automated production lines, single-person workstations and / or industrial robots, etc. in other embodiments; "connected to" referred to here includes not only a method of directly connecting two components, but also a method of indirectly connecting two components through other components. At the same time, the technical solutions formed by direct connection and / or indirect connection can be summarized in the present invention. This point should be known to those skilled in the art and will not be elaborated below.
[0030] The data processing unit 11 specifically includes an analysis module 111 and a judgment module 112 which are interconnected. The analysis module 111 is configured to: receive a current current sequence representing the working current fluctuation of the electrical equipment 10, intercept a part of the current current sequence to form at least two subsequences, and output the at least two subsequences to the judgment module 112 accordingly; the judgment module 112 is configured to: receive the at least two subsequences from the analysis module 111, judge the similarity between the subsequence and the preset start sequence and the preset end sequence respectively, and when the calculated similarity data meets the preset conditions, calculate the time difference between the at least two subsequences, and output the current beat time accordingly.
[0031] Of course, the structure and corresponding functional configuration of the data processing unit 11 are not limited to the above contents. In one embodiment of the present invention, the judgment module 112 may also include a post-processing module connected to the judgment module 112 and / or the analysis module 111, and the post-processing module is configured to receive the current current sequence and / or the current beat time, and store, count and analyze according to the corresponding time sequence, so as to achieve the functions of comprehensive analysis of historical beat data, production output analysis and statistics, operation or start-up time statistics of electrical equipment 10 or production line, and capacity comparison analysis. The present invention is not limited to the specific module configuration and functional configuration of the data processing unit 11. The modules can be split or integrated with each other, and the order of function implementation can be replaced with each other. Technical solutions sufficient to achieve the expected technical effects of the present invention are within the protection scope of the present invention.
[0032] Continue as Figure 1 As shown, in a specific embodiment of the present invention, the beat time detection system may further include a current acquisition unit 12, a preprocessing module 13 and a terminal device 14, and the current acquisition unit 12, the preprocessing module 13, the data processing unit 11 and the terminal device 14 are configured to be connected in sequence. Among them, the current acquisition unit 12 is configured to collect the working current of the electrical equipment 10 at a preset frequency, and obtain and output the current data and time data accordingly. The preprocessing module 13 is configured to generate an original current sequence based on the current data and the time data, perform noise reduction processing on the original current sequence, and obtain and output the current current sequence. The terminal device 14 is configured to comprehensively analyze multiple groups of beat times of a single and / or multiple electrical equipment 10, generate a visual analysis report, and accept data storage and call from the outside.
[0033] Of course, the functions performed by the above modules are not fixed. For example, the current acquisition unit 12 can also be configured to directly generate an original current sequence containing current data information and time data information, and output the value preprocessing module 13 for subsequent processing. The time data can be the time data synchronously collected during the current data collection process, or it can be the time series corresponding to the current data during the collection process according to the preset frequency. As long as the data is sufficient to characterize the time sequence relationship between the current data, it can be interpreted as the time data here.
[0034] The current acquisition unit 12 specifically includes a current sensor 121, a network acquisition device 122, a gateway device 123 and a server 124 which are electrically connected in sequence. The current sensor 121 is configured to obtain the working current of the electrical device 10 in real time and transmit the obtained current data to the network acquisition device 122;
[0035] The network acquisition device 122 is configured to collect the working current data of the electrical device 10 transmitted by the current sensor 121 at a preset frequency to obtain current data and time data, and process them into original current sequences accordingly. In an embodiment in which a plurality of current sensors 121 are arranged at the front end, the network acquisition device 122 can be configured to be connected to the plurality of current sensors 121. In one embodiment, the network acquisition device 122 is configured to be powered by an AC 220V or a DC voltage, and collects the current from the current sensor 121 at a frequency greater than or equal to 50Hz;
[0036] The gateway device 123 is configured to receive data transmitted by the network acquisition device 122, and then transmit the data to the server 124 through the network. In an embodiment in which a plurality of network acquisition devices 122 are arranged at the front end, the gateway device 123 can be further configured to connect to the plurality of network acquisition devices 122 respectively and receive data accordingly. The gateway device 123 can transmit data via a 4G or 5G network, or other wireless networks;
[0037] The server 124 is configured to receive and store data transmitted by the gateway device 123 and may include a preset database. Similarly, in an implementation where multiple gateway devices 123 are configured at the front end, the server 124 may be configured to be connected to multiple gateway devices 123 respectively.
[0038] The terminal device 14 specifically includes a communication device 141, a management device 142, an input device 143, a display device 144 and an external interface 145. The communication device 141 is configured to receive data from a front-end module or unit, and can be further configured to connect and send the data to other devices;
[0039] The management device 142 is configured to count and analyze the production cycle time and tact time data of a single product, the historical production cycle time and tact time of a single power-consuming device 10, and compare and analyze the production cycle time, tact time, and startup or working hours of multiple products, multiple production lines, and multiple power-consuming devices 10;
[0040] The input device 143 is configured to allow the operator to input the production line station number, the name of the production part, the planned production quantity, the expected JPH value (Jobs Per Hour, hourly workload or unit time workload), the production line process flow, the product model, the start and end time of the overall production cycle of the product, and the display screen structure and data display method of the display device 144;
[0041] The display device 144 is configured to display the production status of the production line in a variety of forms, such as in the form of a 2D static picture or animation with analysis data, or in the form of a 3D animation with analysis data. It can be specifically configured as a dashboard, a report or a display screen. The analysis data referred to here may include the production line station number, the name of the production part, the planned production quantity, the actual production quantity, the expected JPH value and the actual JPH value; the external interface 145 is configured to provide the operator with a standard data interface for docking with systems such as MES (Manufacturing Execution System) or ERP (Enterprise Resource Planning) to realize data storage and call.
[0042] Furthermore, the terminal device 14 can also be configured to perform cross-terminal or cross-platform application functions, where cross-terminal refers to interconnection between mobile phones, tablet computers and computers; cross-platform refers to multiple forms on web pages, WeChat applets, DingTalk or other application software. Figure 1 The connection relationship between the various devices in the terminal device 14 is not shown, but according to the above functional description, those skilled in the art can adaptively add connection relationships as needed to meet the implementation of corresponding functions, and the generated technical solution is not independent of the present invention.
[0043] It should be noted that although the pre-processing module 13 is Figure 1 In the text description, the preprocessing module 13 is distinguished from the current acquisition unit 12 and the data processing unit 11 for description, but it can be understood that the preprocessing module 13 can of course be integrated with the data processing unit 11 or the current acquisition unit 12. In the implementation of the preprocessing module 13 being arranged at the server 124 of the data processing unit 11 or the current acquisition unit 12, the server 124 aggregates and packages the multiple groups of data collected from the gateway device 123, and then sends them to the preprocessing module 13 first, and then after smoothing processing by the preprocessing module 13, they are sent to the analysis module 111 for subsequent processing; when the preprocessing module 13 is arranged in the current acquisition unit 12, especially when it is arranged at the network acquisition device 122 or the gateway device 123, after the network acquisition device 122 or the gateway device 123 receives the current data from the current sensor 121, it can be smoothed by the preprocessing module 13 first, and then the processed data is transmitted to the server 124.
[0044] Similarly, the current sensor 121 can be configured to be disposed in the current acquisition unit 12 so as to be selectively connected to a plurality of electrical devices 10 or production lines. Of course, in an implementation where the electrical device 10 itself has a built-in current sensor 121, the current acquisition unit 12 itself does not need to be configured with the current sensor 121, and directly establishing a connection between the network acquisition device 122 and the current sensor 121 can also achieve the expected technical effect.
[0045] The modules mentioned above can refer to specific electronic components, such as processors or memories, etc., and of course can also refer to computing models or computer programs. In the implementation method where all the modules mentioned above are defined as computing models, the operator can burn or store the program or algorithm corresponding to the computer model into a single-chip microcomputer or a computer, so that the above analysis and calculation process can be selectively executed according to the call of the control instruction. Of course, the structure defined as a module can also be understood as a computing model installed in other hardware devices. For example, in one implementation method, the preprocessing module 13, the analysis module 111 and the judgment module 112 are all configured as computing models installed in the gateway device 123 and / or the server 124 that can realize the corresponding functions.
[0046] According to the above description, the present invention provides a beat time detection system different from the above configuration in another embodiment, such as Figure 2 In this embodiment, the current sensor 121 is arranged in the electric device 10, the pre-processing model 13' is arranged in the network acquisition device, and the analysis model 111', the judgment model 112' and the post-processing model (i.e., the post-processing module described above) 113' are configured as calculation models arranged in the server 124. Figure 1 The current acquisition unit 12 and the data processing unit 11 are integrated as Figure 2 The current acquisition processing unit 12' in the embodiment further establishes a communication connection directly between the server 124 and the communication device 141 of the terminal device 14 to transmit the processed data. Of course, it can be seen from the above description that the beat time detection system provided by the present invention is certainly not limited to the above two implementation modes.
[0047] like Figure 3 As shown, an embodiment of the present invention provides a beat time detection method for detecting the beat time of an electrical device 10 in a working state. The beat time detection method is at least mounted in the data processing unit 11 or the current acquisition processing unit 12', and specifically includes:
[0048] Step 21, receiving a current current sequence, and intercepting the current current sequence according to a preset time length, and correspondingly generating at least two subsequences; wherein the at least two subsequences include a first subsequence and a second subsequence;
[0049] Step 22, respectively calculating the similarity between the first subsequence and the second subsequence and a preset start sequence and a preset end sequence;
[0050] Step 23: If the similarity between the first subsequence and the start sequence and the similarity between the second subsequence and the end sequence both meet the preset conditions, the time difference between the first subsequence and the second subsequence is calculated to obtain the current beat time.
[0051] The invention purpose of the above technical solution is to detect the beat time, so the duration of the current current sequence should be at least greater than a beat time of the electrical equipment 10. In one embodiment, the current current sequence can be the current sequence data of the electrical equipment 10 within the production cycle time.
[0052] There are current fluctuations when the electrical device 10 starts and ends working, so the above-mentioned current sequence can be segmented, and it can be determined whether it conforms to the usual start sequence waveform or end sequence waveform, so as to calculate the beat time. Therefore, the preset time length can be set according to the needs of the operator, the properties of the electrical device 10 itself, or the general start sequence duration and end sequence duration; because the duration of the current current sequence is greater than the actual beat time of the electrical device 10, at least two sub-sequences will be obtained after segmentation and interception.
[0053] Since the current current sequence includes time data information and current data information, the first subsequence and the second subsequence obtained also include the above information. Therefore, the first subsequence and the second subsequence can be respectively connected with the start sequence and the end sequence, and after the corresponding relationship is established in the time data information, the size and waveform distribution of the current data information corresponding to the time data information are compared, and then the similarity between the first subsequence and / or the second subsequence and the start sequence and / or the end sequence is evaluated. In one embodiment, the current current sequence, the first subsequence, the second subsequence, the start sequence and the end sequence are all configured as current waveforms that change with time, so that the time axis of the first subsequence and / or the second subsequence can be aligned with the start sequence and / or the end sequence, and the current data can be compared.
[0054] In one embodiment, the similarity can be the average value or variance of the current data difference, or it can be the correlation or discreteness of the first subsequence or the second subsequence obtained by analysis with the starting sequence or the ending sequence as the standard. It should be emphasized here that the similarity obtained by the analysis and calculation, in one embodiment, includes at least four groups of data, namely, one group representing "the similarity between the first subsequence and the starting sequence", one group representing "the similarity between the first subsequence and the ending sequence", one group representing "the similarity between the second subsequence and the starting sequence", and one group representing "the similarity between the second subsequence and the ending sequence". Increasing the number of subsequences corresponds to calculating more similarity data, which will not be repeated below.
[0055] Due to the influence of complex working conditions, subsequences, start sequences and end sequences often cannot remain absolutely identical. Therefore, when the calculated similarity meets the preset conditions, the two are judged to be similar. For example, in an embodiment in which the similarity is configured as the average value or variance of the current data difference, the judgment method can be configured to be lower than the preset value. When the similarity is configured as a correlation coefficient or other value that represents the degree of correlation, the judgment method can be configured to be greater than the preset value.
[0056] At this time, since the first subsequence is basically equivalent to the start sequence, and the second subsequence is basically equivalent to the end sequence, the time difference between the start sequence and the end sequence in the current sequence (i.e., the beat time) can of course be equivalently calculated using the time difference between the first subsequence and the second subsequence in the current current sequence. The time difference can be the time difference between the median time of the first subsequence and the second subsequence, or the time difference between the initial time of the first subsequence equivalent to the start sequence and the end time of the second subsequence equivalent to the end sequence. In this way, the current beat time of the electrical device 10 is calculated and output for subsequent equipment and devices to process.
[0057] The current data acquisition process under actual working conditions will be affected by various noises, so that the acquired current sequence will contain more "burrs" when performing waveform analysis, which will produce larger errors in the comparison calculation process, bringing inconvenience to the similarity judgment. In another embodiment of the present invention, a beat time detection method is further provided, such as Figure 4 As shown, specifically including:
[0058] Step 201, collecting the working current of the electrical equipment 10 according to a preset frequency, and obtaining corresponding current data and time data;
[0059] Step 202, generating an original current sequence according to the current data and the time data;
[0060] Step 203, performing noise reduction processing on the original current sequence to obtain a current current sequence;
[0061] Step 21, receiving a current current sequence, and intercepting the current current sequence according to a preset time length, and correspondingly generating at least two subsequences; wherein the at least two subsequences include a first subsequence and a second subsequence;
[0062] Step 22, respectively calculating the similarity between the first subsequence and the second subsequence and a preset start sequence and a preset end sequence;
[0063] Step 23: If the similarity between the first subsequence and the start sequence and the similarity between the second subsequence and the end sequence both meet the preset conditions, the time difference between the first subsequence and the second subsequence is calculated to obtain the current beat time.
[0064] In one embodiment, the preset frequency is 50 Hz, and the original current sequence is configured as a "current-time waveform", which is specifically configured as the time data arranged in ascending order on the horizontal axis and the current data corresponding to the time data on the vertical axis. After the noise reduction process in step 203, the high-frequency pulses of the current in the waveform are eliminated, and the current current sequence generated in this way is smoother. It can be seen that any noise reduction method that can eliminate the high-frequency pulses of the current can be implemented in the present invention in an alternative manner.
[0065] For the above-mentioned noise reduction process, the present invention further provides a specific implementation of step 203, such as Figure 5 Steps 2031 to 2032 are combined with the another embodiment, and the technical solution formed specifically includes:
[0066] Step 201, collecting the working current of the electrical equipment 10 according to a preset frequency, and obtaining corresponding current data and time data;
[0067] Step 202, generating an original current sequence according to the current data and the time data;
[0068] Step 2031, selecting current data as sampling data in the original current sequence, and searching in the original current sequence according to a preset step length to obtain reference data corresponding to the sampling data;
[0069] Step 2032, calculating the average value of the data between the reference data and the sampled data in the original current sequence to obtain the noise reduction data;
[0070] Step 2033, calculating and obtaining the current current sequence according to the noise reduction data;
[0071] Step 21, receiving a current current sequence, and intercepting the current current sequence according to a preset time length, and correspondingly generating at least two subsequences; wherein the at least two subsequences include a first subsequence and a second subsequence;
[0072] Step 22, respectively calculating the similarity between the first subsequence and the second subsequence and a preset start sequence and a preset end sequence;
[0073] Step 23: If the similarity between the first subsequence and the start sequence and the similarity between the second subsequence and the end sequence both meet the preset conditions, the time difference between the first subsequence and the second subsequence is calculated to obtain the current beat time.
[0074] That is, in this embodiment, a simple moving average method is used for noise reduction. Among them, step 2031 and step 2032 are to establish a "monitoring window" with a duration of the preset compensation, and use the current average value in the monitoring window as the current data after noise reduction at the end time of the detection window, which is equivalent to forward averaging. Of course, in other embodiments, the process can also be configured as backward averaging.
[0075] Therefore, it can be understood that step 2031 to step 2033 executes a self-loop, which can be summarized as selecting the data at the front of the original current sequence as the sampling data, and correcting the original sampling data into the noise reduction data after calculating the noise reduction data, and then applying the same steps to the data at the back of the original current sequence until all the current data in the original current sequence are traversed and corrected, thereby obtaining the current current sequence.
[0076] Specifically, the noise reduction data satisfies:
[0077] ;
[0078] in, is the noise reduction data, is the sampling data, is the reference data, For the reference data To the sample data The current data between is the step length, is the current sequence, is the original current sequence, is the total number of bits of the original current sequence and the current current sequence.
[0079] In one embodiment, the step length is configured to be equal to 30, which is sufficient to achieve the expected noise reduction effect. Of course, in another embodiment, considering the large impact of noise, the step length can also be Configured to be equal to 60, a stronger noise reduction effect is achieved. At the same time, combined with the previous statement, the original current sequence All current data will be processed and de-noised (or traversed) in turn, and the de-noised data will be combined and rearranged according to the time data to finally obtain the current current sequence .
[0080] The similarity analysis process can be configured to be performed based on the distribution of the data itself as described above, or based on the image characteristics of the waveform, which can be implemented alternatively by those skilled in the art. In order to improve the convenience of the algorithm and efficiently obtain accurate beat time data, the present invention provides another implementation method.
[0081] In this embodiment, step 22 and step 23 include the following steps: Figure 6 In the embodiment shown, steps 221 to 223 and steps 231 to 232 in the embodiment, combined with other steps, form the first embodiment of the further implementation mode, which specifically includes:
[0082] Step 21, receiving a current current sequence, and intercepting the current current sequence according to a preset time length, and correspondingly generating at least two subsequences; wherein the at least two subsequences include a first subsequence and a second subsequence;
[0083] Step 221, arranging the preset start sequence and the first subsequence, and the preset end sequence and the second subsequence respectively according to the preset time length;
[0084] Step 222, calculating the Euclidean distance between the current data in the start sequence and the current data in the first subsequence to obtain a first distance;
[0085] Step 223, calculating the Euclidean distance between the current data in the end sequence and the current data in the second subsequence to obtain a second distance;
[0086] Step 231, if the first distance and the second distance meet the preset first condition and the preset second condition respectively, then the first subsequence and the second subsequence are stored as the starting subsequence and the ending subsequence respectively;
[0087] Step 232, calculate the time difference between the starting subsequence and the ending subsequence to obtain the current beat time.
[0088] Among them, the duration of the start sequence and the duration of the end sequence are equal to the preset time length, that is, they have the same duration as the first subsequence and the second subsequence. In this case, the first subsequence can be "overlapped and aligned" with the start sequence and the end sequence respectively with the time data as the horizontal axis, and the similarity of the current data changes can be compared with the current data as the vertical axis.
[0089] In this embodiment, the similarity is configured to be characterized by the Euclidean distance between the current data in the first subsequence and the starting sequence, the ending sequence, and the second subsequence and the starting sequence, the ending sequence. The Euclidean distance can be understood as the straight-line distance between the current data points. In this embodiment, it can be the straight-line distance between the current data point at a certain time point in the first subsequence and the current data point at the same time point in the starting sequence. Therefore, the smaller the Euclidean distance is, the smaller the difference in current data at the current time point is, that is, the more similar the sequences are.
[0090] In addition, on the one hand, there is no absolute order between step 222 and step 223, and step 223 can be configured to be executed first, or step 222 and step 223 can be executed synchronously; on the other hand, the first distance and the second distance can be configured as the sum, average value or variance of the Euclidean distance between each of the current data points, and can be adjusted according to the needs of those skilled in the art. When calculating similarity using a non-Euclidean distance technical solution, negative values may be generated. At this time, the sum will offset the positive value and cause the similarity data to be inaccurate, so the step of "obtaining the absolute value" can be adaptively added to avoid it.
[0091] The first condition and the second condition need to be adjusted according to the method of obtaining the similarity, and can be greater than the preset value or less than the preset value, which is consistent with the previous text. The first condition and the second condition can be set to be the same or different, which is determined by the fluctuation of the current data of the electrical device 10 when it starts and ends work. In order to improve the accuracy of the similarity judgment, those skilled in the art can make adjustments here.
[0092] As a schematic illustration, the first distance satisfies:
[0093] ;
[0094] in, is the first distance, is the first subsequence, is the starting sequence, The first subsequence With the start sequence The first one after being arranged according to the preset time length, is the number of digits in the sequence corresponding to the preset time length, is the current data of the first subsequence within the preset time length, is the current data of the start sequence within the preset time length, The first subsequence Middle Bit current data, For the start sequence Middle Bit current data, The first subsequence The total number of digits, For the start sequence The total number of digits.
[0095] It can be seen that in the implementation manner that the duration of the first subsequence and the start sequence is equal and both are the preset time length, since the acquisition frequency is fixed and equal, the above subscript , , and Corresponding satisfaction:
[0096] ;
[0097] Of course, the second distance, the second subsequence, and the end sequence can all be calculated by alternatively implementing the above equations. In the process of traversing all subsequences, all subsequences obtained by dividing the current current sequence can be configured to also implement the above process to calculate the Euclidean distance relative to the start sequence or the end sequence.
[0098] It can be understood that in this embodiment, the comparison process of the first subsequence and the second subsequence with the start sequence and the end sequence is schematically described. In fact, this embodiment is based on other reference standards that show that the first subsequence is arranged at the front position in the beat time and the second subsequence is arranged at the back position in the beat time. Of course, in other embodiments, all subsequences in the current current sequence can be traversed, and all subsequences are calculated with the start sequence and the end sequence in turn for similarity, and finally the number of similarity data twice the number of subsequences is obtained.
[0099] In the implementation method of traversing all subsequences and calculating the similarity respectively, the calculation process will be more complicated, but because the first subsequence and the second subsequence can be used to characterize any two subsequences in the current current sequence, the above technical solution can also be understood as, if the similarity with the start sequence meets the preset condition (or specifically, the first condition), it is defined as the first subsequence (also called the starting subsequence), and if the similarity with the end sequence meets the preset condition (or specifically, the second condition), it is defined as the second subsequence (also called the ending subsequence).
[0100] Based on this, another embodiment of the present invention includes the second embodiment, wherein steps 224 to 2322 are as follows: Figure 7 As shown, specifically including:
[0101] Step 21, receiving a current current sequence, and intercepting the current current sequence according to a preset time length, and correspondingly generating at least two sub-sequences;
[0102] Step 224, respectively calculating the Euclidean distance between the current data of each subsequence in at least two subsequences and the current data of the start sequence, and the Euclidean distance between the current data of each subsequence and the current data of the end sequence, and correspondingly obtaining at least four sets of distance data;
[0103] Step 2311, traverse at least four sets of distance data, obtain the minimum distance data corresponding to the start sequence, and the minimum distance data corresponding to the end sequence, and store them as the start distance and the end distance respectively;
[0104] Step 2312, searching for subsequences corresponding to the start distance and the end distance, respectively, and obtaining and storing them as the start subsequence and the end subsequence;
[0105] Step 2321, extracting the first current data in the starting subsequence and the last current data in the ending subsequence respectively;
[0106] Step 2322, calculate the time difference between the first current data and the last current data to obtain the current beat time.
[0107] The calculation method of the distance data can refer to the algorithm provided in the first embodiment of the implementation mode, which will not be described here. The calculation of the Euclidean distance corresponds to the generation of at least four groups of distance data, half of which are the distance data corresponding to the start sequence, and the other half are the distance data corresponding to the end sequence. Since it is impossible to determine which of the multiple subsequences are located in the front position of the single beat time and which are located in the back position of the single beat time, in this embodiment, the distance data corresponding to the start sequence and the distance data corresponding to the end sequence are searched respectively, and the distance data with the smallest value are screened to obtain the starting distance and the ending distance respectively. Then, the subsequence corresponding to the starting distance at this time is the one with the best similarity to the start sequence among all subsequences, and the subsequence corresponding to the ending distance is the one with the best similarity to the end sequence among all subsequences. In this way, there is no need to preset the judgment conditions for the similarity, that is, there is no need to set the first condition and the second condition in the first embodiment.
[0108] In a single beat time, the startup of the electrical device 10 is often at the beginning of the starting subsequence, and the complete shutdown of the electrical device 10 is often at the end of the termination subsequence. Therefore, the beat time calculated by executing steps 2321 to 2322 has a wider coverage and higher accuracy.
[0109] In addition, for the various implementation methods and examples corresponding to the beat time detection method provided by the present invention, the order of the steps can be adjusted according to the needs of technical personnel in this field without affecting the realization of the technical effect. At the same time, it should be noted that the multiple beat time detection methods provided by the present invention cannot be viewed in isolation. The steps of each implementation method or example can of course be combined and / or replaced, and the new implementation methods thus generated should be included in the protection scope of the present invention.
[0110] In summary, compared with the prior art, the beat time detection method provided by the present invention detects the current fluctuation under the working state of the electrical equipment 10, intercepts part of the current sequence for comparison and analysis, thereby obtaining the subsequences corresponding to the start sequence and the end sequence, and calculating the time difference of the subsequences as the beat time of the electrical equipment 10. In this way, the beat time of various electrical equipment 10 can be obtained without intervening in the execution program of the electrical equipment 10, which can be generally applied to different types of electrical equipment 10 in new and old production lines, and the analysis process is simple and rapid, which can greatly save costs and improve efficiency.
[0111] It should be understood that although this specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each implementation mode may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
[0112] The series of detailed descriptions listed above are only specific descriptions of feasible implementation methods of the present invention. They are not intended to limit the scope of protection of the present invention. Any equivalent implementation methods or changes that do not deviate from the technical spirit of the present invention should be included in the scope of protection of the present invention.
Claims
1. A beat time detection method for detecting the beat time of an electrical device in a working state. It is characterized in that include: Receive a current current sequence, and intercept the current current sequence according to a preset time length, and correspondingly generate at least two subsequences; wherein the at least two subsequences include a first subsequence and a second subsequence; respectively calculating similarities between the first subsequence and the second subsequence and a preset start sequence and a preset end sequence; If the similarity between the first subsequence and the start sequence and the similarity between the second subsequence and the end sequence both meet the preset conditions, then the time difference between the first subsequence and the second subsequence is calculated to obtain the current beat time; The method further comprises: Collect the working current of the electrical equipment according to the preset frequency, and obtain the corresponding current data and time data; generating an original current sequence according to the current data and the time data; Performing noise reduction processing on the original current sequence to obtain the current current sequence; The method specifically comprises: Selecting current data as sampling data in the original current sequence, and searching for reference data corresponding to the sampling data in the original current sequence according to a preset step size; Calculating the average value of the current data between the reference data and the sampled data in the original current sequence to obtain noise reduction data; Calculating the current current sequence according to the noise reduction data; The noise reduction data satisfies: , in, is the noise reduction data, is the sampling data, is the reference data, For the reference data To the sample data The current data between is the step length, is the current sequence, is the original current sequence, is the total number of bits of the original current sequence and the current current sequence.
2. The takt time detection method according to claim 1, It is characterized in that The duration of the start sequence and the duration of the end sequence are equal to the preset time length, and the method includes: Arrange the start sequence and the first subsequence, and the end sequence and the second subsequence respectively according to the preset time length; Calculating the Euclidean distance between the current data in the starting sequence and the current data in the first subsequence to obtain a first distance; Calculating the Euclidean distance between the current data in the end sequence and the current data in the second subsequence to obtain a second distance; If the first distance and the second distance meet a preset first condition and a preset second condition respectively, the first subsequence and the second subsequence are stored as a starting subsequence and a terminating subsequence respectively; The time difference between the starting subsequence and the ending subsequence is calculated to obtain the current beat time.
3. The takt time detection method according to claim 2, It is characterized in that The method specifically comprises: Respectively extracting the first current data in the starting subsequence and the last current data in the ending subsequence; The time difference between the first current data and the last current data is calculated to obtain the current beat time.
4. The takt time detection method according to claim 2, It is characterized in that The method specifically comprises: respectively calculating the Euclidean distance between the current data of each of the at least two subsequences and the current data of the starting sequence, and the Euclidean distance between the current data of each subsequence and the current data of the ending sequence, and correspondingly obtaining at least four sets of distance data; Traversing the at least four sets of distance data, respectively obtaining the minimum distance data corresponding to the start sequence and the minimum distance data corresponding to the end sequence, and storing them as the start distance and the end distance respectively; The subsequences corresponding to the starting distance and the ending distance are searched, and the starting subsequence and the ending subsequence are obtained and stored.
5. The takt time detection method according to claim 2, It is characterized in that The first distance satisfies: ; in, is the first distance, is the first subsequence, is the starting sequence, The first subsequence With the start sequence The first one after being arranged according to the preset time length, is the number of digits in the sequence corresponding to the preset time length, is the current data of the first subsequence within the preset time length, is the current data of the start sequence within the preset time length, The first subsequence Middle Bit current data, For the start sequence Middle Bit current data, The first subsequence The total number of digits, For the start sequence The total number of digits.
6. A beat time detection system, used to detect the beat time of electrical equipment in working state, It is characterized in that It includes a data processing unit, the electrical equipment is connected to the data processing unit, and the data processing unit includes an analysis module and a judgment module connected to each other; wherein, The analysis module is configured to receive a current current sequence, intercept the current current sequence, and output at least two sub-sequences accordingly; The judgment module is configured to receive the at least two subsequences, and judge the similarity between the at least two subsequences and a preset start sequence and a preset end sequence, and calculate the time difference between the subsequences when the similarity meets a preset condition, and output the current beat time accordingly; The system further comprises a preprocessing module, a current acquisition unit and a terminal device, wherein the current acquisition unit, the preprocessing module, the data processing unit and the terminal device are connected in sequence; The current acquisition unit is configured to collect the working current of the electrical equipment at a preset frequency, and obtain and output the current data and time data accordingly; the preprocessing module is configured to generate an original current sequence according to the current data and time data, perform noise reduction processing on the original current sequence, and obtain and output the current current sequence; The preprocessing module is further configured to select current data as sampling data in the original current sequence, and search for reference data corresponding to the sampling data in the original current sequence according to a preset step length, calculate the average value of the current data between the reference data and the sampling data in the original current sequence, obtain noise reduction data, and calculate the current current sequence based on the noise reduction data; The noise reduction data satisfies: , in, is the noise reduction data, is the sampling data, is the reference data, For the reference data To the sample data The current data between is the step length, is the current sequence, is the original current sequence, is the total number of bits of the original current sequence and the current current sequence.
7. The takt time detection system according to claim 6, It is characterized in that The current acquisition unit includes a current sensor, a network acquisition device, a gateway device and a server connected in sequence; the terminal device includes a communication device, a management device, an input device, a display device and an external interface; The terminal device is configured to comprehensively analyze multiple groups of beat times of a single and / or multiple electrical devices, generate a visual analysis report, and accept data storage and call from the outside.
