CN115882824A - Processing method for avoiding motion reversal situation after track smoothing by using FIR filter in numerical control system - Google Patents
Processing method for avoiding motion reversal situation after track smoothing by using FIR filter in numerical control system Download PDFInfo
- Publication number
- CN115882824A CN115882824A CN202211654222.6A CN202211654222A CN115882824A CN 115882824 A CN115882824 A CN 115882824A CN 202211654222 A CN202211654222 A CN 202211654222A CN 115882824 A CN115882824 A CN 115882824A
- Authority
- CN
- China
- Prior art keywords
- fir filter
- processing
- filter
- numerical control
- filtering
- 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.)
- Pending
Links
Images
Landscapes
- Image Processing (AREA)
Abstract
Description
技术领域technical field
本发明涉及数控系统技术领域,尤其涉及数控系统中轨迹平滑技术领域,具体是指一种数控系统中利用FIR滤波器实现避免轨迹平滑后出现运动反向情形的处理方法。The invention relates to the technical field of numerical control systems, in particular to the technical field of trajectory smoothing in numerical control systems, and specifically refers to a processing method for avoiding motion reversal after trajectory smoothing by using an FIR filter in a numerical control system.
背景技术Background technique
目前现有技术当中,大多数数控系统为了使速度及轨迹更加平滑,通常在插补后进行滤波。FIR滤波器可以一定程度上控制滤波前后轨迹误差,所以被经常采用。但构造的FIR滤波器系数有时会出现负数,这就导致滤波后的轨迹出现反向运动,特别是运动开始和结束的地方。这样不仅影响这些地方的加工效果,而且可能会触发软限位,导致加工异常终止。基于此,针对现有技术存在的缺陷问题,亟需一种当构造的FIR滤波器出现负系数的时候,能够有效的防止出现运动反向的解决方案。Among the current existing technologies, in order to make the speed and trajectory smoother, most numerical control systems usually perform filtering after interpolation. The FIR filter can control the track error before and after filtering to a certain extent, so it is often used. However, the coefficients of the constructed FIR filter sometimes appear negative, which causes the filtered trajectory to appear reverse motion, especially where the motion starts and ends. This not only affects the processing effect in these places, but also may trigger the soft limit, resulting in abnormal termination of processing. Based on this, in view of the defects existing in the prior art, there is an urgent need for a solution that can effectively prevent motion reversal when negative coefficients appear in the constructed FIR filter.
发明内容Contents of the invention
本发明的目的是克服了上述现有技术的缺点,提供了一种能够有效的解决运动反向的数控系统中利用FIR滤波器实现避免轨迹平滑后出现运动反向情形的处理方法。The purpose of the present invention is to overcome the above-mentioned shortcoming of prior art, provide a kind of processing method that utilizes FIR filter in the numerical control system that can effectively solve the movement reversal to avoid the situation of movement reversal after trajectory smoothing.
为了实现上述目的,本发明的数控系统中利用FIR滤波器实现避免轨迹平滑后出现运动反向情形的处理方法如下:In order to achieve the above object, in the numerical control system of the present invention, the processing method of utilizing the FIR filter to avoid the occurrence of the motion reverse situation after the track smoothing is as follows:
该数控系统中利用FIR滤波器实现避免轨迹平滑后出现运动反向情形的处理方法,其主要特点是,所述的方法包括,设置有:Utilize the FIR filter in this numerical control system to realize the processing method that avoids the motion reversal situation after smoothing of track, its main feature is that described method comprises, is provided with:
第一FIR滤波器,通过判断所述的第一FIR滤波器中是否含有负系数,以决定后续的滤波处理的具体方式;以及The first FIR filter determines the specific manner of subsequent filtering processing by judging whether the first FIR filter contains negative coefficients; and
第二FIR滤波器,所述的第二FIR滤波器为不含负系数的滤波器,所述的第一FIR滤波器和第二FIR滤波器通过进行二次插值处理,以实现在运动停止之前完成交替滤波,防止运动反向。The second FIR filter, the second FIR filter is a filter without negative coefficients, the first FIR filter and the second FIR filter are processed by secondary interpolation to achieve Alternate filtering is done to prevent motion reversal.
较佳地,使用曲线误差和抑振系数计算得到滤波器的幅频特性构造所述的第一FIR滤波器。Preferably, the first FIR filter is constructed using the amplitude-frequency characteristic of the filter obtained through calculating the curve error and the vibration suppression coefficient.
较佳地,所述的第一FIR滤波器具体进行以下处理:Preferably, the first FIR filter specifically performs the following processing:
判断所述的第一FIR滤波器中是否含义负系数,如果没有,则直接使用当前该第一FIR滤波器中含有的系数进行滤波处理;否则,根据当前现有的系数重新构造不含负系数的第二FIR滤波器进行滤波处理。Judge whether meaning negative coefficient in the first FIR filter, if not, then directly use the coefficient that currently contains in this first FIR filter to carry out filter processing; Otherwise, reconstruct according to current existing coefficient and do not contain negative coefficient The second FIR filter performs filtering processing.
较佳地,所述的第二FIR滤波器具体进行以下处理:Preferably, the second FIR filter specifically performs the following processing:
将所述的第一FIR滤波器和第二FIR滤波器进行二次插值处理,构造得到一系列渐变的滤波器;Perform secondary interpolation processing on the first FIR filter and the second FIR filter to construct a series of gradient filters;
系统开始运动,首先使用所述的第二FIR滤波器进行滤波处理,待经过一预设时间处理后,渐渐过渡到使用所述的第一FIR滤波器进行滤波处理;When the system starts to move, first use the second FIR filter for filtering processing, and then gradually transition to using the first FIR filter for filtering processing after a preset time processing;
当运动接近结束时,先使用所述的第一FIR滤波器进行滤波处理,待经过一预设时间处理后,渐渐过渡到使用所述的第二FIR滤波器进行滤波处理,直到运动停止。When the movement is about to end, first use the first FIR filter for filtering processing, and after a preset time, gradually transition to use the second FIR filter for filtering processing until the movement stops.
采用了本发明的该数控系统中利用FIR滤波器实现避免轨迹平滑后出现运动反向情形的处理方法,通过构造得到一系列渐变的滤波器,使得在经过二次插值之后即能进行滤波处理,当构造的FIR滤波器有负系数的时候,能够有效的防止出现运动反向的情况,相较于现有技术而言,具有较为突出的实用性和便捷性。In the numerical control system of the present invention, the FIR filter is used to realize the processing method of avoiding the occurrence of the motion reverse situation after the trajectory is smooth, and a series of gradual filters are obtained by constructing, so that the filtering process can be performed after the secondary interpolation, When the constructed FIR filter has negative coefficients, it can effectively prevent the situation of motion reversal. Compared with the prior art, it has more prominent practicability and convenience.
附图说明Description of drawings
图1为本发明的现有技术进行FIR滤波后的结果示意图。FIG. 1 is a schematic diagram of the result of FIR filtering in the prior art of the present invention.
图2为本发明的进行FIR滤波后的结果示意图。Fig. 2 is a schematic diagram of the results after FIR filtering according to the present invention.
图3为本发明的该数控系统中利用FIR滤波器实现避免轨迹平滑后出现运动反向情形的处理方法的流程图。FIG. 3 is a flowchart of a processing method for avoiding motion reversal after trajectory smoothing by using an FIR filter in the numerical control system of the present invention.
图4为本发明解决轨迹平滑后未出现运动反向的示意图。Fig. 4 is a schematic diagram of the present invention to solve the problem of no motion reversal after trajectory smoothing.
具体实施方式Detailed ways
为了能够更清楚地描述本发明的技术内容,下面结合具体实施例来进行进一步的描述。In order to describe the technical content of the present invention more clearly, further description will be given below in conjunction with specific embodiments.
在详细说明根据本发明的实施例前,应该注意到的是,在下文中,术语“包括”、“包含”或任何其他变体旨在涵盖非排他性的包含,由此使得包括一系列要素的过程、方法、物品或者设备不仅包含这些要素,而且还包含没有明确列出的其他要素,或者为这种过程、方法、物品或者设备所固有的要素。Before describing in detail embodiments according to the present invention, it should be noted that, hereinafter, the terms "comprises", "comprises" or any other variant thereof are intended to cover a non-exclusive inclusion, thereby enabling the process of including a series of elements A method, article, or device includes not only these elements, but also other elements not expressly listed, or inherent to such a process, method, article, or apparatus.
请参阅图3所示,该数控系统中利用FIR滤波器实现避免轨迹平滑后出现运动反向情形的处理方法,其中,所述的方法包括,设置有:Please refer to shown in Fig. 3, utilize the FIR filter in this numerical control system to realize the processing method that avoids the motion reversal situation after trajectory smoothing, wherein, described method comprises, is provided with:
第一FIR滤波器,通过判断所述的第一FIR滤波器中是否含有负系数,以决定后续的滤波处理的具体方式;以及The first FIR filter determines the specific manner of subsequent filtering processing by judging whether the first FIR filter contains negative coefficients; and
第二FIR滤波器,所述的第二FIR滤波器为不含负系数的滤波器,所述的第一FIR滤波器和第二FIR滤波器通过进行二次插值处理,以实现在运动停止之前完成交替滤波,防止运动反向。The second FIR filter, the second FIR filter is a filter without negative coefficients, the first FIR filter and the second FIR filter are processed by secondary interpolation to achieve Alternate filtering is done to prevent motion reversal.
作为本发明的优选实施方式,使用曲线误差和抑振系数计算得到滤波器的幅频特性构造所述的第一FIR滤波器。As a preferred embodiment of the present invention, the first FIR filter is constructed using the amplitude-frequency characteristic of the filter obtained by calculating the curve error and the vibration suppression coefficient.
作为本发明的优选实施方式,所述的第一FIR滤波器具体进行以下处理:As a preferred embodiment of the present invention, the first FIR filter specifically performs the following processing:
判断所述的第一FIR滤波器中是否含义负系数,如果没有,则直接使用当前该第一FIR滤波器中含有的系数进行滤波处理;否则,根据当前现有的系数重新构造不含负系数的第二FIR滤波器进行滤波处理。Judging whether the meaning negative coefficient in the first FIR filter, if not, then directly use the coefficients contained in the first FIR filter currently to carry out filtering process; otherwise, reconstruct according to the current existing coefficients without negative coefficients The second FIR filter performs filtering processing.
作为本发明的优选实施方式,所述的第二FIR滤波器具体进行以下处理:As a preferred embodiment of the present invention, the second FIR filter specifically performs the following processing:
将所述的第一FIR滤波器和第二FIR滤波器进行二次插值处理,构造得到一系列渐变的滤波器;Perform secondary interpolation processing on the first FIR filter and the second FIR filter to construct a series of gradient filters;
系统开始运动,首先使用所述的第二FIR滤波器进行滤波处理,待经过一预设时间处理后,渐渐过渡到使用所述的第一FIR滤波器进行滤波处理;When the system starts to move, first use the second FIR filter for filtering processing, and then gradually transition to using the first FIR filter for filtering processing after a preset time processing;
当运动接近结束时,先使用所述的第一FIR滤波器进行滤波处理,待经过一预设时间处理后,渐渐过渡到使用所述的第二FIR滤波器进行滤波处理,直到运动停止。When the movement is about to end, first use the first FIR filter for filtering processing, and after a preset time, gradually transition to use the second FIR filter for filtering processing until the movement stops.
在实际应用当中,本技术方案通过以下步骤实现:In practical application, this technical solution is realized through the following steps:
1.使用轨迹允许误差等参数构造第一FIR滤波器。1. Construct the first FIR filter using parameters such as trajectory tolerance.
2.判断滤波器中的系数是否有负数:若没有,则直接使用这组系数进行滤波;否则,执行下列步骤:2. Determine whether the coefficients in the filter have negative numbers: if not, directly use this group of coefficients for filtering; otherwise, perform the following steps:
3.使用现有系数重新构造一组没有负系数的第二FIR滤波器。用这两组滤波器二次插值得到N-2组不同的滤波器,其中,N为滤波器的阶数一系列渐变的滤波器。3. Reconstruct a set of second FIR filters without negative coefficients using the existing coefficients. The two sets of filters are used for secondary interpolation to obtain N-2 sets of different filters, where N is the order of the filter and a series of gradual filters.
4.运动开始时,使用第二FIR滤波器进行滤波,然后渐渐过渡到使用第一FIR滤波器滤波。运动接近结束时,接着前面使用第一FIR滤波器进行滤波,然后渐渐过渡到第二FIR滤波器,直到运动停止。4. At the beginning of the motion, use the second FIR filter for filtering, and then gradually transition to use the first FIR filter for filtering. When the movement is near the end, then the first FIR filter is used for filtering, and then gradually transition to the second FIR filter until the movement stops.
在本发明的一具体实施例中,根据图3流程,先得到含有负系数的滤波器系数1,再得到不含负系数的滤波器系数N,使用二次插值得到渐变的滤波器系数2,3,…,N-1.如图4平滑前的轨迹,对于轨迹开始位置,先使用系数N进行滤波,接着使用系数N-1,N-2,…,2,1.后面正常使用滤波器系数1进行滤波。可以有效的防止运动开始处的反向。In a specific embodiment of the present invention, according to the flow chart in Figure 3, the filter coefficient 1 containing negative coefficients is first obtained, and then the filter coefficient N without negative coefficients is obtained, and the filter coefficient 2 of gradual change is obtained by using quadratic interpolation. 3, ..., N-1. As shown in Figure 4, the track before smoothing, for the start position of the track, first use the coefficient N to filter, and then use the coefficients N-1, N-2, ..., 2, 1. Then use the filter normally Filter with a factor of 1. It can effectively prevent the reversal at the beginning of the movement.
在本发明的一具体实施例中,如图4所示,对于轨迹结束位置,一开始接着上面使用系数1进行滤波,接着使用系数2,3,…,N.直到运动到终点。可以有效的防止运动结束处的反向。In a specific embodiment of the present invention, as shown in FIG. 4 , for the end position of the track, filter with coefficient 1 at the beginning, and then use coefficients 2, 3, ..., N until the end point is reached. It can effectively prevent the reverse at the end of the movement.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method descriptions described in flowcharts or otherwise herein may be understood as representing a module, segment or portion of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order depending on the functions involved, which shall It is understood by those skilled in the art to which the embodiments of the present invention pertain.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行装置执行的软件或固件来实现。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the above-described embodiments, various steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution device.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成的,程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed , including one or a combination of the steps of the method embodiment.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like.
在本说明书的描述中,参考术语“一实施例”、“一些实施例”、“示例”、“具体示例”、或“实施例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions referring to the terms "an embodiment", "some embodiments", "example", "specific example", or "embodiment" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention, those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.
采用了本发明的该数控系统中利用FIR滤波器实现避免轨迹平滑后出现运动反向情形的处理方法,通过构造得到一系列渐变的滤波器,使得在经过二次插值之后即能进行滤波处理,当构造的FIR滤波器有负系数的时候,能够有效的防止出现运动反向的情况,相较于现有技术而言,具有较为突出的实用性和便捷性。In the numerical control system of the present invention, the FIR filter is used to realize the processing method of avoiding the occurrence of the motion reverse situation after the trajectory is smooth, and a series of gradual filters are obtained by constructing, so that the filtering process can be performed after the secondary interpolation, When the constructed FIR filter has negative coefficients, it can effectively prevent the situation of motion reversal. Compared with the prior art, it has more prominent practicability and convenience.
在此说明书中,本发明已参照其特定的实施例作了描述。但是,很显然仍可以作出各种修改和变换而不背离本发明的精神和范围。因此,说明书和附图应被认为是说明性的而非限制性的。In this specification, the invention has been described with reference to specific embodiments thereof. However, it is obvious that various modifications and changes can be made without departing from the spirit and scope of the invention. Accordingly, the specification and drawings are to be regarded as illustrative rather than restrictive.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211654222.6A CN115882824A (en) | 2022-12-22 | 2022-12-22 | Processing method for avoiding motion reversal situation after track smoothing by using FIR filter in numerical control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211654222.6A CN115882824A (en) | 2022-12-22 | 2022-12-22 | Processing method for avoiding motion reversal situation after track smoothing by using FIR filter in numerical control system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115882824A true CN115882824A (en) | 2023-03-31 |
Family
ID=85755350
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211654222.6A Pending CN115882824A (en) | 2022-12-22 | 2022-12-22 | Processing method for avoiding motion reversal situation after track smoothing by using FIR filter in numerical control system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115882824A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5153711A (en) * | 1991-09-16 | 1992-10-06 | The Grass Valley Group, Inc. | Recursive video hue rotations to obtain a rainbow-like decaying after-image |
| CN1391731A (en) * | 1999-11-18 | 2003-01-15 | 印芬龙科技股份有限公司 | Device and method for echo compensation in two-wire full duplex channel transmission method |
| CN1459150A (en) * | 2000-05-12 | 2003-11-26 | 摩托罗拉公司 | Digital waveform generator apparatus and method thereof |
| CN105684314A (en) * | 2013-07-01 | 2016-06-15 | Ess技术有限公司 | Suppression of fixed-pattern jitter using FIR filters |
| CN108702143A (en) * | 2016-07-21 | 2018-10-23 | 微晶片科技德国公司 | Digital filter with confidence level input |
| CN110365314A (en) * | 2019-06-04 | 2019-10-22 | 杭州电子科技大学 | A Design Method for Separable Two-Dimensional FIR Filters with Sparse Coefficients |
-
2022
- 2022-12-22 CN CN202211654222.6A patent/CN115882824A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5153711A (en) * | 1991-09-16 | 1992-10-06 | The Grass Valley Group, Inc. | Recursive video hue rotations to obtain a rainbow-like decaying after-image |
| CN1391731A (en) * | 1999-11-18 | 2003-01-15 | 印芬龙科技股份有限公司 | Device and method for echo compensation in two-wire full duplex channel transmission method |
| CN1459150A (en) * | 2000-05-12 | 2003-11-26 | 摩托罗拉公司 | Digital waveform generator apparatus and method thereof |
| CN105684314A (en) * | 2013-07-01 | 2016-06-15 | Ess技术有限公司 | Suppression of fixed-pattern jitter using FIR filters |
| CN108702143A (en) * | 2016-07-21 | 2018-10-23 | 微晶片科技德国公司 | Digital filter with confidence level input |
| CN110365314A (en) * | 2019-06-04 | 2019-10-22 | 杭州电子科技大学 | A Design Method for Separable Two-Dimensional FIR Filters with Sparse Coefficients |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6877488B2 (en) | Equipment and methods for processing audio signals using harmonic postfilters | |
| JP5512809B2 (en) | Clipping control method and apparatus | |
| JP7039176B2 (en) | Delay compensator filter design method, feedback control method using it, motor control device | |
| CN106921365B (en) | Method for designing finite-length impulse response digital low-pass filter | |
| JP2012023834A (en) | Adaptive notch filter and parameter adjusting method for notch filter | |
| CN114265314B (en) | A Robust Inverse Model Learning Gain Design Method Based on FIR Filtering | |
| CN117040338B (en) | Permanent magnet synchronous motor control method, system, device, equipment and storage medium | |
| CN102124650B (en) | signal processing circuit | |
| CN104913783A (en) | Method for achieving automatic navigation of vehicle based on self-adaptive filtering algorithm | |
| CN115882824A (en) | Processing method for avoiding motion reversal situation after track smoothing by using FIR filter in numerical control system | |
| CN118838254B (en) | Method, device, processor and computer-readable storage medium for realizing interpolation and superposition processing based on dynamic programming in numerical control system | |
| CN115415647A (en) | Method and device for short arc control of gas shielded metal welding | |
| CN115622040A (en) | Multi-step model predictive control method and DSP controller based on hysteresis control | |
| JPH08255023A (en) | Method and unit for positioning control and head positioning device using the unit | |
| CN110609470A (en) | An Anti-Integral Windup Design Method Based on Transition Process | |
| CN102906648A (en) | Automatic tuning method and device of overshoot suppression feedforward term for step following | |
| CN109525214B (en) | Filtering method of FIR (finite Impulse response) filter, FIR filter and servo driver | |
| US9948315B2 (en) | Digital to analog converter including logical assistance | |
| CN117081442A (en) | Method for controlling an asynchronous induction motor, control device and motor system | |
| JP2002009591A (en) | Method of setting FIR filter and its coefficient | |
| WO2019140651A1 (en) | Video processing method and device | |
| WO2005109640A1 (en) | Digital filter design system and method | |
| CN109600094B (en) | Method, device and system for controlling rotating speed of ultrasonic motor | |
| CN113336097A (en) | Method and device for controlling rotation of crane, electronic equipment and storage medium | |
| CN109427355B (en) | Magnetic disk device and position control method |
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 |