CN102637011A - Robust control method for directly driving numerical control platform based on coordinate transformation and parameter adjustment - Google Patents
Robust control method for directly driving numerical control platform based on coordinate transformation and parameter adjustment Download PDFInfo
- Publication number
- CN102637011A CN102637011A CN2011103909667A CN201110390966A CN102637011A CN 102637011 A CN102637011 A CN 102637011A CN 2011103909667 A CN2011103909667 A CN 2011103909667A CN 201110390966 A CN201110390966 A CN 201110390966A CN 102637011 A CN102637011 A CN 102637011A
- Authority
- CN
- China
- Prior art keywords
- control
- robust
- error
- ideal
- ipm
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000009466 transformation Effects 0.000 title claims abstract description 25
- 238000005070 sampling Methods 0.000 claims abstract description 31
- 238000002955 isolation Methods 0.000 claims abstract description 10
- 239000011159 matrix material Substances 0.000 claims description 17
- 239000013598 vector Substances 0.000 claims description 17
- 238000013459 approach Methods 0.000 claims description 10
- 238000006243 chemical reaction Methods 0.000 claims description 10
- 230000008569 process Effects 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 5
- 238000001914 filtration Methods 0.000 claims description 4
- 238000004458 analytical method Methods 0.000 claims description 3
- 230000001105 regulatory effect Effects 0.000 claims 2
- 230000007704 transition Effects 0.000 claims 2
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 4
- 238000003754 machining Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 239000003990 capacitor Substances 0.000 description 3
- 230000033001 locomotion Effects 0.000 description 3
- 102100024061 Integrator complex subunit 1 Human genes 0.000 description 2
- 101710092857 Integrator complex subunit 1 Proteins 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000002441 reversible effect Effects 0.000 description 2
- 102100028043 Fibroblast growth factor 3 Human genes 0.000 description 1
- 108050002021 Integrator complex subunit 2 Proteins 0.000 description 1
- 241001168730 Simo Species 0.000 description 1
- 235000010724 Wisteria floribunda Nutrition 0.000 description 1
- 238000010521 absorption reaction Methods 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000004907 flux Effects 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Landscapes
- Feedback Control In General (AREA)
- Control Of Position Or Direction (AREA)
Abstract
一种基于坐标变换和参数调整直接驱动数控平台鲁棒控制方法,首先确定电机动子的初始相位;然后把轮廓误差进行坐标变换,并参考调整,得到位置误差,即进行位置偏差计算,判断是否进行位置调节;最后执行鲁棒控制算法,输出控制量,驱动数控平台。本发明方法采用的控制系统包括电压调整电路、整流滤波单元、IPM逆变单元、DSP、霍尔传感器、光栅尺、电流采样电路、位置采样电路、IPM隔离驱动保护电路。本发明针对直接驱动数控平台,提出了一个鲁棒轮廓控制器。基于一个完整的坐标系转换和参数调节函数,能被应用到任何光滑的轮廓曲线,对于设备建模误差和干扰提供鲁棒控制系统稳定性。
A robust control method based on coordinate transformation and parameter adjustment to directly drive the CNC platform. First, determine the initial phase of the motor mover; Adjust the position; finally execute the robust control algorithm, output the control amount, and drive the CNC platform. The control system adopted by the method of the present invention includes a voltage adjustment circuit, a rectification filter unit, an IPM inverter unit, a DSP, a Hall sensor, a grating scale, a current sampling circuit, a position sampling circuit, and an IPM isolation drive protection circuit. The invention proposes a robust contour controller for the direct drive numerical control platform. Based on a complete coordinate system transformation and parameter adjustment function, which can be applied to any smooth profile curve, it provides robust control system stability against plant modeling errors and disturbances.
Description
技术领域 technical field
本发明属于数控技术领域,涉及一种基于坐标变换和参数调整直接驱动数控平台鲁棒控制方法。The invention belongs to the technical field of numerical control, and relates to a robust control method for directly driving a numerical control platform based on coordinate transformation and parameter adjustment.
背景技术 Background technique
数控机床正在向精密、高速、复合、智能、环保的方向发展。精密和高速加工对传动及其控制提出了更高的要求,更高的动态特性和控制精度,更高的进给速度和加速度,更低的振动噪声和更小的磨损。直接驱动进给系统利用直线电机能够直接产生直线推力的特点,系统组成中不再需要丝杠螺母机构等中间传动环节。直线电机及其驱动控制技术在机床进给驱动上的应用,使机床的传动结构出现了重大变化,并使机床性能有了新的飞跃。CNC machine tools are developing in the direction of precision, high speed, compound, intelligence and environmental protection. Precision and high-speed machining put forward higher requirements for transmission and its control, higher dynamic characteristics and control accuracy, higher feed speed and acceleration, lower vibration noise and smaller wear. The direct drive feed system utilizes the characteristic that the linear motor can directly generate linear thrust, and the intermediate transmission links such as the screw nut mechanism are no longer needed in the system composition. The application of linear motor and its drive control technology in the feed drive of machine tools has brought about major changes in the transmission structure of machine tools and made a new leap in the performance of machine tools.
数控机床的直线伺服系统采用直接驱动方式,消除了机械运动变换机构所带来的一系列不良影响,因此,在高精度、快响应的微进给伺服系统中具有非常明显的优势。但这也增加了控制上的难度。The linear servo system of the CNC machine tool adopts the direct drive method, which eliminates a series of adverse effects caused by the mechanical motion transformation mechanism. Therefore, it has very obvious advantages in the high-precision, fast-response micro-feed servo system. But this also increases the difficulty of control.
机床控制系统一般以设计单轴进给驱动轴减少跟踪误差。然而,关于加工,对于单轴进给驱动轴正交误差分量给设计的轮廓曲线比跟踪误差更重要。到目前为止已经提出各种为减少轮廓误差的控制方法。因为在大多数方法中每个进给驱动轴轮廓和跟踪误差都用来计算控制输入,这可能会有轮廓跟踪性能的下降。同时,考虑到在每个进给驱动轴轮廓和跟踪误差都给控制器参数调整带来困难。Machine tool control systems are generally designed with single-axis feed drive shafts to reduce tracking errors. However, with respect to machining, the quadrature error component of the drive axis is more important to the designed profile than the tracking error for a single-axis feed. Various control methods for reducing contour errors have been proposed so far. Since the profile and tracking error of each feed axis are used to calculate the control input in most methods, there may be a degradation in profile tracking performance. At the same time, it is difficult to adjust the controller parameters considering the profile and tracking error of the drive axis at each feed.
基于坐标转换的双轴进给驱动系统的轮廓控制方法把每个驱动轴的跟踪误差都被转换为正交误差分量和对于理想轮廓曲线的切线误差分量。由于这个方法获得了关于正交和切线方向的两个分离的单输入单输出系统,每个方向的控制器能被独立设计。然而,这个简化控制器参数调整,控制系统稳定性只在双进给轴和理想斜坡轨迹的速度动态匹配时才能保证。一种控制器,对于理想轮廓轨迹分解轮廓误差为正向和切向误差分量,并且对于机器刀具操作获得一种非过切的过程,据此一个工作坐标系被定义在进给驱动系统的指定位置,控制系统动力按照这个坐标系改写。对应理想轮廓曲线的正交和切线方向的工作坐标系轴和正交误差分量被认作实际轮廓曲线的近似。虽然这个方法对任何轮廓曲线提供了控制系统稳定性,但在实际轮廓误差和正交误差分量之间的差异可能导致一个重大的轮廓误差。The contour control method of the dual-axis feed drive system based on coordinate transformation converts the tracking error of each drive axis into an orthogonal error component and a tangent error component for the ideal contour curve. Since this method obtains two separate SIMO systems for the orthogonal and tangential directions, the controllers for each direction can be designed independently. However, this simplifies the controller parameter tuning, and the control system stability can only be guaranteed when the velocity dynamics of the dual feed axes and ideal ramp trajectories are matched. A controller that decomposes the contour error into positive and tangential error components for ideal contour trajectories and obtains a non-gouging process for machine tool operations, whereby a working coordinate system is defined at the specified The position and dynamics of the control system are rewritten according to this coordinate system. The working coordinate system axes and orthogonal error components corresponding to the orthogonal and tangential directions of the ideal profile curve are considered as an approximation of the actual profile curve. Although this approach provides control system stability for any profile curve, the difference between the actual profile error and the quadrature error components can lead to a significant profile error.
发明内容 Contents of the invention
针对现有控制技术中存在的实际问题,本发明提供了一种基于坐标变换和参数调整直接驱动数控平台鲁棒控制方法,基于完整的坐标系转换和参数调整的轮廓控制系统设计,对于设备建模误差和干扰提供鲁棒控制系统的稳定性。Aiming at the practical problems existing in the existing control technology, the present invention provides a robust control method based on coordinate transformation and parameter adjustment to directly drive the numerical control platform, and a contour control system design based on complete coordinate system transformation and parameter adjustment. Modulo errors and disturbances provide robust control system stability.
为了补偿实际轮廓误差和正交误差分量之间的差异引起的轮廓误差,一个轮廓索引方法中正交误差分量被一个新定义的误差信号代替,提出了一个基于后推滑模控制的鲁棒轮廓方法。然而,在设计鲁棒控制器中要求了新定义误差信号的二阶导数和干扰导数的上限,包括摩擦力。In order to compensate the contour error caused by the difference between the actual contour error and the quadrature error component, a contour index method in which the quadrature error component is replaced by a newly defined error signal, a robust contour based on pushback sliding mode control is proposed method. However, new definitions of the upper bounds for the second derivatives of the error signal and disturbance derivatives, including friction, are required in designing robust controllers.
本发明方法包括基于坐标系转换和参考调整方法以及鲁棒控制器设计,控制增益的调节对理想曲线的正交误差分量比切线误差分量减少更多,参考调整方法使新坐标系的误差收敛速度被独立地调整,参考信号调整如图2所示。鲁棒控制器考虑干扰和设备建模误差,只有设备参数的标称值和干扰幅度的上限值被要求。The method of the present invention includes coordinate system conversion and reference adjustment method and robust controller design, the adjustment of control gain reduces the orthogonal error component of the ideal curve more than the tangential error component, and the reference adjustment method makes the error convergence speed of the new coordinate system are adjusted independently, the reference signal is adjusted as shown in Figure 2. The robust controller considers disturbances and plant modeling errors, and only nominal values of plant parameters and upper bounds of disturbance magnitudes are required.
本发明方法采用的控制系统包括电压调整电路、整流滤波单元、IPM逆变单元、DSP、霍尔传感器、光栅尺、电流采样电路、位置采样电路、IPM隔离驱动保护电路。The control system adopted by the method of the present invention includes a voltage adjustment circuit, a rectification filter unit, an IPM inverter unit, a DSP, a Hall sensor, a grating scale, a current sampling circuit, a position sampling circuit, and an IPM isolation drive protection circuit.
交流电压输出至整流滤波单元输入端,整流滤波单元输出端接入IPM逆变单元,IPM与电机相连,电机机身装有光栅尺,光栅尺连接位置采样电路输入端,霍尔传感器采集电机电流信号,输出至电流采样电路,电流采样电路输出端和位置采样电路输出端均接入DSP,DSP输出信号至电压调整电路输入端和IPM隔离驱动保护电路,电压调整电路对交流电压进行调整,IPM隔离驱动保护电路接入IPM逆变单元。速度和位置信号时通过分辨率为400线的增量式光电编码器来检测的,它产生脉冲信号A和B,送至DSP的事件捕获口,利用捕获口单元的计数功能得到转子的转速,位置由Z信号获得。The AC voltage is output to the input end of the rectification filter unit, the output end of the rectification filter unit is connected to the IPM inverter unit, the IPM is connected to the motor, the motor body is equipped with a grating scale, the grating scale is connected to the input end of the position sampling circuit, and the Hall sensor collects the motor current The signal is output to the current sampling circuit, the output terminal of the current sampling circuit and the output terminal of the position sampling circuit are connected to the DSP, the output signal of the DSP is sent to the input terminal of the voltage adjustment circuit and the IPM isolation drive protection circuit, and the voltage adjustment circuit adjusts the AC voltage. The isolation drive protection circuit is connected to the IPM inverter unit. The speed and position signals are detected by an incremental photoelectric encoder with a resolution of 400 lines. It generates pulse signals A and B, which are sent to the event capture port of the DSP, and the rotor speed is obtained by using the counting function of the capture port unit. The position is obtained from the Z signal.
本发明的基于坐标变换和参数调整直接驱动数控平台鲁棒控制方法,具体步骤如下:The robust control method of the direct drive numerical control platform based on coordinate transformation and parameter adjustment of the present invention, the specific steps are as follows:
步骤1:确定电机动子的初始相位;Step 1: Determine the initial phase of the motor mover;
通过动子位置采样电路和电流采样电路分别采集电机动子位置、速度和电流信息。The position, speed and current information of the motor mover are collected respectively through the mover position sampling circuit and the current sampling circuit.
步骤2:对轮廓误差进行坐标变换,并进行参数调整,得到位置误差,即进行位置偏差计算,判断是否进行位置调节,是则进行步骤3,否则进行电流调节;Step 2: Carry out coordinate transformation on the contour error and adjust parameters to obtain the position error, that is, calculate the position deviation and judge whether to perform position adjustment. If yes, proceed to
步骤2.1:对轮廓误差进行坐标变换Step 2.1: Coordinate Transformation for Contour Errors
假设:Assumptions:
(a1)理想轨迹ri和它的导数和可得;(a1) Ideal trajectory r i and its derivative and Available;
(a2)局部坐标系∑l的倾角θ和它的导数和可得;(a2) The inclination θ of the local coordinate system ∑ l and its derivative and Available;
(a3)进给驱动系统位置x和它的导数是可测量的;(a3) the feed drive system position x and its derivatives are measurable;
(a4)对于2设备参数值,都是可得的;(a4) For 2 device parameter values, all are available;
根据上述假设确定如下控制,包括驱动轴电机的输入电压v、矩阵H、E和Ie:According to the above assumptions, the following control is determined, including the input voltage v of the drive shaft motor, matrix H, E and I e :
其中mi(>0),ci(≥0)和fi分别是驱动轴i表质量、粘性摩擦系数和驱动力,其中Kv和Kp是速度和位置反馈增益矩阵。它们被假设只有正元素的对角矩阵。下面的等式成立:Where m i (>0), ci (≥0) and f i are the mass, viscous friction coefficient and driving force of the drive axis i, respectively, where K v and K p are the velocity and position feedback gain matrices. They are assumed to be diagonal matrices with only positive elements. The following equation holds:
由于矩阵H和R是非奇异的,下面的关系对于实现等式(2)需要被满足:Since matrices H and R are non-singular, the following relation needs to be satisfied for realizing equation (2):
从上面的等式中,通过适当分配等式(3)中反馈增益矩阵Kv和Kp得出结论,当t趋近于无穷时,el趋近于0是可得的。此外,控制器在图1中∑l的每个轴能调整误差收敛速度。如果对于el2反馈增益被设置大于el1的,对于理想曲线,轮廓误差能被减小得比切线跟踪误差快一些。ni为驱动进给驱动系统的电机惯性;ki为转矩-电压转换率;pi是滚珠丝杠的节;ki为转矩-电压转换率。From the above equations, it is obtained that e l approaches 0 as t approaches infinity by properly assigning the feedback gain matrices K v and K p in equation (3). In addition, the controller can adjust the error convergence speed for each axis of ∑ l in Fig. 1. If the feedback gain for e l2 is set larger than that for e l1 , the contour error can be reduced somewhat faster than the tangent tracking error for the ideal curve. n i is the inertia of the motor driving the feed drive system; ki is the torque-voltage conversion rate; pi is the node of the ball screw; ki is the torque-voltage conversion rate.
步骤2.2:参数调整,具体如下:Step 2.2: Parameter adjustment, as follows:
为减少切向误差分量el1和增加控制系统稳定性,控制器被期望有小的反馈增益,一个大的跟踪误差el1在正交误差分量el2和实际轮廓误差ec之间可能产生大的差异。在这种情况下,即使el2能被收敛成零轮廓误差ec也不再被抑制。In order to reduce the tangential error component e l1 and increase the stability of the control system, the controller is expected to have a small feedback gain, a large tracking error e l1 may produce a large gap between the quadrature error component e l2 and the actual contour error e c difference. In this case, even if e l2 can be converged to zero contour error e c is no longer suppressed.
这种参数调整方法,略移动理想位置和局部坐标系,来减少正交误差和实际轮廓误差的不同.因为一个跟踪误差沿着l1存在,在误差el2和ec之间可能存在一个不可接受的差异。为减少这个差异的一个方案是在理想轮廓曲线到实际位置x估计最近的位置,ra表示。然而,如果理想轮廓曲线是复杂的,很难实时精确计算最近的位置。并且,如果理想轮廓曲线对于x是凹的,几个到实际位置x的最近的位置可能存在。即使最近的位置被估计,关于最近位置局部坐标系提出的方法也不能应用到误差里,因为沿着理想轮廓曲线的跟踪误差总是近似零,沿着理想轮廓曲线的跟踪不再可能。这样,一个局部坐标系被产生,它的方向与最近位置的坐标系相似,它的原点接近理想轮廓曲线的理想位置,rn和∑n。用新定义系∑n取代等式(1)中旋转矩阵R和跟踪误差ew和el,产生el2和ec的不同。下面说明产生系∑n的方法。This parameter adjustment method slightly moves the ideal position and the local coordinate system to reduce the difference between the orthogonal error and the actual contour error. Because a tracking error exists along l 1 , there may be an inconsistency between the error e l2 and e c Accept the difference. One solution to reduce this difference is to estimate the closest position from the ideal profile curve to the actual position x, denoted by r a . However, if the ideal profile curve is complex, it is difficult to accurately calculate the nearest position in real time. Also, if the ideal profile curve is concave with respect to x, several closest positions to the actual position x may exist. Even if the nearest position is estimated, the proposed method for the local coordinate system of the nearest position cannot be applied to the error, because the tracking error along the ideal contour curve is always approximately zero, and tracking along the ideal contour curve is no longer possible. In this way, a local coordinate system is generated whose orientation is similar to that of the closest position and whose origin is close to the ideal position of the ideal profile curve, r n and ∑ n . Replace the rotation matrix R and the tracking errors e w and e l in equation (1) with the new definition system ∑ n , resulting in the difference between e l2 and e c . Next, the method of generating the series Σ n will be described.
假设沿着l1的跟踪误差有一个负值(例如el1是负的),因为为减少el1分配的控制器增益正常比为el2分配的小一些。也假设理想位置r和沿着理想轮廓曲线最近点ra之间的距离与跟踪误差el1的大小近似等值。此外,沿着这段的理想速度接近常量。于是,要求通过这段的时间td能被如下估计:Assume that the tracking error along l1 has a negative value (eg e l1 is negative), since the controller gain assigned to reduce e l1 is normally smaller than that assigned to e l2 . It is also assumed that the distance between the ideal position r and the closest point r a along the ideal contour curve is approximately equal to the magnitude of the tracking error e l1 . Furthermore, the ideal velocity along this segment is close to constant. Then, the time t d required to pass through this period can be estimated as follows:
图2坐标系∑a中原点(ra)和倾角(θa),是在理想轮廓曲线到x的最近位置,能被如下估计:The origin (r a ) and inclination (θ a ) in the coordinate system Σ a in Fig. 2, which are the closest positions to x on the ideal contour curve, can be estimated as follows:
ra=r(t-td),θa=θ(t-td) (5)r a =r(tt d ), θ a =θ(tt d ) (5)
其中r()和θ()表明时间的函数。修改的理想位置rn在图2中被表示成:where r() and θ() indicate functions of time. The modified ideal position r n is represented in Fig. 2 as:
rn=r+Radr,dr=[0,-dra2]T (6)r n =r+R a d r , d r =[0,-d ra2 ] T (6)
其中Ra是图2中∑a到∑w的旋转矩阵,是θa的一个函数。控制输入等式(1)被下式代替:Where R a is the rotation matrix from Σ a to Σ w in Figure 2, which is a function of θ a . The control input equation (1) is replaced by:
其中ewn=x-rn。于是,获得下面的控制动力,en1和en2收敛速度能被独立地调整:where e wn =xr n . Thus, the following control dynamics are obtained, and the convergence speeds of e n1 and e n2 can be adjusted independently:
步骤3:执行鲁棒控制算法,输出控制量v,驱动数控平台。Step 3: Execute the robust control algorithm, output the control variable v, and drive the CNC platform.
实际加工中,包括非线性摩擦和切割力以及设备建模错误的干扰的确存在,因此,控制器等式应该扩展考虑干扰和设备建模误差。含有有界干扰矢量w的进给驱动动力学。In actual machining, disturbances including nonlinear friction and cutting force as well as equipment modeling errors do exist, therefore, the controller equation should be extended to consider disturbances and equipment modeling errors. Feed drive dynamics with bounded disturbance vector w.
提出下面的控制器:Present the following controller:
其中表示z的标称值,信号(其中Λ是一个对角矩阵和只有正元素的常量)被采用作为后续稳定性分析的代替的速度信号。符号δv是实现鲁棒控制的一个输入矢量。通过近似分配等式反馈增益矩阵Kv、Kp和Λ,当t趋近于无穷时能得到en趋近于零。此外,沿着图2中∑n每个轴的误差收敛速度能被独立调整。in Indicates the nominal value of z, the signal (where Λ is a diagonal matrix and a constant with only positive elements) was adopted as a substitute for subsequent stability analysis speed signal. The symbol δv is an input vector for robust control. By approximately assigning the equal feedback gain matrices K v , K p and Λ, it can be obtained that e n approaches zero as t approaches infinity. In addition, the error convergence speed along each axis of Σ n in Fig. 2 can be adjusted independently.
鲁棒控制算法保证控制系统稳定性,即使当设备建模误差和干扰存在的时候。鲁棒控制得到如下等式:Robust control algorithms ensure control system stability even when plant modeling errors and disturbances exist. Robust control is obtained by the following equation:
其中||a||是a的欧几里得范数,ε是小的正常数。where ||a|| is the Euclidean norm of a, and ε is a small positive constant.
为了表明提出系统的鲁棒稳定性,利亚普诺夫函数候选被应用。In order to show the robust stability of the proposed system, a Lyapunov function candidate is applied.
得出结论ev和en是一致最终有界。于是,从 也是一致最终有界。因此,虽然过大的值会降低控制性能,提出的控制器能提高鲁棒稳定性。It is concluded that e v and e n are uniformly ultimately bounded. So, from It is also uniformly ultimately bounded. Therefore, although an excessively large value will degrade the control performance, the proposed controller can improve robust stability.
有益效果:针对直接驱动数控平台,提出了一个鲁棒轮廓控制器。这个方法,基于一个完整的坐标系转换和参数调节函数,能被应用到任何光滑的轮廓曲线,对于设备建模误差和干扰提供鲁棒控制系统稳定性。鲁棒轮廓控制系统的有效性在进给驱动系统推广的惯性中考虑了大的建模误差,未来应用研制的方法可实现亚微米的精确性,并且扩展到3-5轴切削。Beneficial effects: A robust contour controller is proposed for the direct drive CNC platform. This method, based on a complete coordinate transformation and parameter adjustment function, can be applied to any smooth profile curve, providing robust control system stability against plant modeling errors and disturbances. The effectiveness of the robust profile control system accounts for large modeling errors in the generalized inertia of the feed drive system, and future applications develop methods that can achieve sub-micron accuracy and extend to 3-5 axis cutting.
附图说明 Description of drawings
图1为本发明实施例控制系统框图;Fig. 1 is a block diagram of the control system of the embodiment of the present invention;
图2为本发明实施例参数调整示意图;Fig. 2 is a schematic diagram of parameter adjustment in an embodiment of the present invention;
图3为实现本发明实施例控制系统硬件结构框图;Fig. 3 is a block diagram of the hardware structure of the control system for realizing the embodiment of the present invention;
图4为本发明实施例电机控制系统主电路原理图;4 is a schematic diagram of the main circuit of the motor control system according to the embodiment of the present invention;
图5为本发明A、B相电流采样电路原理图;Fig. 5 is A, B phase current sampling circuit schematic diagram of the present invention;
图6为本发明实施例光栅尺信号采样电路原理图;6 is a schematic diagram of a grating ruler signal sampling circuit according to an embodiment of the present invention;
图7为本发明实施例IPM硬件驱动电路原理图;7 is a schematic diagram of an IPM hardware drive circuit according to an embodiment of the present invention;
图8为本发明实施例控制方法中矢量控制系统程序流程图;Fig. 8 is a flow chart of the program of the vector control system in the control method of the embodiment of the present invention;
图9为本发明实施例控制方法位置调节中断处理子控制程序流程图。FIG. 9 is a flow chart of a sub-control program for position adjustment interruption processing of the control method according to an embodiment of the present invention.
具体实施方式 Detailed ways
下面结合附图对本发明做进一步说明。The present invention will be further described below in conjunction with the accompanying drawings.
本发明应用到一个直线驱动电机的X-Y数控平台,该平台的位置被连接到每个驱动轴的线性编码器,线性编码器的传感器分辨率是0.1微米。每个驱动轴的速度被位置测量的反向差计算出来,这个采样周期为2毫秒。The present invention is applied to an X-Y numerical control stage with a linear drive motor, the position of the stage is connected to a linear encoder of each drive axis, and the sensor resolution of the linear encoder is 0.1 micron. The speed of each drive shaft is calculated from the reverse difference of the position measurement, and the sampling period is 2 ms.
(一)系统硬件结构(1) System hardware structure
基于坐标变换和参数调整直接驱动数控平台鲁棒控制系统包括电压调整电路、整流滤波单元、IPM逆变单元、DSP、霍尔传感器、光栅尺、电流采样电路、位置采样电路、IPM隔离驱动保护电路。系统的结构如图3所示,电压调整电路采用反向调压模块EUV-25A-II,可实现0~220V隔离调压。整流滤波单元采用桥式不可控整流,大电容滤波,配合适当的阻容吸收电路,可以获得IPM工作所需的恒定直流电压。IPM采用富士公司6MBP50RA060智能功率模块,耐压600V,最大电流50A,最高工作频率20kHz。IPM用四组独立的15V驱动电源供电。主电源输入端子(P,N),输出端子(U,V,W),主端子用自带的螺钉固定,可实现电流传输。P、N为变频器的整流变换平滑滤波后的主电源输入端子,P为正端,N为负端,逆变器输出的三相交流电通过输出端子U、V、W接至电机。控制系统主电路原理图如图4所示。Based on coordinate transformation and parameter adjustment, the robust control system directly drives the CNC platform, including voltage adjustment circuit, rectification and filtering unit, IPM inverter unit, DSP, Hall sensor, grating scale, current sampling circuit, position sampling circuit, IPM isolation drive protection circuit . The structure of the system is shown in Figure 3. The voltage adjustment circuit adopts the reverse voltage regulation module EUV-25A-II, which can realize 0-220V isolation voltage regulation. The rectification filter unit adopts bridge type uncontrollable rectification, large capacitor filter, and appropriate resistance-capacity absorption circuit, which can obtain the constant DC voltage required for IPM work. The IPM uses Fuji 6MBP50RA060 intelligent power module, with a withstand voltage of 600V, a maximum current of 50A, and a maximum operating frequency of 20kHz. The IPM is powered by four independent 15V drive power supplies. The main power input terminals (P, N), output terminals (U, V, W), and the main terminals are fixed with their own screws, which can realize current transmission. P and N are the input terminals of the main power supply after rectification, transformation and smoothing of the inverter. P is the positive terminal and N is the negative terminal. The three-phase alternating current output by the inverter is connected to the motor through the output terminals U, V, and W. The schematic diagram of the main circuit of the control system is shown in Figure 4.
DSP选用TMS320F2812处理器,其配套的开发板包括目标只读存储器、模拟接口、eCAN接口、串行引导ROM、用户指示灯、复位电路、可配置为RS232/RS422/RS485的异步串口、SPI同步串口和片外256K*16位RAM。DSP selects TMS320F2812 processor, and its supporting development board includes target read-only memory, analog interface, eCAN interface, serial boot ROM, user indicator light, reset circuit, asynchronous serial port that can be configured as RS232/RS422/RS485, and SPI synchronous serial port And off-chip 256K*16-bit RAM.
控制系统中电流采样采用LEM公司霍尔电流传感器LT58-S7。由两个霍尔电流传感器检测A、B相电流,得到电流信号,经过电流采样电路,转换成0~3.3V的电压信号,最后由TMS320LF2812的A/D转换模块转换成12位精度的二进制数,并保存在数值寄存器中。A、B相的电流采样电路如图5所示。可调电阻VR2调节信号幅值,可调电阻VR1调节信号偏移量,通过对这两个电阻的调节,可以将信号调整到0~3.3V,再将其送入DSP的AD0、AD1管脚。图中的稳压管是为了防止送入DSP的信号超过3.3V,导致DSP被高压损坏。运算放大器采用OP27,电源接正负15V电压,在电压和地间接去耦电容。电路输入端接电容滤波,以去除高频信号干扰,提高采样精度。The current sampling in the control system adopts the Hall current sensor LT58-S7 of LEM Company. The A and B phase currents are detected by two Hall current sensors to obtain current signals, which are converted into 0-3.3V voltage signals through the current sampling circuit, and finally converted into binary numbers with 12-bit precision by the A/D conversion module of TMS320LF2812 , and stored in the value register. A, B-phase current sampling circuit shown in Figure 5. The adjustable resistor VR2 adjusts the signal amplitude, and the adjustable resistor VR1 adjusts the signal offset. By adjusting these two resistors, the signal can be adjusted to 0~3.3V, and then sent to the AD0 and AD1 pins of the DSP. . The regulator tube in the figure is to prevent the signal sent to the DSP from exceeding 3.3V, causing the DSP to be damaged by high voltage. The operational amplifier adopts OP27, the power supply is connected to positive and negative 15V voltage, and the decoupling capacitor is indirect between the voltage and the ground. The input terminal of the circuit is connected with a capacitor filter to remove high-frequency signal interference and improve sampling accuracy.
光栅尺输出的A相和B相脉冲信号要通过快速光耦6N137对信号进行隔离,然后经过分压电路将信号电平由5V转换为3.3V,最后连接到DSP的两路正交编码脉冲接口QEP1和QEP2。电路原理如图6所示。图7给出了六路隔离驱动电路的原理图。需要指出的是IPM故障保护信号针对的是非重复瞬态故障,在本系统中通过如下措施来实现:IPM的故障输出信号通过光耦接到DSP的引脚,以确保IPM发生故障时DSP及时将所有事件管理器输出脚置高阻态。The A-phase and B-phase pulse signals output by the grating ruler should be isolated by a fast optocoupler 6N137, and then the signal level will be converted from 5V to 3.3V by a voltage divider circuit, and finally connected to the two-way orthogonal encoding pulse interface of DSP QEP1 and QEP2. The circuit principle is shown in Figure 6. Figure 7 shows the schematic diagram of the six-way isolation drive circuit. It should be pointed out that the IPM fault protection signal is aimed at non-repetitive transient faults, which are realized in this system through the following measures: the fault output signal of IPM is connected to the DSP through optical coupling pins, to ensure that the DSP puts all event manager output pins in a high-impedance state in time when the IPM fails.
(二)本发明的基于坐标变换和参数调整直接驱动数控平台鲁棒控制方法,具体步骤如下:(2) The robust control method of the direct drive numerical control platform based on coordinate transformation and parameter adjustment of the present invention, the specific steps are as follows:
步骤1:确定电机动子的初始相位;Step 1: Determine the initial phase of the motor mover;
通过动子位置采样电路和电流采样电路分别采集电机动子位置、速度和电流信息。The position, speed and current information of the motor mover are collected respectively through the mover position sampling circuit and the current sampling circuit.
步骤2:对轮廓误差进行坐标变换,并进行参数调整,得到位置误差,即进行位置偏差计算,判断是否进行位置调节,是则进行步骤3,否则进行电流调节;Step 2: Carry out coordinate transformation on the contour error and adjust parameters to obtain the position error, that is, calculate the position deviation and judge whether to perform position adjustment. If yes, proceed to step 3; otherwise, perform current adjustment;
步骤2.1:对轮廓误差进行坐标变换Step 2.1: Coordinate Transformation for Contour Errors
假设:Assumptions:
(a1)理想轨迹ri和它的导数和可得;(a1) Ideal trajectory r i and its derivative and Available;
(a2)局部坐标系∑l的倾角θ和它的导数和可得;(a2) The inclination θ of the local coordinate system ∑ l and its derivative and Available;
(a3)进给驱动系统位置x和它的导数是可测量的;(a3) the feed drive system position x and its derivatives are measurable;
(a4)对于2设备参数值,都是可得的;(a4) For 2 device parameter values, all are available;
根据上述假设确定如下控制,包括驱动轴电机的输入电压v、矩阵H、E和Ie:According to the above assumptions, the following control is determined, including the input voltage v of the drive shaft motor, matrix H, E and I e :
其中mi(>0),ci(≥0)和fi分别是驱动轴i表质量、粘性摩擦系数和驱动力,其中Kv和Kp是速度和位置反馈增益矩阵。它们被假设只有正元素的对角矩阵。下面的等式成立:Where m i (>0), ci (≥0) and f i are the mass, viscous friction coefficient and driving force of the drive axis i, respectively, where K v and K p are the velocity and position feedback gain matrices. They are assumed to be diagonal matrices with only positive elements. The following equation holds:
由于矩阵H和R是非奇异的,下面的关系对于实现等式(2)需要被满足:Since matrices H and R are non-singular, the following relation needs to be satisfied for realizing equation (2):
从上面的等式中,通过适当分配等式(3)中反馈增益矩阵Kv和Kp得出结论,当t趋近于无穷时,el趋近于0是可得的。此外,控制器在图1中∑l的每个轴能调整误差收敛速度。如果对于el2反馈增益被设置大于el1的,对于理想曲线,轮廓误差能被减小得比切线跟踪误差快一些。ni为驱动进给驱动系统的电机惯性;ki为转矩-电压转换率;pi是滚珠丝杠的节;ki为转矩-电压转换率。From the above equations, it is obtained that e l approaches 0 as t approaches infinity by properly assigning the feedback gain matrices K v and K p in equation (3). In addition, the controller can adjust the error convergence speed for each axis of ∑ l in Fig. 1. If the feedback gain for e l2 is set larger than that for e l1 , the contour error can be reduced somewhat faster than the tangent tracking error for the ideal curve. n i is the inertia of the motor driving the feed drive system; ki is the torque-voltage conversion rate; pi is the node of the ball screw; ki is the torque-voltage conversion rate.
步骤2.2:参数调整,具体如下:Step 2.2: Parameter adjustment, as follows:
为减少切向误差分量el1和增加控制系统稳定性,控制器被期望有小的反馈增益,一个大的跟踪误差el1在正交误差分量el2和实际轮廓误差ec之间可能产生大的差异。在这种情况下,即使el2能被收敛成零轮廓误差ec也不再被抑制。In order to reduce the tangential error component e l1 and increase the stability of the control system, the controller is expected to have a small feedback gain, a large tracking error e l1 may produce a large gap between the quadrature error component e l2 and the actual contour error e c difference. In this case, even if e l2 can be converged to zero contour error e c is no longer suppressed.
这种参数调整方法,略移动理想位置和局部坐标系,来减少正交误差和实际轮廓误差的不同.因为一个跟踪误差沿着l1存在,在误差el2和ec之间可能存在一个不可接受的差异。为减少这个差异的一个方案是在理想轮廓曲线到实际位置x估计最近的位置,ra表示。然而,如果理想轮廓曲线是复杂的,很难实时精确计算最近的位置。并且,如果理想轮廓曲线对于x是凹的,几个到实际位置x的最近的位置可能存在。即使最近的位置被估计,关于最近位置局部坐标系提出的方法也不能应用到误差里,因为沿着理想轮廓曲线的跟踪误差总是近似零,沿着理想轮廓曲线的跟踪不再可能。这样,一个局部坐标系被产生,它的方向与最近位置的坐标系相似,它的原点接近理想轮廓曲线的理想位置,rn和∑n。用新定义系∑n取代等式(1)中旋转矩阵R和跟踪误差ew和el,产生el2和ec的不同。下面说明产生系∑n的方法。This parameter adjustment method slightly moves the ideal position and the local coordinate system to reduce the difference between the orthogonal error and the actual contour error. Because a tracking error exists along l 1 , there may be an inconsistency between the error e l2 and e c Accept the difference. One solution to reduce this difference is to estimate the closest position from the ideal profile curve to the actual position x, denoted by r a . However, if the ideal profile curve is complex, it is difficult to accurately calculate the nearest position in real time. Also, if the ideal profile curve is concave with respect to x, several closest positions to the actual position x may exist. Even if the nearest position is estimated, the proposed method for the local coordinate system of the nearest position cannot be applied to the error, because the tracking error along the ideal contour curve is always approximately zero, and tracking along the ideal contour curve is no longer possible. In this way, a local coordinate system is generated whose orientation is similar to that of the closest position and whose origin is close to the ideal position of the ideal profile curve, r n and ∑ n . Replace the rotation matrix R and the tracking errors e w and e l in equation (1) with the new definition system ∑ n , resulting in the difference between e l2 and e c . Next, the method of generating the series Σ n will be described.
假设沿着l1的跟踪误差有一个负值(例如el1是负的),因为为减少el1分配的控制器增益正常比为el2分配的小一些。也假设理想位置r和沿着理想轮廓曲线最近点ra之间的距离与跟踪误差el1的大小近似等值。此外,沿着这段的理想速度接近常量。于是,要求通过这段的时间td能被如下估计:Assume that the tracking error along l1 has a negative value (eg e l1 is negative), since the controller gain assigned to reduce e l1 is normally smaller than that assigned to e l2 . It is also assumed that the distance between the ideal position r and the closest point r a along the ideal contour curve is approximately equal to the magnitude of the tracking error e l1 . Furthermore, the ideal velocity along this segment is close to constant. Then, the time t d required to pass through this period can be estimated as follows:
图2坐标系∑a中原点(ra)和倾角(θa),是在理想轮廓曲线到x的最近位置,能被如下估计:The origin (r a ) and inclination (θ a ) in the coordinate system Σ a in Fig. 2, which are the closest positions to x on the ideal contour curve, can be estimated as follows:
ra=r(t-td),θa=θ(t-td) (5)r a =r(tt d ), θ a =θ(tt d ) (5)
其中r()和θ()表明时间的函数。修改的理想位置rn在图2中被表示成:where r() and θ() indicate functions of time. The modified ideal position r n is represented in Fig. 2 as:
rn=r+Radr,dr=[0,-dra2]T (6)r n =r+R a d r , d r =[0,-d ra2 ] T (6)
其中Ra是图2中∑a到∑w的旋转矩阵,是θa的一个函数。控制输入等式(1)被下式代替:Where R a is the rotation matrix from Σ a to Σ w in Figure 2, which is a function of θ a . The control input equation (1) is replaced by:
其中ewn=x-rn。于是,获得下面的控制动力,en1和en2收敛速度能被独立地调整:where e wn =xr n . Thus, the following control dynamics are obtained, and the convergence speeds of e n1 and e n2 can be adjusted independently:
步骤3:执行鲁棒控制算法,输出控制量v,驱动数控平台。Step 3: Execute the robust control algorithm, output the control variable v, and drive the CNC platform.
实际加工中,包括非线性摩擦和切割力以及设备建模错误的干扰的确存在,因此,控制器等式应该扩展考虑干扰和设备建模误差。含有有界干扰矢量w的进给驱动动力学。In actual machining, disturbances including nonlinear friction and cutting force as well as equipment modeling errors do exist, therefore, the controller equation should be extended to consider disturbances and equipment modeling errors. Feed drive dynamics with bounded disturbance vector w.
提出下面的控制器:Present the following controller:
其中表示z的标称值,信号(其中Λ是一个对角矩阵和只有正元素的常量)被采用作为后续稳定性分析的代替的速度信号。符号δv是实现鲁棒控制的一个输入矢量。通过近似分配等式反馈增益矩阵Kv、Kp和Λ,当t趋近于无穷时能得到en趋近于零。此外,沿着图2中∑n每个轴的误差收敛速度能被独立调整。in Indicates the nominal value of z, the signal (where Λ is a diagonal matrix and a constant with only positive elements) was adopted as a substitute for subsequent stability analysis speed signal. The symbol δv is an input vector for robust control. By approximately assigning the equal feedback gain matrices K v , K p and Λ, it can be obtained that e n approaches zero as t approaches infinity. In addition, the error convergence speed along each axis of Σ n in Fig. 2 can be adjusted independently.
鲁棒控制算法保证控制系统稳定性,即使当设备建模误差和干扰存在的时候。鲁棒控制得到如下等式:Robust control algorithms ensure control system stability even when plant modeling errors and disturbances exist. Robust control is obtained by the following equation:
其中||a||是a的欧几里得范数,ε是小的正常数。where ||a|| is the Euclidean norm of a, and ε is a small positive constant.
为了表明提出系统的鲁棒稳定性,利亚普诺夫函数候选被应用。In order to show the robust stability of the proposed system, a Lyapunov function candidate is applied.
得出结论ev和en是一致最终有界。于是,从 也是一致最终有界。因此,虽然过大的值会降低控制性能,提出的控制器能提高鲁棒稳定性。It is concluded that e v and e n are uniformly ultimately bounded. So, from It is also uniformly ultimately bounded. Therefore, although an excessively large value will degrade the control performance, the proposed controller can improve robust stability.
(三)系统软件实现(3) System software implementation
本发明方法中矢量控制系统程序流程图如图4所示。软件的主程序包括系统初始化;开INT1、INT2中断;允许定时器中断;定时器中断处理子程序。其中初始化程序包括关闭所有中断,DSP系统初始化,变量初始化,事件管理器初始化、AD初始化和正交编码脉冲QEP初始化。中断服务子程序包括保护中断子程序和T1下溢中断服务子程序。其他部分如动子初始化定位,PID调节,矢量变换等都在定时器TI下溢中断处理子程序中执行。The program flowchart of the vector control system in the method of the present invention is shown in FIG. 4 . The main program of the software includes system initialization; opening INT1, INT2 interrupt; allowing timer interrupt; timer interrupt processing subroutine. The initialization procedure includes closing all interrupts, DSP system initialization, variable initialization, event manager initialization, AD initialization and quadrature encoding pulse QEP initialization. The interrupt service subroutine includes the protection interrupt subroutine and the T1 underflow interrupt service subroutine. Other parts such as mover initial positioning, PID adjustment, vector conversion, etc. are all executed in the timer TI underflow interrupt processing subroutine.
IPM保护信号产生的保护中断响应属外部中断,INT1中断优先级比定时器T1的高。IPM会在过流、过压等异常情况自动发出保护信号,这一信号经转换连接到DSP的功率驱动保护引脚一旦有异常情况发生,DSP会进入保护中断子程序,首先禁止所有中断,然后封锁PWM输出使得电机马上停转,起到保护电机和IPM的作用。The protection interrupt response generated by the IPM protection signal is an external interrupt, and the INT1 interrupt priority is higher than that of the timer T1. IPM will automatically send a protection signal in abnormal conditions such as overcurrent and overvoltage, and this signal is converted and connected to the power drive protection pin of DSP Once an abnormal situation occurs, the DSP will enter the protection interrupt subroutine, first prohibit all interrupts, and then block the PWM output to stop the motor immediately, protecting the motor and IPM.
矢量控制系统的顺利启动,需要知道动子的初始位置,利用软件可以给电机的动子通一个幅值恒定的直流电,使定子产生一个恒定的磁场,这个磁场与转子的恒定磁场相互作用,使电机动子运动到两个磁链重合的位置。而动子初始定位、AD采样值的读取、电机动子位置的计算、坐标变换、PID调节、SVPWM波形比较值的产生都在T1下溢中断服务子程序中完成。To start the vector control system smoothly, it is necessary to know the initial position of the mover. Using the software, a DC current with a constant amplitude can be passed through the mover of the motor to make the stator generate a constant magnetic field. This magnetic field interacts with the constant magnetic field of the rotor. The motor mover moves to the position where the two flux linkages coincide. The initial positioning of the mover, the reading of AD sampling values, the calculation of the position of the motor mover, coordinate transformation, PID adjustment, and the generation of SVPWM waveform comparison values are all completed in the T1 underflow interrupt service subroutine.
在T1下溢中断子程序中完成所有的矢量控制算法。流程如图9所示。进入中断后,先判断动子是否已完成初始定位,如果初始定位已完成,则程序首先启动AD转换,把由硬件送回的电流值采集到DSP中。采集的数据首先是存储在各自的结果寄存器(RESUTLx,x=0,1)中,从结果寄存器RESULT0和RESULT1中读出A相和B相电流值变换为Q15格式后求得C相电流,再对三相电流进行坐标变换得到静止坐标系下两相电流。Complete all vector control algorithms in the T1 underflow interrupt subroutine. The process is shown in Figure 9. After entering the interrupt, first judge whether the mover has completed the initial positioning, if the initial positioning has been completed, the program first starts AD conversion, and collects the current value sent back by the hardware into the DSP. The collected data is firstly stored in the respective result registers (RESUTLx, x=0, 1), read out the A-phase and B-phase current values from the result registers RESULT0 and RESULT1 and transform them into Q15 format to obtain the C-phase current, and then Coordinate transformation is performed on the three-phase current to obtain the two-phase current in the static coordinate system.
定时器T2采用连续增计数方式,通过QEP1和QEP2两相正交编码脉冲电路对光电编码器的脉冲计数,经计算可以得到电机的实际位置。通过读计数方向位即可判断动子当前的运动方向。将实际测得的位置与给定位置作为位置调节器的输入,位置调节器输出作为q轴电流的给定量。编码器分辨率为1微米,由于直线电机定子极距为32mm,因此设置定时器T2周期寄存器为32000。每当动子运动距离达到一个极距时,定时器T2中断标志位置位,同时T2从0重新开始计数。读取新的计数值后需要清除定时器T2中断标志位。实验所达到的最大速度较小,当计算得出本周期计数值与前一周期计数值之差大于5000,就说明计数器经过了一次上溢或下溢,相应地进行电机实际位置计算。位置环对响应速度的要求远远没有电流环对响应速度的要求那样高,因此规定每一次T1下溢中断都要进行交直轴电流的调节,而每10次中断才进行一次位置PI调节。The timer T2 adopts the continuous counting method, and counts the pulses of the photoelectric encoder through the QEP1 and QEP2 two-phase quadrature encoding pulse circuits, and the actual position of the motor can be obtained through calculation. The current movement direction of the mover can be judged by reading the counting direction bit. The actual measured position and the given position are taken as the input of the position regulator, and the output of the position regulator is taken as the given amount of the q-axis current. The resolution of the encoder is 1 micron, and since the pole distance of the stator of the linear motor is 32mm, the period register of the timer T2 is set to 32000. Whenever the movement distance of the mover reaches a pole distance, the timer T2 interrupt flag is set, and T2 restarts counting from 0 at the same time. After reading the new count value, the timer T2 interrupt flag bit needs to be cleared. The maximum speed achieved in the experiment is small. When the calculated difference between the count value of this cycle and the count value of the previous cycle is greater than 5000, it means that the counter has overflowed or underflowed once, and the actual position of the motor is calculated accordingly. The requirements of the position loop on the response speed are far lower than the requirements of the current loop on the response speed. Therefore, it is stipulated that the AC and D axis currents must be adjusted every time the T1 underflow interruption is interrupted, and the position PI adjustment is only performed every 10 interruptions.
矢量控制通过坐标变换直接完成对动子q轴电流的调节,改变动子推力,流程如图8所示。通过坐标变换和空间矢量计算,以及根据开关电压矢量表确定的六个基本电压矢量中的两个矢量和零矢量,相应地计算出三个比较寄存器CMPR1,CMPR2和CMPR3的值。将其赋值到相应的寄存器就可以得到期望的SVPWM波,驱动IPM控制直线电机运行。Vector control directly completes the adjustment of the q-axis current of the mover through coordinate transformation, and changes the thrust of the mover. The process is shown in Figure 8. Through coordinate transformation and space vector calculation, and according to the two vectors and the zero vector in the six basic voltage vectors determined by the switching voltage vector table, the values of the three comparison registers CMPR1, CMPR2 and CMPR3 are calculated accordingly. Assign it to the corresponding register to get the desired SVPWM wave, and drive the IPM to control the operation of the linear motor.
本发明方法最终由嵌入DSP处理器中的控制程序实现,其控制过程按以下步骤执行:The inventive method is finally realized by the control program embedded in the DSP processor, and its control process is carried out in the following steps:
步骤1系统初始化;
步骤2允许TN1、TN2中断;
步骤3启动T1下溢中断;
步骤4程序数据初始化;
步骤5开总中断;
步骤6中断等待;
步骤7TN1中断处理子控制程序;Step 7TN1 interrupt processing sub-control program;
步骤8结束;
其中步骤6中位置调节中断处理子控制程序按以下步骤:Wherein in the
步骤6-1位置调节中断子控制程序;Step 6-1 position adjustment interruption sub-control program;
步骤6-2读取编码器值;Step 6-2 read the encoder value;
步骤6-3判断角度;Step 6-3 judges the angle;
步骤6-4计算已走距离;Step 6-4 calculates the distance traveled;
步骤6-5执行位置控制器;Step 6-5 executes the position controller;
步骤6-6执行鲁棒控制器补偿外部扰动;Steps 6-6 execute the robust controller to compensate for external disturbances;
步骤6-7计算电流命令并输出;Steps 6-7 calculate and output the current command;
步骤6-8中断返回;Step 6-8 interrupt return;
其中步骤7中T1中断处理子控制程序按以下步骤:Wherein in the
步骤7-1T1中断子控制程序;Step 7-1T1 interrupt sub-control program;
步骤7-2保护现场;Step 7-2 protect the site;
步骤7-3判断是否已初始定位;是进入步骤4,否则进入步骤10;Step 7-3 judges whether the initial positioning has been performed; if yes, enter
步骤7-4电流采样,CLARK变换,PARK变换;Step 7-4 current sampling, CLARK transformation, PARK transformation;
步骤7-5判断是否需要位置调节;否则进入步骤9;Step 7-5 judges whether position adjustment is needed; otherwise, enter
步骤7-6位置调节中断处理子控制程序;Step 7-6 position adjustment interrupt processing sub-control program;
步骤7-7位置控制偏差计算Step 7-7 Position Control Deviation Calculation
步骤7-8控制量输出调节Step 7-8 Control volume output adjustment
步骤7-9dq轴电流调节;Steps 7-9 dq-axis current regulation;
步骤7-10PARK逆变换;Steps 7-10PARK inverse transformation;
步骤7-11计算CMPPx及PWM输出;Steps 7-11 calculate CMPPx and PWM output;
步骤7-12位置采样;Step 7-12 position sampling;
步骤7-13初始定位程序;Steps 7-13 initial positioning procedure;
步骤7-14恢复现场;Steps 7-14 restore the scene;
步骤7-15中断返回。Steps 7-15 interrupt return.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110390966.7A CN102637011B (en) | 2011-11-30 | 2011-11-30 | Robust control method and control system of direct drive CNC platform based on coordinate transformation and parameter adjustment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110390966.7A CN102637011B (en) | 2011-11-30 | 2011-11-30 | Robust control method and control system of direct drive CNC platform based on coordinate transformation and parameter adjustment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102637011A true CN102637011A (en) | 2012-08-15 |
| CN102637011B CN102637011B (en) | 2014-02-26 |
Family
ID=46621429
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201110390966.7A Expired - Fee Related CN102637011B (en) | 2011-11-30 | 2011-11-30 | Robust control method and control system of direct drive CNC platform based on coordinate transformation and parameter adjustment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102637011B (en) |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103414419A (en) * | 2013-08-07 | 2013-11-27 | 沈阳工业大学 | Double-linear-motor contour compensation device and method based on fuzzy RBF network sliding mode |
| CN103560722A (en) * | 2013-11-16 | 2014-02-05 | 沈阳工业大学 | Permanent magnet linear synchronous motor control device and method |
| CN103560721A (en) * | 2013-11-16 | 2014-02-05 | 沈阳工业大学 | Device and method for controlling gantry numerical control milling machine through double line permanent magnet synchronous motors |
| CN104076740A (en) * | 2013-03-27 | 2014-10-01 | 兄弟工业株式会社 | Numerical-control device |
| CN104460518A (en) * | 2014-11-16 | 2015-03-25 | 沈阳工业大学 | Direct-drive XY platform profile control device and method based on fuzzy disturbance compensation |
| CN105159227A (en) * | 2015-07-22 | 2015-12-16 | 渤海大学 | Biaxial motion platform positioning and dynamic locus tracking control device and method |
| CN105223809A (en) * | 2015-07-10 | 2016-01-06 | 沈阳工业大学 | The synchronous control system of the fuzzy neural network compensator of H type platform and method |
| CN105676780A (en) * | 2014-11-17 | 2016-06-15 | 沈阳工业大学 | XY motion platform contour control method and device on the basis of fuzzy cerebellum model joint controller |
| CN114408148A (en) * | 2021-12-20 | 2022-04-29 | 中国船舶重工集团应急预警与救援装备股份有限公司 | A kind of boat bridge power unit throttle control system and method |
| TWI805353B (en) * | 2022-01-25 | 2023-06-11 | 台達電子工業股份有限公司 | Servo actuator and fast self-tuning method of gain for using the same |
| US12117803B2 (en) | 2022-01-25 | 2024-10-15 | Delta Electronics, Inc. | Servo actuator and fast self-tuning method of gain for using the same |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2001033304A2 (en) * | 1999-10-31 | 2001-05-10 | Eugen Saffert | Control system for electric drive mechanisms and method for controlling a trajectory |
| JP2004243454A (en) * | 2003-02-13 | 2004-09-02 | Yaskawa Electric Corp | Robot tool shape designation device and tool interference check device |
| CN101349910A (en) * | 2008-08-29 | 2009-01-21 | 华中科技大学 | A dual-axis synchronous control device for a numerically controlled machine tool |
| US20090248203A1 (en) * | 2008-03-31 | 2009-10-01 | Mitsubishi Electric Corporation | Numerical control apparatus and numerical control method |
| CN101989080A (en) * | 2010-12-03 | 2011-03-23 | 沈阳工业大学 | Method for realizing contour machining by using variable gain zero phase error tracking and disturbance observation |
| CN102033508A (en) * | 2010-12-01 | 2011-04-27 | 沈阳工业大学 | Method for improving machining precision of contour of directly driven XY platform |
-
2011
- 2011-11-30 CN CN201110390966.7A patent/CN102637011B/en not_active Expired - Fee Related
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2001033304A2 (en) * | 1999-10-31 | 2001-05-10 | Eugen Saffert | Control system for electric drive mechanisms and method for controlling a trajectory |
| WO2001033304A3 (en) * | 1999-10-31 | 2001-11-15 | Eugen Saffert | Control system for electric drive mechanisms and method for controlling a trajectory |
| JP2004243454A (en) * | 2003-02-13 | 2004-09-02 | Yaskawa Electric Corp | Robot tool shape designation device and tool interference check device |
| US20090248203A1 (en) * | 2008-03-31 | 2009-10-01 | Mitsubishi Electric Corporation | Numerical control apparatus and numerical control method |
| CN101349910A (en) * | 2008-08-29 | 2009-01-21 | 华中科技大学 | A dual-axis synchronous control device for a numerically controlled machine tool |
| CN102033508A (en) * | 2010-12-01 | 2011-04-27 | 沈阳工业大学 | Method for improving machining precision of contour of directly driven XY platform |
| CN101989080A (en) * | 2010-12-03 | 2011-03-23 | 沈阳工业大学 | Method for realizing contour machining by using variable gain zero phase error tracking and disturbance observation |
Cited By (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104076740A (en) * | 2013-03-27 | 2014-10-01 | 兄弟工业株式会社 | Numerical-control device |
| CN103414419A (en) * | 2013-08-07 | 2013-11-27 | 沈阳工业大学 | Double-linear-motor contour compensation device and method based on fuzzy RBF network sliding mode |
| CN103560722A (en) * | 2013-11-16 | 2014-02-05 | 沈阳工业大学 | Permanent magnet linear synchronous motor control device and method |
| CN103560721A (en) * | 2013-11-16 | 2014-02-05 | 沈阳工业大学 | Device and method for controlling gantry numerical control milling machine through double line permanent magnet synchronous motors |
| CN103560721B (en) * | 2013-11-16 | 2015-10-28 | 沈阳工业大学 | The device and method of gantry numerical control milling machine is controlled with bilinear permagnetic synchronous motor |
| CN103560722B (en) * | 2013-11-16 | 2016-07-06 | 沈阳工业大学 | A kind of permanent magnet linear synchronous motor controls device and method |
| CN104460518A (en) * | 2014-11-16 | 2015-03-25 | 沈阳工业大学 | Direct-drive XY platform profile control device and method based on fuzzy disturbance compensation |
| CN104460518B (en) * | 2014-11-16 | 2017-06-13 | 沈阳工业大学 | Based on Fuzzy Disturbing compensation direct drive XY platform contours control device and methods |
| CN105676780A (en) * | 2014-11-17 | 2016-06-15 | 沈阳工业大学 | XY motion platform contour control method and device on the basis of fuzzy cerebellum model joint controller |
| CN105676780B (en) * | 2014-11-17 | 2019-12-03 | 沈阳工业大学 | XY Motion Platform Contour Control Device Based on Fuzzy Cerebellar Model Joint Controller |
| CN105223809A (en) * | 2015-07-10 | 2016-01-06 | 沈阳工业大学 | The synchronous control system of the fuzzy neural network compensator of H type platform and method |
| CN105223809B (en) * | 2015-07-10 | 2018-11-09 | 沈阳工业大学 | The synchronous control system and method for the fuzzy neural network compensator of H-type platform |
| CN105159227A (en) * | 2015-07-22 | 2015-12-16 | 渤海大学 | Biaxial motion platform positioning and dynamic locus tracking control device and method |
| CN105159227B (en) * | 2015-07-22 | 2017-12-19 | 渤海大学 | A kind of positioning of double-shaft moving platform and dynamic trajectory follow-up control apparatus and method |
| CN114408148A (en) * | 2021-12-20 | 2022-04-29 | 中国船舶重工集团应急预警与救援装备股份有限公司 | A kind of boat bridge power unit throttle control system and method |
| CN114408148B (en) * | 2021-12-20 | 2024-11-15 | 中国船舶重工集团应急预警与救援装备股份有限公司 | A pontoon bridge power unit throttle control system and method |
| TWI805353B (en) * | 2022-01-25 | 2023-06-11 | 台達電子工業股份有限公司 | Servo actuator and fast self-tuning method of gain for using the same |
| US12117803B2 (en) | 2022-01-25 | 2024-10-15 | Delta Electronics, Inc. | Servo actuator and fast self-tuning method of gain for using the same |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102637011B (en) | 2014-02-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102637011B (en) | Robust control method and control system of direct drive CNC platform based on coordinate transformation and parameter adjustment | |
| CN105223809B (en) | The synchronous control system and method for the fuzzy neural network compensator of H-type platform | |
| CN104460518B (en) | Based on Fuzzy Disturbing compensation direct drive XY platform contours control device and methods | |
| CN104977901B (en) | Triaxial movement platform modified cross-coupling control device and method | |
| Lin et al. | Robust fuzzy neural network sliding-mode control for two-axis motion control system | |
| CN107132759B (en) | An improved repetitive control method based on ESO sliding mode for linear motor drive FTS | |
| CN101834554B (en) | Method for improving machining precision by using load disturbance compensator and optimizing setting of load disturbance compensator | |
| Ghaffari et al. | Dynamic contour error estimation and feedback modification for high-precision contouring | |
| CN105676780B (en) | XY Motion Platform Contour Control Device Based on Fuzzy Cerebellar Model Joint Controller | |
| CN103414419A (en) | Double-linear-motor contour compensation device and method based on fuzzy RBF network sliding mode | |
| CN108123648B (en) | Linear Servo Position Tracking Control Based on Linear Matrix Inequality and Sliding Mode Control | |
| CN102707666B (en) | Motor-driven XY platform contour processing control device and method based on direction field | |
| Wu et al. | Integral design of contour error model and control for biaxial system | |
| Mannava et al. | Optimal tracking control of motion systems | |
| CN104834219B (en) | A kind of PMLSM driving XY platform courses method and system based on empirical mode decomposition | |
| CN105929693A (en) | Adaptive sliding-mode compensation synchronous control system of H type precision motion platform and method | |
| CN107070336A (en) | The two patterns paste fractional order System with Sliding Mode Controller and method of permanent magnet linear synchronous motor | |
| CN102510251A (en) | Self-adaption robust control method for permanent magnet ring torque motor for driving composite swing head | |
| CN104485864B (en) | Second-order sliding mode control system of direct drive servo system and control method of second-order sliding mode control system | |
| CN104467595A (en) | Second-order sliding-mode control system directly driving servo system and control method thereof | |
| CN109143869B (en) | A Synchronous Control System of Recurrent Wavelet Neural Network Compensator for H-shaped Platform | |
| CN111130411B (en) | Device and method for improving synchronous control accuracy of servo system of dual-axis direct drive platform | |
| Zhao et al. | Cross-Coupled Synchronous Control of Dual Linear Motor Servo System Based on Disturbance-Assignment Observer and Iterative Learning Control | |
| CN203896241U (en) | Dual linear motor contour compensation device based on fuzzy RBF network integral sliding-mode | |
| CN116566249A (en) | Control method for improving contour tracking precision of two-axis direct-drive servo feeding system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140226 Termination date: 20151130 |
|
| EXPY | Termination of patent right or utility model |