Method for controlling movement of machine tool shaft and related equipment

文档序号:1539534 发布日期:2020-02-14 浏览:34次 中文

阅读说明:本技术 一种控制机床轴移动的方法及相关设备 (Method for controlling movement of machine tool shaft and related equipment ) 是由 庞华冲 于 2017-07-19 设计创作,主要内容包括:一种控制机床轴移动的方法及相关设备,用于在多轴多通道系统中,接触路径规划模块和插补模块与通道控制模块的耦合性。该方法包括:获取第一通道轴的数据结构(101);根据第一通道轴的数据结构以及预置的逆映射关系确定第二通道轴的数据结构(102);根据第二通道轴的数据结构进行计算,以得到第二通道的路径规划数据以及插补数据(103);根据第二通道轴的数据结构以及预置的轴映射关系确定目标机床轴(104);将第二通道轴的路径规划数据以及插补数据发送至目标机床轴对应的驱动器(105),以使得目标机床轴对应的驱动器根据第二通道轴的路径规划数据以及插补数据驱动目标机床轴移动。(A method and related equipment for controlling movement of a machine tool axis are used for coupling a contact path planning module and an interpolation module with a channel control module in a multi-axis multi-channel system. The method comprises the following steps: acquiring a data structure (101) of a first channel axis; determining a data structure (102) of a second channel axis according to the data structure of the first channel axis and a preset inverse mapping relation; calculating according to the data structure of the second channel axis to obtain path planning data and interpolation data of the second channel (103); determining a target machine tool axis (104) according to the data structure of the second channel axis and a preset axis mapping relation; and sending the path planning data and the interpolation data of the second channel axis to a driver (105) corresponding to the target machine tool axis, so that the driver corresponding to the target machine tool axis drives the target machine tool axis to move according to the path planning data and the interpolation data of the second channel axis.)

A method of controlling movement of a machine tool spindle, the method comprising:

acquiring a data structure of a first channel shaft, wherein the first channel shaft is a channel shaft in a first channel;

determining a data structure of a second channel axis according to the data structure of the first channel axis and a preset inverse mapping relation, wherein the second channel axis is a channel axis in a second channel, the preset inverse mapping relation is a corresponding relation between the channel axis in the second channel and the channel axis in the first channel, and the first channel axis and the second channel axis are different channel axes;

calculating according to the data structure of the second channel axis to obtain path planning data and interpolation data of the second channel axis;

determining a target machine tool axis according to the data structure of the second channel axis and a preset axis mapping relation, wherein the preset axis mapping relation is a corresponding relation between the machine tool axis and a channel axis in the second channel;

and sending the path planning data and the interpolation data of the second channel axis to a driver corresponding to the target machine tool axis, so that the driver corresponding to the target machine tool axis drives the target machine tool axis to move according to the path planning data and the interpolation data of the second channel axis.

The method of claim 1, wherein before determining the second channel axis according to the first channel axis and a preset inverse mapping relationship, the method further comprises:

acquiring a first corresponding relation between a channel shaft in a first channel and a machine tool shaft during initialization;

determining a second corresponding relation according to the first corresponding relation and a preset mapping rule, wherein the second corresponding relation is the corresponding relation between a channel shaft in the second channel and the machine tool shaft;

and determining the second corresponding relation as the preset axis mapping relation.

The method of claim 2, wherein determining a second correspondence according to the first correspondence and a preset mapping rule comprises:

when the first corresponding relation exists in the machine tool axis parallel to the geometric axis, arranging the machine tool axis parallel to the geometric axis to a first preset channel axis position in the second channel;

when the first corresponding relation exists in the machine tool shaft as the main shaft, the machine tool shaft as the main shaft is arranged to a second preset channel shaft position in the second channel;

when a machine tool shaft which is not a main shaft or a machine tool shaft which is not parallel to a geometric shaft exists in the first corresponding relation, arranging the machine tool shaft which is not the main shaft or the machine tool shaft which is not parallel to the geometric shaft to a third preset channel shaft position in the second channel;

and arranging the first preset channel axis position, the second preset channel axis position and the third preset channel axis position according to a preset rule to determine the second corresponding relation.

The method of claim 3, wherein when no machine axis parallel to a geometric axis is present in the first correspondence, the method further comprises:

and leaving the first preset channel shaft position empty.

The method of claim 3, wherein when a machine axis as a primary axis is not present in the first correspondence, the method further comprises:

and leaving the third preset channel axis position empty.

The method of claim 2, wherein after determining the second correspondence as the preset axis mapping relationship, the method further comprises:

step 1: determining a first machine axis corresponding to a second channel axis in the second corresponding relationship;

step 2: determining a first channel axis corresponding to the first machine axis in the first correspondence;

and step 3: determining that a second channel axis in the second correspondence corresponds to a first channel axis in the first correspondence;

repeating the steps 1 to 3 until all the channel axes in the second corresponding relationship correspond to all the channel axes in the first corresponding relationship;

and determining the corresponding relation between all the channel axes in the second corresponding relation and all the channel axes in the first corresponding relation as the preset inverse mapping relation.

An apparatus for controlling movement of a machine tool spindle, comprising:

a processor, a storage medium, and an input-output interface;

program code stored on the storage medium, the processor to invoke the program code to perform a method of controlling machine tool axis movement according to any one of claims 1 to 6.

A numerically controlled machine tool, comprising:

the control system, the driver and the machine tool body;

the control system is in communication connection with the driver;

the driver is arranged on the machine tool body and is used for driving a machine tool shaft on the machine tool body to move;

the control system includes a processor for performing the steps of:

acquiring a data structure of a first channel shaft, wherein the first channel shaft is a channel shaft in a first channel;

determining a data structure of a second channel axis according to the data structure of the first channel axis and a preset inverse mapping relation, wherein the second channel axis is a channel axis in a second channel, the preset inverse mapping relation is a corresponding relation between the channel axis in the second channel and the channel axis in the first channel, and the first channel axis and the second channel axis are different channel axes;

calculating according to the data structure of the second channel axis to obtain path planning data and interpolation data of the second channel axis;

determining a target machine tool axis according to the data structure of the second channel axis and a preset axis mapping relation, wherein the preset axis mapping relation is a corresponding relation between the machine tool axis and a channel axis in the second channel;

and sending the path planning data and the interpolation data of the second channel axis to a driver corresponding to the target machine tool axis, so that the driver corresponding to the target machine tool axis drives the target machine tool axis to move according to the path planning data and the interpolation data of the second channel axis.

The numerically controlled machine tool of claim 8, wherein the processor is further configured to:

acquiring a first corresponding relation between a channel shaft in a first channel and a machine tool shaft during initialization;

determining a second corresponding relation according to the first corresponding relation and a preset mapping rule, wherein the second corresponding relation is the corresponding relation between a channel shaft in the second channel and the machine tool shaft;

and determining the second corresponding relation as the preset axis mapping relation.

The numerically controlled machine tool of claim 9, wherein the processor is further configured to:

when the first corresponding relation exists in the machine tool axis parallel to the geometric axis, arranging the machine tool axis parallel to the geometric axis to a first preset channel axis position in the second channel;

when the first corresponding relation exists in the machine tool shaft as the main shaft, the machine tool shaft as the main shaft is arranged to a second preset channel shaft position in the second channel;

when a machine tool shaft which is not a main shaft or a machine tool shaft which is not parallel to a geometric shaft exists in the first corresponding relation, arranging the machine tool shaft which is not the main shaft or the machine tool shaft which is not parallel to the geometric shaft to a third preset channel shaft position in the second channel;

and arranging the first preset channel axis position, the second preset channel axis position and the third preset channel axis position according to a preset rule to determine the second corresponding relation.

The numerically controlled machine tool of claim 10, wherein the processor is further configured to:

and when the machine tool shaft parallel to the geometric shaft does not exist in the first corresponding relation, the first preset channel shaft position is left empty.

The numerically controlled machine tool of claim 10, wherein the processor is further configured to:

and when the machine tool shaft serving as the main shaft does not exist in the first corresponding relation, leaving the position of the third preset channel shaft empty.

The numerically controlled machine tool of claim 9, wherein the processor is further configured to perform the steps of:

step 1: determining a first machine axis corresponding to a second channel axis in the second corresponding relationship;

step 2: determining a first channel axis corresponding to the first machine axis in the first correspondence;

and step 3: determining that a second channel axis in the second correspondence corresponds to a first channel axis in the first correspondence;

repeating the steps 1 to 3 until all the channel axes in the second corresponding relationship correspond to all the channel axes in the first corresponding relationship;

and determining the corresponding relation between all the channel axes in the second corresponding relation and all the channel axes in the first corresponding relation as the preset inverse mapping relation.

1页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种刀具路径的补偿方法及数控机床

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类