An electric spindle control method and system based on machining state perception
By superimposing excitation signals and synchronously demodulating them in the electric spindle controller, machining status perception and hierarchical control at the tool tooth level are achieved, solving the problem of insufficient machining stability of electric spindles in the prior art and improving machining stability and dynamic control effect.
Patent Information
- Application Number
- CN202611609092.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-17
- Publication Date
- 2026-11-17
AI Technical Summary
Existing electric spindle control methods have difficulty distinguishing the local machining states of different cutting tooth zones, resulting in insufficient machining stability, and external sensors increase system complexity and cost.
By superimposing excitation signals on the electric spindle controller, combining phase reference information acquired by the spindle encoder, dividing the cutting tooth cutting range, and performing synchronous demodulation and impedance mapping to generate a response impedance spectrum, the machining state perception and hierarchical control at the cutting tooth level are realized.
It improves the stability of electric spindle machining, accurately identifies local anomalies, avoids machining disturbances caused by traditional overall control, and enhances the stability of dynamic control.
Smart Images

Figure CN123113684A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of CNC machine tool electric spindle control technology, and more specifically, to an electric spindle control method and system based on machining state perception. Background Technology
[0002] As the core actuator of high-speed CNC machine tools, the electric spindle's operating status directly affects machining accuracy, surface quality, tool life, and machining stability. During periodic cutting processes such as milling and drilling, the contact state between the cutting teeth and the workpiece changes periodically with the spindle angle, and the cutting load, dynamic stiffness, and vibration response also differ in different cutting ranges of the cutting teeth.
[0003] However, existing electric spindle control methods typically rely on signals such as speed, current, torque, vibration, or temperature as feedback, adjusting speed, compensating for torque, or implementing protective control based on the overall operating status. These methods primarily assess the overall response within the spindle's rotation cycle, making it difficult to distinguish local machining states corresponding to different cutting tooth zones, and also struggling to identify angular domain differences caused by individual tooth wear, localized material hardening, abnormal local contact, or changes in localized dynamic stiffness. Furthermore, existing machining status monitoring methods often depend on external sensors to collect vibration, acoustic emission, or cutting force signals, increasing system complexity and installation costs, and are easily affected by machine tool structure transmission paths, environmental noise, and sensor placement. Therefore, achieving tooth-level machining status perception and layered control to improve the stability of electric spindle machining has become a significant challenge for the industry. Summary of the Invention
[0004] This application provides an electric spindle control method and system based on machining state perception, which can realize machining state perception and hierarchical control at the tool tooth level to improve the stability of electric spindle machining.
[0005] In a first aspect, this application provides an electric spindle control method based on machining state perception, comprising the following steps: During the machining process of the electric spindle, the electric spindle controller superimposes excitation signals on the drive commands and simultaneously collects spindle phase reference information and spindle operation response data; Based on the spindle phase reference information, each spindle rotation cycle is divided into multiple tooth cutting intervals, and an angular synchronization relationship is established between the excitation signal and the corresponding tooth cutting interval. Based on the excitation signal and the angle synchronization relationship, the spindle operation response data is synchronously demodulated to obtain the excitation demodulation response. Impedance mapping processing is performed on the excitation demodulation response to generate the response impedance spectrum. Based on the response impedance spectrum, the machining state is diagnosed to obtain the machining state characterization quantity. Based on the machining state characterization quantity, the hierarchical control strategy of the electric spindle is generated and sent to the instruction queue of the electric spindle driver.
[0006] In some embodiments, during the machining task performed by the electric spindle, the electric spindle controller superimposes an excitation signal onto the drive command and simultaneously acquires spindle phase reference information and spindle operation response data, specifically including: During the machining process of the electric spindle, the electric spindle controller superimposes an excitation signal with limited amplitude onto the speed command or electromagnetic torque command; The spindle phase reference information is obtained by the spindle encoder connected to the electric spindle controller; Current, vibration, and temperature values are collected simultaneously at sampling points at various angles to form spindle operation response data.
[0007] In some embodiments, dividing each spindle rotation cycle into multiple tooth cutting intervals based on the spindle phase reference information specifically includes: Based on the zero-position reference in the spindle phase reference information, the angular closed interval between the current zero-position reference and the next zero-position reference of the electric spindle is identified, and the angular closed interval is determined as one spindle rotation cycle; Based on the angle increment of the spindle phase reference information and the tooth phase parameters, determine the theoretical cutting contact angle position corresponding to each tooth; Centered on each theoretical cutting contact angle position, a corresponding angle window is set within the same spindle rotation cycle. Combined with the sampling period at the current spindle speed and the tool radial runout compensation, the cutting range of each tooth within the spindle rotation cycle is determined.
[0008] In some embodiments, establishing the angular synchronization relationship between the excitation signal and the corresponding cutting tooth interval specifically includes: Based on the spindle phase reference information, the excitation start angle position of the excitation signal is determined, and according to the control link delay and mechanical response delay, the angular domain offset of the excitation signal that generates an effective response within the corresponding spindle rotation cycle is generated. Based on the excitation start angle position and the angle domain offset, the effective response angle segment corresponding to the excitation signal is defined; The effective response angle segment is overlapped and matched with each cutting tooth interval to clarify the response assignment relationship of the excitation signal to each cutting tooth interval; Based on the effective response angle segments, the allocation relationship of each response, and the cutter tooth number, an angle domain synchronization index table is constructed to characterize the angle synchronization relationship between the excitation signal and the cutting interval of each cutter tooth.
[0009] In some embodiments, based on the excitation signal and the angle synchronization relationship, the spindle operation response data is synchronously demodulated to obtain the excitation demodulation response, specifically including: Based on the excitation signal, an orthogonal reference demodulation quantity originating from the same source as the excitation signal is generated in the electric spindle controller; Based on the angle synchronization relationship, response sampling data falling into each cutting tooth interval are extracted from the spindle operation response data, and angle domain response sequence of each cutting tooth interval is formed according to the corresponding response sampling window; Trend suppression and amplitude normalization are performed on the response sequence of each corner domain to obtain the demodulated response sequence corresponding to each cutting tooth interval; Within each cutting tooth interval, the corresponding demodulated response sequence is orthogonally projected using the orthogonal reference demodulation quantity to obtain the in-phase demodulation component and the orthogonal demodulation component of that cutting tooth interval. Based on the vector synthesis relationship between the in-phase demodulation component and the quadrature demodulation component, the amplitude response and phase response of the cutting tooth interval to the excitation signal are determined. The amplitude and phase responses corresponding to all cutting tooth intervals together constitute the excitation demodulation response of the electric spindle.
[0010] In some embodiments, performing impedance mapping processing based on the excitation demodulation response to generate a response impedance spectrum specifically includes: The amplitude response and phase response corresponding to each cutting interval of the tooth are obtained in the excitation demodulation response, and the periodic angular position of each cutting interval of the tooth in the spindle rotation cycle is determined according to the angle synchronization relationship. Based on the correspondence between the excitation signal and each cutting tooth interval, the equivalent excitation amount corresponding to each cutting tooth interval is determined; For each cutting tooth interval, based on the amplitude response, the phase response and the equivalent excitation, the cutting tooth interval is subjected to angular domain impedance mapping to obtain the angular domain impedance characterization corresponding to each cutting tooth interval. The angular impedance characterization parameters of all cutting tooth intervals within the same spindle rotation cycle are arranged in an orderly manner according to the corresponding period angle position to form the initial angular impedance distribution spectrum of the spindle rotation cycle. The initial response impedance spectra of the electric spindle are obtained by uniformly fusing the initial response impedance spectra of the spindles with the same periodic angle position within multiple consecutive spindle rotation cycles.
[0011] In some embodiments, processing status diagnosis based on the response impedance spectrum yields specific processing status characterization quantities, including: Global spectral feature analysis is performed on the response impedance spectrum to generate a global response characterization quantity that characterizes the overall dynamic state of the current machining process of the electric spindle. The response impedance spectrum is analyzed by local angular domain characteristics to obtain local response characterization quantities that characterize local cutting load, local cutting contact, or local dynamic stiffness changes. The global response characterization and the local response characterization together constitute the machining state characterization of the electric spindle.
[0012] Secondly, this application provides an electric spindle control system based on machining state perception, used to execute an electric spindle control method based on machining state perception, including: The excitation sensing module is used to superimpose excitation signals onto the drive commands by the electric spindle controller during the execution of machining tasks by the electric spindle, and simultaneously collect spindle phase reference information and spindle operation response data; An angle mapping module is used to divide each spindle rotation cycle into multiple tooth cutting intervals based on the spindle phase reference information, and to establish an angle synchronization relationship between the excitation signal and the corresponding tooth cutting interval. The impedance demodulation module is used to synchronously demodulate the spindle operation response data based on the excitation signal and the angle synchronization relationship to obtain the excitation demodulation response, and perform impedance mapping processing based on the excitation demodulation response to generate a response impedance spectrum. The decision control module is used to perform machining state diagnosis based on the response impedance spectrum, obtain machining state characterization quantities, generate a hierarchical control strategy for the electric spindle based on the machining state characterization quantities, and send it to the instruction queue of the electric spindle driver.
[0013] Thirdly, this application provides a computer device including a memory and a processor, the memory storing code, and the processor being configured to acquire the code and execute the above-described electric spindle control method based on machining state perception.
[0014] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described electric spindle control method based on machining state perception.
[0015] The technical solutions provided by the embodiments disclosed in this application have the following beneficial effects: This application provides an electric spindle control method and system based on machining state perception. During the machining process, the electric spindle controller superimposes an excitation signal onto the drive command and simultaneously collects spindle phase reference information and spindle operation response data. Based on the spindle phase reference information, each spindle rotation cycle is divided into multiple cutting tooth intervals, and an angular synchronization relationship is established between the excitation signal and the corresponding cutting tooth interval. Based on the excitation signal and the angular synchronization relationship, the spindle operation response data is synchronously demodulated to obtain an excitation demodulation response. Impedance mapping processing is performed on the excitation demodulation response to generate a response impedance spectrum. Machining state diagnosis is performed based on the response impedance spectrum to obtain machining state characterization quantities. A hierarchical control strategy for the electric spindle is generated based on the machining state characterization quantities and sent to the instruction queue of the electric spindle driver.
[0016] Therefore, this application firstly achieves quantifiable identification of machining dynamic characteristics by superimposing small-amplitude controllable excitations on drive commands and simultaneously acquiring multi-source response data via spindle encoder angle pulse synchronization, thus completing the precise binding of multi-source data with spindle angle position; secondly, it divides the continuous spindle rotation angle into independent cutting tooth intervals, abandoning the traditional whole-circle average detection mode and avoiding the problem of local single-tooth anomalies being masked by the overall average; simultaneously, it compensates for angle lag errors through delayed angle domain conversion and, in conjunction with an angle domain synchronization index table, achieves angle matching and attribution between excitation and response signals; then... Subsequently, an independent orthogonal demodulation mechanism for each tooth interval is adopted, which can effectively extract the effective response components of the same frequency and shield various inter-frequency interferences and signal aliasing. A unified data dimension is obtained through impedance mapping, and random disturbances are suppressed by combining multi-cycle data fusion, so as to stably output the electromechanical coupling characteristic impedance spectrum of each tooth interval. Finally, through global and local dual-dimensional feature analysis, the synchronous quantization of macroscopic working conditions and microscopic anomalies is realized. Combined with a hierarchical control strategy of global steady-state control and fixed-point precise compensation, the machining disturbances caused by excessive correction of single global control are avoided, and the accuracy of electric spindle machining state recognition and dynamic control stability are improved.
[0017] In summary, the technical solution adopted in this application can realize machining status perception and layered control at the cutting tooth level, thereby improving the stability of electric spindle machining. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only for this embodiment of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1This is an exemplary flowchart of an electric spindle control method based on machining state perception, according to some embodiments of this application; Figure 2 This is a schematic diagram illustrating an application scenario of an electric spindle control method based on machining state perception, according to some embodiments of this application. Figure 3 This is an exemplary flowchart illustrating the determination of the excitation demodulation response according to some embodiments of this application; Figure 4 This is a schematic diagram of the structure of an electric spindle control system based on machining state perception, according to some embodiments of this application; Figure 5 This is a schematic diagram of the structure of a computer device that implements an electric spindle control method based on machining state perception, according to some embodiments of this application. Detailed Implementation
[0020] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0021] This application provides an electric spindle control method and system based on machining state perception. The core of this method involves the electric spindle controller superimposing excitation signals onto drive commands during machining operations, and simultaneously acquiring spindle phase reference information and spindle operation response data. Based on the spindle phase reference information, each spindle rotation cycle is divided into multiple cutting tooth intervals, and an angular synchronization relationship is established between the excitation signal and the corresponding cutting tooth interval. Based on the excitation signal and the angular synchronization relationship, the spindle operation response data is synchronously demodulated to obtain an excitation demodulation response. Impedance mapping processing is performed on the excitation demodulation response to generate a response impedance spectrum. Machining state diagnosis is performed based on the response impedance spectrum to obtain machining state characterization quantities. A hierarchical control strategy for the electric spindle is generated based on the machining state characterization quantities and sent to the instruction queue of the electric spindle driver. This approach enables cutting tooth-level machining state perception and hierarchical control, thereby improving the stability of electric spindle machining.
[0022] To better understand the above technical solutions, a detailed description of the technical solutions will be provided below in conjunction with the accompanying drawings and specific embodiments. (Refer to...) Figure 1 The figure is an exemplary flowchart of an electric spindle control method based on machining state perception according to some embodiments of this application. The figure mainly includes the following steps: In step S101, during the machining task performed by the electric spindle, the electric spindle controller superimposes an excitation signal onto the drive command and simultaneously collects spindle phase reference information and spindle operation response data.
[0023] In some embodiments, during the machining task performed by the electric spindle, the electric spindle controller superimposes an excitation signal onto the drive command and simultaneously acquires spindle phase reference information and spindle operation response data. Specifically, this can be achieved in the following manner: During the machining process of the electric spindle, the electric spindle controller superimposes an excitation signal with limited amplitude onto the speed command or electromagnetic torque command; The spindle phase reference information is obtained by the spindle encoder connected to the electric spindle controller; Current, vibration, and temperature values are collected simultaneously at sampling points at various angles to form spindle operation response data.
[0024] In this application, Figure 2 This is a schematic diagram illustrating an application scenario of an electric spindle control method based on machining state perception, according to some embodiments of this application. As shown in the figure, the electric spindle controller is connected to the electric spindle driver, the spindle encoder, and the signal acquisition unit. The electric spindle controller outputs a drive command superimposed with an excitation signal to the electric spindle driver, and the electric spindle driver drives the electric spindle to perform machining tasks according to the drive command. The spindle encoder feeds back spindle phase reference information to the electric spindle controller. The signal acquisition unit sends response signals such as current, vibration, and temperature to the electric spindle controller. The electric spindle controller performs angle synchronous acquisition of the above response signals based on the spindle phase reference information, thereby obtaining spindle operation response data corresponding to the spindle angle position.
[0025] It should be noted that the excitation signal refers to a periodic test signal superimposed on the electric spindle speed command or electromagnetic torque command, including one of the following: sinusoidal sweep frequency signal, multi-frequency superposition signal, or pseudo-random binary sequence signal. Its amplitude is limited to a preset percentage range of the rated drive signal amplitude of the electric spindle, for example, not exceeding 5% of the rated amplitude, to ensure that the excitation signal can be effectively identified and does not interfere with the normal cutting process. The spindle encoder adopts an incremental encoder or an absolute encoder, and its output angle sampling pulse is used to calibrate the discrete angle position within a single rotation cycle of the electric spindle. The spindle phase reference information refers to information that can characterize the starting point of the spindle rotation cycle and the angle position within the cycle. The spindle operation response data is a dataset of current, vibration, and temperature sampling points synchronously matched at each angle sampling point.
[0026] In practice, firstly, the electric spindle controller, without altering the original machining CNC program trajectory, superimposes an excitation signal onto the speed command or electromagnetic torque command of the electric spindle power driver. This excitation signal is then sequentially scanned and output from low frequency to high frequency according to a preset frequency sweep interval. Secondly, the spindle encoder, which is paired with the electric spindle controller, continuously outputs an angle sampling pulse train during the rotation of the electric spindle. The angle sampling pulse resolution of the spindle encoder is set according to the tool tooth count parameter. The signal acquisition unit uses the edge of each pulse as a synchronous trigger condition to complete the synchronous sampling of multi-source signals and obtain spindle phase reference information. The spindle phase reference information includes a zero-position reference for defining the start of the spindle rotation cycle, an angle increment for real-time characterizing the spindle rotation position, and a tool tooth phase parameter for locating the cutting phase of each tool tooth. The zero-position reference is the zero-position pulse signal output by the spindle encoder, which is used to calibrate the effective starting angle of each spindle rotation cycle. The angle increment refers to the electric spindle angular displacement between adjacent angle sampling points. The tool tooth phase parameter is the number of tool teeth and the calibration installation angle deviation of each tooth relative to the zero-position reference. This parameter is pre-stored in the tool parameter table of the electric spindle controller. Finally, at each angle sampling point, the instantaneous operating current of the electric spindle drive is collected by a current sensor, the radial vibration data of the front bearing housing of the electric spindle is collected by a vibration sensor, and the surface temperature data of the electric spindle housing is collected by a temperature sensor. The signal acquisition unit encapsulates the collected current data, vibration data, temperature data and the corresponding angle sampling pulse sequence number into a data frame, and marks the spindle rotation angle position corresponding to the data frame, thus forming the spindle operation response data that is synchronized in both timing and angle.
[0027] It should be noted that by superimposing an amplitude-limited excitation signal onto the speed command or electromagnetic torque command, a controllable micro-excitation can be introduced on the basis of conventional machining drive of the electric spindle, so that the cutting coupling end of the spindle, tool and workpiece exhibits quantifiable and identifiable dynamic response characteristics, effectively reflecting the electromechanical coupling dynamic characteristics under the current machining conditions; by relying on the unified synchronous triggering acquisition of angle sampling pulses of the spindle encoder, the timing binding and angle correspondence of multi-source response data of current, vibration and temperature with the spindle rotation angle position can be realized.
[0028] In step S102, based on the spindle phase reference information, each spindle rotation cycle is divided into multiple tooth cutting intervals, and an angular synchronization relationship is established between the excitation signal and the corresponding tooth cutting interval.
[0029] In some embodiments, dividing each spindle rotation cycle into multiple tooth cutting intervals based on the spindle phase reference information can be achieved in the following manner: Based on the zero-position reference in the spindle phase reference information, the angular closed interval between the current zero-position reference and the next zero-position reference of the electric spindle is identified, and the angular closed interval is determined as one spindle rotation cycle; Based on the angle increment of the spindle phase reference information and the tooth phase parameters, determine the theoretical cutting contact angle position corresponding to each tooth; Centered on each theoretical cutting contact angle position, a corresponding angle window is set within the same spindle rotation cycle. Combined with the sampling period at the current spindle speed and the tool radial runout compensation, the cutting range of each tooth within the spindle rotation cycle is determined.
[0030] It should be noted that the theoretical cutting contact angle position is the reference spindle rotation angle at which each cutting tooth makes cutting contact with the workpiece under conditions of no installation deviation and no wear; the angle window is a preset angle range centered on the theoretical cutting contact angle position, and its width is determined according to the actual cutting arc length of the tool and the spindle rotation speed; the tool radial runout compensation amount is the correction amount for the offset of the actual cutting contact angle position relative to the theoretical position caused by tool installation eccentricity or tool wear; the cutting tooth range refers to the angle range corresponding to the cutting action of a certain cutting tooth within one spindle rotation cycle.
[0031] In specific implementation, firstly, the angular closed interval between the current zero-position reference signal's angular position and the next zero-position reference signal's angular position is defined as one spindle rotation cycle. For an electric spindle with a rotation angle of 360° per revolution, the angular closed interval is from 0° to 360°, where the 0° position is determined by the zero-position reference signal. Secondly, based on the number of tool teeth Z, the 360° spindle rotation cycle is divided into Z theoretical cutting phase intervals according to the number of teeth. Using the angle increment in the spindle phase reference information as the step size, the starting angle and ending angle of each theoretical cutting phase interval are determined, and the center angle of the interval is taken as the theoretical cutting contact angle position of the corresponding tool tooth. Finally, taking each theoretical cutting contact angle position as the center and combining the real-time speed of the electric spindle with the fixed sampling period of the encoder, the single-angle sampling step size is determined. Based on the sampling step size and the actual cutting envelope angle of the tool, the initial range of the angle window is determined. The width of the angle window is not less than the angle increment corresponding to a single angle sampling period, and not greater than half the distance between the theoretical cutting contact angle positions of two adjacent cutter teeth, ensuring that the angle windows of each cutter tooth are independent and do not overlap or interfere with each other. Furthermore, the radial runout compensation amount of each cutter tooth is retrieved from the tool parameter table of the controller, and the angles on the left and right sides of the angle window are corrected by positive or negative offset, respectively, to eliminate the angle offset error caused by tool installation eccentricity and tooth wear. The corrected angle range is the cutting range of the corresponding cutter tooth.
[0032] It should be noted that converting the continuous spindle rotation angle into a discrete cutting range corresponding to the cutter tooth number allows subsequent response analysis to pinpoint specific cutter teeth or angle ranges, avoiding the problem of local single-tooth cutting anomalies being masked by whole-cycle average detection.
[0033] In some embodiments, establishing the angular synchronization relationship between the excitation signal and the corresponding cutting tooth interval can be achieved in the following manner: Based on the spindle phase reference information, the excitation start angle position of the excitation signal is determined, and according to the control link delay and mechanical response delay, the angular domain offset of the excitation signal that generates an effective response within the corresponding spindle rotation cycle is generated. Based on the excitation start angle position and the angle domain offset, the effective response angle segment corresponding to the excitation signal is defined; The effective response angle segment is overlapped and matched with each cutting tooth interval to clarify the response assignment relationship of the excitation signal to each cutting tooth interval; Based on the effective response angle segments, the allocation relationship of each response, and the cutter tooth number, an angle domain synchronization index table is constructed to characterize the angle synchronization relationship between the excitation signal and the cutting interval of each cutter tooth.
[0034] It should be noted that the excitation starting angle position refers to the current spindle rotation angle value fed back by the spindle encoder when the electric spindle controller superimposes the excitation signal onto the drive command; the control link delay is the time delay from the excitation signal being sent from the electric spindle controller to the input of the power driver, including digital output delay and drive interface transmission delay; the mechanical response delay is the lag time after the power driver receives the excitation signal and the electric spindle speed or torque generates an actual mechanical response, including the power amplification delay of the driver and the electromagnetic-mechanical conversion delay of the electric spindle; the angular domain offset is the sum of the control link delay and the mechanical response delay converted into an angular offset value according to the current spindle speed, used to characterize the angular lag between the excitation signal being sent and the generation of a measurable effective response; the effective response angle segment is the angular range in which the excitation signal actually generates a measurable mechanical response in the spindle rotation angular domain.
[0035] In specific implementation, firstly, the current angle value fed back by the spindle encoder when the electric spindle controller superimposes the excitation signal onto the drive command is obtained as the excitation starting angle position. Since the excitation signal needs a certain delay from being generated by the controller, executed by the electric spindle driver, and forming an acquireable response in the electric spindle mechanical system, the control link delay and mechanical response delay are measured, and the sum of the two is multiplied by the real-time angular velocity of the spindle to obtain the angular domain offset. Then, the excitation starting angle position is added to the angular domain offset to obtain the effective starting angle for the excitation signal to actually generate an effective response. The product of the duration of the excitation signal and the real-time angular velocity of the spindle is taken as the response duration angle span. The effective starting angle and the angle span are accumulated to obtain the effective ending angle. The effective starting angle and the effective ending angle together define the effective response angle segment of the excitation signal. Next, the effective response angle segment is compared with the angle intersection of each cutting tooth interval one by one to obtain the overlap angle between each cutting interval and the effective response angle segment: if the effective response angle segment falls completely within a certain cutting tooth interval, the cutting tooth interval is determined as the cutting interval that has a response correlation with the excitation signal; if the effective response angle segment spans two or more cutting tooth intervals, the ratio of the single interval overlap angle to the total effective response angle span is used as the response weight ratio of each cutting tooth interval, and the original response data is linearly allocated according to the weight ratio to achieve accurate response assignment matching under the multi-interval crossing condition. Finally, taking a single spindle rotation cycle as an independent processing unit, within each cycle, for the effective response angle segment corresponding to the excitation signal, the excitation start angle position, angle domain offset, effective response angle segment range, overlap angle of each cutter tooth interval, interval response allocation ratio, and matching cutter tooth number are structurally bound to generate a unique angle domain synchronization index table for the current cycle. This index table uses the spindle rotation cycle number and effective response start angle as unique primary keys and the cutter tooth number as a secondary index to ensure that the angle domain mapping relationship is unique and unambiguous.
[0036] It should be noted that by controlling the angular domain conversion of link delay and mechanical response delay, the angular lag between the excitation signal issuance time and the effective response time is compensated, so that the excitation signal and the actual generated response signal can be accurately corresponded in the angular domain; by constructing an angular domain synchronization index table, the attribution relationship between the excitation signal and the response signal in each cutting interval is clarified.
[0037] In step S103, based on the excitation signal and the angle synchronization relationship, the spindle operation response data is synchronously demodulated to obtain the excitation demodulation response. Impedance mapping processing is then performed based on the excitation demodulation response to generate a response impedance spectrum.
[0038] Preferably, in some embodiments, reference is made to Figure 3As shown in the figure, this is an exemplary flowchart of determining the excitation demodulation response according to some embodiments of this application. In this embodiment, the spindle running response data is synchronously demodulated based on the excitation signal and the angle synchronization relationship to obtain the excitation demodulation response, which can be achieved by the following steps: In step S1031, based on the excitation signal, an orthogonal reference demodulation quantity originating from the same source as the excitation signal is generated in the electric spindle controller; In step S1032, according to the angle synchronization relationship, response sampling data falling into each cutting tooth interval is extracted from the spindle operation response data, and an angular domain response sequence for each cutting tooth interval is formed according to the corresponding response sampling window; In step S1033, trend suppression and amplitude normalization are performed on each corner domain response sequence to obtain the demodulation response sequence corresponding to each cutting tooth interval; In step S1034, within each cutting tooth interval, the corresponding demodulated response sequence is orthogonally projected using the orthogonal reference demodulation quantity to obtain the in-phase demodulation component and the orthogonal demodulation component of the cutting tooth interval. In step S1035, the amplitude response and phase response of the cutting tooth interval to the excitation signal are determined according to the vector synthesis relationship between the in-phase demodulation component and the quadrature demodulation component. In step S1036, the amplitude response and phase response corresponding to all cutting tooth intervals together constitute the excitation demodulation response of the electric spindle.
[0039] It should be noted that the orthogonal reference demodulation quantity refers to two reference signals with the same frequency as the excitation signal but a 90° phase difference. These signals are used to accurately filter and extract the effective response components in the response signal that are in the same frequency as the excitation signal, and to filter out inter-frequency interference. The in-phase demodulation component is the cumulative projection value of the demodulated response sequence onto the in-phase reference signal dimension, used to characterize the response components in the response signal that are in phase with the excitation signal. The quadrature demodulation component is the cumulative projection value of the demodulated response sequence onto the quadrature reference signal dimension, used to characterize the response components in the response signal that are orthogonal to the excitation signal. The excitation demodulation response is a structured dataset consisting of the amplitude response and phase response corresponding to all cutting tooth intervals within a single spindle rotation cycle, used to quantitatively characterize the dynamic response characteristics of each independent cutting tooth interval to the excitation signal.
[0040] In practice, firstly, the electric spindle controller has a built-in digital frequency synthesizer that retrieves the frequency parameters of the excitation signal under the current machining condition. Based on the standard frequency of the excitation signal, and using the spindle phase corresponding to the superposition of the excitation signals as a unified, co-current phase reference, two sinusoidal reference signals with a 90° phase difference are generated. These are defined as the in-phase reference signal and the quadrature reference signal, respectively. The two signals together constitute the quadrature reference demodulation quantity for this demodulation, ensuring that the frequency and phase of the reference signal and the excitation signal are completely matched. Secondly, according to the angular domain synchronization index table, the effective response angle range of each cutting tooth interval is obtained. Based on this range, the current, vibration, and temperature sampling data corresponding to the interval range are extracted from the spindle operation response data. Valid sampling points with angle values within the corresponding interval boundaries are selected and retained, while abnormal angle data points across cycles are removed. The valid sampling data within the same cutting tooth interval are arranged sequentially in ascending order of spindle angle to form the angular domain response sequence for that interval.
[0041] In addition, in specific implementation, the angular domain response sequence corresponding to each cutting tooth interval is uniformly preprocessed: a preset fixed-order polynomial fitting method is used to extract the low-frequency trend term of the sequence, wherein the polynomial order is set according to the number of sampling points in a single interval, preferably 2 to 4, to adapt to the drift characteristics of the electric spindle under slow-changing working conditions; the corresponding fitted trend term is subtracted from the angular domain response sequence point by point to complete the low-frequency trend suppression and eliminate demodulation interference caused by slow-changing working condition offsets such as machining temperature rise and load drift; the amplitude normalization processing is performed on the detrended sequence: the maximum absolute value of the sequence is obtained, and all data points in the sequence are divided by the maximum value if the maximum value is not zero, so as to achieve uniform scaling of the amplitude interval; if the maximum amplitude of the sequence approaches zero, the original sequence is retained unchanged to avoid calculation anomalies; through the above processing, the dimensions and amplitude intervals of the response data of each cutting tooth interval are unified to obtain a standardized response sequence to be demodulated. Next, within each cutting tooth interval, the demodulated response sequence is multiplied point-by-point along the spindle rotation angle dimension by the in-phase reference signal and the quadrature reference signal, respectively, according to the alignment rule corresponding to the angle sampling points, and the results are summed to obtain the in-phase demodulated component and the quadrature demodulated component corresponding to that interval. Based on the vector synthesis algorithm, the sum of squares of the in-phase demodulated component and the quadrature demodulated component is calculated, and the square root of the sum of squares is taken to obtain the amplitude response of that cutting tooth interval. The ratio of the quadrature demodulated component to the in-phase demodulated component is calculated, and the arctangent operation is performed on the ratio to obtain the phase response of that cutting tooth interval. Finally, all cutting tooth intervals within the current spindle rotation cycle are traversed, and the amplitude response and phase response corresponding to each interval are arranged in a unified cutting tooth number order to form the amplitude response sequence and the phase response sequence, respectively. The combination of the two sets of sequences constitutes the excitation demodulation response corresponding to the current complete spindle rotation cycle.
[0042] It should be noted that by adopting an independent orthogonal demodulation mechanism for each cutting tooth, the effective components in the response signal that are at the same frequency as the excitation signal can be extracted, effectively shielding the inter-frequency interference such as random fluctuations in cutting, environmental electrical noise, and low-frequency drift. By independently demodulating each cutting tooth's cutting interval, the response characteristics of each cutting tooth to the excitation signal can be extracted independently, avoiding the overlap of response signals between different cutting teeth.
[0043] In some embodiments, the impedance mapping process based on the excitation demodulation response to generate the response impedance spectrum can be performed in the following manner: The amplitude response and phase response corresponding to each cutting interval of the tooth are obtained in the excitation demodulation response, and the periodic angular position of each cutting interval of the tooth in the spindle rotation cycle is determined according to the angle synchronization relationship. Based on the correspondence between the excitation signal and each cutting tooth interval, the equivalent excitation amount corresponding to each cutting tooth interval is determined; For each cutting tooth interval, based on the amplitude response, the phase response and the equivalent excitation, the cutting tooth interval is subjected to angular domain impedance mapping to obtain the angular domain impedance characterization corresponding to each cutting tooth interval. The angular impedance characterization parameters of all cutting tooth intervals within the same spindle rotation cycle are arranged in an orderly manner according to the corresponding period angle position to form the initial angular impedance distribution spectrum of the spindle rotation cycle. The initial response impedance spectra of the electric spindle are obtained by uniformly fusing the initial response impedance spectra of the spindles with the same periodic angle position within multiple consecutive spindle rotation cycles.
[0044] It should be noted that the periodic angle position refers to the position coordinates of each cutting tooth interval relative to the zero reference within the spindle rotation cycle; the equivalent excitation quantity is the effective excitation amplitude obtained by matching the corresponding cutting tooth interval after the excitation signal is applied to the drive command; the angular domain impedance mapping process is the process of establishing the amplitude ratio relationship and phase lag relationship based on the excitation quantity and response quantity of the cutting tooth interval in the spindle angle coordinate system; the initial angular domain impedance distribution spectrum is the structured distribution data formed by arranging the angular domain impedance characterization quantities of each cutting tooth interval according to the periodic angle position within a single spindle rotation cycle.
[0045] In specific implementation, firstly, the amplitude and phase responses corresponding to each cutting tooth interval are extracted from the excitation demodulation response. Simultaneously, the angular domain synchronization index table is retrieved to read the cutting tooth number and periodic angle position corresponding to each cutting tooth interval. The periodic angle position is calibrated using the angle center position of the corresponding cutting tooth interval, calculated by taking the arithmetic mean of the starting and ending angles of the cutting tooth interval, and serves as the angular coordinate of the cutting tooth within the period. Secondly, based on the angular synchronization correspondence between the excitation signal and the cutting tooth interval, the equivalent excitation amount for each cutting tooth interval is determined according to the working condition: if the effective response angle segment completely falls within a single cutting tooth interval, the root mean square value of the excitation signal within that interval is selected as the equivalent excitation amount to ensure stable excitation amplitude representation; if the effective response angle segment spans multiple cutting tooth intervals, the weighting coefficient is used, and the equivalent excitation amount corresponding to each cutting tooth interval is calculated by weighted summation to achieve precise allocation of excitation energy across intervals. Then, for each cutting tooth interval, the ratio of the amplitude response to the equivalent excitation is used as the impedance amplitude characterization, and the phase response obtained by demodulation of that cutting tooth interval is directly used as the impedance phase characterization. The impedance amplitude characterization and the impedance phase characterization together constitute the unique angular domain impedance characterization quantity of the current cutting tooth interval, reflecting the electromechanical coupling impedance characteristics of the single-tooth cutting interval. Next, the angular domain impedance characterization quantities of all cutting tooth intervals within the same spindle rotation cycle are arranged sequentially in ascending order of the corresponding period angle position to form an initial angular domain impedance distribution spectrum. Its data structure consists of an impedance amplitude characterization array and an impedance phase characterization array indexed by the cutting tooth number. Finally, the angular domain impedance characterization quantities with the same cutting tooth number within multiple consecutive spindle rotation cycles are subjected to median filtering or mean filtering to eliminate outliers caused by random fluctuations in cutting force, instantaneous vibration interference, and other factors. The filtered result is used as the stable impedance characterization quantity of that cutting tooth interval. The stable impedance characterization quantities of all cutting tooth intervals are arranged in an orderly manner according to the period angle position to generate the response impedance spectrum of the electric spindle.
[0046] It should be noted that by mapping the amplitude and phase responses obtained from demodulation to the corresponding impedance amplitude and impedance phase, the sensor's original dimension of the response signal is converted into a unified impedance dimension of the associated excitation-response coupling relationship, effectively avoiding the characterization bias caused by differences in sensor type and measurement position. At the same time, by performing consistency fusion processing on the initial angular domain impedance distribution spectrum of continuous multi-cycles, measurement fluctuations caused by random factors such as single-cycle cutting impact and electrical interference can be effectively suppressed, so that the finally generated response impedance spectrum can accurately and stably characterize the inherent dynamic characteristics of the electric spindle corresponding to each cutting tooth interval.
[0047] In step S104, machining state diagnosis is performed based on the response impedance spectrum to obtain machining state characterization quantities. A hierarchical control strategy for the electric spindle is generated based on the machining state characterization quantities and sent to the instruction queue of the electric spindle driver.
[0048] In some embodiments, processing status diagnosis based on the response impedance spectrum to obtain processing status characterization quantities can be performed in the following manner: Global spectral feature analysis is performed on the response impedance spectrum to generate a global response characterization quantity that characterizes the overall dynamic state of the current machining process of the electric spindle. The response impedance spectrum is analyzed by local angular domain characteristics to obtain local response characterization quantities that characterize local cutting load, local cutting contact, or local dynamic stiffness changes. The global response characterization and the local response characterization together constitute the machining state characterization of the electric spindle.
[0049] It should be noted that the global response characterization quantity is a set of characteristic parameters characterizing the overall dynamic state of the electric spindle, used to reflect the overall cutting load level, overall dynamic stiffness state and machining stability trend of the electric spindle under the current machining conditions; the local response characterization quantity is a set of characteristic parameters characterizing the abnormal machining state of local angular positions, used to reflect the abnormal cutting load of specific cutting teeth, tool wear or local stiffness degradation.
[0050] In practice, firstly, impedance amplitude characterization data corresponding to all effective cutting intervals within the current complete spindle rotation cycle are selected as statistical samples, and invalid cutting tooth samples with no effective cutting or abnormal data are removed. Statistical analysis is then performed on the impedance amplitude characterization of all valid samples: the sum of the impedance amplitude characterizations of all valid cutting teeth is calculated and divided by the total number of valid cutting tooth samples to obtain the mean impedance amplitude characterization. This mean is used as the global response characterization quantity corresponding to the current spindle rotation cycle, quantifying the overall cutting load and average dynamic stiffness level of the current spindle cycle. Then, based on the impedance amplitude dimension data of the response impedance spectrum, according to the tooth arrangement order corresponding to the increasing spindle rotation angle, the impedance amplitude representation of the cutting interval of the next tooth is subtracted from the impedance amplitude representation of the previous tooth, completing the difference calculation of all adjacent teeth and obtaining the deviation sequence of the impedance amplitude representation of adjacent teeth; the abnormal judgment threshold stored in the controller parameter table is retrieved, and the tooth number and its corresponding cycle angle position of the deviation value exceeding the preset threshold are marked; among them, the abnormal judgment threshold is based on the statistical distribution result of the multi-cycle tooth impedance amplitude deviation under the standard steady-state machining condition of the electric spindle during the equipment factory calibration stage, taking 3 times the standard deviation of the normal fluctuation as the abnormal judgment threshold and storing it in the parameter table; at the same time, the current complete spindle rotation cycle is used as the threshold. Using the impedance amplitude data of each cutting tooth as a benchmark, the most recent 3-5 consecutive spindle rotation cycles are retrieved. Then, the arithmetic mean of multiple sets of historical impedance amplitudes corresponding to the same cutting tooth number and the same cycle angle position is calculated to obtain the historical steady-state mean. The signed difference between the current cycle impedance amplitude and the historical steady-state mean is used to calculate the cross-cycle impedance change of the cutting tooth at the same position, which is used to characterize the temporal drift of the electromechanical coupling characteristics at the corresponding angle position of a single cutting tooth. The impedance amplitude deviations of adjacent cutting teeth and the cross-cycle impedance changes of cutting teeth at the same position are sequentially concatenated and summarized according to the cutting tooth number from smallest to largest, forming a feature array with fixed dimensions and a unique order. This array is used as the local response characterization. Finally, the global response characterization and the local response characterization of the cutting tooth dimension are integrated and encapsulated according to a preset fixed field order to generate a standardized machining state characterization.
[0051] It should be noted that by using global spectral feature analysis and local angular domain feature analysis to extract machining state features from the two levels of overall average level and local angular difference, respectively, the machining state characterization includes both macroscopic information of the overall dynamic state of the electric spindle and microscopic anomaly information of specific cutting teeth or specific angular positions.
[0052] In specific implementation, a hierarchical control strategy for the electric spindle is generated based on the machining state characterization parameters and sent to the instruction queue of the electric spindle driver. Specifically, the average impedance amplitude characterization value corresponding to the current spindle rotation cycle is extracted from the machining state characterization parameters and compared with a preset standard reference value stored in the controller parameter table. The preset standard reference value is obtained from the equipment's factory steady-state calibration, and the calibration conditions are limited to the standard steady-state conditions of the electric spindle's rated speed, rated load, and no abnormal tool wear. This value is stored in the controller parameter table after multi-cycle statistical averaging. The current average impedance amplitude characterization value is calculated. After determining the relative deviation between the value and the standard reference value, the deviation amplitude is classified into levels according to the factory-preset deviation grading threshold. Different deviation levels correspond to different steady-state control intensities. The deviation grading threshold is also obtained from the factory calibration statistics and pre-stored in the parameter table. Further, the global control parameter mapping table calibrated by the equipment at the factory is retrieved. This mapping table takes the average impedance deviation level as input and the spindle speed adjustment, electromagnetic torque limit value, and cooling system intensity adjustment as output parameters. By looking up the table and matching, the various control parameters corresponding to the current working condition are obtained and integrated to form the global control parameter group for this control. Simultaneously, from the local response characterization quantities, the impedance amplitude characterization deviation of adjacent cutting teeth corresponding to each cutting tooth's cutting interval and the cross-cycle impedance change of cutting teeth at the same position are screened out, and the corresponding target cutting tooth number and its cycle angle position are extracted synchronously. The current spindle rotation angle is collected in real time, and with the fixed positive rotation direction of the spindle as the calculation benchmark, combined with the cycle angle position of the target cutting tooth, the remaining angle stroke of the cutting tooth that is about to participate in the cutting is calculated. The calculation process follows a single-cycle closed logic, with 0°~360° as a complete spindle rotation cycle, and the angle difference across the cycle boundary is corrected. The final result is the positive effective angle difference of the incomplete cutting, ensuring that the remaining angle stroke conforms to the actual cutting conditions. The calculated remaining angle stroke and the real-time collected spindle speed are used as the basis for the calculation. As a dual-input variable, the predicted torque compensation is calculated using the formula: "Predicted torque compensation = Rated basic compensation coefficient × (1 - Remaining angular travel / Single tooth cutting angle window) + Speed adaptation coefficient × Spindle speed". The basic compensation coefficient and speed adaptation coefficient are factory calibration parameters. The calibration process is completed under rated steady-state cutting conditions, obtained by linearly fitting multiple sets of corresponding sample data of remaining angular travel, spindle speed, and optimal compensation torque. After fitting, the data is stored in the controller parameter table. This predicted torque compensation is used as the core control parameter of the local control parameter group, enabling precise pre-compensation and correction of the cutting posture for target teeth with abnormal dynamic characteristics, eliminating local machining deviations caused by single-tooth local cutting anomalies.
[0053] In addition, in specific implementation, the global control parameter group is uniformly encapsulated into instructions to generate global layer control instructions. The effective angle window of these instructions covers the current complete spindle rotation cycle and continuously acts on the electric spindle machining process throughout the entire cycle, achieving steady-state correction and parameter control of the overall working condition. At the same time, the predicted torque compensation amount is specifically encapsulated into instructions to generate local layer control instructions. Combining the cutting tooth interval calibration rules mentioned above, the preset theoretical cutting contact angle position corresponding to the abnormal cutting tooth is locked. With this angle position as the center, a preset small angle effective window is matched as the only trigger interval for the local instructions. The parameters of this small angle effective window are pre-calibrated at the factory and stored in the controller parameter table, and the window range completely covers the cutting tooth interval of the corresponding abnormal cutting tooth and does not overlap with the cutting interval of adjacent cutting teeth. By limiting the local layer control instructions to be triggered and executed only within the cutting angle interval of the corresponding abnormal cutting tooth, fixed-point compensation for local cutting anomalies can be achieved, effectively avoiding ineffective intervention and machining disturbances caused by global instruction control. Furthermore, following the hierarchical principle of prioritizing global steady-state control and precise local compensation and correction, a complete hierarchical control strategy is integrated: global layer commands are responsible for overall steady-state correction, while local layer commands complete fine-grained correction of single-point anomalies based on global steady-state conditions. The two layers of commands do not conflict with each other and coordinate hierarchical control. Finally, the control command frames of the hierarchical control strategy are pushed to the head of the electric spindle driver's command queue with a priority tag higher than that of regular machining commands through the communication interface between the electric spindle controller and the driver. Upon receiving the control command frame, the driver's command scheduler pauses the currently executing regular commands and switches control to the execution thread of the hierarchical control strategy. After the hierarchical control commands for this cycle are completed, the regular machining command thread is automatically resumed, ensuring real-time control and continuous machining.
[0054] It should be noted that by distinguishing the control strategy into global layer control commands that act on the entire cycle and local layer control commands that act on specific angle ranges, the control actions are finely allocated in the angle domain, avoiding the introduction of new processing disturbances due to over-adjustment when dealing with local anomalies by a single global control strategy.
[0055] Therefore, this application firstly achieves quantifiable identification of machining dynamic characteristics by superimposing small-amplitude controllable excitations on drive commands and simultaneously acquiring multi-source response data via spindle encoder angle pulse synchronization, thus completing the precise binding of multi-source data with spindle angle position; secondly, it divides the continuous spindle rotation angle into independent cutting tooth intervals, abandoning the traditional whole-circle average detection mode and avoiding the problem of local single-tooth anomalies being masked by the overall average; simultaneously, it compensates for angle lag errors through delayed angle domain conversion and, in conjunction with an angle domain synchronization index table, achieves angle matching and attribution between excitation and response signals; then... Subsequently, an independent orthogonal demodulation mechanism for each tooth interval is adopted, which can effectively extract the effective response components of the same frequency and shield various inter-frequency interferences and signal aliasing. A unified data dimension is obtained through impedance mapping, and random disturbances are suppressed by combining multi-cycle data fusion, so as to stably output the electromechanical coupling characteristic impedance spectrum of each tooth interval. Finally, through global and local dual-dimensional feature analysis, the synchronous quantization of macroscopic working conditions and microscopic anomalies is realized. Combined with a hierarchical control strategy of global steady-state control and fixed-point precise compensation, the machining disturbances caused by excessive correction of single global control are avoided, and the accuracy of electric spindle machining state recognition and dynamic control stability are improved.
[0056] In summary, the technical solution adopted in this application can realize machining status perception and layered control at the cutting tooth level, thereby improving the stability of electric spindle machining.
[0057] Furthermore, in another aspect of this application, in some embodiments, this application provides an electric spindle control system based on machining state perception, referencing... Figure 4 The figure is a schematic diagram of a machining state-aware electric spindle control system according to some embodiments of this application. The machining state-aware electric spindle control system includes: The excitation sensing module 201 is used to superimpose excitation signals on the drive commands by the electric spindle controller during the execution of machining tasks by the electric spindle, and simultaneously collect spindle phase reference information and spindle operation response data. Angle mapping module 202 is used to divide each spindle rotation cycle into multiple tooth cutting intervals according to the spindle phase reference information, and to establish an angle synchronization relationship between the excitation signal and the corresponding tooth cutting interval. Impedance demodulation module 203 is used to synchronously demodulate the spindle running response data based on the excitation signal and the angle synchronization relationship to obtain the excitation demodulation response, and perform impedance mapping processing based on the excitation demodulation response to generate a response impedance spectrum. The decision control module 204 is used to perform machining state diagnosis based on the response impedance spectrum, obtain machining state characterization quantities, generate a hierarchical control strategy for the electric spindle based on the machining state characterization quantities, and send it to the instruction queue of the electric spindle driver.
[0058] In addition, this application also provides a computer device, the computer device including a memory and a processor, the memory storing code, the processor being configured to acquire the code and execute the above-described electric spindle control method based on machining state perception.
[0059] In some embodiments, reference Figure 5 The figure is a schematic diagram of the structure of a computer device implementing a machining state-aware electric spindle control method according to some embodiments of this application. The machining state-aware electric spindle control method in the above embodiments can... Figure 5 The computer device shown is used to implement this, and the computer device includes at least one processor 301, a communication bus 302, a memory 303, and at least one communication interface 304.
[0060] The processor 301 can be a general-purpose central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more devices used to control the execution of the electric spindle control method based on machining state perception in this application.
[0061] The communication bus 302 can be used to transmit information between the aforementioned components.
[0062] The memory 303 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disks or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory 303 may exist independently and be connected to the processor 301 via the communication bus 302. The memory 303 may also be integrated with the processor 301.
[0063] The memory 303 stores program code for executing the scheme of this application, and its execution is controlled by the processor 301. The processor 301 executes the program code stored in the memory 303. The program code may include one or more software modules. In the above embodiments, the determination of the electric spindle control method based on machining state perception can be implemented by the processor 301 and one or more software modules in the program code in the memory 303.
[0064] Communication interface 304 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0065] In a specific implementation, as one example, a computer device may include multiple processors, each of which may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. Here, a processor may refer to one or more devices, circuits, and / or processing cores used to process data (e.g., computer program instructions).
[0066] The aforementioned computer device can be a general-purpose computer device or a special-purpose computer device. In specific implementations, the computer device can be a desktop computer, a portable computer, a network server, a handheld digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device. This application does not limit the type of computer device.
[0067] In addition, this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described electric spindle control method based on machining state perception.
[0068] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0069] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. An electric spindle control method based on machining state perception, characterized in that, Includes the following steps: During the machining process of the electric spindle, the electric spindle controller superimposes excitation signals on the drive commands and simultaneously collects spindle phase reference information and spindle operation response data; Based on the spindle phase reference information, each spindle rotation cycle is divided into multiple tooth cutting intervals, and an angular synchronization relationship is established between the excitation signal and the corresponding tooth cutting interval. Based on the excitation signal and the angle synchronization relationship, the spindle operation response data is synchronously demodulated to obtain the excitation demodulation response. Impedance mapping processing is performed on the excitation demodulation response to generate the response impedance spectrum. Based on the response impedance spectrum, the machining state is diagnosed to obtain the machining state characterization quantity. Based on the machining state characterization quantity, the hierarchical control strategy of the electric spindle is generated and sent to the instruction queue of the electric spindle driver.
2. The method as described in claim 1, characterized in that, During the machining process of the electric spindle, the electric spindle controller superimposes excitation signals onto the drive commands and simultaneously acquires spindle phase reference information and spindle operation response data, specifically including: During the machining process of the electric spindle, the electric spindle controller superimposes an excitation signal with limited amplitude onto the speed command or electromagnetic torque command; The spindle phase reference information is obtained by the spindle encoder connected to the electric spindle controller; Current, vibration, and temperature values are collected simultaneously at sampling points at various angles to form spindle operation response data.
3. The method as described in claim 1, characterized in that, Based on the spindle phase reference information, each spindle rotation cycle is divided into multiple tooth cutting intervals, specifically including: Based on the zero-position reference in the spindle phase reference information, the angular closed interval between the current zero-position reference and the next zero-position reference of the electric spindle is identified, and the angular closed interval is determined as one spindle rotation cycle; Based on the angle increment of the spindle phase reference information and the tooth phase parameters, determine the theoretical cutting contact angle position corresponding to each tooth; Centered on each theoretical cutting contact angle position, a corresponding angle window is set within the same spindle rotation cycle. Combined with the sampling period at the current spindle speed and the tool radial runout compensation, the cutting range of each tooth within the spindle rotation cycle is determined.
4. The method as described in claim 1, characterized in that, Establishing the angular synchronization relationship between the excitation signal and the corresponding cutting range of the cutting tooth specifically includes: Based on the spindle phase reference information, the excitation start angle position of the excitation signal is determined, and according to the control link delay and mechanical response delay, the angular domain offset of the excitation signal that generates an effective response within the corresponding spindle rotation cycle is generated. Based on the excitation start angle position and the angle domain offset, the effective response angle segment corresponding to the excitation signal is defined; The effective response angle segment is overlapped and matched with each cutting tooth interval to clarify the response assignment relationship of the excitation signal to each cutting tooth interval; Based on the effective response angle segments, the allocation relationship of each response, and the cutter tooth number, an angle domain synchronization index table is constructed to characterize the angle synchronization relationship between the excitation signal and the cutting interval of each cutter tooth.
5. The method as described in claim 1, characterized in that, Based on the excitation signal and the angle synchronization relationship, the spindle operation response data is synchronously demodulated to obtain the excitation demodulation response, which specifically includes: Based on the excitation signal, an orthogonal reference demodulation quantity originating from the same source as the excitation signal is generated in the electric spindle controller; Based on the angle synchronization relationship, response sampling data falling into each cutting tooth interval are extracted from the spindle operation response data, and angle domain response sequence of each cutting tooth interval is formed according to the corresponding response sampling window; Trend suppression and amplitude normalization are performed on the response sequence of each corner domain to obtain the demodulated response sequence corresponding to each cutting tooth interval; Within each cutting tooth interval, the corresponding demodulated response sequence is orthogonally projected using the orthogonal reference demodulation quantity to obtain the in-phase demodulation component and the orthogonal demodulation component of that cutting tooth interval. Based on the vector synthesis relationship between the in-phase demodulation component and the quadrature demodulation component, the amplitude response and phase response of the cutting tooth interval to the excitation signal are determined. The amplitude and phase responses corresponding to all cutting intervals of the cutting teeth together constitute the excitation and demodulation response of the electric spindle.
6. The method as described in claim 1, characterized in that, The impedance mapping process based on the excitation demodulation response to generate the response impedance spectrum specifically includes: The amplitude response and phase response corresponding to each cutting interval of the tooth in the excitation demodulation response are obtained respectively, and the periodic angular position of each cutting interval of the tooth in the spindle rotation cycle is determined according to the angle synchronization relationship. Based on the correspondence between the excitation signal and each cutting tooth interval, the equivalent excitation amount corresponding to each cutting tooth interval is determined; For each cutting tooth interval, based on the amplitude response, the phase response and the equivalent excitation, the cutting tooth interval is subjected to angular domain impedance mapping to obtain the angular domain impedance characterization of each cutting tooth interval. The angular impedance characterization parameters of all cutting tooth intervals within the same spindle rotation cycle are arranged in an orderly manner according to the corresponding period angle position to form the initial angular impedance distribution spectrum of the spindle rotation cycle. The initial response impedance spectra of the electric spindle are obtained by uniformly fusing the initial response impedance spectra of the spindles with the same periodic angle position within multiple consecutive spindle rotation cycles.
7. The method as described in claim 1, characterized in that, Based on the response impedance spectrum, the processing status diagnosis yields specific processing status characterization quantities, including: Global spectral feature analysis is performed on the response impedance spectrum to generate a global response characterization quantity that characterizes the overall dynamic state of the current machining process of the electric spindle. The response impedance spectrum is analyzed by local angular domain characteristics to obtain local response characterization quantities that characterize local cutting load, local cutting contact, or local dynamic stiffness changes. The global response characterization and the local response characterization together constitute the machining state characterization of the electric spindle.
8. An electric spindle control system based on machining state perception, used to execute the electric spindle control method based on machining state perception as described in any one of claims 1 to 7, characterized in that, The system includes: The excitation sensing module is used to superimpose excitation signals onto the drive commands by the electric spindle controller during the execution of machining tasks by the electric spindle, and simultaneously collect spindle phase reference information and spindle operation response data; An angle mapping module is used to divide each spindle rotation cycle into multiple tooth cutting intervals based on the spindle phase reference information, and to establish an angle synchronization relationship between the excitation signal and the corresponding tooth cutting interval. The impedance demodulation module is used to synchronously demodulate the spindle operation response data based on the excitation signal and the angle synchronization relationship to obtain the excitation demodulation response, and perform impedance mapping processing based on the excitation demodulation response to generate a response impedance spectrum. The decision control module is used to perform machining state diagnosis based on the response impedance spectrum, obtain machining state characterization quantities, generate a hierarchical control strategy for the electric spindle based on the machining state characterization quantities, and send it to the instruction queue of the electric spindle driver.
9. A computer device, characterized in that, The computer device includes a memory and a processor, the memory storing code, and the processor being configured to retrieve the code and execute the electric spindle control method based on machining state awareness as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the electric spindle control method based on machining state perception as described in any one of claims 1 to 7.
