A real-time health status detection method for ball screw pair
By dynamically compressing the vibration signal of the ball screw pair, the problems of data loss and redundancy in the existing technology are solved, the real-time health status detection of the ball screw pair is realized, and the accuracy and efficiency of the detection are improved.
Patent Information
- Application Number
- CN202210473311.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-04-29
AI Technical Summary
When the existing technology detects the health status of the ball screw pair, the vibration signal compression method leads to the loss and redundancy of important data, affects the accuracy of feature extraction, and cannot achieve timely and accurate health status monitoring.
By collecting the vibration signal of the ball screw pair, obtain the number of threads and sampling time, calculate the sampling period, obtain the maximum amplitude and minimum amplitude, determine the size of the sliding window according to the importance, screen the effective signals for dynamic compression, and transmit the compressed signal to the server to determine health status.
It achieves dynamic compression of vibration signals, improves the transmission rate, avoids the loss of important data, and ensures real-time health status detection of the ball screw pair.
Smart Images

Figure CN115014759B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ball screw pair detection, and in particular to a real-time health status detection method of a ball screw pair. Background Art
[0002] With the rapid development of industry, the precision requirements for machines are getting higher and higher. CNC machine tools are an important technology in my country's high-tech industry. Due to the high transmission rate of ball screw pairs, they have become the most accurate and most commonly used transmission device in transmission machinery. Since CNC machine tools operate under complex working conditions of high frequency and high load for a long time, their precision is particularly important for CNC machine tools. Therefore, the real-time status of the performance of ball screw pairs is very necessary for CNC machine tools.
[0003] Currently, the health status of the ball screw pair is mostly detected by detecting the vibration signal of the ball screw pair. During the transmission of the vibration signal to the server, the vibration signal needs to be compressed and transmitted. The traditional vibration signal compression method often causes the loss of important and effective data and produces great redundancy, which has a great impact on the extraction of vibration characteristics and cannot monitor the health status of the ball screw pair in a timely and accurate manner. Summary of the invention
[0004] In order to solve the above technical problems, the purpose of the present invention is to provide a real-time health status detection method for a ball screw pair, and the technical solution adopted is as follows:
[0005] An embodiment of the present invention provides a method for detecting the real-time health status of a ball screw pair, the method comprising the following steps:
[0006] Collect the vibration signal of the ball screw pair; obtain the number of threads and sampling time of the ball screw pair, and obtain the sampling period of each thread;
[0007] Obtaining the maximum amplitude and the minimum amplitude of the vibration signal in each sampling period, and obtaining the importance of each sampling period by comparing the maximum amplitude and the minimum amplitude with a preset amplitude range;
[0008] According to the importance, the size of the sliding window corresponding to each sampling period is obtained. For the vibration signal of each sampling period, the amplitude difference between adjacent vibration signals in the sliding window of the corresponding size is obtained, and the effective vibration signal is screened out according to the amplitude difference. The effective vibration signal is compressed, and the difference between the effective vibration signals before and after compression is obtained. According to the difference, the maximum number of compression times of the vibration signal in each sliding window is obtained to obtain a compressed signal;
[0009] The compressed signal is transmitted to a server so that the server receives the vibration signal and extracts performance indicators to determine the health status of the ball screw pair.
[0010] Preferably, the method for obtaining the sampling period is:
[0011] The time required to collect the vibration signal from one end of the ball screw pair to the other end is recorded as the sampling time, the ratio of the sampling time to the number of threads is calculated, and the ratio plus the allowable error is used as the sampling period.
[0012] Preferably, the step of obtaining the importance comprises:
[0013] Obtaining a preset maximum amplitude range corresponding to the maximum amplitude, and when the maximum amplitude is outside the maximum amplitude range, obtaining a first importance level corresponding to the maximum amplitude according to the extent to which the maximum amplitude exceeds the maximum amplitude range;
[0014] Obtaining a preset minimum amplitude range corresponding to the minimum amplitude, and when the minimum amplitude is outside the minimum amplitude range, obtaining a second importance level corresponding to the minimum amplitude according to the extent by which the minimum amplitude exceeds the minimum amplitude range;
[0015] The sum of the first importance level and the second importance level is taken as the importance level of the corresponding sampling period.
[0016] Preferably, the method for obtaining the size of the sliding window is:
[0017] The importance of each sampling period is used as the negative index of the preset value to obtain the size variation range, and the size variation range is rounded and added to the preset basic size to obtain the size of the sliding window.
[0018] Preferably, the screening method of the effective vibration signal is:
[0019] All vibration signals in the sliding window are obtained, the first vibration signal is retained, and the amplitude difference of adjacent vibration signals is taken as the amplitude difference of the next vibration signal. When the amplitude difference is greater than the difference threshold, the corresponding vibration signal is retained, and all vibration signals retained in the sliding window are the valid vibration signals.
[0020] Preferably, the method for obtaining the difference is:
[0021] For each sliding window, the first vibration signal sequence before compression and the second vibration signal sequence after compression are obtained, and the first vibration signal sequence and the second vibration signal sequence are matched by a dynamic time warping algorithm to obtain multiple matching pairs, and the difference distance between each matching pair is calculated, and the average value of all the difference distances is the difference degree.
[0022] Preferably, the method for obtaining the compressed signal is:
[0023] After each compression, the corresponding difference degree is obtained until the difference degree is greater than a preset threshold. The number of compressions before this compression is the maximum number of compressions. The vibration signal of the corresponding sampling period is compressed with the maximum number of compressions to obtain the compressed signal.
[0024] The embodiments of the present invention have at least the following beneficial effects:
[0025] By obtaining the adaptive window and the adaptive maximum compression times of each sampling cycle, the vibration signal is compressed and the compressed signal is transmitted to the server so that the server receives the vibration signal and determines the health status of the ball screw pair. The present invention can realize dynamic compression of the vibration signal, improve the transmission rate of the vibration signal, and avoid the loss of important data, thereby realizing real-time health status detection of the ball screw pair. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are 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.
[0027] Figure 1 A flowchart of the steps of a method for detecting the real-time health status of a ball screw pair provided by one embodiment of the present invention;
[0028] Figure 2 This is a schematic diagram of the installation position of the three-axis acceleration sensor. DETAILED DESCRIPTION
[0029] 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 the real-time health status detection method of a ball screw pair proposed by the present invention, its specific implementation method, structure, characteristics 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.
[0030] 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.
[0031] The specific scheme of the real-time health status detection method of a ball screw pair provided by the present invention is described in detail below with reference to the accompanying drawings.
[0032] See also Figure 1, which shows a flowchart of a method for real-time health status detection of a ball screw pair provided by an embodiment of the present invention, the method comprising the following steps:
[0033] Step S001, collecting the vibration signal of the ball screw pair; obtaining the number of threads and sampling time of the ball screw pair, and obtaining the sampling period of each thread.
[0034] The specific steps include:
[0035] 1. Collect the vibration signal of the ball screw pair.
[0036] In the process of diagnosing ball screw faults, the vibration signal contains the most fault information. Therefore, the vibration signal collected during the working process is used to detect the health status of the ball screw pair.
[0037] The vibration signal of the ball screw pair is collected using a three-axis acceleration sensor, such as Figure 2 As shown, the motor 202 on the bracket 201 rotates the bearing 203, thereby driving the ball screw pair 204 to rotate, and then driving the slide 205 to move, and the three-axis acceleration sensor 206 is fixed on the nut 207 by gluing the sampling epoxy resin. When the ball screw pair is working, the three-axis acceleration sensor collects vibration signals in three directions of the ball screw pair.
[0038] 2. Obtain the number of threads and sampling time of the ball screw pair, and obtain the sampling period of each thread.
[0039] The time required to collect vibration signals from one end of the ball screw pair to the other end is recorded as the sampling time, the number of threads N of the ball screw pair detected is recorded, the ratio of the sampling time to the number of threads is calculated, and the ratio plus the allowable error is used as the sampling period.
[0040] Calculate the sampling time for each thread The collected vibration signal is divided into periods to obtain the vibration signal within each period θ. At the same time, the influence of errors needs to be considered. Therefore, the allowable error μ is added to the period θ, that is, each sampling period is [θ-μ,θ+μ], where the value of μ depends on the actual situation of different types of ball screw pairs.
[0041] Step S002, obtaining the maximum amplitude and the minimum amplitude of the vibration signal in each sampling period, and obtaining the importance of each sampling period by comparing the maximum amplitude and the minimum amplitude with a preset amplitude range.
[0042] The specific steps include:
[0043] 1. Obtain the maximum and minimum amplitudes of the vibration signal in each sampling period.
[0044] With time as the horizontal axis and vibration signal as the vertical axis, the vibration curve is obtained. There are multiple peaks and troughs in the vibration curve. The vibration curve is divided according to the sampling period to obtain the vibration sub-curve corresponding to each sampling period. The vibration amplitude at the peak value in each sub-curve is the maximum amplitude f max , the vibration amplitude at the valley value is the minimum amplitude f min .
[0045] 2. Obtain the importance of each sampling period.
[0046] If the ball screw pair works normally, the vibration signals of its three axes will show periodic changes. If a part of the ball screw pair fails, a large amplitude change will appear in the periodic vibration signal. During the health detection of the ball screw pair, the area where the fault occurs, that is, the area with large vibration amplitude changes, often contains important information. Therefore, the importance of the vibration signal is judged by the amplitude change.
[0047] Obtaining a preset maximum amplitude range corresponding to the maximum amplitude, and when the maximum amplitude is outside the maximum amplitude range, obtaining a first importance level corresponding to the maximum amplitude according to the extent to which the maximum amplitude exceeds the maximum amplitude range;
[0048] Obtaining a preset minimum amplitude range corresponding to the minimum amplitude, and when the minimum amplitude is outside the minimum amplitude range, obtaining a second importance level corresponding to the minimum amplitude according to the extent by which the minimum amplitude exceeds the minimum amplitude range;
[0049] The sum of the first importance level and the second importance level is taken as the importance level of the corresponding sampling period.
[0050] By setting the upper threshold F of the maximum amplitude maxT1 and the lower threshold F maxT2 , get the maximum amplitude range, set the upper threshold F of the minimum amplitude minT1 and the lower threshold F minT2 , and obtain the minimum amplitude range. The importance of each period α is calculated based on the relationship between the maximum and minimum amplitudes of the sampling period and the corresponding amplitude range.
[0051] The process of calculating the first importance α1 is:
[0052]
[0053] The process of calculating the second importance α2 is:
[0054]
[0055] The importance of each cycle α=α1+α2.
[0056] Step S003, obtaining the size of the sliding window corresponding to each sampling period according to the importance, obtaining the amplitude difference between adjacent vibration signals in the sliding window of the corresponding size for the vibration signal of each sampling period, screening out the valid vibration signal according to the amplitude difference, compressing the valid vibration signal, and obtaining the difference between the valid vibration signals before and after compression, obtaining the maximum number of compression times of the vibration signal in each sliding window according to the difference, and obtaining the compressed signal.
[0057] The specific steps include:
[0058] 1. Obtain the size of the sliding window corresponding to each sampling period according to the importance.
[0059] The importance of each sampling period is used as the negative exponent of the preset value to obtain the size variation range, and the size variation range is rounded and added to the preset basic size to obtain the size of the sliding window.
[0060] By establishing a sliding window of adaptive size, a certain number of vibration signals in each sampling period are selected, and the vibration signals in each window are compressed. The smaller the importance of the sampling period, the less effective information it contains, and more information can be compressed together. When compressed, the corresponding compression window in the sampling period is larger; and the greater the importance, the more effective information it contains, and as little data as possible needs to be compressed together to avoid the loss of important information. When compressed, the corresponding compression window in the sampling period is smaller.
[0061] According to the importance α of each sampling period calculated in the above steps, the size ω of the corresponding sliding window is calculated. The calculation formula is:
[0062]
[0063] Among them, γe -α represents the size variation range, γ is a hyperparameter used to adjust the size of the size variation range, and the default value is the natural constant e. Indicates rounding down, and A is the preset basic size.
[0064] As an example, in the embodiment of the present invention, the value of γ is 3 and the value of A is 3.
[0065] It should be noted that the preset value in the fourteenth embodiment of the present invention is the natural constant e. In other embodiments, other numbers greater than 1 can also be selected as the base of the exponential function.
[0066] 2. Filter the effective vibration signals in each sliding window
[0067] Get all the vibration signals in the sliding window, retain the first vibration signal, and take the difference of the amplitudes of adjacent vibration signals as the amplitude difference of the next vibration signal. When the amplitude difference is greater than the difference threshold, retain the corresponding vibration signal. All vibration signals retained in the sliding window are valid vibration signals.
[0068] The sliding window is moved to the last vibration signal by sliding with a step length of ω-1, and the vibration signal is used as the first vibration signal of the next sliding window until the sliding window traverses this sampling period.
[0069] It should be noted that when the sliding window moves to the last window of the sampling period, if the number of remaining vibration signals is less than the window size ω, the number of actually remaining vibration signals is used as the size of the last sliding window.
[0070] For example, when ω=4, the amplitudes corresponding to the four selected vibration signals are f1, f2, f3 and f4 respectively. The first amplitude f1 is retained first, and then the corresponding amplitude differences are calculated: f2-f1 is used as the amplitude difference of the second vibration signal, f3-f2 is used as the amplitude difference of the third vibration signal, and f4-f3 is used as the amplitude difference of the fourth vibration signal. The three amplitude differences are respectively equal to the difference threshold f T In comparison, if f2-f1>f T , then keep the corresponding second vibration signal f2; if f3-f2≤f T , then the corresponding third vibration signal point f3 is discarded, and each vibration signal is judged in turn whether to retain or not, and the retained vibration signal is the valid vibration signal.
[0071] In another embodiment, f1-f2 is used as the amplitude difference of the first vibration signal, f2-f3 is used as the amplitude difference of the second vibration signal, and f3-f4 is used as the amplitude difference of the third vibration signal. T In comparison, if f1-f2>f T , then keep the corresponding first vibration signal f2; if f2-f3≤f T , then discard the corresponding second vibration signal point f3, and judge whether each vibration signal is retained in turn. Directly retain the last vibration signal. After the sliding window slides, use the last vibration signal as the first vibration signal in the next sliding window, and continue to compare the amplitude difference to judge whether to retain it. The retained vibration signal is the valid vibration signal.
[0072] 3. Compress the effective vibration signal and obtain the difference between the effective vibration signals before and after compression.
[0073] For each sliding window, the first vibration signal sequence before compression and the second vibration signal sequence after compression are obtained, and the first vibration signal sequence and the second vibration signal sequence are matched by a dynamic time warping algorithm to obtain multiple matching pairs, and the difference distance between each matching pair is calculated, and the average value of all the difference distances is the difference degree.
[0074] The first vibration signal sequence and the second vibration signal sequence are placed in the same coordinate system, and the number of points in the two sets may be different. By matching each point, it is not that a pair of points in the two sets are taken in sequence for calculation, but a point in one set may correspond to multiple points in the other set.
[0075] The dynamic time warping algorithm is used to match each point in the two sets. The matching requirements are: all points in the set must be used; they must be in the original order, and the point pairs cannot cross. When selecting the optimal path, it must start from the first point pair and end at the last point pair; it can only match with its adjacent points and cannot cross certain points; the direction of point pair matching is monotonic. For multiple paths that meet the requirements, the path with the smallest distance and the smallest distance is selected as the matching result to obtain multiple matching pairs.
[0076] Compute the difference distance between each matching pair:
[0077]
[0078] Among them, D(a j ,b j ) represents the jth matching pair (a j ,b j ), Indicates a j The coordinates of the corresponding vibration signal in the first vibration signal sequence, Indicates b j The coordinates of the corresponding vibration signal in the second vibration signal sequence.
[0079] The average of all difference distances is the difference: Where J represents the number of matching pairs.
[0080] 4. Obtain the maximum number of compressions of the vibration signal in each sliding window according to the difference, and obtain the compressed signal.
[0081] The number of compressions affects the transmission efficiency of the signal and the redundancy of the data. If the number of compressions is too large, the signal will be distorted and some useful data may be lost; if the number of compressions is too small, the compression rate will be low and data redundancy may occur.
[0082] The maximum compression times of the effective vibration signal in each sampling period are adaptively obtained according to the difference ε before and after compression, so as to maximize the compression efficiency and ensure that the signal is not distorted as much as possible.
[0083] The smaller the difference, the more similar the signal trajectories before and after compression are, and compression can continue; the larger the difference, the less similar the signal trajectories before and after compression are, and the number of compressions is too large.
[0084] After each compression, the corresponding difference degree is obtained until the difference degree is greater than the preset threshold. The number of compressions before this compression is the maximum number of compressions. The vibration signal of the corresponding sampling period is compressed with the maximum number of compressions to obtain a compressed signal.
[0085] If the value of ε after the nth compression is greater than the preset threshold ε T , then the maximum number of compressions of the corresponding sliding window is n-1; if the value of ε after the nth compression is less than ε T , then continue to compress until it is greater than the preset threshold ε T When the maximum number of compressions is determined, the number of compressions before the current compression is used as the maximum number of compressions.
[0086] The maximum number of compressions is used as the number of compressions to complete the compression of the vibration signal in each window and obtain a compressed signal.
[0087] Step S004, transmitting the compressed signal to the server, so that the server receives the vibration signal and extracts performance indicators to determine the health status of the ball screw pair.
[0088] The specific steps include:
[0089] The compressed signal is transmitted to the server, which performs time-frequency domain analysis on the compressed signal. The kurtosis factor reflecting the flatness of the signal, the margin factor reflecting the wear of the ball screw pair, and the pulse factor for detecting whether the signal has impact are extracted through time domain analysis. The mean square frequency reflecting the position distribution of the main frequency band of the power spectrum and the centroid frequency reflecting the distribution of the signal power spectrum are extracted through frequency domain analysis.
[0090] The neural network is trained by these performance index characteristics that can reflect the health judgment of the ball screw pair. The neural network used in the present invention is a CNN convolutional neural network, and the input data set is: the above-mentioned performance index characteristics are extracted, and the label is the health status of the ball screw pair manually marked by professional staff according to the above-mentioned performance index characteristics, wherein the healthy label is 0 and the unhealthy label is 1. The loss function of the neural network is the cross entropy function.
[0091] The compressed signal received by the server is analyzed in the time and frequency domain, and the performance indicator features are extracted and input into the trained neural network. The output is the health status of the ball screw pair, and the judgment result is transmitted to the customer's mobile terminal for display.
[0092] In summary, the embodiment of the present invention collects the vibration signal of the ball screw pair; obtains the number of threads and sampling time of the ball screw pair, and obtains the sampling period of each thread; obtains the maximum amplitude and minimum amplitude of the vibration signal in each sampling period, and obtains the importance of each sampling period by comparing the maximum amplitude and the minimum amplitude with the preset amplitude range; obtains the size of the sliding window corresponding to each sampling period according to the importance, and for the vibration signal of each sampling period, obtains the amplitude difference between adjacent vibration signals in the sliding window of the corresponding size, selects the effective vibration signal according to the amplitude difference, compresses the effective vibration signal, and obtains the difference between the effective vibration signals before and after compression, obtains the maximum number of compressions of the vibration signal in each sliding window according to the difference, and obtains the compressed signal; transmits the compressed signal to the server, so that the server receives the vibration signal, and extracts the performance index to judge the health status of the ball screw pair. The embodiment of the present invention can realize the dynamic compression of the vibration signal, speed up the transmission of the vibration signal, and ensure that the important vibration signal will not be lost, thereby realizing the real-time health status detection of the ball screw pair.
[0093] It should be noted that the sequence of the embodiments of the present invention described above is for description only and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0094] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0095] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A real-time health status detection method for a ball screw pair, It is characterized in that The method comprises the following steps: Collect the vibration signal of the ball screw pair; obtain the number of threads and sampling time of the ball screw pair, and obtain the sampling period of each thread; Obtaining the maximum amplitude and the minimum amplitude of the vibration signal in each sampling period, and obtaining the importance of each sampling period by comparing the maximum amplitude and the minimum amplitude with a preset amplitude range; According to the importance, the size of the sliding window corresponding to each sampling period is obtained. For the vibration signal of each sampling period, the amplitude difference between adjacent vibration signals in the sliding window of the corresponding size is obtained, and the effective vibration signal is screened out according to the amplitude difference. The effective vibration signal is compressed, and the difference between the effective vibration signals before and after compression is obtained. According to the difference, the maximum number of compression times of the vibration signal in each sliding window is obtained to obtain a compressed signal; Transmitting the compressed signal to a server so that the server receives the vibration signal and extracts performance indicators to determine the health status of the ball screw pair; The screening method of the effective vibration signal is: Acquire all vibration signals in the sliding window, retain the first vibration signal, and take the difference of the amplitudes of adjacent vibration signals as the amplitude difference of the next vibration signal. When the amplitude difference is greater than the difference threshold, retain the corresponding vibration signal. All vibration signals retained in the sliding window are the valid vibration signals. The method for obtaining the difference degree is: For each sliding window, a first vibration signal sequence before compression and a second vibration signal sequence after compression are obtained, the first vibration signal sequence and the second vibration signal sequence are matched by a dynamic time warping algorithm to obtain a plurality of matching pairs, and a difference distance between each matching pair is calculated, and the average value of all the difference distances is the difference degree; The method for obtaining the compressed signal is: After each compression, the corresponding difference degree is obtained until the difference degree is greater than a preset threshold. The number of compressions before this compression is the maximum number of compressions. The vibration signal of the corresponding sampling period is compressed with the maximum number of compressions to obtain the compressed signal.
2. A method for detecting the real-time health status of a ball screw pair according to claim 1, It is characterized in that The method for obtaining the sampling period is: The time required to collect the vibration signal from one end of the ball screw pair to the other end is recorded as the sampling time, the ratio of the sampling time to the number of threads is calculated, and the ratio plus the allowable error is used as the sampling period.
3. A method for detecting the real-time health status of a ball screw pair according to claim 1, It is characterized in that The step of obtaining the importance degree comprises: Obtaining a preset maximum amplitude range corresponding to the maximum amplitude, and when the maximum amplitude is outside the maximum amplitude range, obtaining a first importance level corresponding to the maximum amplitude according to the extent to which the maximum amplitude exceeds the maximum amplitude range; Obtaining a preset minimum amplitude range corresponding to the minimum amplitude, and when the minimum amplitude is outside the minimum amplitude range, obtaining a second importance level corresponding to the minimum amplitude according to the extent by which the minimum amplitude exceeds the minimum amplitude range; The sum of the first importance level and the second importance level is taken as the importance level of the corresponding sampling period.
4. A method for detecting the real-time health status of a ball screw pair according to claim 1, It is characterized in that The method for obtaining the size of the sliding window is: The importance of each sampling period is used as the negative index of the preset value to obtain the size variation range, and the size variation range is rounded and added to the preset basic size to obtain the size of the sliding window.
