[go: up one dir, main page]

CN113093647B - Method and device for identifying reverse gap based on response data of numerical control machine tool - Google Patents

Method and device for identifying reverse gap based on response data of numerical control machine tool Download PDF

Info

Publication number
CN113093647B
CN113093647B CN202110325229.2A CN202110325229A CN113093647B CN 113093647 B CN113093647 B CN 113093647B CN 202110325229 A CN202110325229 A CN 202110325229A CN 113093647 B CN113093647 B CN 113093647B
Authority
CN
China
Prior art keywords
backlash
time
signal
machine tool
command speed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110325229.2A
Other languages
Chinese (zh)
Other versions
CN113093647A (en
Inventor
周会成
刘晓玉
蒋亚坤
许光达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN202110325229.2A priority Critical patent/CN113093647B/en
Publication of CN113093647A publication Critical patent/CN113093647A/en
Application granted granted Critical
Publication of CN113093647B publication Critical patent/CN113093647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/401Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by control arrangements for measuring, e.g. calibration and initialisation, measuring workpiece for machining purposes
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/34Director, elements to supervisory
    • G05B2219/34242For measurement only

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Abstract

本发明公开了一种基于数控机床响应数据的反向间隙辨识方法及装置,属于数控技术领域,包括:提取数控机床在执行反向指令时在目标水平进给轴产生的指令速度信号vc(t)、电流信号I(t)、编码器位移信号pe(t)以及编码器速度信号ve(t),获得指令速度信号中指令速度过零的时刻t0,及其后与其间隔为预设时长的时刻t3;将编码器速度信号中相对于指令速度信号的时间延迟量ei消除,得到指令速度信号vc(t‑ei),并按照ev(t)=vc(t‑ei)‑ve(t)计算速度差值ev(t);计算速度差值ev(t)在时间段t0~t3中的突变时刻t1和电流信号I(t)在时间段t0~t3中的突变时刻t2;计算编码器位移信号pe(t)在时间段t1~t2产生的位移增量,将其绝对值辨识为反向间隙。本发明能够提高辨识精度,并对半闭环控制机床实现动态反向间隙辨识。

Figure 202110325229

The invention discloses a method and device for identifying backlash based on response data of a numerically controlled machine tool, belonging to the technical field of numerical control, comprising: extracting a command speed signal vc ( t), the current signal I(t), the encoder displacement signal p e (t) and the encoder speed signal ve (t), to obtain the time t 0 at which the command speed crosses zero in the command speed signal, and the interval thereafter is The time t 3 of the preset duration; the time delay e i relative to the command speed signal in the encoder speed signal is eliminated to obtain the command speed signal v c (t-e i ), and according to e v (t)=v c (t‑e i )‑v e (t) calculate the speed difference e v (t); calculate the speed difference e v (t) at the sudden change time t 1 and the current signal I ( t) the sudden change time t 2 in the time period t 0 ~ t 3 ; calculate the displacement increment generated by the encoder displacement signal p e (t) in the time period t 1 ~ t 2 , and identify its absolute value as the backlash . The invention can improve the identification accuracy and realize the dynamic backlash identification for the semi-closed-loop control machine tool.

Figure 202110325229

Description

基于数控机床响应数据的反向间隙辨识方法及装置Method and device for backlash identification based on response data of CNC machine tools

技术领域technical field

本发明属于数控技术领域,更具体地,涉及一种基于数控机床响应数据的反向间隙辨识方法及装置。The invention belongs to the technical field of numerical control, and more particularly, relates to a method and a device for identifying backlash based on response data of a numerically controlled machine tool.

背景技术Background technique

数控机床反向间隙,是由于从机床运动链的首端至执行件全程存在机械间隙,导致机床执行件在从正向运动变为反向运动时,执行件的运动量与理论值之间存在的误差,表现为进给系统在反向时有较大的非线性跟随误差、执行画圆轮廓指令时有较大的过象限突起,降低了机床的加工精度,尤其对高精度机床而言,反向间隙的存在限制了机床精度的提升。因此对准确的测量并补偿反向间隙尤为重要。The backlash of CNC machine tools is due to the existence of mechanical gaps from the head end of the machine tool kinematic chain to the actuator, resulting in the existence of the movement amount of the actuator and the theoretical value when the machine tool actuator changes from forward motion to reverse motion. The error is manifested in that the feed system has a large nonlinear following error when it is reversed, and there is a large cross-quadrant protrusion when executing the circle outline command, which reduces the machining accuracy of the machine tool, especially for high-precision machine tools. The existence of backlash limits the improvement of machine tool accuracy. Therefore, it is particularly important to accurately measure and compensate for backlash.

反向间隙存在于机械部件结合处,包含电机轴与齿轴由于键联引起的间隙、齿轮副间隙、齿轮与丝杠间由键联接引起的间隙、联轴器中键联接引起的间隙、丝杠螺母间隙等,因此无法直接测量,传统测测量方式是记录工作台换向运动时在同一指令位置处的位置差,多采用千分表、激光干涉仪和光栅尺测量。Backlash exists at the junction of mechanical parts, including the gap between the motor shaft and the gear shaft due to the key connection, the gap between the gear pair, the gap between the gear and the screw caused by the key connection, the gap caused by the key connection in the coupling, the wire Therefore, it cannot be directly measured. The traditional measurement method is to record the position difference at the same command position when the worktable is reversing movement, and most of them are measured by dial indicators, laser interferometers and grating rulers.

千分表测量为手动测量,测量过程简单,但需要测量人员全程操作,存在较大的人工测量误差,多用于反向间隙较大的场合。Dial indicator measurement is manual measurement, the measurement process is simple, but it requires the measurement personnel to operate the whole process, there is a large manual measurement error, and it is mostly used in occasions with large backlash.

激光干涉仪虽然测量精度更高,但也存在人工测量误差、自动化程度低的缺点。与此同时,上述两种测量方式均在进给轴静止的情况下读数,测量的反向间隙是静态的,无法反映反向间隙与进给速度之间的关系,静态测量结果对数控机床具有的“不同速度下反向间隙的补偿”功能的参考意义不大。Although the laser interferometer has higher measurement accuracy, it also has the disadvantages of manual measurement error and low degree of automation. At the same time, the above two measurement methods are both read when the feed axis is stationary, and the measured backlash is static, which cannot reflect the relationship between backlash and feed speed. The reference of the "Compensation of Backlash at Different Speeds" function is not significant.

目前还有一种常用的方法是采用光栅尺测量反向间隙,例如,在申请号为CN2013107369370、名称为“一种全闭环伺服系统的数控机床反向间隙监测方法”的专利文件中,借助全闭环机床上的光栅尺与编码器,记录反向前后的相同编码器位置的光栅尺数据的差值,作为该点的反向间隙数值。该方法避免了使用激光干涉仪存在阿贝误差的影响,能测量机床全程的反向间隙,但是目前工厂中大部分使用的机床是半闭环机床,无法实现该测量条件。At present, there is also a commonly used method to measure the backlash by using a grating ruler. The grating scale and the encoder on the machine tool record the difference between the grating scale data of the same encoder position before and after the reverse direction, as the backlash value of this point. This method avoids the influence of Abbe's error in the use of laser interferometer, and can measure the backlash of the whole machine tool.

除了上述传统的测量方式,目前的研究中还有基于机床的电流信号对机械间隙进行辨识的方法。In addition to the above-mentioned traditional measurement methods, there is also a method to identify the mechanical gap based on the current signal of the machine tool in the current research.

在申请号CN2015105593135、名称为“一种数控机床滚珠丝杠磨损状态的预测方法”的专利文件中,该方法认为丝杠的磨损量就是反向间隙的大小,通过采集数控机床的三相电流iu、iv、iw,计算得到均方根值

Figure GDA0003552309050000021
对该信号敏感段小波包分量重构后求方差作为丝杠磨损状态的预测。虽然该方法足够简洁的确定滚珠丝杠的磨损情况,但不同的机床中得到的“磨损量-特征量”曲线有所不同,不能定量的计算出反向间隙的磨损量大小。In the patent document with the application number CN2015105593135, titled "A method for predicting the wear state of a ball screw of a CNC machine tool", the method considers that the wear amount of the screw is the size of the backlash, and by collecting the three-phase current i of the CNC machine tool u , i v , i w , calculate the root mean square value
Figure GDA0003552309050000021
After reconstruction of the wavelet packet components of the signal sensitive segment, the variance is calculated as the prediction of the wear state of the lead screw. Although this method is simple enough to determine the wear of the ball screw, the "wear amount-characteristic amount" curves obtained in different machine tools are different, and the wear amount of the backlash cannot be quantitatively calculated.

论文《伺服系统在线传动间隙辨识及其负面效应抑制》中,用三角波速度信号控制驱动电机,通过计算齿轮在分离的时刻t1和他们再次啮合的时刻t2之间的速度差积分来辨识间隙幅值。但是转矩电流波动和速度较大,微分后尖刺较多,从而导致t1和t2时刻检测不准确。In the paper "Servo System Online Transmission Gap Identification and Its Negative Effect Suppression", the triangular wave speed signal is used to control the drive motor, and the gap amplitude is identified by calculating the integral of the speed difference between the time t1 when the gears are separated and the time t2 when they mesh again. . However, the torque current fluctuates and the speed is large, and there are many spikes after differentiation, which leads to inaccurate detection at t1 and t2.

总的来说,现有的数控机床反向间隙辨识方法,存在辨识精度低,且无法实现对半闭环控制机床实现动态反向间隙辨识的技术问题。In general, the existing backlash identification methods for CNC machine tools have the technical problems of low identification accuracy and inability to realize dynamic backlash identification for semi-closed-loop control machine tools.

发明内容SUMMARY OF THE INVENTION

针对现有技术的缺陷和改进需求,本发明提供了一种基于数控机床响应数据的反向间隙辨识方法及装置,其目的在于,解决现有的数控机床反向间隙辨识方法所存在的辨识精度低,且无法实现对半闭环控制机床实现动态反向间隙辨识的技术问题。In view of the defects and improvement requirements of the prior art, the present invention provides a method and device for backlash identification based on the response data of a numerically controlled machine tool, the purpose of which is to solve the identification accuracy of the existing backlash identification method of a numerically controlled machine tool. The technical problem of dynamic backlash identification for semi-closed-loop control machine tools cannot be realized.

为实现上述目的,按照本发明的一个方面,提供了一种基于数控机床响应数据的反向间隙辨识方法,包括:In order to achieve the above object, according to one aspect of the present invention, a method for identifying backlash based on response data of a CNC machine tool is provided, including:

提取数控机床在执行反向指令时在目标水平进给轴产生的指令速度信号vc(t)、电流信号I(t)、编码器位移信号pe(t)以及编码器速度信号ve(t),获得指令速度信号中指令速度过零的时刻t0,及时刻t0后与其间隔为预设时长tlast的时刻t3Extract the command speed signal v c (t), the current signal I (t), the encoder displacement signal p e (t) and the encoder speed signal v e ( t), obtain the time t 0 at which the command speed crosses zero in the command speed signal, and the time t 3 after the time t 0 and the interval of the preset time length t last ;

将编码器速度信号ve(t)中相对于指令速度信号vc(t)的时间延迟量ei消除后,得到同步后的指令速度信号vc(t-ei),并按照ev(t)=vc(t-ei)-ve(t)计算速度差值ev(t);分别计算速度差值ev(t)在时间段t0~t3中的突变时刻t1和电流信号I(t)在时间段t0~t3中的突变时刻t2After eliminating the time delay e i relative to the command speed signal v c (t) in the encoder speed signal v e (t), the synchronized command speed signal v c (te i ) is obtained, and according to e v (t )=v c (te i )-v e (t) to calculate the speed difference e v (t); respectively calculate the sudden change in time t 1 and the current of the speed difference e v (t) in the time period t 0 to t 3 the sudden change time t 2 of the signal I(t) in the time period t 0 to t 3 ;

计算编码器位移信号pe(t)在时间段t1~t2产生的位移增量,并将其绝对值辨识为反向间隙。Calculate the displacement increment generated by the encoder displacement signal p e (t) in the time period t 1 to t 2 , and identify its absolute value as the backlash.

机床在实际运行中,在反向运动处会有明显的非线性的跟随误差,仅仅靠PID控制是难以消除这些跟随误差,而造成该非线性跟随误差的主要因素是反向间隙与摩擦力。机械间隙存在于丝杠和螺母之间,在反向过程开始之前,丝杠贴紧螺母运动。本发明进行反向间隙识别的技术原理如下:In the actual operation of the machine tool, there will be obvious nonlinear following errors in the reverse motion. It is difficult to eliminate these following errors only by PID control. The main factors that cause the nonlinear following errors are the backlash and friction. Mechanical play exists between the lead screw and the nut, and the lead screw moves against the nut before the reverse process begins. The technical principle that the present invention carries out backlash identification is as follows:

(1)指令速度为零的时刻,反向过程开始,由于指令响应的滞后性,使得编码器反向时刻延迟至t1时刻;(1) When the command speed is zero, the reverse process starts. Due to the hysteresis of the command response, the reverse time of the encoder is delayed to time t 1 ;

(2)t1时刻,编码器朝反向运动,由于反向间隙的存在,此时丝杠与螺母分离,丝杠此时处于无负载状态,因此加速度变大,相对于缓慢变化的指令速度,编码器速度突增,因此根据速度突变时刻就对应着“间隙期”开始时刻;(2) At time t 1 , the encoder moves in the opposite direction. Due to the existence of backlash, the lead screw is separated from the nut at this time, and the lead screw is in a no-load state at this time, so the acceleration becomes larger, which is relative to the slowly changing command speed. , the speed of the encoder increases suddenly, so according to the sudden change of speed, it corresponds to the start time of the "gap period";

(3)随后编码器走过间隙长度后,“间隙期”结束,丝杠与螺母再次接触,但由于低速下摩擦力数值较大,为了克服摩擦力驱动负载运动,电流增大,因此在反向中电流变化率最大的位置就是t2(3) After the encoder walks through the gap length, the "gap period" ends, and the lead screw and the nut are in contact again, but due to the large friction force at low speed, in order to overcome the friction force to drive the load movement, the current increases, so in the reverse The position where the rate of change of the current in the middle direction is the largest is t 2 ;

(4)时间段t1~t2内编码器的位移增量绝对值就是反向间隙的大小。(4) The absolute value of the displacement increment of the encoder in the time period t 1 to t 2 is the size of the backlash.

本发明通过获得指令速度信号中指令速度过零的时刻t0,及时刻t0后与其间隔为预设时长tlast的时刻t3,由此能够确定反向数据段,即时间段t0~t3,通过合理设定预设时长tlast的值,可以保证反向间隙发生的整个过程都包含在所确定的时间段t0~t3内,因此,本发明利用波动较小的指令数据就能准确找到反向数据段,进而能够在时间段t0~t3内确定反向间隙发生的具体时间段,由此能够缩小目标范围,有效降低辨识参数不准确的问题,提高辨识精度。 The present invention can determine the reverse data segment, that is , the time segment t 0 ~ t 3 , by reasonably setting the value of the preset time length t last , it can be ensured that the entire process of the occurrence of the backlash is included in the determined time period t 0 to t 3 . Therefore, the present invention utilizes the instruction data with less fluctuation The reverse data segment can be accurately found, and the specific time period in which the reverse gap occurs can be determined within the time period t 0 to t 3 , thereby narrowing the target range, effectively reducing the problem of inaccurate identification parameters, and improving the identification accuracy.

本发明仅需从伺服中提取机床的响应数据,无需借助光栅尺等其他测量工具即可完成反向间隙的辨识,并且响应数据的提取不会影响数控机床的正常运行,因此,本发明可以实现对不具有光栅尺等测量设备的半闭环控制机床实现动态反向间隙辨识。The invention only needs to extract the response data of the machine tool from the servo, and can complete the identification of the backlash without the aid of other measuring tools such as a grating ruler, and the extraction of the response data will not affect the normal operation of the CNC machine tool. Therefore, the invention can realize Dynamic backlash identification is realized for semi-closed-loop control machine tools without measuring equipment such as grating rulers.

进一步地,

Figure GDA0003552309050000041
further,
Figure GDA0003552309050000041

其中,T表示数控机床的轨迹周期。Among them, T represents the trajectory period of the CNC machine tool.

实验表明,反向间隙的持续时长不会超过轨迹周期T的1/20,本发明将反向间隙的持续时长设置为轨迹周期的1/20,能够较为准确地确定反向数据段,在保证辨识精度的同时,能够有效加快辨识速度。Experiments show that the duration of the backlash will not exceed 1/20 of the track period T. The present invention sets the duration of the backlash to 1/20 of the track period, so that the reverse data segment can be determined more accurately. At the same time, it can effectively speed up the identification speed.

进一步地,指令速度信号中指令速度过零的时刻t0的判据为:Further, the criterion for the time t 0 when the command speed crosses zero in the command speed signal is:

vc(t0)*vc(t0+1)<0;v c (t 0 )*v c (t 0 +1)<0;

或者,vc(t0)*vc(t0+2)<0且vc(t0+1)=0。Alternatively, vc (t 0 )* vc (t 0 +2)<0 and vc (t 0 +1)=0.

通过上述判据能够准确判断指令速度信号中指令速度过零的时刻t0,即反向数据段的开始时刻,有利于准确判定反向数据段。The above criterion can accurately determine the time t 0 at which the command speed crosses zero in the command speed signal, that is, the start time of the reverse data segment, which is beneficial to accurately determine the reverse data segment.

进一步地,电流信号I(t)在时间段t0~t3中的突变时刻t2,其计算方法如下:Further, the calculation method of the sudden change time t 2 of the current signal I(t) in the time period t 0 to t 3 is as follows:

对电流信号I(t)进行低通滤波后微分,得到信号dIlow(t);The current signal I(t) is low-pass filtered and differentiated to obtain the signal dI low (t);

找到信号dIlow(t)在时间段t0~t3中的极值时刻,即得到电流信号I(t)在时间段t0~t3中的突变时刻t2Find the extreme value moment of the signal dI low (t) in the time period t 0 to t 3 , that is, obtain the sudden change moment t 2 of the current signal I(t) in the time period t 0 to t 3 .

由于机床运行的时候,有振动、电磁干扰等高频信号的干扰,导致直接采集的电流信号比较杂乱,本发明在计算电流信号的突变时刻时,先对其进行低通滤波,能够有效滤除干扰信号,准确计算出电流信号的突变时刻,即反向间隙的结束时刻。Due to the interference of high-frequency signals such as vibration and electromagnetic interference when the machine tool is running, the directly collected current signal is relatively cluttered. Interference signal, accurately calculate the sudden change moment of the current signal, that is, the end moment of the backlash.

进一步地,本发明提供的基于数控机床响应数据的反向间隙辨识方法,还包括:对所辨识得到的反向间隙进行补偿。Further, the method for identifying the backlash based on the response data of the numerically controlled machine tool provided by the present invention further comprises: compensating the backlash obtained by the identification.

本发明在准确辨识反向间隙的机床上,对所辨识得到的反向间隙进行补偿,能够有效提高数控机床的加工精度。The invention compensates the recognized backlash on the machine tool that accurately recognizes the backlash, and can effectively improve the machining accuracy of the numerically controlled machine tool.

按照本发明的另一个方面,提供了一种基于数控机床响应数据的反向间隙辨识装置,包括:数据提取模块、反向数据段标记模块、间隙期识别模块以及反向间隙辨识模块;According to another aspect of the present invention, a backlash identification device based on response data of a numerically controlled machine tool is provided, comprising: a data extraction module, a reverse data segment marking module, a gap period identification module and a backlash identification module;

数据提取模块,用于提取数控机床在执行反向指令时在目标水平进给轴产生的指令速度信号vc(t)、电流信号I(t)、编码器位移信号pe(t)以及编码器速度信号ve(t);The data extraction module is used to extract the command speed signal v c (t), the current signal I (t), the encoder displacement signal p e (t) and the code generated on the target horizontal feed axis when the CNC machine tool executes the reverse command speed signal v e (t);

反向数据段标记模块,用于获得指令速度信号中指令速度过零的时刻t0,及时刻t0后与其间隔为预设时长tlast的时刻t3The reverse data segment marking module is used to obtain the time t 0 at which the command speed crosses zero in the command speed signal, and the time t 3 after the time t 0 which is separated by a preset time length t last ;

间隙期识别模块,将编码器速度信号ve(t)中相对于指令速度信号vc(t)的时间延迟量ei消除后,得到同步后的指令速度信号vc(t-ei),并按照ev(t)=vc(t-ei)-ve(t)计算速度差值ev(t);间隙期识别模块,还用于分别计算速度差值ev(t)在时间段t0~t3中的突变时刻t1和电流信号I(t)在时间段t0~t3中的突变时刻t2The gap period identification module removes the time delay e i relative to the command speed signal v c (t) in the encoder speed signal v e (t) to obtain the synchronized command speed signal v c (te i ), and Calculate the speed difference e v (t) according to e v (t)= vc (te i )-ve (t); the gap period identification module is also used to calculate the speed difference e v (t) in the time period respectively the sudden change time t 1 in the period t 0 to t 3 and the sudden change time t 2 of the current signal I(t) in the time period t 0 to t 3 ;

反向间隙辨识模块,用于计算编码器位移信号pe(t)在时间段t1~t2产生的位移增量,并将其绝对值辨识为反向间隙。The backlash identification module is used to calculate the displacement increment generated by the encoder displacement signal p e (t) in the time period t 1 to t 2 , and identify its absolute value as the backlash.

本发明提供的基于数控机床响应数据的反向间隙辨识装置,还包括:反向间隙补偿模块;The backlash identification device based on the response data of the numerically controlled machine tool provided by the present invention further comprises: a backlash compensation module;

反向间隙补偿模块,用于对反向间隙辨识模块辨识得到的反向间隙进行补偿。The backlash compensation module is used to compensate the backlash identified by the backlash identification module.

按照本发明的又一个方面,提供了一种计算机可读存储介质,包括存储的计算机程序;计算机程序被处理器执行时,控制计算机可读存储介质所在设备执行本发明提供的基于数控机床响应数据的反向间隙辨识方法。According to another aspect of the present invention, a computer-readable storage medium is provided, including a stored computer program; when the computer program is executed by a processor, the device where the computer-readable storage medium is located is controlled to execute the CNC machine tool-based response data provided by the present invention backlash identification method.

总体而言,通过本发明所构思的以上技术方案,能够取得以下有益效果:In general, through the above technical solutions conceived by the present invention, the following beneficial effects can be achieved:

本发明提供的基于数控机床响应数据的反向间隙辨识方法及装置,首先识别出反向间隙数据段,其开始时刻为指令速度过程的时刻,其结束时刻为开始时刻后经过预设时长的时刻;进一步在反向间隙数据段中,辨识出“间隙期”的开始时刻和结束时刻,其中,开始时刻是反向间隙数据段内速度突变的时刻,结束时刻是电流信号突变的时刻;最终,将“间隙期”的开始时刻和结束时刻间,数控机床的编码器的位移增量辨识为反向间隙。由此能够基于数控系统在加工控制过程中,每一个控制周期内机床的响应数据与机床状态有密切的联系的技术原理,结合反向间隙产生的具体原理,完成对反向间隙的辨识,并提高辨识精度;由于本发明仅需从伺服中提取机床的响应数据,无需借助光栅尺等其他测量工具即可完成反向间隙的辨识,也不会影响数控机床的正常运行,因此,本发明可以实现对不具有光栅尺等测量设备的半闭环控制机床实现动态反向间隙辨识。The backlash identification method and device based on the response data of the numerical control machine tool provided by the present invention firstly identifies the backlash data segment, the start time is the time of the command speed process, and the end time is the time after the start time after a preset time period ; Further, in the back gap data segment, identify the start time and end time of the "gap period", wherein the start time is the moment of sudden change of speed in the back gap data segment, and the end time is the moment of sudden change of the current signal; finally, The displacement increment of the encoder of the CNC machine tool is identified as the backlash between the start time and the end time of the "gap period". In this way, based on the technical principle that the response data of the machine tool in each control cycle is closely related to the state of the machine tool during the machining control process of the numerical control system, combined with the specific principle of the backlash generation, the identification of the backlash can be completed, and the backlash can be identified. Improve the identification accuracy; because the present invention only needs to extract the response data of the machine tool from the servo, and can complete the identification of the backlash without the aid of other measuring tools such as a grating ruler, and will not affect the normal operation of the CNC machine tool. Therefore, the present invention can Realize dynamic backlash identification for semi-closed-loop control machine tools without measuring equipment such as grating rulers.

附图说明Description of drawings

图1为本发明实施例提供的基于数控机床响应数据的反向间隙辨识方法流程图;1 is a flowchart of a method for identifying backlash based on response data of a numerically controlled machine tool provided by an embodiment of the present invention;

图2为现有的宝鸡机床机械进给结构示意图;2 is a schematic diagram of the mechanical feed structure of the existing Baoji machine tool;

图3为现有的宝鸡机床控制框图;Fig. 3 is the control block diagram of the existing Baoji machine tool;

图4为本发明实施例提供的反向间隙计算示意图。FIG. 4 is a schematic diagram of backlash calculation according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

在本发明中,本发明及附图中的术语“第一”、“第二”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。In the present invention, the terms "first", "second" and the like (if present) in the present invention and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

为了解决现有的数控机床反向间隙辨识方法精度不高,且无法实现对半闭环控制机床实现动态反向间隙辨识的技术问题,本发明提供了一种基于数控机床响应数据的反向间隙辨识方法及装置,其整体思路在于:直接利用数控机床的响应数据进行辨识,首先识别出反向间隙数据段,其开始时刻为指令速度过程的时刻,其结束时刻为开始时刻后经过预设时长的时刻;进一步在反向间隙数据段中,辨识出“间隙期”的开始时刻和结束时刻,其中,开始时刻是反向间隙数据段内速度突变的时刻,结束时刻是电流信号突变的时刻;最终,将“间隙期”的开始时刻和结束时刻间,数控机床的编码器的位移增量辨识为反向间隙;由此提高反向间隙的辨识精度,避免依赖于光栅尺等其他测量工具,也避免会影响数控机床的正常运行,从而将对半闭环控制机床实现动态反向间隙辨识。In order to solve the technical problems that the existing method for backlash identification of CNC machine tools is not high in accuracy and cannot realize dynamic backlash identification for semi-closed-loop control machine tools, the present invention provides a backlash identification based on response data of CNC machine tools. The method and device, the overall idea of which is as follows: directly using the response data of the numerical control machine tool for identification, firstly identifying the backlash data segment, the start time of which is the time of the command speed process, and the end time of which is the preset time after the start time. time; further in the back gap data segment, identify the start time and end time of the "gap period", wherein the start time is the moment of sudden change of speed in the back gap data segment, and the end time is the time of sudden change of current signal; finally , identify the displacement increment of the encoder of the CNC machine tool as the reverse gap between the start and end moments of the "gap period"; thus improve the identification accuracy of the reverse gap, avoid relying on other measuring tools such as grating rulers, and also Avoid affecting the normal operation of the CNC machine tool, so as to realize the dynamic backlash identification for the semi-closed-loop control machine tool.

以下为实施例。The following are examples.

实施例1:Example 1:

一种基于数控机床响应数据的反向间隙辨识方法,如图1所示,包括:A backlash identification method based on response data of CNC machine tools, as shown in Figure 1, includes:

提取数控机床在执行反向指令时在目标水平进给轴产生的指令速度信号vc(t)、电流信号I(t)、编码器位移信号pe(t)以及编码器速度信号ve(t),获得指令速度信号中指令速度过零的时刻t0,及时刻t0后与其间隔为预设时长tlast的时刻t3;反向指令是指机床数控系统发出的与上一控制周期运动方向相反的指令脉冲信号;在实际应用中,目标水平进给轴可以是水平进给x轴或水平进给y轴,每一个水平进给轴方向的反向间隙辨识方法相同,不失一般性地,本实施例中,目标水平进给轴具体为水平进给x轴;数控机床的每一个进给方向上,都有配套的编码器和传感器,容易理解的是,在对目标水平进给轴进行反向间隙辨识时,响应数据均采集自对应进给方向上的编码器和传感器;Extract the command speed signal v c (t), the current signal I (t), the encoder displacement signal p e (t) and the encoder speed signal v e ( t), obtain the time t 0 when the command speed crosses zero in the command speed signal, and the time t 3 after the time t 0 and the interval t last by the preset time; Command pulse signal with opposite movement direction; in practical application, the target horizontal feed axis can be horizontal feed x-axis or horizontal feed y-axis, and the backlash identification method in the direction of each horizontal feed axis is the same, without loss of generality Naturally, in this embodiment, the target horizontal feed axis is specifically the horizontal feed x-axis; in each feed direction of the CNC machine tool, there are matching encoders and sensors. When backlash identification is performed for the axis, the response data are collected from the encoder and sensor in the corresponding feed direction;

将编码器速度信号ve(t)中相对于指令速度信号vc(t)的时间延迟量ei消除后,得到同步后的指令速度信号vc(t-ei),并按照ev(t)=vc(t-ei)-ve(t)计算速度差值ev(t);分别计算速度差值ev(t)在时间段t0~t3中的突变时刻t1和电流信号I(t)在时间段t0~t3中的突变时刻t2After eliminating the time delay e i relative to the command speed signal v c (t) in the encoder speed signal v e (t), the synchronized command speed signal v c (te i ) is obtained, and according to e v (t )=v c (te i )-v e (t) to calculate the speed difference e v (t); respectively calculate the sudden change in time t 1 and the current of the speed difference e v (t) in the time period t 0 to t 3 the sudden change time t 2 of the signal I(t) in the time period t 0 to t 3 ;

计算编码器位移信号pe(t)在时间段t1~t2产生的位移增量,并将其绝对值辨识为反向间隙;Calculate the displacement increment generated by the encoder displacement signal p e (t) in the time period t 1 ~ t 2 , and identify its absolute value as the backlash;

机床在实际运行中,在反向运动处会有明显的非线性的跟随误差,仅仅靠PID控制是难以消除这些跟随误差,而造成该非线性跟随误差的主要因素是反向间隙与摩擦力。机械间隙存在于丝杠和螺母之间,在反向过程开始之前,丝杠贴紧螺母运动。本发明进行反向间隙识别的技术原理如下:In the actual operation of the machine tool, there will be obvious nonlinear following errors in the reverse motion. It is difficult to eliminate these following errors only by PID control. The main factors that cause the nonlinear following errors are the backlash and friction. Mechanical play exists between the lead screw and the nut, and the lead screw moves against the nut before the reverse process begins. The technical principle that the present invention carries out backlash identification is as follows:

(1)指令速度为零的时刻,反向过程开始,由于指令响应的滞后性,使得编码器反向时刻延迟至t1时刻;(1) When the command speed is zero, the reverse process starts. Due to the hysteresis of the command response, the reverse time of the encoder is delayed to time t 1 ;

(2)t1时刻,编码器朝反向运动,由于反向间隙的存在,此时丝杠与螺母分离,丝杠此时处于无负载状态,因此加速度变大,相对于缓慢变化的指令速度,编码器速度突增,因此根据速度突变时刻就对应着“间隙期”开始时刻;(2) At time t 1 , the encoder moves in the opposite direction. Due to the existence of backlash, the lead screw is separated from the nut at this time, and the lead screw is in a no-load state at this time, so the acceleration becomes larger, which is relative to the slowly changing command speed. , the speed of the encoder increases suddenly, so according to the sudden change of speed, it corresponds to the start time of the "gap period";

(3)随后编码器走过间隙长度后,“间隙期”结束,丝杠与螺母再次接触,但由于低速下摩擦力数值较大,为了克服摩擦力驱动负载运动,电流增大,因此在反向中电流变化率最大的位置就是t2(3) After the encoder walks through the gap length, the "gap period" ends, and the lead screw and the nut are in contact again, but due to the large friction force at low speed, in order to overcome the friction force to drive the load movement, the current increases, so in the reverse The position where the rate of change of the current in the middle direction is the largest is t 2 ;

(4)时间段t1~t2内编码器的位移增量绝对值就是反向间隙的大小。(4) The absolute value of the displacement increment of the encoder in the time period t 1 to t 2 is the size of the backlash.

本发明通过获得指令速度信号中指令速度过零的时刻t0,及时刻t0后与其间隔为预设时长tlast的时刻t3,由此能够确定反向数据段,即时间段t0~t3,通过合理设定预设时长tlast的值,可以保证反向间隙发生的整个过程都包含在所确定的时间段t0~t3内,在实际应用中, The present invention can determine the reverse data segment, that is , the time segment t 0 ~ t 3 , by reasonably setting the value of the preset duration t last , it can be ensured that the entire process of backlash occurrence is included in the determined time period t 0 to t 3 . In practical applications,

本实施例中,

Figure GDA0003552309050000091
In this embodiment,
Figure GDA0003552309050000091

其中,T表示数控机床的轨迹周期。Among them, T represents the trajectory period of the CNC machine tool.

实验表明,反向间隙的持续时长不会超过轨迹周期T的1/20,本实用新型将反向间隙的持续时长设置为轨迹周期的1/20,能够较为准确地确定反向数据段,在保证辨识精度的同时,能够有效加快辨识速度;应当说明的是,此处仅为本发明一种可选的实施方式,不应理解为对本发明唯一的限定,在实际应用中,对于实际的数控机床,在已知其反向间隙的持续时长的情况下,也可直接设置tlast的的取值。Experiments show that the duration of the backlash will not exceed 1/20 of the track period T. The utility model sets the duration of the backlash to 1/20 of the track period, which can more accurately determine the reverse data segment. While ensuring the identification accuracy, it can effectively speed up the identification speed; it should be noted that this is only an optional implementation of the present invention, and should not be construed as the only limitation of the present invention. In practical applications, for the actual numerical control The machine tool can also directly set the value of t last when the duration of its backlash is known.

作为一种可选的实施方式,本实施例中,指令速度信号中指令速度过零的时刻t0的判据为:As an optional implementation manner, in this embodiment, the criterion for the time t 0 when the commanded speed crosses zero in the commanded speed signal is:

vc(t0)*vc(t0+1)<0;v c (t 0 )*v c (t 0 +1)<0;

或者,vc(t0)*vc(t0+2)<0且vc(t0+1)=0。Alternatively, vc (t 0 )* vc (t 0 +2)<0 and vc (t 0 +1)=0.

通过上述判据能够准确判断指令速度信号中指令速度过零的时刻t0,即反向数据段的开始时刻,有利于准确判定反向数据段。The above criterion can accurately determine the time t 0 at which the command speed crosses zero in the command speed signal, that is, the start time of the reverse data segment, which is beneficial to accurately determine the reverse data segment.

作为一种可选的实施方式,本实施例中,电流信号I(t)在时间段t0~t3中的突变时刻t2,其计算方法如下:As an optional implementation manner, in this embodiment, the calculation method of the sudden change time t 2 of the current signal I(t) in the time period t 0 to t 3 is as follows:

对电流信号I(t)进行低通滤波后微分,得到信号dIlow(t);The current signal I(t) is low-pass filtered and differentiated to obtain the signal dI low (t);

找到信号dIlow(t)在时间段t0~t3中的极值时刻,即得到电流信号I(t)在时间段t0~t3中的突变时刻t2Find the extreme value moment of the signal dI low (t) in the time period t 0 to t 3 , that is, obtain the sudden change moment t 2 of the current signal I(t) in the time period t 0 to t 3 .

由于机床运行的时候,有振动、电磁干扰等高频信号的干扰,导致直接采集的电流信号比较杂乱,本实用新型在计算电流信号的突变时刻时,先对其进行低通滤波,能够有效滤除干扰信号,准确计算出电流信号的突变时刻,即反向间隙的结束时刻。Due to the interference of high-frequency signals such as vibration and electromagnetic interference when the machine tool is running, the directly collected current signal is relatively cluttered. In addition to the interference signal, the moment of sudden change of the current signal, that is, the end moment of the backlash, is accurately calculated.

本实施例提供的基于数控机床响应数据的反向间隙辨识方法,还包括:对所辨识得到的反向间隙进行补偿。The method for identifying the backlash based on the response data of the numerical control machine tool provided in this embodiment further includes: compensating the backlash obtained by the identification.

本实用新型在准确辨识反向间隙的机床上,对所辨识得到的反向间隙进行补偿,能够有效提高数控机床的加工精度。The utility model compensates the recognized backlash on the machine tool that accurately recognizes the backlash, and can effectively improve the machining accuracy of the numerically controlled machine tool.

实施例2:Example 2:

一种基于数控机床响应数据的反向间隙辨识装置,包括:数据提取模块、反向数据段标记模块、间隙期识别模块、反向间隙辨识模块和反向间隙补偿模块;A backlash identification device based on response data of a numerically controlled machine tool, comprising: a data extraction module, a reverse data segment marking module, a gap period identification module, a backlash identification module and a backlash compensation module;

数据提取模块,用于提取数控机床在执行反向指令时在目标水平进给轴产生的指令速度信号vc(t)、电流信号I(t)、编码器位移信号pe(t)以及编码器速度信号ve(t);The data extraction module is used to extract the command speed signal v c (t), the current signal I (t), the encoder displacement signal p e (t) and the code generated on the target horizontal feed axis when the CNC machine tool executes the reverse command speed signal v e (t);

反向数据段标记模块,用于获得指令速度信号中指令速度过零的时刻t0,及时刻t0后与其间隔为预设时长tlast的时刻t3The reverse data segment marking module is used to obtain the time t 0 at which the command speed crosses zero in the command speed signal, and the time t 3 after the time t 0 which is separated by a preset time length t last ;

间隙期识别模块,将编码器速度信号ve(t)中相对于指令速度信号vc(t)的时间延迟量ei消除后,得到同步后的指令速度信号vc(t-ei),并按照ev(t)=vc(t-ei)-ve(t)计算速度差值ev(t);间隙期识别模块,还用于分别计算速度差值ev(t)在时间段t0~t3中的突变时刻t1和电流信号I(t)在时间段t0~t3中的突变时刻t2The gap period identification module removes the time delay e i relative to the command speed signal v c (t) in the encoder speed signal v e (t) to obtain the synchronized command speed signal v c (te i ), and Calculate the speed difference e v (t) according to e v (t)= vc (te i )-ve (t); the gap period identification module is also used to calculate the speed difference e v (t) in the time period respectively the sudden change time t 1 in the period t 0 to t 3 and the sudden change time t 2 of the current signal I(t) in the time period t 0 to t 3 ;

反向间隙辨识模块,用于计算编码器位移信号pe(t)在时间段t1~t2产生的位移增量,并将其绝对值辨识为反向间隙;The backlash identification module is used to calculate the displacement increment generated by the encoder displacement signal p e (t) in the time period t 1 to t 2 , and identify its absolute value as the backlash;

反向间隙补偿模块,用于对反向间隙辨识模块辨识得到的反向间隙进行补偿;The backlash compensation module is used to compensate the backlash identified by the backlash identification module;

本实施例中,各模块的具体实施方式可参考上述方法实施例中的描述,在此将不作复述。In this embodiment, for the specific implementation of each module, reference may be made to the descriptions in the foregoing method embodiments, which will not be repeated here.

实施例3:Example 3:

一种计算机可读存储介质,包括存储的计算机程序;计算机程序被处理器执行时,控制计算机可读存储介质所在设备执行上述实施例1提供的基于数控机床响应数据的反向间隙辨识方法。A computer-readable storage medium includes a stored computer program; when the computer program is executed by a processor, the device where the computer-readable storage medium is located is controlled to execute the method for backlash identification based on the response data of a numerically controlled machine tool provided in Embodiment 1 above.

以下以上述实施例在BM8-H宝鸡立式加工中心中的应用为例,对本发明所能取得的有益效果做进一步的说明。BM8-H宝鸡数控机床的伺服进给系统结构如图2所示,机床采用滚珠丝杠传动系统,滚珠丝杠通过螺母将旋转运动转化为工作台的直线运动;如图3所示,机床采用半闭环控制,位置环的反馈信号来自与电机增量式编码器测量的丝杠输入端的旋转位移,速度环的反馈来自于位置环反馈的微分值,电流环的反馈来自于驱动电机的电流;为了对比本发明的辨识精度,在该机床x、y轴工作台上均安装了光栅尺;数控系统为华中8型国产数控系统。The beneficial effects that can be obtained by the present invention will be further described below by taking the application of the above embodiment in the BM8-H Baoji vertical machining center as an example. The structure of the servo feed system of the BM8-H Baoji CNC machine tool is shown in Figure 2. The machine tool adopts a ball screw drive system, and the ball screw converts the rotary motion into the linear motion of the worktable through the nut; as shown in Figure 3, the machine tool adopts Semi-closed loop control, the feedback signal of the position loop comes from the rotational displacement of the screw input measured by the incremental encoder of the motor, the feedback of the speed loop comes from the differential value of the feedback of the position loop, and the feedback of the current loop comes from the current of the driving motor; In order to compare the identification accuracy of the present invention, grating rulers are installed on the x-axis and y-axis table of the machine tool; the numerical control system is the Huazhong 8 domestic numerical control system.

对于进给X轴,具体的辨识过程如下:For the feed X axis, the specific identification process is as follows:

S1:机床执行F3000的位置三角波指令信号,机床在正向和反向运动;S1: The machine tool executes the position triangular wave command signal of F3000, and the machine tool moves in the forward and reverse directions;

S2:设置机床数据采集软件通道,采集进给X轴的指令速度信号vc(t),电流信号I(t)、编码器位移pe(t)、编码器速度信号ve(t);S2: Set the machine data acquisition software channel to collect the command speed signal vc(t) of the feed X axis, the current signal I(t), the encoder displacement p e (t), and the encoder speed signal v e (t);

S3:反向过程自动标记:根据指令速度过零点判据:vc(t0)*vc(t0+1)<0或者vc(t0)*vc(t0+2)<0且vc(t0+1)=0,准确找出指令速度过零点t0=3359ms,根据经验可知反向时长不会超过轨迹周期的1/20,因此令反向时长

Figure GDA0003552309050000121
因此t3=3547ms,间隙期区间为[3359,3547];S3: Reverse process automatic marking: according to the zero-crossing criterion of command speed: v c (t 0 )*v c (t 0 +1)<0 or v c (t 0 )*v c (t 0 +2)< 0 and v c (t 0 +1)=0, accurately find out the command speed zero-crossing point t 0 =3359ms. According to experience, the reverse duration will not exceed 1/20 of the trajectory period, so let the reverse duration
Figure GDA0003552309050000121
Therefore, t 3 =3547ms, and the gap interval is [3359,3547];

S4:间隙期开始时刻t1和结束时刻t2的确定:基于采集的响应数据可知,编码器速度相对于指令速度时间延迟为ei=15ms,两者做差得到速度差值ev(t);在t0~t3中ev(t)对应的突变时刻就是t1=3382ms;将电流信号I(t)进行50Hz低通滤波后微分dIlow(t),在t0~t3中找到电流信号中的突变时刻,也就是dIlow(t)对应的极值时刻t2=3386ms;t1和t2对应编码器增量为1.5μm;光栅尺在F3000下测得的间隙值为1.6μm,辨识误差为6.7%;在同样速度下,其他不借助于光栅尺的辨识方法,辨识误差往往在20%以上,由此可知,本方明提出的辨识方法具有很高的辨识精度。S4: Determination of the start time t1 and the end time t2 of the gap period: based on the collected response data, it can be known that the time delay of the encoder speed relative to the command speed is e i =15ms, and the difference between the two is obtained to obtain the speed difference e v (t ); the sudden change time corresponding to e v (t) in t 0 ~ t 3 is t 1 =3382ms; the current signal I(t) is subjected to 50Hz low-pass filtering and then differentiated by dI low (t), at t 0 ~ t 3 Find the moment of sudden change in the current signal in is 1.6μm, and the identification error is 6.7%; at the same speed, other identification methods that do not rely on grating scales often have identification errors of more than 20%. It can be seen that the identification method proposed by Ben Fangming has high identification accuracy. .

上述所确定的反向数据段(即时间段t0~t3),以及在该时间段内间隙期的开始时刻t1和结束时刻t2的计算方法如图4所示。The above determined reverse data segment (ie time segment t 0 to t 3 ), and the calculation method of the start time t 1 and the end time t 2 of the gap period in this time segment are shown in FIG. 4 .

按照同样的方法,令数控机床在进给X轴执行F1000、F6000和F8000位置三角波指令信号;按照同样的方法,零数控机床在进给Y轴执行F1000、F3000、F6000和F8000位置三角波指令信号;基于上述实施例所提供的方法辨识的反向间隙,以及利用光栅尺直接测量的反向间隙如表1所示。根据表1所示的结果可知,在不同速度下,最大误差为仅为16%,由此可知,本发明所提供的上述基于数控机床响应数据的反向间隙辨识方法,具有较高的辨识精度。According to the same method, let the CNC machine tool execute the F1000, F6000 and F8000 position triangular wave command signals on the feed X axis; according to the same method, the zero CNC machine tool executes the F1000, F3000, F6000 and F8000 position triangle wave command signals on the feed Y axis; Table 1 shows the backlash identified based on the method provided in the above embodiment and the backlash measured directly by the grating ruler. According to the results shown in Table 1, at different speeds, the maximum error is only 16%. It can be seen that the above-mentioned backlash identification method based on the response data of the CNC machine tool provided by the present invention has high identification accuracy .

表1宝鸡机床在不同速度下的间隙辨识结果Table 1. Clearance identification results of Baoji machine tools at different speeds

Figure GDA0003552309050000122
Figure GDA0003552309050000122

本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。Those skilled in the art can easily understand that the above are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention, etc., All should be included within the protection scope of the present invention.

Claims (8)

1.一种基于数控机床响应数据的反向间隙辨识方法,其特征在于,包括:1. a backlash identification method based on CNC machine tool response data, is characterized in that, comprises: 提取所述数控机床在执行反向指令时在目标水平进给轴产生的指令速度信号vc(t)、电流信号I(t)、编码器位移信号pe(t)以及编码器速度信号ve(t),获得所述指令速度信号中指令速度过零的时刻t0,及所述时刻t0后与其间隔为预设时长tlast的时刻t3Extract the command speed signal v c (t), the current signal I (t), the encoder displacement signal p e (t) and the encoder speed signal v generated on the target horizontal feed axis when the numerical control machine tool executes the reverse command e (t), obtaining the time t 0 at which the command speed crosses zero in the command speed signal, and the time t 3 after the time t 0 and the interval between the time t 0 and the preset time length t last ; 将所述编码器速度信号ve(t)中相对于所述指令速度信号vc(t)的时间延迟量ei消除后,得到同步后的指令速度信号vc(t-ei),并按照ev(t)=vc(t-ei)-ve(t)计算速度差值ev(t);分别计算所述速度差值ev(t)在所述时间段t0~t3中的突变时刻t1和所述电流信号I(t)在所述时间段t0~t3中的突变时刻t2After the time delay amount e i of the encoder speed signal v e (t) relative to the command speed signal v c (t) is eliminated, the synchronized command speed signal v c (te i ) is obtained, and according to e v (t)= vc (te i )-ve (t) to calculate the speed difference e v (t); respectively calculate the speed difference e v (t) in the time period t 0 -t 3 the sudden change in time t 1 and the sudden change in time t 2 of the current signal I(t) in the time period t 0 to t 3 ; 计算所述编码器位移信号pe(t)在时间段t1~t2产生的位移增量,并将其绝对值辨识为反向间隙。The displacement increment generated by the encoder displacement signal p e (t) in the time period t 1 -t 2 is calculated, and the absolute value thereof is identified as the backlash. 2.如权利要求1所述的基于数控机床响应数据的反向间隙辨识方法,其特征在于,
Figure FDA0003552309040000011
2. the backlash identification method based on numerical control machine tool response data as claimed in claim 1, is characterized in that,
Figure FDA0003552309040000011
其中,T表示所述数控机床的轨迹周期。Wherein, T represents the track period of the CNC machine tool.
3.如权利要求1所述的基于数控机床响应数据的反向间隙辨识方法,其特征在于,所述指令速度信号中指令速度过零的时刻t0的判据为:3. the backlash identification method based on numerical control machine tool response data as claimed in claim 1 is characterized in that, the criterion of the time t 0 when the command speed crosses zero in the command speed signal is: vc(t0)*vc(t0+1)<0;v c (t 0 )*v c (t 0 +1)<0; 或者,vc(t0)*vc(t0+2)<0且vc(t0+1)=0。Alternatively, vc (t 0 )* vc (t 0 +2)<0 and vc (t 0 +1)=0. 4.如权利要求1所述的基于数控机床响应数据的反向间隙辨识方法,其特征在于,所述电流信号I(t)在所述时间段t0~t3中的突变时刻t2,其计算方法如下:4 . The method for identifying backlash based on the response data of a numerically controlled machine tool according to claim 1 , wherein the current signal I(t) is at a sudden change time t 2 in the time period t 0 to t 3 , Its calculation method is as follows: 对所述电流信号I(t)进行低通滤波后微分,得到信号dIlow(t);The current signal I(t) is subjected to low-pass filtering and then differentiated to obtain a signal dI low (t); 找到所述信号dIlow(t)在所述时间段t0~t3中的极值时刻,即得到所述电流信号I(t)在所述时间段t0~t3中的突变时刻t2Find the extreme value moment of the signal dI low (t) in the time period t 0 -t 3 , that is, obtain the sudden change moment t of the current signal I(t) in the time period t 0 -t 3 2 . 5.如权利要求1~4任一项所述的基于数控机床响应数据的反向间隙辨识方法,其特征在于,还包括:对所辨识得到的反向间隙进行补偿。5 . The method for identifying backlash based on the response data of a numerically controlled machine tool according to claim 1 , further comprising: compensating for the backlash identified. 6 . 6.一种基于数控机床响应数据的反向间隙辨识装置,其特征在于,包括:数据提取模块、反向数据段标记模块、间隙期识别模块以及反向间隙辨识模块;6. A backlash identification device based on CNC machine tool response data, characterized in that it comprises: a data extraction module, a reverse data segment marking module, a gap period identification module and a backlash identification module; 所述数据提取模块,用于提取所述数控机床在执行反向指令时在目标水平进给轴产生的指令速度信号vc(t)、电流信号I(t)、编码器位移信号pe(t)以及编码器速度信号ve(t);The data extraction module is used to extract the command speed signal v c (t), the current signal I (t), the encoder displacement signal p e ( t) and the encoder speed signal ve (t); 所述反向数据段标记模块,用于获得所述指令速度信号中指令速度过零的时刻t0,及所述时刻t0后与其间隔为预设时长tlast的时刻t3The reverse data segment marking module is used to obtain the time t 0 at which the command speed crosses zero in the command speed signal, and the time t 3 after the time t 0 that is separated by a preset time length t last ; 所述间隙期识别模块,将所述编码器速度信号ve(t)中相对于所述指令速度信号vc(t)的时间延迟量ei消除后,得到同步后的指令速度信号vc(t-ei),并按照ev(t)=vc(t-ei)-ve(t)计算速度差值ev(t);所述间隙期识别模块,还用于分别计算所述速度差值ev(t)在所述时间段t0~t3中的突变时刻t1和所述电流信号I(t)在所述时间段t0~t3中的突变时刻t2The gap period identification module, after eliminating the time delay amount e i relative to the command speed signal v c (t) in the encoder speed signal v e (t), obtains the synchronized command speed signal v c (te i ), and calculate the speed difference e v (t) according to e v (t)= vc (te i )-ve (t); the gap identification module is also used to calculate the speed respectively the sudden change time t1 of the difference e v (t) in the time period t 0 to t 3 and the sudden change time t 2 of the current signal I(t) in the time period t 0 to t 3 ; 所述反向间隙辨识模块,用于计算所述编码器位移信号pe(t)在时间段t1~t2产生的位移增量,并将其绝对值辨识为反向间隙。The backlash identification module is configured to calculate the displacement increment generated by the encoder displacement signal p e (t) in the time period t 1 -t 2 , and identify its absolute value as the backlash. 7.如权利要求6所述的基于数控机床响应数据的反向间隙辨识装置,其特征在于,还包括:反向间隙补偿模块;7. The backlash identification device based on the response data of a numerically controlled machine tool as claimed in claim 6, further comprising: a backlash compensation module; 所述反向间隙补偿模块,用于对所述反向间隙辨识模块辨识得到的反向间隙进行补偿。The backlash compensation module is used for compensating the backlash identified by the backlash identification module. 8.一种计算机可读存储介质,其特征在于,包括存储的计算机程序;所述计算机程序被处理器执行时,控制所述计算机可读存储介质所在设备执行权利要求1-5任一项所述的基于数控机床响应数据的反向间隙辨识方法。8. A computer-readable storage medium, characterized in that it comprises a stored computer program; when the computer program is executed by a processor, the device where the computer-readable storage medium is located is controlled to perform the method described in any one of claims 1-5. The backlash identification method based on the response data of CNC machine tools.
CN202110325229.2A 2021-03-26 2021-03-26 Method and device for identifying reverse gap based on response data of numerical control machine tool Active CN113093647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110325229.2A CN113093647B (en) 2021-03-26 2021-03-26 Method and device for identifying reverse gap based on response data of numerical control machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110325229.2A CN113093647B (en) 2021-03-26 2021-03-26 Method and device for identifying reverse gap based on response data of numerical control machine tool

Publications (2)

Publication Number Publication Date
CN113093647A CN113093647A (en) 2021-07-09
CN113093647B true CN113093647B (en) 2022-05-20

Family

ID=76668202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110325229.2A Active CN113093647B (en) 2021-03-26 2021-03-26 Method and device for identifying reverse gap based on response data of numerical control machine tool

Country Status (1)

Country Link
CN (1) CN113093647B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104950811A (en) * 2015-06-16 2015-09-30 华中科技大学 Method for fast judging assembling quality of numerically-controlled machine tool feeding system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3164580B2 (en) * 1990-09-27 2001-05-08 豊田工機株式会社 Digital servo controller
JP3478946B2 (en) * 1997-07-02 2003-12-15 東芝機械株式会社 Servo adjustment method and device
JP4578732B2 (en) * 2001-08-13 2010-11-10 株式会社森精機製作所 Machine tool feed system controller
US9645968B2 (en) * 2006-09-14 2017-05-09 Crown Equipment Corporation Multiple zone sensing for materials handling vehicles
CN101877567B (en) * 2009-04-29 2012-09-19 鸿富锦精密工业(深圳)有限公司 Motor speed command generating device and method
US8965691B1 (en) * 2012-10-05 2015-02-24 Google Inc. Position and direction determination using multiple single-channel encoders
JP2018031676A (en) * 2016-08-24 2018-03-01 公益財団法人鉄道総合技術研究所 Method for inspecting structural performance of railroad bridge
CN108907888B (en) * 2018-09-06 2021-02-02 西安科技大学 Method for predicting reversing error peak value of feeding system of numerical control machine under semi-closed loop control
CN112008490B (en) * 2020-07-29 2022-07-15 成都飞机工业(集团)有限责任公司 Method for detecting reverse clearance of numerical control machine tool of full closed-loop servo system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104950811A (en) * 2015-06-16 2015-09-30 华中科技大学 Method for fast judging assembling quality of numerically-controlled machine tool feeding system

Also Published As

Publication number Publication date
CN113093647A (en) 2021-07-09

Similar Documents

Publication Publication Date Title
CN102156033B (en) Measurement device and measurement method of torsional vibration modal of numerical control machine
Lee et al. Acceleration estimator for low-velocity and low-acceleration regions based on encoder position data
CN101226068B (en) Dynamic friction parameter test system and test method
CN102501141B (en) Numerical control machine main shaft site dynamic balance method based on built-in sensor
CN111765844B (en) Method for detecting dynamic error of grating ruler
CN103792888B (en) Vibration suppression controller based on feed system positions feedback signal
EP2299237A2 (en) Gantry stage orthogonality error measurement method and error compensation method
CN103753351A (en) Reverse gap monitoring method of numerical control machine tool of fully-closed loop servo system
CN108907888A (en) NC machine tool feed system reversing error peak value prediction technique under half-closed loop control
CN115473459A (en) Permanent magnet synchronous linear motor position detection method based on linear Hall
CN102122144B (en) Numerical control system for detecting cam contours
CN102937420B (en) Cam profile detection system
CN212300247U (en) Detection system for dynamic error of grating ruler
CN113093647B (en) Method and device for identifying reverse gap based on response data of numerical control machine tool
CN106527354B (en) Double-shaft synchronous motion control device and method based on feedback of tension and pressure sensor
CN202010918U (en) Measuring device for torsional vibration mode of numerical control machine
CN113798919B (en) Cutting force measuring method and device, electronic equipment and storage medium
CN102937419B (en) Cam profile detection system based on direct driving motor
CN108717287B (en) Prediction method of friction error peak value in feeding system of CNC machine tool under semi-closed-loop control mode
TWI481183B (en) Method and system for measuring motor parameter
CN203720602U (en) Vibration elimination controller based on position feedback signals of feeding system
CN110842644B (en) A monitoring method for contact stiffness degradation rate of machine tool moving parts based on numerical control load information
CN207301827U (en) A kind of double drive synchronized tracking rotary motion control device
CN212398999U (en) Digit control machine tool motion axle performance detection device
CN113146274B (en) Amplitude sensorless detection and control system and method for vibration-assisted cutting device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant