[go: up one dir, main page]

CN110134066B - Method, device, system and storage medium for compensating rotation speed of lathe workpiece - Google Patents

Method, device, system and storage medium for compensating rotation speed of lathe workpiece Download PDF

Info

Publication number
CN110134066B
CN110134066B CN201810135238.3A CN201810135238A CN110134066B CN 110134066 B CN110134066 B CN 110134066B CN 201810135238 A CN201810135238 A CN 201810135238A CN 110134066 B CN110134066 B CN 110134066B
Authority
CN
China
Prior art keywords
workpiece
drop compensation
compensation amount
drop
product
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
CN201810135238.3A
Other languages
Chinese (zh)
Other versions
CN110134066A (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.)
Siemens Corp
Original Assignee
Siemens Corp
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 Siemens Corp filed Critical Siemens Corp
Priority to CN201810135238.3A priority Critical patent/CN110134066B/en
Publication of CN110134066A publication Critical patent/CN110134066A/en
Application granted granted Critical
Publication of CN110134066B publication Critical patent/CN110134066B/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/404Numerical 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 compensation, e.g. for backlash, overshoot, tool offset, tool wear, temperature, machine construction errors, load, inertia
    • 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/35Nc in input of data, input till input file format
    • G05B2219/35408Calculate new position data from actual data to compensate for contour error

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Automatic Control Of Machine Tools (AREA)
  • Numerical Control (AREA)
  • Turning (AREA)

Abstract

本发明实施方式公开了一种车床工件旋转速度的补偿方法、装置、系统和存储介质。方法包括:读取刀具加工位置和工件实际旋转速度;基于所述刀具加工位置确定工件预定旋转速度设定值相关的第一跌落补偿量;基于所述第一跌落补偿量确定对应于所述工件实际旋转速度的第二跌落补偿量;基于所述第二跌落补偿量前馈补偿所述工件的旋转速度。本发明实施方式提前补偿工件旋转速度的跌落,从而提高加工精度。

Figure 201810135238

Embodiments of the present invention disclose a method, device, system and storage medium for compensating the rotational speed of a workpiece of a lathe. The method includes: reading the tool machining position and the actual rotation speed of the workpiece; determining a first drop compensation amount related to a preset rotation speed setting value of the workpiece based on the tool machining position; determining the workpiece corresponding to the workpiece based on the first drop compensation amount A second drop compensation amount for the actual rotational speed; feedforward compensation for the rotational speed of the workpiece based on the second drop compensation amount. The embodiments of the present invention compensate for the drop in the rotational speed of the workpiece in advance, thereby improving the machining accuracy.

Figure 201810135238

Description

车床工件旋转速度的补偿方法、装置、系统和存储介质Compensation method, device, system and storage medium for rotation speed of workpiece of lathe

技术领域technical field

本发明涉及车床控制技术领域,特别是涉及一种车床工件旋转速度的补偿方法、装置、系统和存储介质。The invention relates to the technical field of lathe control, in particular to a method, device, system and storage medium for compensating the rotation speed of a lathe workpiece.

背景技术Background technique

数控技术也叫计算机数控(CNC,Computerized Numerical Control)技术,它是采用计算机实现数字程序控制的技术。在数控技术中,利用预先存储的控制程序执行对设备的运动轨迹和外设的操作时序逻辑控制功能。由于采用计算机替代原先用硬件逻辑电路组成的数控装置,输入操作指令的存储、处理、运算、逻辑判断等各种控制机能的实现均可通过计算机软件来完成,处理生成的微观指令传送给伺服驱动装置驱动电机或液压执行元件带动设备运行。Numerical control technology is also called computer numerical control (CNC, Computerized Numerical Control) technology, which is a technology that uses a computer to realize digital program control. In the numerical control technology, the pre-stored control program is used to implement the sequential logic control function of the movement trajectory of the equipment and the operation of the peripherals. Since the computer is used to replace the numerical control device originally composed of hardware logic circuits, the realization of various control functions such as storage, processing, operation, and logical judgment of input operation instructions can be completed by computer software, and the microscopic instructions generated by processing are transmitted to the servo drive. The device drives the motor or hydraulic actuator to drive the equipment to run.

数控机床按照事先编制好的加工程序,自动地对工件进行加工。将工件的加工工艺路线、工艺参数、刀具的运动轨迹、位移量、切削参数以及辅助功能,按照数控机床规定的指令代码及程序格式编写成加工程序单,再把加工程序单中的内容记录在控制介质上,然后输入到数控机床的数控装置中,从而指挥数控机床对工件执行加工。The CNC machine tool automatically processes the workpiece according to the pre-programmed processing program. Write the machining process route, process parameters, tool motion trajectory, displacement, cutting parameters and auxiliary functions of the workpiece into a machining program list according to the instruction code and program format specified by the CNC machine tool, and then record the contents of the machining program list in the On the control medium, and then input into the numerical control device of the numerical control machine tool, so as to direct the numerical control machine tool to perform processing on the workpiece.

在现有技术中,当刀具接触数控车床上的工件进行螺纹等加工处理时,由于切削力的作用,主轴速度会跌落,并导致工件旋转速度跌落。然而,刀具与工件的运动关系是预定的,工件旋转速度跌落将影响工件的加工精度。In the prior art, when a tool contacts a workpiece on a CNC lathe for threading and other processing, due to the action of cutting force, the speed of the spindle will drop, resulting in a drop in the rotational speed of the workpiece. However, the motion relationship between the tool and the workpiece is predetermined, and the drop in the rotation speed of the workpiece will affect the machining accuracy of the workpiece.

发明内容SUMMARY OF THE INVENTION

本发明实施方式提出一种车床工件旋转速度的补偿方法、装置、系统和存储介质。The embodiments of the present invention provide a method, device, system and storage medium for compensating the rotational speed of a workpiece of a lathe.

本发明实施方式的技术方案如下:The technical scheme of the embodiment of the present invention is as follows:

车床工件旋转速度的补偿方法,包括:The compensation method for the rotation speed of the lathe workpiece, including:

读取刀具加工位置和工件实际旋转速度;Read the machining position of the tool and the actual rotation speed of the workpiece;

基于所述刀具加工位置确定与工件预定旋转速度设定值相关的第一跌落补偿量;determining a first drop compensation amount related to the preset value of the workpiece rotation speed based on the tool machining position;

基于所述第一跌落补偿量确定对应于所述工件实际旋转速度的第二跌落补偿量;determining a second drop compensation amount corresponding to the actual rotational speed of the workpiece based on the first drop compensation amount;

基于所述第二跌落补偿量前馈补偿所述工件的旋转速度。The rotational speed of the workpiece is feedforward compensated based on the second drop compensation amount.

可见,在本发明实施方式中,基于刀具加工位置提前补偿工件旋转速度的跌落,从而可以提高加工精度。It can be seen that, in the embodiment of the present invention, the drop of the rotation speed of the workpiece is compensated in advance based on the machining position of the tool, so that the machining accuracy can be improved.

在一个实施方式中,该方法还包括:建立跌落补偿量表,所述跌落补偿量表包含在工件预定旋转速度设定值时的刀具加工位置与跌落补偿量之间的对应关系;In one embodiment, the method further includes: establishing a drop compensation scale, the drop compensation scale including a corresponding relationship between the tool machining position and the drop compensation amount when the workpiece predetermined rotation speed is set;

所述基于所述刀具加工位置确定与工件预定旋转速度设定值相关的第一跌落补偿量包括:The determining of the first drop compensation amount related to the preset value of the workpiece rotation speed based on the machining position of the tool includes:

将所述刀具加工位置确定为检索项,利用所述检索项查询所述跌落补偿量表以确定对应于所述检索项的跌落补偿量;Determining the tool processing position as a retrieval item, and querying the drop compensation amount table by using the retrieval item to determine the drop compensation amount corresponding to the retrieval item;

将查询出的所述跌落补偿量确定为所述第一跌落补偿量。The queried drop compensation amount is determined as the first drop compensation amount.

因此,本发明实施方式中,利用刀具加工位置在跌落补偿量表中检索出第一跌落补偿量,可以快速查表确定第一跌落补偿量,提高了处理速度。Therefore, in the embodiment of the present invention, the first drop compensation amount is retrieved from the drop compensation amount table by using the machining position of the tool, and the first drop compensation amount can be quickly determined by looking up the table, which improves the processing speed.

在一个实施方式中,所述基于所述第一跌落补偿量确定对应于所述工件实际旋转速度的第二跌落补偿量包括:In one embodiment, the determining a second drop compensation amount corresponding to the actual rotational speed of the workpiece based on the first drop compensation amount includes:

确定补偿系数与所述工件预定旋转速度设定值的第一比值;确定所述第一比值与所述第一跌落补偿量的第一乘积;确定所述第一乘积与所述工件实际旋转速度的第二乘积,将所述第二乘积确定为所述第二跌落补偿量;或determining the first ratio of the compensation coefficient to the preset rotation speed setting value of the workpiece; determining the first product of the first ratio and the first drop compensation amount; determining the first product and the actual rotation speed of the workpiece The second product of , and determining the second product as the second drop compensation amount; or

确定所述工件预定旋转速度设定值与切削深度设定值的第三乘积,确定补偿系数与所述第三乘积的第二比值;确定所述第二比值与工件实际切削深度的第四乘积,确定所述第四乘积与所述第一跌落补偿量的第五乘积;确定所述第五乘积与所述工件实际旋转速度的第六乘积,将所述第六乘积确定为所述第二跌落补偿量。Determine the third product of the preset rotation speed setting value of the workpiece and the cutting depth setting value, determine the second ratio of the compensation coefficient and the third product; determine the fourth product of the second ratio and the actual cutting depth of the workpiece , determine the fifth product of the fourth product and the first drop compensation amount; determine the sixth product of the fifth product and the actual rotation speed of the workpiece, and determine the sixth product as the second Drop compensation amount.

因此,本发明实施方式中,基于第一跌落补偿量经过简单运算,可以确定出用于提前补偿工件旋转速度的跌落的第二跌落补偿量,提高了处理速度。Therefore, in the embodiment of the present invention, a second drop compensation amount for compensating for the drop of the workpiece rotation speed in advance can be determined through a simple calculation based on the first drop compensation amount, thereby improving the processing speed.

在一个实施方式中,所述补偿系数与所述工件的材料相关联,且所述补偿系数为可调的。In one embodiment, the compensation factor is associated with the material of the workpiece, and the compensation factor is adjustable.

在一个实施方式中,所述建立跌落补偿量表包括:In one embodiment, the establishing a fall compensation scale includes:

当进入工件学习状态时,从工件实际旋转速度的跌落值开始大于预定门限值到工件实际旋转速度的跌落值开始不大于所述预定门限值的时间段内,记录多个刀具加工位置和对应于所述多个刀具加工位置的多个工件实际旋转速度;When entering the workpiece learning state, within the time period from when the drop value of the actual rotation speed of the workpiece is greater than the predetermined threshold value to when the drop value of the actual rotation speed of the workpiece is not greater than the predetermined threshold value, record multiple tool processing positions and a plurality of workpiece actual rotational speeds corresponding to the plurality of tool machining positions;

将所述工件预定旋转速度设定值与所述多个工件实际旋转速度的多个差,分别确定为对应于所述多个刀具加工位置的多个跌落补偿量;Determining a plurality of differences between the preset rotational speed setting value of the workpiece and the actual rotational speed of the plurality of workpieces as a plurality of drop compensation amounts corresponding to the machining positions of the plurality of tools;

基于所述多个刀具加工位置和所述多个跌落补偿量建立所述跌落补偿量表。The drop compensation amount table is established based on the plurality of tool machining positions and the plurality of drop compensation amounts.

可见,本发明实施方式还实现了一种快速建立跌落补偿量表的方法,为提前补偿工件旋转速度的跌落打下基础,尤其适用于批量处理工件的应用情形。It can be seen that the embodiment of the present invention also realizes a method for quickly establishing a drop compensation scale, which lays a foundation for compensating for the drop of the workpiece rotation speed in advance, and is especially suitable for the application of batch processing workpieces.

车床工件旋转速度的补偿装置,包括:Compensation device for rotation speed of lathe workpiece, including:

参数读取模块,用于读取刀具加工位置和工件实际旋转速度;The parameter reading module is used to read the machining position of the tool and the actual rotation speed of the workpiece;

第一跌落补偿量确定模块,用于基于所述刀具加工位置确定与工件预定旋转速度设定值相关的第一跌落补偿量;a first drop compensation amount determination module, configured to determine a first drop compensation amount related to the preset rotation speed setting value of the workpiece based on the machining position of the tool;

第二跌落补偿量确定模块,用于基于所述第一跌落补偿量确定对应于所述工件实际旋转速度的第二跌落补偿量;A second drop compensation amount determination module, configured to determine a second drop compensation amount corresponding to the actual rotational speed of the workpiece based on the first drop compensation amount;

前馈补偿模块,用于基于所述第二跌落补偿量前馈补偿所述工件的旋转速度。The feedforward compensation module is used for feedforward compensation of the rotation speed of the workpiece based on the second drop compensation amount.

可见,在本发明实施方式中,基于刀具加工位置提前补偿工件旋转速度的跌落,从而可以提高加工精度。It can be seen that, in the embodiment of the present invention, the drop of the rotation speed of the workpiece is compensated in advance based on the machining position of the tool, so that the machining accuracy can be improved.

在一个实施方式中,还包括:In one embodiment, it also includes:

跌落补偿量表建立模块,用于建立跌落补偿量表,所述跌落补偿量表包含在工件预定旋转速度设定值时的刀具加工位置与跌落补偿量之间对应关系;a drop compensation gauge establishment module, used for establishing a drop compensation gauge, the drop compensation gauge including the corresponding relationship between the tool machining position and the drop compensation amount when the preset rotation speed of the workpiece is set;

所述第一跌落补偿量确定模块,用于将所述刀具加工位置确定为检索项,利用所述检索项查询所述跌落补偿量表以确定对应于所述检索项的跌落补偿量;将查询出的所述跌落补偿量确定为所述第一跌落补偿量。The first drop compensation amount determination module is configured to determine the tool processing position as a retrieval item, and use the retrieval item to query the drop compensation amount table to determine the drop compensation amount corresponding to the retrieval item; query the The calculated drop compensation amount is determined as the first drop compensation amount.

因此,本发明实施方式中,利用刀具加工位置在跌落补偿量表中检索出第一跌落补偿量,可以快速查表确定第一跌落补偿量,提高了处理速度。Therefore, in the embodiment of the present invention, the first drop compensation amount is retrieved from the drop compensation amount table by using the machining position of the tool, and the first drop compensation amount can be quickly determined by looking up the table, which improves the processing speed.

在一个实施方式中,所述第二跌落补偿量确定模块,用于确定补偿系数与所述工件预定旋转速度设定值的第一比值;确定所述第一比值与所述第一跌落补偿量的第一乘积;确定所述第一乘积与所述工件实际旋转速度的第二乘积,将所述第二乘积确定为所述第二跌落补偿量;或In one embodiment, the second drop compensation amount determination module is configured to determine a first ratio between the compensation coefficient and the preset rotation speed setting value of the workpiece; determine the first ratio and the first drop compensation amount The first product of ; determine the second product of the first product and the actual rotational speed of the workpiece, and determine the second product as the second drop compensation amount; or

确定所述工件预定旋转速度设定值与切削深度设定值的第三乘积,确定补偿系数与所述第三乘积的第二比值;确定所述第二比值与工件实际切削深度的第四乘积,确定所述第四乘积与所述第一跌落补偿量的第五乘积;确定所述第五乘积与所述工件实际旋转速度的第六乘积,将所述第六乘积确定为所述第二跌落补偿量。Determine the third product of the preset rotation speed setting value of the workpiece and the cutting depth setting value, determine the second ratio of the compensation coefficient and the third product; determine the fourth product of the second ratio and the actual cutting depth of the workpiece , determine the fifth product of the fourth product and the first drop compensation amount; determine the sixth product of the fifth product and the actual rotation speed of the workpiece, and determine the sixth product as the second Drop compensation amount.

因此,本发明实施方式中,基于第一跌落补偿量经过简单运算,可以确定出用于提前补偿工件旋转速度的跌落的第二跌落补偿量,提高了处理速度。Therefore, in the embodiment of the present invention, a second drop compensation amount for compensating for the drop of the workpiece rotation speed in advance can be determined through a simple calculation based on the first drop compensation amount, thereby improving the processing speed.

在一个实施方式中,所述补偿系数与所述工件的材料相关,且所述补偿系数为可调的。In one embodiment, the compensation factor is related to the material of the workpiece, and the compensation factor is adjustable.

在一个实施方式中,所述跌落补偿量表建立模块,用于当进入工件学习状态时,从工件实际旋转速度的跌落值开始大于预定门限值到工件实际旋转速度的跌落值开始不大于预定门限值的时间段内,记录多个刀具加工位置和对应于所述多个刀具加工位置的多个工件实际旋转速度;将所述工件预定旋转速度设定值与所述多个工件实际旋转速度的多个差,分别确定为对应于所述多个刀具加工位置的多个跌落补偿量;基于所述多个刀具加工位置和所述多个跌落补偿量建立所述跌落补偿量表。In one embodiment, the drop compensation scale establishment module is configured to, when entering the workpiece learning state, start from the drop value of the actual rotation speed of the workpiece being greater than a predetermined threshold value to the drop value of the actual rotation speed of the workpiece starting not greater than the predetermined value During the time period of the threshold value, record multiple tool processing positions and multiple workpiece actual rotation speeds corresponding to the multiple tool processing positions; compare the preset rotation speed setting value of the workpiece with the actual rotation speed of the multiple workpieces A plurality of differences in speed are respectively determined as a plurality of drop compensation amounts corresponding to the plurality of tool machining positions; the drop compensation amount table is established based on the plurality of tool machining positions and the plurality of drop compensation amounts.

可见,本发明实施方式还实现了一种快速建立跌落补偿量表的方法,为提前补偿工件旋转速度的跌落打下基础,尤其适用于批量处理工件的应用情形。It can be seen that the embodiment of the present invention also realizes a method for quickly establishing a drop compensation scale, which lays a foundation for compensating for the drop of the workpiece rotation speed in advance, and is especially suitable for the application of batch processing workpieces.

车床系统,包含:Lathe system, including:

主轴电机,用于旋转固定有工件的主轴,并提供所述主轴的位置信息;a spindle motor for rotating the spindle on which the workpiece is fixed and providing position information of the spindle;

微分器,用于对主轴的位置信息执行微分运算以提供工件实际旋转速度;Differentiator, which is used to perform differential operation on the position information of the spindle to provide the actual rotation speed of the workpiece;

速度控制器,用于控制所述主轴电机的旋转速度;所述速度控制器包含第一输入端和第二输入端,所述第一输入端连接工件预定旋转速度设定值;a speed controller for controlling the rotation speed of the spindle motor; the speed controller includes a first input end and a second input end, and the first input end is connected to a preset rotation speed setting value of the workpiece;

速度补偿控制器,用于基于刀具加工位置确定对应于所述工件预定旋转速度设定值的第一跌落补偿量,基于所述第一跌落补偿量确定对应于所述工件实际旋转速度的第二跌落补偿量,将所述第二跌落补偿量作为前馈补偿值提供到所述第二输入端。a speed compensation controller, configured to determine a first drop compensation amount corresponding to the preset rotation speed setting value of the workpiece based on the machining position of the tool, and determine a second drop compensation amount corresponding to the actual rotation speed of the workpiece based on the first drop compensation amount A drop compensation amount, the second drop compensation amount is provided to the second input terminal as a feedforward compensation value.

因此,本发明实施方式还实现了车床系统,利用速度补偿控制器提前补偿工件旋转速度的跌落,可以提高加工精度。而且,本发明实施方式的前馈补偿可以与经典的闭环反馈控制相结合,实现了一种整体的补偿方案。Therefore, the embodiment of the present invention also realizes the lathe system, which uses the speed compensation controller to compensate for the drop of the rotation speed of the workpiece in advance, which can improve the machining accuracy. Moreover, the feedforward compensation of the embodiment of the present invention can be combined with the classical closed-loop feedback control to realize an overall compensation scheme.

在一个实施方式中,所述速度补偿控制器,还用于建立包含在工件预定旋转速度设定值时的刀具加工位置与跌落补偿量之间对应关系的跌落补偿量表;其中所述基于所述刀具加工位置检索出与工件预定旋转速度设定值相关的第一跌落补偿量包括:将所述刀具加工位置确定为检索项,利用所述检索项查询所述跌落补偿量表以确定对应于所述检索项的跌落补偿量;将查询出的所述跌落补偿量确定为所述第一跌落补偿量。In one embodiment, the speed compensation controller is further configured to establish a drop compensation amount table including the corresponding relationship between the tool machining position and the drop compensation amount when the workpiece predetermined rotation speed is set; wherein the Retrieving the first drop compensation amount related to the preset rotation speed setting value of the workpiece from the tool machining position includes: determining the tool machining position as a retrieval item, and using the retrieval item to query the drop compensation amount table to determine the corresponding drop compensation amount. The drop compensation amount of the retrieval item; the drop compensation amount obtained by the query is determined as the first drop compensation amount.

因此,本发明实施方式中,利用刀具加工位置在跌落补偿量表中检索出第一跌落补偿量,可以快速查表确定第一跌落补偿量,提高了处理速度。Therefore, in the embodiment of the present invention, the first drop compensation amount is retrieved from the drop compensation amount table by using the machining position of the tool, and the first drop compensation amount can be quickly determined by looking up the table, which improves the processing speed.

在一个实施方式中,所述速度补偿控制器,用于确定补偿系数与所述工件预定旋转速度设定值的第一比值;确定所述第一比值与所述第一跌落补偿量的第一乘积;确定所述第一乘积与所述工件实际旋转速度的第二乘积,将所述第二乘积确定为所述第二跌落补偿量;或,确定所述工件预定旋转速度设定值与切削深度设定值的第三乘积,确定补偿系数与所述第三乘积的第二比值;确定所述第二比值与工件实际切削深度的第四乘积,确定所述第四乘积与所述第一跌落补偿量的第五乘积;确定所述第五乘积与所述工件实际旋转速度的第六乘积,将所述第六乘积确定为所述第二跌落补偿量。In one embodiment, the speed compensation controller is configured to determine a first ratio between the compensation coefficient and the preset rotation speed setting value of the workpiece; determine a first ratio between the first ratio and the first drop compensation amount product; determine the second product of the first product and the actual rotation speed of the workpiece, and determine the second product as the second drop compensation amount; or, determine the preset rotation speed setting value of the workpiece and the cutting Determine the third product of the depth setting value, determine the second ratio of the compensation coefficient and the third product; determine the fourth product of the second ratio and the actual cutting depth of the workpiece, determine the fourth product and the first product The fifth product of the drop compensation amount; the sixth product of the fifth product and the actual rotation speed of the workpiece is determined, and the sixth product is determined as the second drop compensation amount.

因此,本发明实施方式中,基于第一跌落补偿量经过简单运算,可以确定出用于提前补偿工件旋转速度的跌落的第二跌落补偿量,提高了处理速度。Therefore, in the embodiment of the present invention, a second drop compensation amount for compensating for the drop of the workpiece rotation speed in advance can be determined through a simple calculation based on the first drop compensation amount, thereby improving the processing speed.

在一个实施方式中,所述速度补偿控制器,用于当进入工件学习状态时,从工件实际旋转速度的跌落值开始大于预定门限值到工件实际旋转速度的跌落值开始不大于预定门限值的时间段内,记录多个刀具加工位置和对应于所述多个刀具加工位置的多个工件实际旋转速度;将所述工件预定旋转速度设定值与所述多个工件实际旋转速度的多个差,分别确定为对应于所述多个刀具加工位置的多个跌落补偿量;基于所述多个刀具加工位置和所述多个跌落补偿量建立所述跌落补偿量表。In one embodiment, the speed compensation controller is configured to, when entering the workpiece learning state, start from the drop value of the actual rotation speed of the workpiece is greater than a predetermined threshold to the drop value of the actual rotation speed of the workpiece is not greater than the predetermined threshold. In the time period of the value, record multiple tool processing positions and multiple workpiece actual rotation speeds corresponding to the multiple tool processing positions; A plurality of differences are respectively determined as a plurality of drop compensation amounts corresponding to the plurality of tool machining positions; the drop compensation amount table is established based on the plurality of tool machining positions and the plurality of drop compensation amounts.

可见,本发明实施方式还实现了一种快速建立跌落补偿量表的方法,为提前补偿工件旋转速度的跌落打下基础,尤其适用于批量处理工件的应用情形。It can be seen that the embodiment of the present invention also realizes a method for quickly establishing a drop compensation scale, which lays a foundation for compensating for the drop of the workpiece rotation speed in advance, and is especially suitable for the application of batch processing workpieces.

车床工件旋转速度的补偿装置,包括:处理器和存储器;A compensation device for the rotation speed of the workpiece of the lathe, including: a processor and a memory;

所述存储器中存储有可被所述处理器执行的应用程序,用于使得所述处理器执行如上任一项所述的车床工件旋转速度的补偿方法的步骤。An application program executable by the processor is stored in the memory for causing the processor to execute the steps of the method for compensating the rotational speed of a workpiece of a lathe as described in any one of the above.

因此,本发明实施方式还实现了一种基于处理器和存储器架构的车床工件旋转速度的补偿装置,处理器可以执行车床工件旋转速度的补偿方法的步骤。Therefore, the embodiment of the present invention also implements an apparatus for compensating the rotation speed of a workpiece of a lathe based on a processor and a memory architecture, and the processor can execute the steps of a method for compensating the rotation speed of a workpiece of a lathe.

计算机可读存储介质,其中存储有计算机可读指令,该计算机可读指令用于执行如上任一项所述的车床工件旋转速度的补偿方法的步骤。A computer-readable storage medium storing computer-readable instructions for performing the steps of the method for compensating the rotational speed of a workpiece of a lathe as described in any of the above.

因此,本发明实施方式还实现了一种计算机可读存储介质,存储于计算机可读存储介质中的计算机可读指令可以执行车床工件旋转速度的补偿方法的步骤。Therefore, the embodiments of the present invention also implement a computer-readable storage medium, and the computer-readable instructions stored in the computer-readable storage medium can execute the steps of the method for compensating the rotation speed of the workpiece of the lathe.

附图说明Description of drawings

图1为根据本发明实施方式的车床工件旋转速度的补偿方法的示范性流程图。FIG. 1 is an exemplary flowchart of a method for compensating the rotational speed of a workpiece of a lathe according to an embodiment of the present invention.

图2为根据本发明实施方式的生成跌落补偿量表的方法的示范性流程图。FIG. 2 is an exemplary flowchart of a method of generating a drop compensation scale according to an embodiment of the present invention.

图3为根据本发明实施方式的车床工件旋转速度的补偿装置的示范性结构图。FIG. 3 is an exemplary structural diagram of a device for compensating the rotational speed of a workpiece of a lathe according to an embodiment of the present invention.

图4为根据本发明实施方式的车床系统的示范性结构图。FIG. 4 is an exemplary structural diagram of a lathe system according to an embodiment of the present invention.

图5为根据本发明实施方式的车床工件旋转速度的补偿装置的示范性结构图。FIG. 5 is an exemplary structural diagram of a device for compensating the rotational speed of a workpiece of a lathe according to an embodiment of the present invention.

图6为根据本发明实施方式车床车直螺纹的示意图。6 is a schematic diagram of a lathe turning straight threads according to an embodiment of the present invention.

图7为现有技术中工件旋转速度跌落的示意图。FIG. 7 is a schematic diagram of the drop of the rotational speed of the workpiece in the prior art.

图8为根据本发明实施方式工件旋转速度保持稳定的示意图。FIG. 8 is a schematic diagram illustrating that the rotational speed of the workpiece remains stable according to an embodiment of the present invention.

其中,附图标记如下:Among them, the reference numerals are as follows:

Figure BDA0001576095650000051
Figure BDA0001576095650000051

Figure BDA0001576095650000061
Figure BDA0001576095650000061

具体实施方式Detailed ways

为了使本发明的技术方案及优点更加清楚明白,以下结合附图及实施方式,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施方式仅仅用以阐述性说明本发明,并不用于限定本发明的保护范围。In order to make the 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 illustrate the present invention, and are not used to limit the protection scope of the present invention.

为了描述上的简洁和直观,下文通过描述若干代表性的实施方式来对本发明的方案进行阐述。实施方式中大量的细节仅用于帮助理解本发明的方案。但是很明显,本发明的技术方案实现时可以不局限于这些细节。为了避免不必要地模糊了本发明的方案,一些实施方式没有进行细致地描述,而是仅给出了框架。下文中,“包括”是指“包括但不限于”,“根据……”是指“至少根据……,但不限于仅根据……”。由于汉语的语言习惯,下文中没有特别指出一个成分的数量时,意味着该成分可以是一个也可以是多个,或可理解为至少一个。For the sake of brevity and intuition in description, the solution of the present invention is explained below by describing several representative embodiments. Numerous details in the embodiments are provided only to aid in understanding the aspects of the invention. However, it is obvious that the technical solutions of the present invention may not be limited to these details during implementation. In order to avoid unnecessarily obscuring aspects of the present invention, some embodiments are not described in detail, but merely framed. Hereinafter, "including" means "including but not limited to", and "according to..." means "at least in accordance with, but not limited to, only in accordance with...". Due to Chinese language habits, when the number of a component is not specified below, it means that the component may be one or more, or it may be understood as at least one.

考虑到现有技术中当刀具开始接触数控车床上的工件进行加工处理时主轴旋转速度跌落而导致的工件加工精度下降的缺点,本发明实施方式提出速度前馈补偿方法,通过对主轴旋转速度(即工件旋转速度)进行前馈补偿,可以提前补偿工件旋转速度的跌落,从而提高加工精度。Considering the disadvantage in the prior art that when the tool starts to contact the workpiece on the CNC lathe for processing, the machining accuracy of the workpiece is reduced due to the drop of the spindle rotation speed, the embodiment of the present invention proposes a speed feedforward compensation method. That is, the workpiece rotation speed) performs feedforward compensation, which can compensate for the drop of the workpiece rotation speed in advance, thereby improving the machining accuracy.

图1为根据本发明实施方式的车床工件旋转速度的补偿方法的示范性流程图。FIG. 1 is an exemplary flowchart of a method for compensating the rotational speed of a workpiece of a lathe according to an embodiment of the present invention.

如图1所示,该方法包括:As shown in Figure 1, the method includes:

步骤102:读取刀具加工位置和工件实际旋转速度。Step 102: Read the machining position of the tool and the actual rotation speed of the workpiece.

在这里,当进入工件加工状态时,需要确定刀具加工位置和工件实际旋转速度。其中,可以从控制刀具进给的进给电机读取刀具加工位置,从控制主轴的主轴电机读取主轴的位置信息。对主轴的位置信息执行微分运算可以确定出工件实际旋转速度。优选的,在步骤102中实时读取刀具加工位置和工件实际旋转速度。Here, when entering the workpiece processing state, it is necessary to determine the tool processing position and the actual rotation speed of the workpiece. Among them, the machining position of the tool can be read from the feed motor that controls the feed of the tool, and the position information of the spindle can be read from the spindle motor that controls the spindle. The actual rotational speed of the workpiece can be determined by differentiating the position information of the spindle. Preferably, in step 102, the machining position of the tool and the actual rotation speed of the workpiece are read in real time.

步骤104:基于刀具加工位置确定与工件预定旋转速度设定值相关的第一跌落补偿量。Step 104: Determine the first drop compensation amount related to the preset value of the workpiece rotation speed based on the machining position of the tool.

在这里,可以查询预先建立的跌落补偿量表确定出与工件预定旋转速度设定值相关的、对应于步骤102中确定的刀具加工位置的第一跌落补偿量。其中,该跌落补偿量表包含在工件预定旋转速度设定值且针对工件旋转速度不执行前馈补偿时的刀具加工位置与跌落补偿量之间的对应关系。Here, a pre-established drop compensation amount table may be queried to determine the first drop compensation amount related to the preset value of the workpiece rotation speed and corresponding to the tool machining position determined in step 102 . Wherein, the drop compensation amount table includes the corresponding relationship between the tool machining position and the drop compensation amount when the preset rotational speed of the workpiece is set and feedforward compensation is not performed for the rotational speed of the workpiece.

在一个实施方式中,步骤104中基于刀具加工位置检索出与工件预定旋转速度设定值相关的第一跌落补偿量具体包括:将步骤102中确定的刀具加工位置确定为检索项,利用检索项查询补偿量表以确定对应于检索项的跌落补偿量;将查询出的跌落补偿量确定为第一跌落补偿量。In one embodiment, retrieving the first drop compensation amount related to the preset value of the predetermined rotation speed of the workpiece based on the tool machining position in step 104 specifically includes: determining the tool machining position determined in step 102 as a retrieval item, and using the retrieval item The compensation amount table is queried to determine the drop compensation amount corresponding to the retrieval item; the queried drop compensation amount is determined as the first drop compensation amount.

表1为跌落补偿量表的示范性结构。在工件预定旋转速度为预定的工件预定旋转速度设定值且针对工件旋转速度不执行前馈补偿(优选执行闭环反馈控制)时,建立表1中的跌落补偿量与刀具加工位置之间的对应关系。Table 1 is an exemplary structure of a drop compensation scale. The correspondence between the drop compensation amount and the tool machining position in Table 1 is established when the predetermined rotational speed of the workpiece is a predetermined predetermined rotational speed setting value of the workpiece and no feedforward compensation (preferably, closed-loop feedback control is performed) is performed for the rotational speed of the workpiece relation.

刀具加工位置Tool machining position 跌落补偿量Drop compensation amount B<sub>0</sub>B<sub>0</sub> D<sub>0</sub>D<sub>0</sub> B<sub>1</sub>B<sub>1</sub> D<sub>1</sub>D<sub>1</sub> B<sub>2</sub>B<sub>2</sub> D<sub>2</sub>D<sub>2</sub> B<sub>n-1</sub>B<sub>n-1</sub> D<sub>n-1</sub>D<sub>n-1</sub> B<sub>n</sub>B<sub>n</sub> D<sub>n</sub>D<sub>n</sub>

表1Table 1

由表1可见,当刀具加工位置为B0时,相对应的跌落补偿量为D0;当刀具加工位置为B1时,相对应的跌落补偿量为D1;当刀具加工位置为B2时,相对应的跌落补偿量为D2;…当刀具加工位置为Bn时,相对应的跌落补偿量为DnIt can be seen from Table 1 that when the tool machining position is B 0 , the corresponding drop compensation amount is D 0 ; when the tool machining position is B 1 , the corresponding drop compensation amount is D 1 ; when the tool machining position is B 2 , the corresponding drop compensation amount is D 2 ; ... When the tool machining position is B n , the corresponding drop compensation amount is D n .

基于表1所示的跌落补偿量表,可以基于刀具加工位置检索出与工件预定旋转速度设定值相关的第一跌落补偿量。比如,当在步骤102中确定的刀具加工位置为B0时,可以在步骤104中确定出第一跌落补偿量为D0;当在步骤102中确定的刀具加工位置为B1时,可以在步骤104中确定出第一跌落补偿量为D1;当在步骤102中确定的刀具加工位置为B2时,可以在步骤104中确定出跌落补偿量为D2;…当在步骤102中确定的刀具加工位置为Bn时,可以在步骤104中确定出跌落补偿量为DnBased on the drop compensation amount table shown in Table 1, the first drop compensation amount related to the preset rotation speed setting value of the workpiece can be retrieved based on the machining position of the tool. For example, when the tool machining position determined in step 102 is B 0 , the first drop compensation amount can be determined in step 104 as D 0 ; when the tool machining position determined in step 102 is B 1 , it can be determined in step 104 In step 104, it is determined that the first drop compensation amount is D 1 ; when the tool processing position determined in step 102 is B 2 , it can be determined in step 104 that the drop compensation amount is D 2 ; ... when it is determined in step 102 When the machining position of the tool is B n , the drop compensation amount can be determined as D n in step 104 .

步骤106:基于第一跌落补偿量确定对应于工件实际旋转速度的第二跌落补偿量。Step 106: Determine a second drop compensation amount corresponding to the actual rotation speed of the workpiece based on the first drop compensation amount.

当在步骤104中确定出第一跌落补偿量后,需要将第一跌落补偿量转换为对应于工件实际旋转速度的第二跌落补偿量。在这里,步骤106中基于第一跌落补偿量确定对应于工件实际旋转速度的第二跌落补偿量包括:确定补偿系数与工件预定旋转速度设定值的第一比值;确定第一比值与第一跌落补偿量的第一乘积;确定第一乘积与工件实际旋转速度的第二乘积,将第二乘积确定为第二跌落补偿量;或,确定工件预定旋转速度设定值与切削深度设定值的第三乘积,确定补偿系数与第三乘积的第二比值;确定第二比值与工件实际切削深度的第四乘积,确定第四乘积与第一跌落补偿量的第五乘积;确定第五乘积与工件实际旋转速度的第六乘积,将第六乘积确定为第二跌落补偿量。After the first drop compensation amount is determined in step 104, the first drop compensation amount needs to be converted into a second drop compensation amount corresponding to the actual rotation speed of the workpiece. Here, determining the second drop compensation amount corresponding to the actual rotation speed of the workpiece based on the first drop compensation amount in step 106 includes: determining a first ratio between the compensation coefficient and the preset rotation speed setting value of the workpiece; determining the first ratio and the first The first product of the drop compensation amount; determine the second product of the first product and the actual rotation speed of the workpiece, and determine the second product as the second drop compensation amount; or, determine the preset value of the workpiece rotation speed and the set value of the cutting depth Determine the third product of the compensation coefficient and the third product; determine the fourth product of the second ratio and the actual cutting depth of the workpiece, determine the fifth product of the fourth product and the first drop compensation amount; determine the fifth product The sixth product with the actual rotational speed of the workpiece is determined as the second drop compensation amount.

具体的,由于跌落补偿量表的输入是在某一特定加工速度(即工件预定旋转速度设定值)时的补偿数据,由于加工速度不同,实际跌落量也不同,同时切削力会随着工件材料的变化而变化。为了适应这些变化,可以引入补偿系数K。Specifically, since the input of the drop compensation scale is the compensation data at a certain processing speed (ie, the preset rotation speed setting value of the workpiece), due to the different processing speeds, the actual drop amount is also different, and the cutting force will vary with the workpiece. changes with the material. To accommodate these changes, a compensation coefficient K can be introduced.

比如,第二跌落补偿量可以由如下公式1得到:For example, the second drop compensation amount can be obtained by the following formula 1:

Dm=(K/F)*D*Fm 公式(1)Dm=(K/F)*D*Fm Formula (1)

其中:D为第一跌落补偿量,即工件预定旋转速度设定值为F且针对工件旋转速度无前馈补偿时的补偿量;K为补偿系数,跟工件材料有关,默认为100%,用户可实际调节;Fm为工件实际旋转速度;Dm为第二跌落补偿量,即工件实际旋转速度为Fm时的补偿量。Among them: D is the first drop compensation amount, that is, the compensation amount when the preset rotation speed of the workpiece is set to F and there is no feedforward compensation for the rotation speed of the workpiece; K is the compensation coefficient, which is related to the workpiece material, and the default is 100%. It can be adjusted actually; Fm is the actual rotation speed of the workpiece; Dm is the second drop compensation amount, that is, the compensation amount when the actual rotation speed of the workpiece is Fm.

在公式(1)中,补偿系数与工件预定旋转速度设定值的比值为(K/F),该比值可以称为第一比值;第一比值(即(K/F))与D的乘积,即((K/F)*D),可以称为第一乘积;第一乘积((K/F)*D)与工件实际旋转速度Fm的乘积,即(K/F)*D*Fm,可以称为第二乘积。第二乘积即为第二跌落补偿量。In formula (1), the ratio of the compensation coefficient to the set value of the predetermined rotation speed of the workpiece is (K/F), which can be called the first ratio; the product of the first ratio (ie (K/F)) and D , namely ((K/F)*D), which can be called the first product; the product of the first product ((K/F)*D) and the actual rotation speed of the workpiece Fm, namely (K/F)*D*Fm , which can be called the second product. The second product is the second drop compensation amount.

再比如,第二跌落补偿量可以由如下公式2得到:For another example, the second drop compensation amount can be obtained by the following formula 2:

Dm=[K/(F*L)]*Lm*D*Fm 公式(2)Dm=[K/(F*L)]*Lm*D*Fm Formula (2)

其中:D为第一跌落补偿量,即工件预定旋转速度设定值为F和切削深度设定值为L且无前馈补偿时的补偿量;K为补偿系数,跟工件材料有关,默认为100%,用户可实际调节;Lm为工件实际切削深度;Fm为工件实际旋转速度;Dm为第二跌落补偿量,即工件实际旋转速度为Fm时的补偿量。Among them: D is the first drop compensation amount, that is, the preset rotation speed of the workpiece is set to F and the cutting depth is set to L and the compensation amount without feedforward compensation; K is the compensation coefficient, which is related to the workpiece material, and the default is 100%, the user can actually adjust; Lm is the actual cutting depth of the workpiece; Fm is the actual rotation speed of the workpiece; Dm is the second drop compensation amount, that is, the compensation amount when the actual rotation speed of the workpiece is Fm.

在公式(2)中,工件预定旋转速度设定值与切削深度设定值的乘积为(F*L),可以称为第三乘积;补偿系数与第三乘积的比值为K/(F*L),可以称为第二比值;第二比值与工件实际切削深度的乘积为[K/(F*L)]*Lm,可以称为第四乘积;第四乘积与第一跌落补偿量的乘积为[K/(F*L)]*Lm*D,可以称为第五乘积;第五乘积与工件实际旋转速度的乘积为[K/(F*L)]*Lm*D*Fm,可以称为第六乘积,将第六乘积确定为第二跌落补偿量。In formula (2), the product of the preset rotation speed setting value of the workpiece and the cutting depth setting value is (F*L), which can be called the third product; the ratio of the compensation coefficient to the third product is K/(F* L), can be called the second ratio; the product of the second ratio and the actual cutting depth of the workpiece is [K/(F*L)]*Lm, which can be called the fourth product; the fourth product and the first drop compensation amount The product is [K/(F*L)]*Lm*D, which can be called the fifth product; the product of the fifth product and the actual rotation speed of the workpiece is [K/(F*L)]*Lm*D*Fm, It may be called a sixth product, and the sixth product is determined as the second drop compensation amount.

以上示范性描述了确定第二跌落补偿量的典型实施方式,本领域技术人员可以意识到,这种描述仅是示范性的,并不用于限定本发明实施方式的保护范围。The above exemplarily describes a typical implementation for determining the second drop compensation amount, and those skilled in the art can realize that this description is only an example, and is not used to limit the protection scope of the implementation of the present invention.

步骤108:基于第二跌落补偿量前馈补偿工件的旋转速度。Step 108: Feedforward compensation for the rotational speed of the workpiece based on the second drop compensation amount.

在这里,步骤106所确定的第二跌落补偿量即为输出给主轴电机的额外速度设定值,将第二跌落补偿量前馈至用于控制主轴电机的速度控制器以提前补偿刀具接触工件后的工件的实际旋转速度的跌落。其中,优选在速度控制器中进一步针对主轴电机转动速度执行闭环负反馈控制。Here, the second drop compensation amount determined in step 106 is the additional speed setting value output to the spindle motor, and the second drop compensation amount is fed forward to the speed controller for controlling the spindle motor to compensate the tool contacting the workpiece in advance After the drop of the actual rotational speed of the workpiece. Among them, it is preferable to further execute closed-loop negative feedback control for the rotational speed of the spindle motor in the speed controller.

另外,本发明实施方式还提出了一种生成跌落补偿量表的方法。基于上述描述,图2为根据本发明实施方式的生成跌落补偿量表的方法的示范性流程图。其中,生成跌落补偿量表时采用的测试工件与图1中采用的加工工件具有相同的规格形状,且利用相同的机床对其执行相同的加工工艺。In addition, an embodiment of the present invention also provides a method for generating a drop compensation scale. Based on the above description, FIG. 2 is an exemplary flowchart of a method for generating a drop compensation scale according to an embodiment of the present invention. Among them, the test workpiece used in generating the drop compensation scale has the same specification and shape as the machining workpiece used in FIG. 1 , and the same machining process is performed on the same machine tool.

如图2所示,该方法包括:As shown in Figure 2, the method includes:

步骤202:当进入工件学习状态时,从工件实际旋转速度的跌落值开始大于预定门限值到工件实际旋转速度的跌落值开始不大于预定门限值的时间段内,记录多个刀具加工位置和对应于多个刀具加工位置的多个工件实际旋转速度。Step 202: When entering the workpiece learning state, record multiple tool processing positions within the time period from the drop value of the actual rotation speed of the workpiece is greater than the predetermined threshold value to the drop value of the actual rotation speed of the workpiece is not greater than the predetermined threshold value. and the actual rotational speeds of multiple workpieces corresponding to multiple tool machining positions.

在这里,将用于生成跌落补偿量表的测试工件固定在主轴电机上,主轴电机具有预定的工件预定旋转速度设定值,并针对工件预定旋转速度执行经典的闭环反馈控制。当刀具开始接触测试工件之后,工件实际旋转速度会发生跌落,即从工件预定旋转速度设定值开始下降。当工件实际旋转速度的跌落值开始大于预定门限值时,可以认定刀具开始接触测试工件,并进入跌落期;当工件实际旋转速度的跌落值开始不大于预定门限值的时间时,可以认定跌落期结束。在跌落期之内,记录多个刀具加工位置和对应于多个刀具加工位置的多个工件实际旋转速度。Here, the test workpiece used to generate the drop compensation scale is fixed on a spindle motor that has a predetermined workpiece predetermined rotational speed setpoint and performs classic closed-loop feedback control for the workpiece predetermined rotational speed. When the tool starts to contact the test workpiece, the actual rotation speed of the workpiece will drop, that is, it will start to drop from the preset rotation speed setting value of the workpiece. When the drop value of the actual rotation speed of the workpiece begins to be greater than the predetermined threshold value, it can be determined that the tool begins to contact the test workpiece and enters the drop period; when the drop value of the actual rotation speed of the workpiece begins to be less than the predetermined threshold value, it can be determined that The drop period ends. Within the drop period, a plurality of tool machining positions and a plurality of workpiece actual rotational speeds corresponding to the plurality of tool machining positions are recorded.

步骤202:将工件预定旋转速度设定值与多个工件实际旋转速度的多个差,分别确定为对应于多个刀具加工位置的多个跌落补偿量。Step 202 : Determine a plurality of differences between the preset rotation speed setting value of the workpiece and the actual rotation speeds of the workpieces as a plurality of drop compensation amounts corresponding to the machining positions of the plurality of tools, respectively.

步骤203:基于多个刀具加工位置和多个跌落补偿量建立跌落补偿量表。Step 203: Establish a drop compensation scale based on multiple tool machining positions and multiple drop compensation amounts.

基于上述流程,可以实时采集测试工件的实际位置B和实际速度C,当实际速度C有显著的下降时(表明刀具开始接触测试工件),开始同时记录实际位置B和实际速度C,直到实际速度C实质上恢复为跌落前的实际速度停止采集和记录实际位置B和实际速度C。其中,针对实际位置B和实际速度C,可以记录多个数据对(B0,C0),(B1,C1),(B2,C2)…(Bn,Cn)。而且,从记录的数据对(B0,C0),(B1,C1),(B2,C2)…(Bn,Cn)中取出全部或预定数量的数据对,根据如下的公式3计算出每个数据对的补偿数据量D以补偿实际速度的跌落。Based on the above process, the actual position B and actual speed C of the test workpiece can be collected in real time. When the actual speed C drops significantly (indicating that the tool starts to contact the test workpiece), the actual position B and the actual speed C are recorded at the same time until the actual speed. C essentially reverts to the actual speed before the drop to stop collecting and recording the actual position B and the actual speed C. Wherein, for the actual position B and the actual speed C, a plurality of data pairs (B 0 , C 0 ), (B 1 , C 1 ), (B 2 , C 2 ) . . . (B n , C n ) can be recorded. Also, all or a predetermined number of data pairs are fetched from the recorded data pairs (B 0 , C 0 ), (B 1 , C 1 ), (B 2 , C 2 )...(B n , C n ), according to the following Equation 3 calculates the amount of compensation data D for each data pair to compensate for the drop in actual speed.

D=F-C 公式(3)D=F-C Formula (3)

其中:D为填入跌落补偿量表中的补偿量;F为工件预定旋转速度设定值;C为速度跌落时的实际速度。Among them: D is the compensation amount filled in the drop compensation scale; F is the preset rotation speed setting value of the workpiece; C is the actual speed when the speed drops.

比如,针对数据对(B0,C0),计算出D0=F-C0。其中,D0可以与B0作为对应关系对填写到跌落补偿量表中。即,在跌落补偿量表中增加新的条目(B0,D0)。再比如,针对数据对(B1,C1),计算出D1=F-C1。其中,D1可以与B1作为对应关系对填写到跌落补偿量表中。即,在跌落补偿量表中增加新的条目(B1,D1)。以此类推,将所有数据对的实际位置与其补偿量都可以填写到跌落补偿量表中。For example, for the data pair (B 0 , C 0 ), D 0 =FC 0 is calculated. Among them, D 0 and B 0 can be filled in the drop compensation scale as a corresponding relationship pair. That is, a new entry (B 0 , D 0 ) is added to the drop compensation amount table. For another example, for the data pair (B 1 , C 1 ), D 1 =FC 1 is calculated. Among them, D 1 and B 1 can be filled in the drop compensation scale as a corresponding relationship pair. That is, a new entry (B 1 , D 1 ) is added to the drop compensation amount table. By analogy, the actual positions of all data pairs and their compensation amounts can be filled in the drop compensation scale.

可选的,还可以人工手动输入跌落补偿量表。在人工手动输入时,可根据实际加工工件及工艺人员的经验输入补偿量与实际位置及工件预定旋转速度设定值。Optionally, the drop compensation scale can also be manually input. In manual input, the compensation amount, actual position and preset rotation speed of the workpiece can be input according to the actual processing workpiece and the experience of the craftsman.

以上示范性描述了建立跌落补偿量表的示范性过程,本领域技术人员可以意识到,这种描述仅是示范性的,并不用于限定本发明实施方式的保护范围。The above exemplary description describes an exemplary process for establishing a drop compensation scale, and those skilled in the art can realize that this description is only exemplary, and is not intended to limit the protection scope of the embodiments of the present invention.

本发明实施方式中,车床针对工件执行的加工处理,可以为螺纹加工处理、切槽加工处理、钻孔加工处理、扩孔加工处理、铰孔加工处理及镗孔加工处理等任意需要刀具与工件相接触的加工处理过程。同样的,以上示范性描述了车床针对工件执行的加工处理的示范性过程,本领域技术人员可以意识到,这种描述仅是示范性的,并不用于限定本发明实施方式的保护范围。In the embodiment of the present invention, the processing performed by the lathe on the workpiece may be any required tool and workpiece, such as threading processing, grooving processing, drilling processing, hole reaming processing, reaming processing, and boring processing. Contact processing process. Likewise, the above exemplarily describes an exemplary process of the machining process performed by the lathe on the workpiece, and those skilled in the art can realize that this description is only exemplary, and is not intended to limit the protection scope of the embodiments of the present invention.

基于图2建立的跌落补偿量表应用图1所示流程的时候,在刀具与工件的首次接触点处确定出刀具加工位置和工件实际旋转速度,并在跌落补偿量表中查找出该首次接触点处的第一跌落补偿量,并基于首次接触点处的工件实际旋转速度确定出首次接触点位置的实际跌落补偿量(即第二跌落补偿量),并向主轴电机提供该第二跌落补偿量以前馈补偿工件的旋转速度。而且,随着刀具的持续进给,持续在跌落补偿量表中查找出对应于变化的刀具加工位置的第一跌落补偿量,并基于持续变化的第一跌落补偿量和变化的工件实际旋转速度持续确定出后续接触点的第二跌落补偿量,并向主轴电机持续提供该第二跌落补偿量以持续前馈补偿工件的旋转速度。当基于刀具加工位置不能在跌落补偿量表中查找出第一跌落补偿量时,则停止前馈补偿。When the process shown in Figure 1 is applied to the drop compensation scale established based on Figure 2, the machining position of the tool and the actual rotation speed of the workpiece are determined at the first contact point between the tool and the workpiece, and the first contact is found in the drop compensation scale. The first drop compensation amount at the first contact point is determined, and the actual drop compensation amount (ie the second drop compensation amount) at the position of the first contact point is determined based on the actual rotation speed of the workpiece at the first contact point, and the second drop compensation is provided to the spindle motor. The amount feedforward compensates for the rotational speed of the workpiece. Moreover, with the continuous feeding of the tool, the first drop compensation amount corresponding to the changing tool machining position is continuously searched in the drop compensation amount table, and based on the continuously changing first drop compensation amount and the changing actual rotation speed of the workpiece The second drop compensation amount of the subsequent contact point is continuously determined, and the second drop compensation amount is continuously provided to the spindle motor to continuously feed forward the rotation speed of the workpiece. When the first drop compensation amount cannot be found in the drop compensation amount table based on the machining position of the tool, the feedforward compensation is stopped.

基于上述描述,本发明实施方式还提出了一种车床工件旋转速度的补偿装置。Based on the above description, an embodiment of the present invention also provides a device for compensating the rotation speed of a workpiece of a lathe.

图3为根据本发明实施方式的车床工件旋转速度的补偿装置的示范性结构图。FIG. 3 is an exemplary structural diagram of a device for compensating the rotational speed of a workpiece of a lathe according to an embodiment of the present invention.

如图3所示,该补偿装置300包括:As shown in FIG. 3, the compensation device 300 includes:

参数读取模块301,用于读取刀具加工位置和工件实际旋转速度;The parameter reading module 301 is used to read the machining position of the tool and the actual rotation speed of the workpiece;

第一跌落补偿量确定模块302,用于基于刀具加工位置确定与工件预定旋转速度设定值相关的第一跌落补偿量;a first drop compensation amount determination module 302, configured to determine the first drop compensation amount related to the preset value of the workpiece rotation speed based on the machining position of the tool;

第二跌落补偿量确定模块303,用于基于第一跌落补偿量确定对应于工件实际旋转速度的第二跌落补偿量;A second drop compensation amount determination module 303, configured to determine a second drop compensation amount corresponding to the actual rotational speed of the workpiece based on the first drop compensation amount;

前馈补偿模块304,用于基于第二跌落补偿量前馈补偿工件的旋转速度。The feedforward compensation module 304 is used for feedforward compensation of the rotation speed of the workpiece based on the second drop compensation amount.

在一个实施方式中,该补偿装置300还包括:In one embodiment, the compensation device 300 further includes:

跌落补偿量表建立模块305,用于建立跌落补偿量表,跌落补偿量表包含在工件预定旋转速度设定值时的刀具加工位置与跌落补偿量之间对应关系;The drop compensation scale establishment module 305 is used to establish a drop compensation scale, and the drop compensation scale includes the corresponding relationship between the tool machining position and the drop compensation amount when the preset rotation speed of the workpiece is set;

第一跌落补偿量确定模块302,用于将刀具加工位置确定为检索项,利用检索项查询补偿量表以确定对应于检索项的跌落补偿量;将查询出的跌落补偿量确定为第一跌落补偿量。The first drop compensation amount determination module 302 is used to determine the tool machining position as the retrieval item, and use the retrieval item to query the compensation scale to determine the drop compensation amount corresponding to the retrieval item; determine the queried drop compensation amount as the first drop amount of compensation.

在一个实施方式中,第二跌落补偿量确定模块303,用于确定补偿系数与工件预定旋转速度设定值的第一比值;确定第一比值与第一跌落补偿量的第一乘积;确定第一乘积与工件实际旋转速度的第二乘积,将第二乘积确定为第二跌落补偿量;或,确定工件预定旋转速度设定值与切削深度设定值的第三乘积,确定补偿系数与第三乘积的第二比值;确定第二比值与工件实际切削深度的第四乘积,确定第四乘积与第一跌落补偿量的第五乘积;确定第五乘积与工件实际旋转速度的第六乘积,将第六乘积确定为第二跌落补偿量。优选的,补偿系数与工件的材料相关,且补偿系数为可调的。In one embodiment, the second drop compensation amount determination module 303 is configured to determine the first ratio of the compensation coefficient to the preset rotational speed setting value of the workpiece; to determine the first product of the first ratio and the first drop compensation amount; to determine the first The second product of a product and the actual rotation speed of the workpiece, and the second product is determined as the second drop compensation amount; or, the third product of the preset rotation speed setting value of the workpiece and the cutting depth setting value is determined, and the compensation coefficient and the first The second ratio of the three products; determine the fourth product of the second ratio and the actual cutting depth of the workpiece, determine the fifth product of the fourth product and the first drop compensation amount; determine the fifth product and the sixth product of the actual rotation speed of the workpiece, The sixth product is determined as the second drop compensation amount. Preferably, the compensation coefficient is related to the material of the workpiece, and the compensation coefficient is adjustable.

在一个实施方式中,跌落补偿量表建立模块305,用于当进入工件学习状态时,从工件实际旋转速度的跌落值开始大于预定门限值到工件实际旋转速度的跌落值开始不大于预定门限值的时间段内,记录多个刀具加工位置和对应于多个刀具加工位置的多个工件实际旋转速度;将工件预定旋转速度设定值与多个工件实际旋转速度的多个差,分别确定为对应于多个刀具加工位置的多个跌落补偿量;基于多个刀具加工位置和多个跌落补偿量建立跌落补偿量表。In one embodiment, the drop compensation scale establishment module 305 is configured to, when entering the workpiece learning state, start from the drop value of the actual rotation speed of the workpiece being greater than the predetermined threshold value to the drop value of the actual rotation speed of the workpiece starting not greater than the predetermined threshold During the limited time period, record multiple tool processing positions and multiple workpiece actual rotation speeds corresponding to multiple tool processing positions; It is determined as a plurality of drop compensation amounts corresponding to the plurality of tool machining positions; a drop compensation amount table is established based on the plurality of tool machining positions and the plurality of drop compensation amounts.

本发明实施方式还提出了车床工件旋转速度的补偿系统。The embodiment of the present invention also proposes a compensation system for the rotational speed of the workpiece of the lathe.

图4为根据本发明实施方式的车床系统的示范性结构图。FIG. 4 is an exemplary structural diagram of a lathe system according to an embodiment of the present invention.

该车床系统400,包含:The lathe system 400 includes:

主轴电机405,用于旋转固定有工件的主轴,并提供主轴的位置信息;The spindle motor 405 is used to rotate the spindle fixed with the workpiece and provide the position information of the spindle;

微分器402,用于对主轴的位置信息执行微分运算以提供工件实际旋转速度;a differentiator 402, configured to perform a differential operation on the position information of the main shaft to provide the actual rotation speed of the workpiece;

速度控制器403,用于控制主轴电机405的旋转速度;速度控制器403包含第一输入端S1和第二输入端S2,其中第一输入端S1连接工件预定旋转速度设定值;The speed controller 403 is used to control the rotation speed of the spindle motor 405; the speed controller 403 includes a first input end S1 and a second input end S2, wherein the first input end S1 is connected to the preset rotational speed setting value of the workpiece;

速度补偿控制器401,用于基于刀具加工位置确定对应于工件预定旋转速度设定值的第一跌落补偿量,基于第一跌落补偿量确定对应于工件实际旋转速度的第二跌落补偿量,将第二跌落补偿量作为前馈补偿值提供到速度控制器403的第二输入端S2。The speed compensation controller 401 is configured to determine a first drop compensation amount corresponding to the preset rotation speed setting value of the workpiece based on the machining position of the tool, determine a second drop compensation amount corresponding to the actual rotation speed of the workpiece based on the first drop compensation amount, and set the The second drop compensation amount is provided to the second input terminal S2 of the speed controller 403 as a feedforward compensation value.

优选的,在速度控制器403与主轴电机405之间还布置有电流控制器404。电流控制器404从速度控制器403接收由速度控制器403确定的主轴电机旋转速度控制值,并基于主轴电机旋转速度控制值控制输出到主轴电机405的电流。而且,电流控制器404还提供作为电流闭环控制反馈值的实际电流值。另外,微分器402提供的工件实际旋转速度,还可以作为工件旋转速度闭环控制的反馈值提供到速度控制器403的第三输入端S3,即电流控制器404将第一输入端S1的输出(工件预定旋转速度设定值)与第二输入端S2的输出(前馈补偿值)相求和,并将求和结果减去第一输入端S3的输出(反馈值)以作为主轴电机旋转速度控制值。Preferably, a current controller 404 is further arranged between the speed controller 403 and the spindle motor 405 . The current controller 404 receives the spindle motor rotation speed control value determined by the speed controller 403 from the speed controller 403 and controls the current output to the spindle motor 405 based on the spindle motor rotation speed control value. Furthermore, the current controller 404 also provides the actual current value as the feedback value of the current closed-loop control. In addition, the actual rotation speed of the workpiece provided by the differentiator 402 can also be provided to the third input terminal S3 of the speed controller 403 as a feedback value for the closed-loop control of the rotation speed of the workpiece, that is, the current controller 404 converts the output of the first input terminal S1 ( The preset rotation speed setting value of the workpiece) is summed with the output (feedforward compensation value) of the second input terminal S2, and the summation result is subtracted from the output (feedback value) of the first input terminal S3 as the spindle motor rotation speed control value.

在一个实施方式中,速度补偿控制器401,还用于建立包含在工件预定旋转速度设定值时的刀具加工位置与跌落补偿量之间对应关系的跌落补偿量表;其中基于刀具加工位置检索出与工件预定旋转速度设定值相关的第一跌落补偿量包括:将刀具加工位置确定为检索项,利用检索项查询补偿量表以确定第一跌落补偿量。In one embodiment, the speed compensation controller 401 is further configured to establish a drop compensation amount table including the corresponding relationship between the tool machining position and the drop compensation amount when the workpiece predetermined rotation speed is set; wherein the retrieval is based on the tool machining position Determining the first drop compensation amount related to the preset rotation speed setting value of the workpiece includes: determining the machining position of the tool as a retrieval item, and using the retrieval item to query the compensation amount table to determine the first drop compensation amount.

在一个实施方式中,速度补偿控制器401,用于确定补偿系数与工件预定旋转速度设定值的第一比值;确定第一比值与第一跌落补偿量的第一乘积;确定第一乘积与工件实际旋转速度的第二乘积,将第二乘积确定为第二跌落补偿量;或,确定工件预定旋转速度设定值与切削深度设定值的第三乘积,确定补偿系数与第三乘积的第二比值;确定第二比值与工件实际切削深度的第四乘积,确定第四乘积与第一跌落补偿量的第五乘积;确定第五乘积与工件实际旋转速度的第六乘积,将第六乘积确定为第二跌落补偿量。In one embodiment, the speed compensation controller 401 is configured to determine a first ratio between the compensation coefficient and the preset rotation speed setting value of the workpiece; determine the first product of the first ratio and the first drop compensation amount; determine the first product and The second product of the actual rotation speed of the workpiece, and the second product is determined as the second drop compensation amount; or, the third product of the preset rotation speed setting value of the workpiece and the cutting depth setting value is determined, and the compensation coefficient and the third product are determined. The second ratio; determine the fourth product of the second ratio and the actual cutting depth of the workpiece, and determine the fifth product of the fourth product and the first drop compensation amount; determine the sixth product of the fifth product and the actual rotation speed of the workpiece, and the sixth product The product is determined as the second drop compensation amount.

在一个实施方式中,速度补偿控制器401,用于当进入工件学习状态时,从工件实际旋转速度的跌落值开始大于预定门限值到工件实际旋转速度的跌落值开始不大于预定门限值的时间段内,记录多个刀具加工位置和对应于多个刀具加工位置的多个工件实际旋转速度;将工件预定旋转速度设定值与多个工件实际旋转速度的多个差,分别确定为对应于多个刀具加工位置的多个跌落补偿量;基于多个刀具加工位置和多个跌落补偿量建立跌落补偿量表。In one embodiment, the speed compensation controller 401 is configured to, when entering the workpiece learning state, start from the drop value of the actual rotation speed of the workpiece being greater than the predetermined threshold value to the drop value of the actual rotation speed of the workpiece starting not greater than the predetermined threshold value During the period of time, record multiple tool processing positions and multiple workpiece actual rotation speeds corresponding to multiple tool processing positions; multiple differences between the preset rotation speed setting value of the workpiece and the actual rotation speeds of multiple workpieces are determined as A plurality of drop compensation amounts corresponding to the plurality of tool machining positions; a drop compensation amount table is established based on the plurality of tool machining positions and the plurality of drop compensation amounts.

基于上述描述,本发明实施方式还提出一种基于处理器和存储器架构的车床工件旋转速度的补偿装置。Based on the above description, an embodiment of the present invention further provides a device for compensating the rotation speed of a workpiece of a lathe based on a processor and a memory architecture.

图5为根据本发明实施方式的车床工件旋转速度的补偿装置的示范性结构图。FIG. 5 is an exemplary structural diagram of a device for compensating the rotational speed of a workpiece of a lathe according to an embodiment of the present invention.

如图5所示,车床工件旋转速度的补偿装置500包括:处理器501和存储器502;As shown in FIG. 5 , the device 500 for compensating the rotation speed of the workpiece of the lathe includes: a processor 501 and a memory 502;

存储器502中存储有可被处理器501执行的应用程序,用于使得处理器501执行如上任一项的车床工件旋转速度的补偿方法的步骤。An application program executable by the processor 501 is stored in the memory 502 for causing the processor 501 to execute the steps of the method for compensating the rotational speed of a workpiece of a lathe as described above.

下面以车床执行的具体生产工艺为实例描述本发明实施方式。The embodiments of the present invention are described below by taking a specific production process performed by a lathe as an example.

图6为根据本发明实施方式利用车床车直螺纹的示意图。6 is a schematic diagram of straight thread turning using a lathe according to an embodiment of the present invention.

在图6中,卡盘602将工件600固定在车床的主轴603上。螺纹刀601根据平行于Z轴的预定方向T在工件600上持续进给。螺纹刀601与工件600的首次接触点的位置坐标为(X0,Z0)。In Figure 6, a chuck 602 holds a workpiece 600 on a spindle 603 of a lathe. The thread cutter 601 is continuously fed on the workpiece 600 according to a predetermined direction T parallel to the Z axis. The position coordinates of the first contact point between the thread cutter 601 and the workpiece 600 are (X0, Z0).

图7为现有技术中工件旋转速度跌落的示意图。FIG. 7 is a schematic diagram of the drop of the rotational speed of the workpiece in the prior art.

在图7中,横坐标为时间,纵坐标为工件旋转速度。可见,在首次接触点(X0,Z0)处,工件600的旋转速度发生跌落。然后,由于针对工件旋转速度的闭环反馈控制,工件旋转速度可以得到恢复。但是,在工件旋转速度的跌落期间内,工件加工精度将下降。In Fig. 7, the abscissa is time, and the ordinate is the rotational speed of the workpiece. It can be seen that at the first contact point (X0, Z0), the rotational speed of the workpiece 600 drops. Then, due to the closed-loop feedback control of the workpiece rotation speed, the workpiece rotation speed can be recovered. However, during the drop period of the workpiece rotation speed, the machining accuracy of the workpiece decreases.

图8为根据本发明实施方式工件旋转速度保持稳定的示意图。FIG. 8 is a schematic diagram illustrating that the rotational speed of the workpiece remains stable according to an embodiment of the present invention.

在图8中,横坐标为时间,纵坐标为工件旋转速度。在首次接触点(X0,Z0)处,确定出Z方向的刀具加工位置为Z0,并在跌落补偿量表中查找出对应于Z方向的刀具加工位置(即Z0)的第一跌落补偿量,并基于接触点(X0,Z0)处的工件实际旋转速度确定出接触点(X0,Z0)位置的实际跌落补偿量(即第二跌落补偿量),并向主轴电机提供该第二跌落补偿量以前馈补偿工件的旋转速度。而且,随着刀具的进给,持续在跌落补偿量表中查找出对应于Z方向上变化的刀具加工位置的第一跌落补偿量,并基于变化的第一跌落补偿量和变化的工件实际旋转速度持续确定出后续接触点的第二跌落补偿量,并向主轴电机持续提供该第二跌落补偿量以前馈补偿工件的旋转速度。当基于Z方向的刀具加工位置不能在跌落补偿量表中查找出第一跌落补偿量时,则停止前馈补偿。In FIG. 8, the abscissa is time, and the ordinate is the rotational speed of the workpiece. At the first contact point (X0, Z0), the tool machining position in the Z direction is determined as Z0, and the first drop compensation amount corresponding to the tool machining position (ie Z0) in the Z direction is found in the drop compensation amount table, And based on the actual rotation speed of the workpiece at the contact point (X0, Z0), the actual drop compensation amount (ie the second drop compensation amount) at the contact point (X0, Z0) position is determined, and the second drop compensation amount is provided to the spindle motor. Feedforward compensation for the rotational speed of the workpiece. Moreover, with the feed of the tool, the first drop compensation amount corresponding to the machining position of the tool changed in the Z direction is continuously searched in the drop compensation amount table, and based on the changed first drop compensation amount and the changed actual rotation of the workpiece The speed continues to determine the second drop compensation amount for the subsequent contact point, and the second drop compensation amount is continuously provided to the spindle motor to feed forward the rotation speed of the workpiece. When the first drop compensation amount cannot be found in the drop compensation amount table based on the machining position of the tool in the Z direction, the feedforward compensation is stopped.

由图8可见,由于已经预先前馈补偿了工件旋转速度,整个加工过程中的工件旋转速度没有发生跌落,因此工件加工精度获得提高。It can be seen from FIG. 8 that since the rotation speed of the workpiece has been compensated by feedforward in advance, the rotation speed of the workpiece does not drop during the entire processing process, so the machining accuracy of the workpiece is improved.

需要说明的是,上述各流程和各结构图中不是所有的步骤和模块都是必须的,可以根据实际的需要忽略某些步骤或模块。各步骤的执行顺序不是固定的,可以根据需要进行调整。各模块的划分仅仅是为了便于描述采用的功能上的划分,实际实现时,一个模块可以分由多个模块实现,多个模块的功能也可以由同一个模块实现,这些模块可以位于同一个设备中,也可以位于不同的设备中。It should be noted that not all steps and modules in the above-mentioned processes and structural diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of each step is not fixed and can be adjusted as required. The division of each module is only to facilitate the description of the functional division used. In actual implementation, a module can be implemented by multiple modules, and the functions of multiple modules can also be implemented by the same module. These modules can be located in the same device. , or in a different device.

各实施方式中的硬件模块可以以机械方式或电子方式实现。例如,一个硬件模块可以包括专门设计的永久性电路或逻辑器件(如专用处理器,如FPGA或ASIC)用于完成特定的操作。硬件模块也可以包括由软件临时配置的可编程逻辑器件或电路(如包括通用处理器或其它可编程处理器)用于执行特定操作。至于具体采用机械方式,或是采用专用的永久性电路,或是采用临时配置的电路(如由软件进行配置)来实现硬件模块,可以根据成本和时间上的考虑来决定。The hardware modules in various embodiments may be implemented mechanically or electronically. For example, a hardware module may include specially designed permanent circuits or logic devices (eg, special purpose processors, such as FPGAs or ASICs) for performing specific operations. Hardware modules may also include programmable logic devices or circuits (eg, including general-purpose processors or other programmable processors) temporarily configured by software for performing particular operations. As for the specific use of a mechanical method, or a dedicated permanent circuit, or a temporarily configured circuit (for example, configured by software) to realize the hardware module, it can be decided according to cost and time considerations.

本发明还提供了一种机器可读的存储介质,存储用于使一机器执行如本文所述方法的指令。具体地,可以提供配有存储介质的系统或者装置,在该存储介质上存储着实现上述实施例中任一实施方式的功能的软件程序代码,且使该系统或者装置的计算机(或CPU或MPU)读出并执行存储在存储介质中的程序代码。此外,还可以通过基于程序代码的指令使计算机上操作的操作系统等来完成部分或者全部的实际操作。还可以将从存储介质读出的程序代码写到插入计算机内的扩展板中所设置的存储器中或者写到与计算机相连接的扩展单元中设置的存储器中,随后基于程序代码的指令使安装在扩展板或者扩展单元上的CPU等来执行部分和全部实际操作,从而实现上述实施方式中任一实施方式的功能。The present invention also provides a machine-readable storage medium storing instructions for causing a machine to perform a method as described herein. Specifically, it is possible to provide a system or device equipped with a storage medium on which software program codes for realizing the functions of any one of the above-described embodiments are stored, and make the computer (or CPU or MPU of the system or device) ) to read and execute the program code stored in the storage medium. In addition, a part or all of the actual operation can also be completed by an operating system or the like operating on the computer based on the instructions of the program code. The program code read from the storage medium can also be written into the memory provided in the expansion board inserted into the computer or into the memory provided in the expansion unit connected to the computer, and then the instructions based on the program code make the device installed in the computer. The CPU on the expansion board or the expansion unit or the like performs part and all of the actual operations, so as to realize the functions of any one of the above-mentioned embodiments.

用于提供程序代码的存储介质实施方式包括软盘、硬盘、磁光盘、光盘(如CD-ROM、CD-R、CD-RW、DVD-ROM、DVD-RAM、DVD-RW、DVD+RW)、磁带、非易失性存储卡和ROM。可选择地,可以由通信网络从服务器计算机上下载程序代码。Embodiments of storage media for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (eg, CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), Magnetic tapes, non-volatile memory cards and ROMs. Alternatively, the program code may be downloaded from a server computer over a communications network.

以上所述,仅为本发明的较佳实施方式而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are merely preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (16)

1.车床工件旋转速度的补偿方法,其特征在于,包括:1. the compensation method of the rotational speed of the lathe workpiece, is characterized in that, comprises: 读取刀具加工位置和工件实际旋转速度(102);Read the machining position of the tool and the actual rotation speed of the workpiece (102); 基于所述刀具加工位置确定与工件预定旋转速度设定值相关的第一跌落补偿量(104);determining a first drop compensation amount associated with a predetermined workpiece rotational speed setting based on the tool machining position (104); 基于所述第一跌落补偿量确定对应于所述工件实际旋转速度的第二跌落补偿量(106);determining a second drop compensation amount corresponding to the actual rotational speed of the workpiece based on the first drop compensation amount (106); 基于所述第二跌落补偿量前馈补偿所述工件的旋转速度(108)。The rotational speed of the workpiece is feedforward compensated based on the second drop compensation amount (108). 2.根据权利要求1所述的车床工件旋转速度的补偿方法,其特征在于,该方法还包括:建立跌落补偿量表,所述跌落补偿量表包含在工件预定旋转速度设定值时的刀具加工位置与跌落补偿量之间的对应关系;2 . The method for compensating the rotational speed of a workpiece of a lathe according to claim 1 , wherein the method further comprises: establishing a drop compensation scale, the drop compensation scale including the tool when the predetermined rotational speed of the workpiece is set at a set value. 3 . Correspondence between processing position and drop compensation amount; 所述基于所述刀具加工位置确定与工件预定旋转速度设定值相关的第一跌落补偿量(104)包括:The determining of the first drop compensation amount (104) related to the predetermined rotation speed setting value of the workpiece based on the tool machining position includes: 将所述刀具加工位置确定为检索项,利用所述检索项查询所述跌落补偿量表以确定对应于所述检索项的跌落补偿量;Determining the tool processing position as a retrieval item, and querying the drop compensation amount table by using the retrieval item to determine the drop compensation amount corresponding to the retrieval item; 将查询出的所述跌落补偿量确定为所述第一跌落补偿量。The queried drop compensation amount is determined as the first drop compensation amount. 3.根据权利要求1所述的车床工件旋转速度的补偿方法,其特征在于,所述基于所述第一跌落补偿量确定对应于所述工件实际旋转速度的第二跌落补偿量(106)包括:3. The method for compensating the rotational speed of a workpiece of a lathe according to claim 1, wherein the determining a second drop compensation amount (106) corresponding to the actual rotational speed of the workpiece based on the first drop compensation amount comprises: : 确定补偿系数与所述工件预定旋转速度设定值的第一比值;确定所述第一比值与所述第一跌落补偿量的第一乘积;确定所述第一乘积与所述工件实际旋转速度的第二乘积,将所述第二乘积确定为所述第二跌落补偿量;或determining the first ratio of the compensation coefficient to the preset rotation speed setting value of the workpiece; determining the first product of the first ratio and the first drop compensation amount; determining the first product and the actual rotation speed of the workpiece The second product of , and determining the second product as the second drop compensation amount; or 确定所述工件预定旋转速度设定值与切削深度设定值的第三乘积,确定补偿系数与所述第三乘积的第二比值;确定所述第二比值与工件实际切削深度的第四乘积,确定所述第四乘积与所述第一跌落补偿量的第五乘积;确定所述第五乘积与所述工件实际旋转速度的第六乘积,将所述第六乘积确定为所述第二跌落补偿量。Determine the third product of the preset rotation speed setting value of the workpiece and the cutting depth setting value, determine the second ratio of the compensation coefficient and the third product; determine the fourth product of the second ratio and the actual cutting depth of the workpiece , determine the fifth product of the fourth product and the first drop compensation amount; determine the sixth product of the fifth product and the actual rotation speed of the workpiece, and determine the sixth product as the second Drop compensation amount. 4.根据权利要求3所述的车床工件旋转速度的补偿方法,其特征在于,所述补偿系数与所述工件的材料相关联,且所述补偿系数为可调的。4 . The method for compensating the rotation speed of a workpiece of a lathe according to claim 3 , wherein the compensation coefficient is associated with the material of the workpiece, and the compensation coefficient is adjustable. 5 . 5.根据权利要求2所述的车床工件旋转速度的补偿方法,其特征在于,所述建立跌落补偿量表包括:5. The compensation method for the rotational speed of a lathe workpiece according to claim 2, wherein the establishing a drop compensation scale comprises: 当进入工件学习状态时,从工件实际旋转速度的跌落值开始大于预定门限值到工件实际旋转速度的跌落值开始不大于所述预定门限值的时间段内,记录多个刀具加工位置和对应于所述多个刀具加工位置的多个工件实际旋转速度(202);When entering the workpiece learning state, within the time period from when the drop value of the actual rotation speed of the workpiece is greater than the predetermined threshold value to when the drop value of the actual rotation speed of the workpiece is not greater than the predetermined threshold value, record multiple tool processing positions and a plurality of workpiece actual rotational speeds corresponding to the plurality of tool machining positions (202); 将所述工件预定旋转速度设定值与所述多个工件实际旋转速度的多个差,分别确定为对应于所述多个刀具加工位置的多个跌落补偿量(204);Determine a plurality of differences between the preset rotation speed setting value of the workpiece and the actual rotation speed of the plurality of workpieces as a plurality of drop compensation amounts corresponding to the machining positions of the plurality of tools (204); 基于所述多个刀具加工位置和所述多个跌落补偿量建立所述跌落补偿量表(206)。The drop compensation amount table is established based on the plurality of tool machining positions and the plurality of drop compensation amounts (206). 6.车床工件旋转速度的补偿装置(300),其特征在于,包括:6. A compensation device (300) for the rotational speed of a lathe workpiece, characterized in that it comprises: 参数读取模块(301),用于读取刀具加工位置和工件实际旋转速度;The parameter reading module (301) is used to read the machining position of the tool and the actual rotation speed of the workpiece; 第一跌落补偿量确定模块(302),用于基于所述刀具加工位置确定与工件预定旋转速度设定值相关的第一跌落补偿量;a first drop compensation amount determination module (302), configured to determine a first drop compensation amount related to a preset rotation speed setting value of the workpiece based on the tool machining position; 第二跌落补偿量确定模块(303),用于基于所述第一跌落补偿量确定对应于所述工件实际旋转速度的第二跌落补偿量;A second drop compensation amount determination module (303), configured to determine a second drop compensation amount corresponding to the actual rotational speed of the workpiece based on the first drop compensation amount; 前馈补偿模块(304),用于基于所述第二跌落补偿量前馈补偿所述工件的旋转速度。A feedforward compensation module (304) for feedforward compensation of the rotation speed of the workpiece based on the second drop compensation amount. 7.根据权利要求6所述的车床工件旋转速度的补偿装置(300),其特征在于,还包括:7. The device (300) for compensating the rotational speed of the workpiece of a lathe according to claim 6, further comprising: 跌落补偿量表建立模块(305),用于建立跌落补偿量表,所述跌落补偿量表包含在工件预定旋转速度设定值时的刀具加工位置与跌落补偿量之间对应关系;a drop compensation scale establishment module (305), used for establishing a drop compensation scale, the drop compensation scale including the corresponding relationship between the tool machining position and the drop compensation amount when the workpiece predetermined rotation speed setting value; 所述第一跌落补偿量确定模块(302),用于将所述刀具加工位置确定为检索项,利用所述检索项查询所述跌落补偿量表以确定对应于所述检索项的跌落补偿量;将查询出的所述跌落补偿量确定为所述第一跌落补偿量。The first drop compensation amount determination module (302) is configured to determine the tool machining position as a retrieval item, and use the retrieval item to query the drop compensation amount table to determine the drop compensation amount corresponding to the retrieval item ; Determining the queried drop compensation amount as the first drop compensation amount. 8.根据权利要求7所述的车床工件旋转速度的补偿装置(300),其特征在于,8. The device (300) for compensating the rotational speed of the workpiece of a lathe according to claim 7, characterized in that, 所述第二跌落补偿量确定模块(303),用于确定补偿系数与所述工件预定旋转速度设定值的第一比值;确定所述第一比值与所述第一跌落补偿量的第一乘积;确定所述第一乘积与所述工件实际旋转速度的第二乘积,将所述第二乘积确定为所述第二跌落补偿量;或The second drop compensation amount determination module (303) is configured to determine a first ratio between the compensation coefficient and the preset rotation speed setting value of the workpiece; determine a first ratio between the first ratio and the first drop compensation amount product; determining the second product of the first product and the actual rotational speed of the workpiece, and determining the second product as the second drop compensation amount; or 确定所述工件预定旋转速度设定值与切削深度设定值的第三乘积,确定补偿系数与所述第三乘积的第二比值;确定所述第二比值与工件实际切削深度的第四乘积,确定所述第四乘积与所述第一跌落补偿量的第五乘积;确定所述第五乘积与所述工件实际旋转速度的第六乘积,将所述第六乘积确定为所述第二跌落补偿量。Determine the third product of the preset rotation speed setting value of the workpiece and the cutting depth setting value, determine the second ratio of the compensation coefficient and the third product; determine the fourth product of the second ratio and the actual cutting depth of the workpiece , determine the fifth product of the fourth product and the first drop compensation amount; determine the sixth product of the fifth product and the actual rotation speed of the workpiece, and determine the sixth product as the second Drop compensation amount. 9.根据权利要求8所述的车床工件旋转速度的补偿装置(300),其特征在于,9. The device (300) for compensating the rotational speed of a lathe workpiece according to claim 8, characterized in that, 所述补偿系数与所述工件的材料相关,且所述补偿系数为可调的。The compensation coefficient is related to the material of the workpiece, and the compensation coefficient is adjustable. 10.根据权利要求8所述的车床工件旋转速度的补偿装置(300),其特征在于,10. The device (300) for compensating the rotational speed of a workpiece of a lathe according to claim 8, characterized in that: 所述跌落补偿量表建立模块(305),用于当进入工件学习状态时,从工件实际旋转速度的跌落值开始大于预定门限值到工件实际旋转速度的跌落值开始不大于预定门限值的时间段内,记录多个刀具加工位置和对应于所述多个刀具加工位置的多个工件实际旋转速度;将所述工件预定旋转速度设定值与所述多个工件实际旋转速度的多个差,分别确定为对应于所述多个刀具加工位置的多个跌落补偿量;基于所述多个刀具加工位置和所述多个跌落补偿量建立所述跌落补偿量表。The drop compensation scale establishment module (305) is used to, when entering the workpiece learning state, start from the drop value of the actual rotational speed of the workpiece being greater than the predetermined threshold value to the drop value of the actual rotational speed of the workpiece starting not greater than the predetermined threshold value During the time period, record multiple tool processing positions and multiple workpiece actual rotation speeds corresponding to the multiple tool processing positions; The differences are respectively determined as a plurality of drop compensation amounts corresponding to the plurality of tool machining positions; the drop compensation amount table is established based on the plurality of tool machining positions and the plurality of drop compensation amounts. 11.车床系统(400),其特征在于,包含:11. A lathe system (400), characterized in that, comprising: 主轴电机(405),用于旋转固定有工件的主轴,并提供所述主轴的位置信息;a spindle motor (405) for rotating the spindle on which the workpiece is fixed, and providing position information of the spindle; 微分器(402),用于对所述主轴的位置信息执行微分运算以提供工件实际旋转速度;a differentiator (402) for performing a differential operation on the position information of the main shaft to provide the actual rotation speed of the workpiece; 速度控制器(403),用于控制所述主轴电机(405)的旋转速度;所述速度控制器(403)包含第一输入端和第二输入端,所述第一输入端连接工件预定旋转速度设定值;A speed controller (403) for controlling the rotation speed of the spindle motor (405); the speed controller (403) includes a first input end and a second input end, the first input end is connected to a predetermined rotation of the workpiece speed setting value; 速度补偿控制器(401),用于基于刀具加工位置确定对应于所述工件预定旋转速度设定值的第一跌落补偿量,基于所述第一跌落补偿量确定对应于所述工件实际旋转速度的第二跌落补偿量,将所述第二跌落补偿量作为前馈补偿值提供到所述第二输入端。A speed compensation controller (401), configured to determine a first drop compensation amount corresponding to the preset rotation speed setting value of the workpiece based on the tool machining position, and determine the actual rotation speed of the workpiece based on the first drop compensation amount The second drop compensation amount is provided to the second input terminal as a feedforward compensation value. 12.根据权利要求11所述的车床系统(400),其特征在于,所述速度补偿控制器(401),还用于建立包含在工件预定旋转速度设定值时的刀具加工位置与跌落补偿量之间对应关系的跌落补偿量表;其中所述基于所述刀具加工位置检索出与工件预定旋转速度设定值相关的第一跌落补偿量包括:将所述刀具加工位置确定为检索项,利用所述检索项查询所述跌落补偿量表以确定对应于所述检索项的跌落补偿量;将查询出的所述跌落补偿量确定为所述第一跌落补偿量。12. The lathe system (400) according to claim 11, wherein the speed compensation controller (401) is further configured to establish the tool machining position and drop compensation included in the preset value of the workpiece rotation speed A drop compensation scale with corresponding relationship between quantities; wherein the retrieval of the first drop compensation amount related to the preset value of the workpiece rotation speed based on the tool machining position includes: determining the tool machining position as a retrieval item, The drop compensation amount table is queried by the retrieval item to determine the drop compensation amount corresponding to the retrieval item; the drop compensation amount obtained by the query is determined as the first drop compensation amount. 13.根据权利要求11所述的车床系统(400),其特征在于,所述速度补偿控制器(401),用于确定补偿系数与所述工件预定旋转速度设定值的第一比值;确定所述第一比值与所述第一跌落补偿量的第一乘积;确定所述第一乘积与所述工件实际旋转速度的第二乘积,将所述第二乘积确定为所述第二跌落补偿量;或13. The lathe system (400) according to claim 11, wherein the speed compensation controller (401) is configured to determine the first ratio of the compensation coefficient to the preset rotation speed setting value of the workpiece; determine The first product of the first ratio and the first drop compensation amount; the second product of the first product and the actual rotation speed of the workpiece is determined, and the second product is determined as the second drop compensation amount; or 确定所述工件预定旋转速度设定值与切削深度设定值的第三乘积,确定补偿系数与所述第三乘积的第二比值;确定所述第二比值与工件实际切削深度的第四乘积,确定所述第四乘积与所述第一跌落补偿量的第五乘积;确定所述第五乘积与所述工件实际旋转速度的第六乘积,将所述第六乘积确定为所述第二跌落补偿量。Determine the third product of the preset rotation speed setting value of the workpiece and the cutting depth setting value, determine the second ratio of the compensation coefficient and the third product; determine the fourth product of the second ratio and the actual cutting depth of the workpiece , determine the fifth product of the fourth product and the first drop compensation amount; determine the sixth product of the fifth product and the actual rotation speed of the workpiece, and determine the sixth product as the second Drop compensation amount. 14.根据权利要求12所述的车床系统(400),其特征在于,14. The lathe system (400) of claim 12, wherein 所述速度补偿控制器(401),用于当进入工件学习状态时,从工件实际旋转速度的跌落值开始大于预定门限值到工件实际旋转速度的跌落值开始不大于预定门限值的时间段内,记录多个刀具加工位置和对应于所述多个刀具加工位置的多个工件实际旋转速度;将所述工件预定旋转速度设定值与所述多个工件实际旋转速度的多个差,分别确定为对应于所述多个刀具加工位置的多个跌落补偿量;基于所述多个刀具加工位置和所述多个跌落补偿量建立所述跌落补偿量表。The speed compensation controller (401) is used for, when entering the workpiece learning state, from the time when the drop value of the actual rotation speed of the workpiece is greater than the predetermined threshold value to the time when the drop value of the actual rotation speed of the workpiece is not greater than the predetermined threshold value In the segment, multiple tool processing positions and multiple workpiece actual rotation speeds corresponding to the multiple tool processing positions are recorded; multiple differences between the preset rotation speed setting value of the workpiece and the multiple workpiece actual rotation speeds are are respectively determined as a plurality of drop compensation amounts corresponding to the plurality of tool machining positions; the drop compensation amount table is established based on the plurality of tool machining positions and the plurality of drop compensation amounts. 15.车床工件旋转速度的补偿装置(500),其特征在于,包括:处理器(501)和存储器(502);15. A device (500) for compensating the rotational speed of a workpiece of a lathe, characterized by comprising: a processor (501) and a memory (502); 所述存储器(502)中存储有可被所述处理器(501)执行的应用程序,用于使得所述处理器(501)执行如权利要求1至5中任一项所述的车床工件旋转速度的补偿方法的步骤。An application program executable by the processor (501) is stored in the memory (502) for causing the processor (501) to perform the lathe workpiece rotation according to any one of claims 1 to 5 The steps of the speed compensation method. 16.计算机可读存储介质,其特征在于,其中存储有计算机可读指令,该计算机可读指令用于执行如权利要求1至5中任一项所述的车床工件旋转速度的补偿方法的步骤。16. A computer-readable storage medium, wherein a computer-readable instruction is stored therein, and the computer-readable instruction is used to execute the steps of the method for compensating the rotational speed of a lathe workpiece according to any one of claims 1 to 5. .
CN201810135238.3A 2018-02-09 2018-02-09 Method, device, system and storage medium for compensating rotation speed of lathe workpiece Active CN110134066B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810135238.3A CN110134066B (en) 2018-02-09 2018-02-09 Method, device, system and storage medium for compensating rotation speed of lathe workpiece

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810135238.3A CN110134066B (en) 2018-02-09 2018-02-09 Method, device, system and storage medium for compensating rotation speed of lathe workpiece

Publications (2)

Publication Number Publication Date
CN110134066A CN110134066A (en) 2019-08-16
CN110134066B true CN110134066B (en) 2022-06-28

Family

ID=67566947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810135238.3A Active CN110134066B (en) 2018-02-09 2018-02-09 Method, device, system and storage medium for compensating rotation speed of lathe workpiece

Country Status (1)

Country Link
CN (1) CN110134066B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5895181A (en) * 1996-05-29 1999-04-20 Okk Corporation Dynamic error correcting system in a numerically controlled machine tool
CN1784823A (en) * 2003-05-02 2006-06-07 克桑特雷克斯技术有限公司 Control system for doubly fed induction generator
CN1945471A (en) * 2005-10-07 2007-04-11 发那科株式会社 Servo motor stop controlling method and servo motor controller
CN101345464A (en) * 2008-08-27 2009-01-14 北京清能华福风电技术有限公司 Double-feed motor adopting AC-DC-AC current transformer for speed regulation and its start control method
CN101844317A (en) * 2010-03-25 2010-09-29 合肥工业大学 Device and method for correcting transmission error of precise numerical control machine closed loop servo system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5895181A (en) * 1996-05-29 1999-04-20 Okk Corporation Dynamic error correcting system in a numerically controlled machine tool
CN1784823A (en) * 2003-05-02 2006-06-07 克桑特雷克斯技术有限公司 Control system for doubly fed induction generator
CN1945471A (en) * 2005-10-07 2007-04-11 发那科株式会社 Servo motor stop controlling method and servo motor controller
CN101345464A (en) * 2008-08-27 2009-01-14 北京清能华福风电技术有限公司 Double-feed motor adopting AC-DC-AC current transformer for speed regulation and its start control method
CN101844317A (en) * 2010-03-25 2010-09-29 合肥工业大学 Device and method for correcting transmission error of precise numerical control machine closed loop servo system

Also Published As

Publication number Publication date
CN110134066A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
EP0905593B1 (en) Numerical controlling device and tooling apparatus with a numerical controlling device
US10698381B2 (en) Numerical control device and numerical control method
US20090164038A1 (en) Method for optimizing the machining process in a machine
CN108594760A (en) Produce and process control system, production and processing control method and storage device
JP6740199B2 (en) Numerical control device, CNC machine tool, numerical control method, and numerical control program
CN108673241A (en) A kind of cutting stage numerically-controlled machine tool Calculation Method of Energy Consumption
WO1983002416A1 (en) Numerical control machining system
JPH11129141A (en) Automatic processing and evaluating device for machining information
JP5886656B2 (en) Numerical controller
JP6040665B2 (en) Chatter vibration suppressing method and machine tool
CN108673240A (en) A kind of net material removal of numerical control milling based on tool abrasion is than energy computational methods
CN110134066B (en) Method, device, system and storage medium for compensating rotation speed of lathe workpiece
CN112859754A (en) Machine tool machining control method, machine tool machining control device, storage medium, edge device and server
JP6770018B2 (en) Setting device and setting program
JP6499707B2 (en) Simulation device, program generation device, control device, and computer display method
JP2017132000A (en) Manufacturing system and manufacturing method
JPH0753336B2 (en) Automatic tool selection device for machine tools
JP6865057B2 (en) Machine tool control device, machine tool control method and machine tool control system
JP7448658B2 (en) Machine tool control device and control method and slave axis control device
JP2014061567A (en) Machine tool
JPH0745762Y2 (en) NC data creation device
JP2680955B2 (en) Drilling restart control method
US20240411285A1 (en) Automated tool path generation for machining workpieces
CN111168457B (en) Numerical control machine tool spindle preheating control method and device
CN116944552A (en) Drilling control method, device, equipment and medium

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