CN104076740B - Numerical-control device - Google Patents
Numerical-control device Download PDFInfo
- Publication number
- CN104076740B CN104076740B CN201410035270.6A CN201410035270A CN104076740B CN 104076740 B CN104076740 B CN 104076740B CN 201410035270 A CN201410035270 A CN 201410035270A CN 104076740 B CN104076740 B CN 104076740B
- Authority
- CN
- China
- Prior art keywords
- compensation amount
- speed
- moving body
- moving
- amount
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Automatic Control Of Machine Tools (AREA)
- Control Of Position Or Direction (AREA)
- Numerical Control (AREA)
Abstract
一种数控装置,能高精度地补偿轴移动的移动方向反转后产生的失位。数控装置包括补偿器。补偿器对失位的补偿量进行运算。失位是工作台的移动方向反转后、因工作台机构的弹性变形而产生的。补偿器判断工作台是处于移动过程中还是处于停止过程中(S1),在判断为处于移动过程中时(S1:否),利用(1)式对补偿量进行运算(S2)。(1)式是使与工作台(3)的移动量成比例的值和前次的补偿量相加来运算出补偿量的式子。在判断为处于停止过程中时(S1:是),利用(2)式对补偿量进行运算(S5)。(2)式是基于转矩指令对补偿量进行运算的式子。所以,数控装置能根据工作台是处于移动过程中、反转时还是停止时,来高精度地补偿失位。
A numerically controlled device that compensates with high precision for misalignment that occurs when the direction of movement of an axis is reversed. The numerical control device includes a compensator. The compensator calculates the amount of compensation for misalignment. Dislocation is caused by the elastic deformation of the table mechanism after the moving direction of the table is reversed. The compensator judges whether the workbench is in the process of moving or in the process of stopping (S1), and when it is judged that it is in the process of moving (S1: No), calculates the compensation amount using the formula (1) (S2). The expression (1) is an expression for calculating the compensation amount by adding a value proportional to the movement amount of the table (3) to the previous compensation amount. When it is judged that the stop is in progress (S1: YES), the compensation amount is calculated using (2) formula (S5). The expression (2) is an expression for calculating the compensation amount based on the torque command. Therefore, the numerical control device can compensate for misalignment with high precision according to whether the table is in the process of moving, reversing or stopping.
Description
技术领域technical field
本发明涉及一种数控装置。The invention relates to a numerical control device.
背景技术Background technique
机床在驱动轴的移动方向反转时会因机构的弹性变形而产生迟滞。迟滞被称为失位,其是加工精度降低的原因。为了补偿失位,数控装置在移动方向反转时对与失位相当的量进行预测,并使其与指令位置相加。在日本专利特许公开1996年152910号公报中,利用以距反转位置的距离作为输入、以补偿量作为输出的函数,对失位进行补偿。在日本专利特许公开1998年154007号公报中,同样地,利用距反转位置的距离的函数对失位进行补偿,但利用exp函数(指数函数)来拟合失位的上升。上述公报中记载的手法能够良好地补偿反转时及移动过程中的失位,但在停止时则变为过补偿,存在加工精度降低这一技术问题。Machine tools experience hysteresis due to elastic deformation of the mechanism when the direction of movement of the drive shaft is reversed. Hysteresis is called misalignment, which is a cause of reduction in machining accuracy. In order to compensate for the misalignment, the numerical control device predicts an amount corresponding to the misalignment when the moving direction is reversed, and adds it to the command position. In Japanese Patent Laid-Open No. 1996-152910, the misalignment is compensated using a function whose input is the distance from the reversed position and whose output is the compensation amount. In Japanese Patent Laid-Open No. 154007 of 1998, similarly, the misalignment is compensated using a function of the distance from the reversal position, but the rise of the misalignment is fitted using an exp function (exponential function). The method described in the above-mentioned gazette can well compensate for misalignment during inversion and movement, but it becomes overcompensated when stopped, and there is a technical problem of lowering machining accuracy.
发明内容Contents of the invention
本发明的目的在于提供一种数控装置,其能根据是处于移动过程中、反转时还是停止时,来高精度地补偿失位。The object of the present invention is to provide a numerical control device capable of accurately compensating for misalignment according to whether it is moving, reversing, or stopped.
技术方案1的数控装置包括:进给机构,该进给机构具有滚珠丝杠轴和套设于该滚珠丝杠轴的滚珠螺母,并使固定于该滚珠螺母的移动体移动;马达,该马达驱动上述滚珠丝杠轴旋转;位置检测机构,该位置检测机构基于上述马达的旋转量对利用上述马达移动后的上述移动体的位置进行检测;速度生成部,该速度生成部生成速度指令,以使上述位置检测机构检测出的上述移动体的位置与控制部生成的位置指令一致;速度检测机构,该速度检测机构对上述马达的速度进行检测;转矩生成部,该转矩生成部生成转矩指令,以使上述速度检测机构检测出的速度与上述速度生成部生成的速度指令一致;运算部,该运算部对上述移动体的移动方向反转后、因上述进给机构的弹性变形而产生的失位的补偿量进行运算;以及加法部,该加法部使上述运算部运算出的上述补偿量与上述位置指令相加,来对上述位置指令进行修正,其特征是,上述运算部包括:判断部,该判断部判断上述移动体是处于移动过程中还是处于停止过程中;第一运算部,该第一运算部在上述判断部判断为上述移动体处于移动过程中时,使基于上述移动体的移动量的值与前次的补偿量相加,来运算出上述补偿量;以及第二运算部,该第二运算部在上述判断部判断为上述移动体处于停止过程中时,基于上述转矩指令,运算出上述补偿量。在移动体的移动过程中,第一运算部使用移动量的函数对补偿量进行运算。在移动体的停止过程中,第二运算部使用转矩指令的函数对补偿量进行运算。运算部根据移动体是处于移动过程中还是处于停止过程中来区别使用函数。因此,数控装置在移动体的移动过程中及反转时能进行稳定的补偿,且在停止时能防止过补偿。所以,数控装置能根据是处于移动过程中、反转时还是停止时,来高精度地补偿失位。The numerical control device of technical solution 1 includes: a feed mechanism, the feed mechanism has a ball screw shaft and a ball nut sleeved on the ball screw shaft, and moves a moving body fixed to the ball nut; a motor, the motor drive the ball screw shaft to rotate; a position detection mechanism that detects the position of the moving body moved by the motor based on the rotation amount of the motor; a speed generation unit that generates a speed command to The position of the moving body detected by the position detection mechanism is consistent with the position command generated by the control unit; the speed detection mechanism detects the speed of the motor; the torque generation unit generates the torque. Torque command, so that the speed detected by the above-mentioned speed detection mechanism is consistent with the speed command generated by the above-mentioned speed generation part; Computing the amount of compensation for the generated misalignment; and an adding unit that adds the compensation amount calculated by the computing unit to the position command to correct the position command, wherein the computing unit includes : judging part, the judging part judges whether the above-mentioned mobile body is in the process of moving or in the process of stopping; the first computing part, when the above-mentioned judging part judges that the above-mentioned mobile body is in the process of moving, the first computing part makes the The value of the movement amount of the mobile body is added to the previous compensation amount to calculate the compensation amount; The aforementioned torque command is used to calculate the aforementioned compensation amount. During the movement of the mobile object, the first calculation unit calculates the compensation amount using a function of the movement amount. During the stop of the moving body, the second calculation unit calculates the compensation amount using a function of the torque command. The computing unit distinguishes the usage function according to whether the moving body is moving or is stopping. Therefore, the numerical control device can perform stable compensation during the movement and reverse rotation of the mobile body, and can prevent overcompensation when it stops. Therefore, the numerical control device can compensate for misalignment with high precision according to whether it is in the process of moving, reversing or stopping.
技术方案2的数控装置除了技术方案1所记载的发明的结构以外,其特征是,将使上述移动体以规定速度朝一定方向移动时的转矩值作为基准转矩,上述第二运算部对上述补偿量进行运算,以与上述基准转矩和上述转矩指令的比率成比例。因此,第二运算部能对停止过程中产生的失位进行补偿。In addition to the configuration of the invention described in claim 1, the numerical control device of claim 2 is characterized in that a torque value when the moving body is moved in a certain direction at a predetermined speed is used as a reference torque, and the second calculation unit The compensation amount is calculated so as to be proportional to the ratio of the reference torque to the torque command. Therefore, the second computing unit can compensate for the misalignment generated during the stop.
技术方案3的数控装置除了技术方案2所记载的发明的结构以外,其特征是,将使上述移动体以上述规定速度朝上述一定方向移动时的最大的补偿量作为最大补偿量,上述第二运算部使上述最大补偿量与上述比率相乘来运算出上述补偿量。因此,第二运算部能对停止过程中产生的失位进行补偿。In addition to the structure of the invention described in claim 2, the numerical control device of claim 3 is characterized in that the maximum compensation amount when the moving body is moved in the predetermined direction at the predetermined speed is used as the maximum compensation amount, and the second The calculation unit calculates the compensation amount by multiplying the maximum compensation amount by the ratio. Therefore, the second computing unit can compensate for the misalignment generated during the stop.
技术方案4的数控装置除了技术方案1至3中任一项所记载的发明的结构以外,其特征是,上述第一运算部在上述移动体从停止过程中开始移动时,将停止过程中的上述补偿量作为上述前次的补偿量。因此,数控装置能对从停止开始转移到移动时的失位的变化良好地进行补偿。In addition to the structure of the invention described in any one of claims 1 to 3, the numerical control device of claim 4 is characterized in that, when the moving body starts to move from the stop process, the above-mentioned first calculation unit will The above-mentioned compensation amount is used as the above-mentioned previous compensation amount. Therefore, the numerical control device can satisfactorily compensate for a change in misalignment at the time of shifting from a stop to a movement.
附图说明Description of drawings
图1是工作台机构20的立体图。FIG. 1 is a perspective view of the table mechanism 20 .
图2是表示数控装置1的电气结构的图。FIG. 2 is a diagram showing an electrical configuration of the numerical control device 1 .
图3是表示移动过程中的补偿量的图。Fig. 3 is a diagram showing compensation amounts during movement.
图4是表示停止过程中的补偿量的图。Fig. 4 is a diagram showing compensation amounts during a stop.
图5是表示从停止转移到移动时的补偿开始位置的图。Fig. 5 is a diagram showing a compensation start position when shifting from a stop to a movement.
图6是表示从移动转移到停止时的补偿量的图。Fig. 6 is a diagram showing compensation amounts when shifting from moving to stopping.
图7是补偿处理的流程图。FIG. 7 is a flowchart of compensation processing.
图8是工作台机构40的结构图。FIG. 8 is a block diagram of the table mechanism 40 .
图9是表示利用第一手法计算补偿量而得到的结果的图。FIG. 9 is a diagram showing the result of calculating the compensation amount by the first method.
图10是表示利用第二手法计算补偿量而得到的结果的图。FIG. 10 is a diagram showing the result of calculating the compensation amount by the second method.
图11是表示利用第三手法计算补偿量而得到的结果的图。FIG. 11 is a diagram showing the result of calculating the compensation amount by the third method.
具体实施方式detailed description
以下,参照附图对本发明的一实施方式进行说明。在以下的说明中,使用图中箭头所表示的上下、左右、前后。工作台机构20的左右方向、前后方向、上下方向分别为X轴方向、Y轴方向、Z轴方向。图1所示的工作台机构20设于机床(未图示)。工作台机构20将工作台3支撑成能在X轴方向和Y轴方向上移动。机床的主轴(未图示)能在Z轴方向上升降。数控装置1按照NC(数控)程序所指定的路径,对主轴和工作台机构20的动作进行控制,并对利用夹具固定在工作台3上的工件(未图示)进行切削加工。Hereinafter, an embodiment of the present invention will be described with reference to the drawings. In the following description, up and down, left and right, and front and rear indicated by arrows in the drawing are used. The left-right direction, front-rear direction, and up-down direction of the table mechanism 20 are the X-axis direction, the Y-axis direction, and the Z-axis direction, respectively. The table mechanism 20 shown in FIG. 1 is provided in a machine tool (not shown). The table mechanism 20 supports the table 3 so as to be movable in the X-axis direction and the Y-axis direction. The spindle (not shown) of the machine tool can be raised and lowered in the Z-axis direction. The numerical control device 1 controls the movement of the spindle and the table mechanism 20 according to a path specified by an NC (numerical control) program, and performs cutting on a workpiece (not shown) fixed on the table 3 by a jig.
参照图1对工作台机构20的结构进行说明。工作台机构20包括基座2、中间工作台50、工作台3。基座2在其上表面将中间工作台50支撑成能在Y轴方向上移动。中间工作台50在其上表面将工作台3支撑成能在X轴方向上移动。因此,工作台3能以基座2为基准在X轴方向和Y轴方向上移动。基座2在其上表面具有一对直线引导件6A、滚珠丝杠轴4A、马达2A等。直线引导件6A在Y轴方向上延伸。直线引导件6A在Y轴方向上对中间工作台50进行引导。滚珠丝杠轴4A在一对直线引导件6A之间与Y轴方向平行地设置。中间工作台50在其下表面固定有滚珠螺母(未图示)。滚珠丝杠轴4A插入滚珠螺母。马达2A使滚珠丝杠轴4A旋转。当使滚珠丝杠轴4A旋转时,中间工作台50通过滚珠螺母在Y轴方向上移动。中间工作台50呈X轴方向较长的板状,在其上表面设有一对直线引导件6B、滚珠丝杠轴4B、马达2B等。直线引导件6B在X轴方向上延伸。直线引导件6B在X轴方向上对工作台3进行引导。滚珠丝杠轴4B在一对直线引导件6B之间与X轴方向平行地设置。工作台3在其下表面固定有滚珠螺母5(参照图8)。滚珠丝杠轴4B插入滚珠螺母5。马达2B使滚珠丝杠轴4B旋转。当使滚珠丝杠轴4B旋转时,工作台3通过滚珠螺母5在X轴方向上移动。因此,工作台机构20能使工作台3在X轴方向和Y轴方向上移动。The configuration of the table mechanism 20 will be described with reference to FIG. 1 . The workbench mechanism 20 includes a base 2 , an intermediate workbench 50 , and a workbench 3 . The base 2 supports the intermediate table 50 on its upper surface so as to be movable in the Y-axis direction. The intermediate table 50 supports the table 3 so as to be movable in the X-axis direction on its upper surface. Therefore, the table 3 can move in the X-axis direction and the Y-axis direction with the base 2 as a reference. The base 2 has a pair of linear guides 6A, a ball screw shaft 4A, a motor 2A, and the like on its upper surface. The linear guide 6A extends in the Y-axis direction. The linear guide 6A guides the intermediate table 50 in the Y-axis direction. The ball screw shaft 4A is provided between the pair of linear guides 6A in parallel to the Y-axis direction. Ball nuts (not shown) are fixed to the lower surface of the intermediate table 50 . The ball screw shaft 4A is inserted into the ball nut. The motor 2A rotates the ball screw shaft 4A. When the ball screw shaft 4A is rotated, the intermediate table 50 moves in the Y-axis direction via the ball nut. The intermediate table 50 has a long plate shape in the X-axis direction, and a pair of linear guides 6B, a ball screw shaft 4B, a motor 2B, and the like are provided on the upper surface thereof. The linear guide 6B extends in the X-axis direction. The linear guide 6B guides the table 3 in the X-axis direction. The ball screw shaft 4B is provided between the pair of linear guides 6B in parallel to the X-axis direction. A ball nut 5 is fixed to the lower surface of the table 3 (see FIG. 8 ). The ball screw shaft 4B is inserted into the ball nut 5 . The motor 2B rotates the ball screw shaft 4B. When the ball screw shaft 4B is rotated, the table 3 moves in the X-axis direction via the ball nut 5 . Therefore, the table mechanism 20 can move the table 3 in the X-axis direction and the Y-axis direction.
数控装置1与马达2A、2B分别连接。数控装置1使马达2A、2B驱动,从而使工作台3在X轴方向和Y轴方向上移动。滚珠丝杠轴4A、4B和安装于滚珠丝杠轴4A的滚珠螺母、滚珠螺母5将马达2A、2B的旋转运动转换为工作台3在两轴方向(X轴方向和Y轴方向)上的直进运动。数控装置1对马达2A、2B进行控制,以对工作台3的位置、速度和加速度进行控制。旋转编码器60(以下称为编码器60)分别安装于马达2A、2B。各编码器60对马达2A、2B的各位置(旋转角)进行检测。数控装置1基于马达2A、2B的各位置、滚珠丝杠轴4A、4B的节距(螺纹牙的间隔)来计算出工作台3的位置。Numerical control device 1 is connected to motors 2A and 2B, respectively. The numerical control device 1 drives the motors 2A and 2B to move the table 3 in the X-axis direction and the Y-axis direction. The ball screw shafts 4A, 4B and the ball nuts and ball nuts 5 mounted on the ball screw shafts 4A convert the rotational motion of the motors 2A, 2B into motions of the table 3 in the two-axis directions (X-axis direction and Y-axis direction). straight into motion. The numerical control device 1 controls the motors 2A, 2B to control the position, speed and acceleration of the table 3 . Rotary encoders 60 (hereinafter referred to as encoders 60 ) are attached to the motors 2A, 2B, respectively. Each encoder 60 detects each position (rotation angle) of the motors 2A, 2B. The numerical control device 1 calculates the position of the table 3 based on the respective positions of the motors 2A, 2B and the pitch of the ball screw shafts 4A, 4B (interval between screw threads).
参照图2,对数控装置1的结构进行说明。数控装置1包括上位控制部10、位置控制器11、速度控制器12、补偿器13、电流控制增幅器15、微分器16、加法器17等。上位控制部10基于NC程序,将位置指令信号输出到位置控制器11。各编码器60将马达2A、2B的位置检测信号输出到位置控制器11。位置控制器11以使位置指令信号与位置检测信号一致的方式生成速度指令信号,并将其输出到速度控制器12。微分器16将位置检测信号转换为速度检测信号,并将其输出到速度控制器12。速度控制器12以使速度指令信号与速度检测信号一致的方式生成转矩指令信号,并将其分别输出到电流控制增幅器15和补偿器13。Referring to FIG. 2 , the configuration of the numerical control device 1 will be described. The numerical control device 1 includes a host control unit 10 , a position controller 11 , a speed controller 12 , a compensator 13 , a current control amplifier 15 , a differentiator 16 , an adder 17 and the like. The host control unit 10 outputs a position command signal to the position controller 11 based on the NC program. Each encoder 60 outputs a position detection signal of the motors 2A, 2B to the position controller 11 . The position controller 11 generates a speed command signal so that the position command signal coincides with the position detection signal, and outputs it to the speed controller 12 . The differentiator 16 converts the position detection signal into a speed detection signal, and outputs it to the speed controller 12 . The speed controller 12 generates a torque command signal so that the speed command signal matches the speed detection signal, and outputs the torque command signal to the current control amplifier 15 and the compensator 13, respectively.
补偿器13根据工作台3的状态,基于来自上位控制部10的位置指令信号或来自速度控制器12的转矩指令信号,计算出失位补偿量(以下称为补偿量),并生成失位补偿信号,然后将其输出到加法器17。加法器17使失位补偿信号与上位控制部10输出到位置控制器11的位置指令信号相加。因此,位置控制器11以使对失位进行了补偿的位置指令信号与位置检测信号一致的方式,生成转矩指令信号。速度控制器12生成对失位进行了补偿的转矩指令信号。电流控制增幅器15对马达2A、2B的电流进行控制,以产生尽可能忠实于转矩指令信号的转矩。The compensator 13 calculates the misalignment compensation amount (hereinafter referred to as compensation amount) based on the position command signal from the host control unit 10 or the torque command signal from the speed controller 12 according to the state of the table 3, and generates a misalignment The compensation signal is then output to adder 17. The adder 17 adds the misalignment compensation signal to the position command signal output from the host control unit 10 to the position controller 11 . Therefore, the position controller 11 generates a torque command signal so that the position command signal compensated for the misalignment coincides with the position detection signal. The speed controller 12 generates a torque command signal that compensates for the misalignment. The current control amplifier 15 controls the current of the motors 2A, 2B so as to generate a torque as faithful as possible to the torque command signal.
参照图3~图6,对补偿器13进行的失位补偿方法进行说明。失位的特性因工作台3的状态而不同。所谓工作台3的状态,至少包含移动状态和停止状态。机床为了对工件进行加工,使工作台3交替地反复移动和停止。因此,数控装置1需要针对移动状态和停止状态来分别改变补偿量的计算方法。此外,数控装置1需要设定从移动状态转移到停止状态时、从停止状态转移到移动状态时的补偿量。因此,在本实施方式中,根据工作台3的状态如下所述对补偿量进行计算。补偿器13利用下述(1)式对移动状态的补偿量进行计算。Lcn为补偿器输出,Lcn-1为前次补偿器输出,Pc为最大补偿量,Ap为斜率系数,Δx为位置指令的增量。Pls为脉冲。Referring to FIGS. 3 to 6 , a method for compensating for a misalignment performed by the compensator 13 will be described. The characteristics of the misalignment differ depending on the state of the table 3 . The state of the table 3 includes at least a moving state and a stopped state. The machine tool repeatedly moves and stops the table 3 alternately in order to process the workpiece. Therefore, the numerical control device 1 needs to change the calculation method of the compensation amount for the moving state and the stopped state, respectively. In addition, the numerical control device 1 needs to set the compensation amount when shifting from the moving state to the stopped state, and when shifting from the stopped state to the moving state. Therefore, in this embodiment, the compensation amount is calculated as follows according to the state of the table 3 . The compensator 13 calculates the compensation amount of the movement state using the following formula (1). Lc n is the output of the compensator, Lc n-1 is the output of the previous compensator, Pc is the maximum compensation amount, Ap is the slope coefficient, and Δx is the increment of the position command. Pls is pulse.
(1)式 (1) formula
图3是表示利用(1)式计算出的移动状态的补偿量的图。补偿量与工作台3的移动量成比例地增加或者减少。其中,-Pc/2≤Lcn≤Pc/2,在此范围以外,补偿量不会增加而保持恒定。与移动量成比例地增加的斜率、最大补偿量是通过实际测定而确定的参数。当补偿量恒定后移动方向反转时,补偿量立刻减少。因此,补偿量描绘出迟滞特性的轨迹。迟滞特性的轨迹是不返回到原来的位置的轨迹。Fig. 3 is a diagram showing the compensation amount of the movement state calculated by the expression (1). The compensation amount increases or decreases in proportion to the movement amount of the table 3 . Among them, -Pc/2≤Lc n ≤Pc/2, outside this range, the compensation amount will not increase but remain constant. The slope which increases in proportion to the movement amount and the maximum compensation amount are parameters determined by actual measurement. When the moving direction is reversed after the compensation amount is constant, the compensation amount will decrease immediately. Therefore, the amount of compensation traces the trajectory of the hysteresis characteristic. The trajectory of the hysteresis characteristic is a trajectory that does not return to the original position.
补偿器13利用下述(2)式对停止状态的补偿量进行计算。Lc是补偿器输出,Pc是最大补偿量,Tl是基准转矩,Tc是转矩指令。其中,-Pc/2≤Lc≤Pc/2。The compensator 13 calculates the compensation amount for the stopped state using the following equation (2). Lc is the output of the compensator, Pc is the maximum compensation amount, Tl is the reference torque, and Tc is the torque command. Wherein, -Pc/2≤Lc≤Pc/2.
(2)式 (2) formula
图4是表示利用(2)式计算出的停止状态的补偿量的图。补偿量与转矩指令的值成比例地增加。当补偿量达到一定的值时,补偿量不再增加。与转矩指令成比例的补偿量的斜率通过实际测量而求出。最大补偿量Pc与移动过程中的最大补偿量相同。基准转矩是使工作台3以规定速度朝一定方向移动时的转矩值。在中途转矩指令反转时,与移动状态不同,补偿量返回到原来的位置。Fig. 4 is a diagram showing a compensation amount in a stopped state calculated by the expression (2). The compensation amount increases in proportion to the value of the torque command. When the compensation amount reaches a certain value, the compensation amount will no longer increase. The slope of the compensation amount proportional to the torque command is obtained by actual measurement. The maximum compensation amount Pc is the same as the maximum compensation amount during the movement. The reference torque is a torque value when the table 3 is moved in a certain direction at a predetermined speed. When the torque command is reversed halfway, the compensation amount returns to the original position differently from the moving state.
如图5所示,在从停止状态转移到移动状态时,补偿器13从与停止时的补偿量对应的位置开始进行补偿。As shown in FIG. 5 , when shifting from a stopped state to a moving state, the compensator 13 performs compensation from a position corresponding to the compensation amount at the time of stopping.
如图6所示,在从移动状态转移到停止状态时,补偿器13基于停止时刻的转矩指令来确定补偿量。As shown in FIG. 6 , when shifting from the moving state to the stopped state, the compensator 13 determines the compensation amount based on the torque command at the time of the stop.
参照图7对补偿器13进行的补偿处理进行说明。当机床开始动作时,补偿器13基于来自上位控制部10的位置指令信号或来自速度控制器12的转矩指令信号来执行本处理。补偿器13判断Δx是否为0(S1)。在Δx不为0时(S1:否),工作台3处于移动状态。因此,补偿器13利用(1)式计算出补偿量(S2)。前次为停止状态时是从停止状态朝移动状态的转移,所以,如图5所示,补偿器13从与停止时的补偿量对应的位置开始进行补偿。补偿器13基于计算出的补偿量生成失位补偿信号,并将其输出到加法器17(S3)。Compensation processing performed by the compensator 13 will be described with reference to FIG. 7 . When the machine tool starts to operate, the compensator 13 executes this process based on the position command signal from the host control unit 10 or the torque command signal from the speed controller 12 . The compensator 13 judges whether Δx is 0 (S1). When Δx is not 0 (S1: No), the table 3 is in a moving state. Therefore, the compensator 13 calculates the compensation amount using the formula (1) (S2). The previous stop state was a transition from the stop state to the moving state. Therefore, as shown in FIG. 5 , the compensator 13 performs compensation from a position corresponding to the compensation amount at the time of stop. The compensator 13 generates a misalignment compensation signal based on the calculated compensation amount, and outputs it to the adder 17 (S3).
在Δx=0时(S1:是),工作台3处于停止状态。因此,补偿器13利用(2)式计算出补偿量(S5)。如图6所示,在从移动状态转移到停止状态时,补偿器13基于停止时刻的转矩指令来计算出补偿量。补偿器13基于计算出的补偿量生成失位补偿信号,并将其输出到加法器17(S3)。补偿器13判断机床的动作是否已结束(S4)。当动作继续时(S4:否),补偿器13返回到S1并重复处理。当动作已结束时(S4:是),补偿器13结束处理。When Δx=0 (S1: Yes), the table 3 is in a stopped state. Therefore, the compensator 13 calculates the compensation amount using the formula (2) (S5). As shown in FIG. 6 , when shifting from the moving state to the stopped state, the compensator 13 calculates the compensation amount based on the torque command at the time of the stop. The compensator 13 generates a misalignment compensation signal based on the calculated compensation amount, and outputs it to the adder 17 (S3). The compensator 13 judges whether or not the operation of the machine tool has ended (S4). When the action continues (S4: NO), the compensator 13 returns to S1 and repeats the process. When the action has ended (S4: YES), the compensator 13 ends the processing.
下面对为确认本实施方式的效果而进行的各种试验进行说明。参照图8对试验中使用的工作台机构40进行说明。工作台机构40由图1所示的工作台机构20中、在X轴方向上对工作台3进行引导的部分构成。工作台机构40包括工作台3、滚珠螺母5、滚珠丝杠轴4B、X轴进给引导件(未图示)、马达2B、编码器60、直线标尺30。直线标尺30是根据刻度(标尺)获取位置信息的检测器,其对工作台3的位置进行检测。编码器60输出的反馈位置(以下称为FB位置)是马达2B的位置检测信号所表示的工作台3的位置。失位可以认为是同一时刻下FB位置与直线标尺位置之间的差。Various tests performed to confirm the effects of the present embodiment will be described below. The table mechanism 40 used in the test will be described with reference to FIG. 8 . The table mechanism 40 is comprised from the part which guides the table 3 in the X-axis direction in the table mechanism 20 shown in FIG. Table mechanism 40 includes table 3 , ball nut 5 , ball screw shaft 4B, X-axis feed guide (not shown), motor 2B, encoder 60 , and linear scale 30 . The linear scale 30 is a detector that acquires position information from a scale (scale), and detects the position of the table 3 . The feedback position (hereinafter referred to as FB position) output by the encoder 60 is the position of the table 3 indicated by the position detection signal of the motor 2B. Misalignment can be considered as the difference between the FB position and the linear scale position at the same moment.
关于工作台3交替地重复移动和停止这一系列的动作,进行了利用三种手法分别计算出补偿量并进行比较的试验。一系列的动作如下所述。朝正方向移动(500mm/min)规定时间,停止规定时间,朝负方向移动(-500mm/min)规定时间,然后停止规定时间。正方向与负方向为在X轴方向上彼此反向的关系。With regard to a series of operations in which the table 3 alternately repeats moving and stopping, experiments were performed in which compensation amounts were calculated and compared using three methods. A series of actions are as follows. Move in the positive direction (500mm/min) for a specified time, stop for a specified time, move in a negative direction (-500mm/min) for a specified time, and then stop for a specified time. The positive direction and the negative direction are opposite to each other in the X-axis direction.
三种手法如下所述。第一种手法是仅通过(1)式进行补偿的方法,第二种手法是仅通过(2)式进行补偿的方法,第三种手法是本发明的手法。本发明的手法是根据移动时和停止时分开使用(1)式和(2)式进行补偿的方法。在各试验中,对失位进行了实际测定,并对实测值与使用各手法获得的补偿量进行比较、评价。The three approaches are described below. The first method is a method of compensating only by the formula (1), the second method is a method of compensating only by the formula (2), and the third method is the method of the present invention. The technique of the present invention is a method of performing compensation by separately using (1) and (2) formulas when moving and when stopping. In each test, the displacement was actually measured, and the actual measurement value was compared with the compensation amount obtained by each method and evaluated.
参照图9对通过第一手法计算补偿量而得到的结果进行说明。如图9所示,失位的实测值在工作台3移动的过程中小幅地上下浮动,在工作台3停止后平稳地降低,然后保持一定的值。浮动的原因很可能是因X轴进给引导件和滚珠丝杠轴4B等的精度偏差而导致的摩擦力变动。通过第一手法计算出的补偿量在移动过程中能表示与实测值接近的值。在停止过程中,没有从之前移动过程中的补偿量开始发生变化,所以无法接近实测值。其理由是,在第一手法中使用的(1)式是仅适用于工作台3的移动状态的计算式,完全不适用于停止状态。The result obtained by calculating the compensation amount by the first method will be described with reference to FIG. 9 . As shown in FIG. 9 , the measured value of misalignment slightly fluctuates up and down during the movement of the worktable 3 , decreases steadily after the worktable 3 stops, and then maintains a certain value. The cause of the floating is likely to be a frictional force fluctuation due to accuracy deviation of the X-axis feed guide, ball screw shaft 4B, and the like. The compensation amount calculated by the first method can represent a value close to the actual measurement value during the movement. During a stop, the compensation amount does not change from the previous movement, so it cannot approach the actual measurement value. The reason is that the formula (1) used in the first method is a calculation formula applicable only to the moving state of the table 3 and is not applicable to the stationary state at all.
参照图10对通过第二手法计算补偿量而得到的结果进行说明。失位的实测值与图9相同。通过第二手法计算出的补偿量在停止过程中能表示与实测值接近的值。在移动过程中,通过第二手法计算出的补偿量比实测值的浮动还大,偏离了实测值。其理由是,在第二手法中使用的(2)式会将工作台3移动过程中的上述摩擦力变动的影响计算得比失位的实测值还大。(2)式完全不适用于移动状态。The result obtained by calculating the compensation amount by the second method will be described with reference to FIG. 10 . The actual measured value of misalignment is the same as that in Fig. 9 . The compensation amount calculated by the second method can show a value close to the actual measurement value during the stop. During the movement, the compensation amount calculated by the second method fluctuates more than the measured value, and deviates from the measured value. The reason is that the equation (2) used in the second method calculates the influence of the above-mentioned fluctuation of the frictional force during the movement of the table 3 to be larger than the actual measured value of the misalignment. (2) formula does not apply to the moving state at all.
参照图11对通过第三手法计算补偿量而得到的结果进行说明。失位的实测值与图9相同。通过第三手法计算出的补偿量在移动过程中及停止过程中均能表示与实测值接近的值。因此,第三手法在移动过程中使用(1)式,在停止过程中使用(2)式,分开使用,从而能计算出与工作台3的状态相对应的补偿量。The result obtained by calculating the compensation amount by the third method will be described with reference to FIG. 11 . The actual measured value of misalignment is the same as that in Fig. 9 . The compensation amount calculated by the third method can show a value close to the actual measurement value both during the movement and during the stop. Therefore, in the third method, the compensation amount corresponding to the state of the table 3 can be calculated by using the formula (1) during the movement and using the formula (2) during the stop, and using them separately.
在上述说明中,工作台3相当于本发明的移动体,工作台机构20相当于本发明的进给机构,编码器60相当于本发明的位置检测机构,上位控制部10相当于本发明的控制部,位置控制器11相当于本发明的速度生成部,微分器16相当于本发明的速度检测机构,速度控制器12相当于本发明的转矩生成部,补偿器13相当于本发明的运算部,加法器17相当于本发明的加法部。执行图7所示的S1处理的补偿器13相当于本发明的判断部,执行S2处理的补偿器13相当于本发明的第一运算部,执行S5处理的补偿器13相当于本发明的第二运算部。In the above description, the table 3 corresponds to the moving body of the present invention, the table mechanism 20 corresponds to the feed mechanism of the present invention, the encoder 60 corresponds to the position detection mechanism of the present invention, and the host control unit 10 corresponds to the moving body of the present invention. In the control section, the position controller 11 corresponds to the speed generation section of the present invention, the differentiator 16 corresponds to the speed detection mechanism of the present invention, the speed controller 12 corresponds to the torque generation section of the present invention, and the compensator 13 corresponds to the torque generation section of the present invention. The calculating unit, the adder 17 corresponds to the adding unit of the present invention. The compensator 13 that executes the S1 process shown in FIG. 7 corresponds to the judging unit of the present invention, the compensator 13 that executes the S2 process corresponds to the first calculation unit of the present invention, and the compensator 13 that executes the S5 process corresponds to the first calculation unit of the present invention. Second computing department.
如以上说明所述,本实施方式的数控装置1包括补偿器13。补偿器13对失位的补偿量进行运算。失位是工作台3的移动方向反转后、因工作台机构20的弹性变形而产生的。补偿器13判断工作台3是处于移动过程中还是处于停止过程中,在判断为处于移动过程中时,使与工作台3的移动量成比例的值加到前次的补偿量上,来运算出补偿量。作为运算式的一例,Lcn=Lcn-1+(Pc/Ap)Δx。Lcn为补偿器输出,Lcn-1为前次补偿器输出,Pc为最大补偿量,Ap为斜率系数,Δx为位置指令的增量。其中,-Pc/2≤Lcn≤Pc/2。补偿器13在判断为处于停止过程中时,基于转矩指令对补偿量进行运算。作为运算式的一例,Lc=(Pc/2)(Tc/Tl)。Lc是补偿器输出,Pc是最大补偿量,Tl是基准转矩,Tc是转矩指令。其中,-Pc/2≤Lc≤Pc/2。补偿器13根据工作台3是处于移动过程中还是处于停止过程中来区别使用数学式。因此,补偿器13在工作台3的移动过程中及反转时能进行稳定的补偿,且在停止时能防止过补偿。所以,数控装置1能根据工作台3是处于移动过程中、反转时还是停止时,来高精度地补偿失位。As described above, the numerical control device 1 of this embodiment includes the compensator 13 . The compensator 13 calculates the amount of compensation for the misalignment. The dislocation is caused by the elastic deformation of the table mechanism 20 after the moving direction of the table 3 is reversed. The compensator 13 judges whether the table 3 is in the process of moving or in the process of stopping, and when it is judged that it is in the process of moving, it calculates by adding a value proportional to the amount of movement of the table 3 to the previous compensation amount out the amount of compensation. As an example of the calculation formula, Lc n =Lc n-1 +(Pc/Ap)Δx. Lc n is the output of the compensator, Lc n-1 is the output of the previous compensator, Pc is the maximum compensation amount, Ap is the slope coefficient, and Δx is the increment of the position command. Wherein, -Pc/ 2≤Lc n≤Pc/2. The compensator 13 calculates the compensation amount based on the torque command when it is determined that the stop is in progress. As an example of the calculation formula, Lc=(Pc/2)(Tc/Tl). Lc is the output of the compensator, Pc is the maximum compensation amount, Tl is the reference torque, and Tc is the torque command. Wherein, -Pc/2≤Lc≤Pc/2. The compensator 13 uses mathematical formulas differently according to whether the workbench 3 is in the process of moving or in the process of stopping. Therefore, the compensator 13 can perform stable compensation during the movement and inversion of the table 3, and can prevent overcompensation when the table 3 stops. Therefore, the numerical control device 1 can compensate for the misalignment with high precision according to whether the table 3 is moving, reversed or stopped.
本实施方式的Z轴在停止过程中受到重力的影响。为了在Z轴上消除重力的影响,上述停止过程中的运算式的一例是,Lc=(Pc/2)[(Tc-To)/(Tl-To)]。Lc是补偿器输出,Pc是最大补偿量,Tl是基准转矩,Tc是转矩指令,To是重力产生的转矩。其中,-Pc/2≤Lc≤Pc/2。The Z-axis of this embodiment is affected by gravity during the stop process. In order to eliminate the influence of gravity on the Z-axis, an example of the calculation formula during the above stop is Lc=(Pc/2)[(Tc-To)/(Tl-To)]. Lc is the output of the compensator, Pc is the maximum compensation amount, Tl is the reference torque, Tc is the torque command, and To is the torque generated by gravity. Wherein, -Pc/2≤Lc≤Pc/2.
本发明并不局限于上述实施方式,可进行各种变形。例如,在上述实施方式中,补偿器13所使用的(1)式和(2)式是一个例式,也可使用其它数学式。例如(1)式除了使用线性近似公式以外,还可使用指数函数、tanh函数。此外,tanh函数可以使用一个,但也可使用两个以上。The present invention is not limited to the above-described embodiments, and various modifications are possible. For example, in the above-mentioned embodiment, the expressions (1) and (2) used by the compensator 13 are examples, and other mathematical expressions may be used. For example, formula (1) can use exponential function and tanh function in addition to linear approximation formula. In addition, one tanh function may be used, but two or more may be used.
在本实施方式中,以将工作台3支撑成能在X轴方向和Y轴方向上移动、且将主轴支撑成能相对于工作台3在Z轴方向上移动的机床作为一例进行了说明,但也可以是将工作台3固定、使主轴相对于工作台3在X轴方向和Y轴方向上移动的机床。机床只要能使安装于主轴的工具相对于工作台移动即可。In this embodiment, a machine tool that supports the table 3 so as to be movable in the X-axis direction and the Y-axis direction and supports the spindle so that it can move in the Z-axis direction relative to the table 3 has been described as an example. However, it may also be a machine tool in which the table 3 is fixed and the spindle moves relative to the table 3 in the X-axis direction and the Y-axis direction. The machine tool only needs to be able to move the tool attached to the spindle relative to the table.
Claims (4)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013065368A JP5991249B2 (en) | 2013-03-27 | 2013-03-27 | Numerical controller |
JP2013-065368 | 2013-03-27 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104076740A CN104076740A (en) | 2014-10-01 |
CN104076740B true CN104076740B (en) | 2017-04-12 |
Family
ID=51598070
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410035270.6A Active CN104076740B (en) | 2013-03-27 | 2014-01-24 | Numerical-control device |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP5991249B2 (en) |
CN (1) | CN104076740B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI558495B (en) | 2014-11-12 | 2016-11-21 | 財團法人工業技術研究院 | Machining assistance method and the apparatus using the same |
JP6211240B1 (en) * | 2016-10-04 | 2017-10-11 | 三菱電機株式会社 | Numerical controller |
JP2018092357A (en) * | 2016-12-02 | 2018-06-14 | ファナック株式会社 | Servo motor control apparatus, servomotor control method, and computer program |
JP6942577B2 (en) * | 2017-09-15 | 2021-09-29 | オークマ株式会社 | Numerical control device and numerical control method for machine tools |
CN111113147A (en) * | 2020-01-09 | 2020-05-08 | 威世特汽车部件(常州)有限公司 | Process for automatic detection and automatic compensation of gear |
CN114714364B (en) * | 2022-05-26 | 2023-05-09 | 成都卡诺普机器人技术股份有限公司 | Robot joint friction force compensation adjustment method and robot friction force compensation method |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0833763B2 (en) * | 1988-03-01 | 1996-03-29 | 義昭 垣野 | Numerical control unit |
JP2875646B2 (en) * | 1991-07-04 | 1999-03-31 | ファナック株式会社 | Backlash acceleration correction device |
JP3902256B2 (en) * | 1994-09-30 | 2007-04-04 | 三菱電機株式会社 | Positioning device |
JP2907164B2 (en) * | 1996-11-22 | 1999-06-21 | 日本電気株式会社 | Numerical control unit |
JP4510722B2 (en) * | 2005-08-22 | 2010-07-28 | オークマ株式会社 | Position control device having lost motion correction function |
JP5817428B2 (en) * | 2010-10-22 | 2015-11-18 | ブラザー工業株式会社 | Numerical control apparatus and friction compensation method |
CN102637011B (en) * | 2011-11-30 | 2014-02-26 | 沈阳工业大学 | Robust control method and control system of direct drive CNC platform based on coordinate transformation and parameter adjustment |
-
2013
- 2013-03-27 JP JP2013065368A patent/JP5991249B2/en active Active
-
2014
- 2014-01-24 CN CN201410035270.6A patent/CN104076740B/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2014191520A (en) | 2014-10-06 |
CN104076740A (en) | 2014-10-01 |
JP5991249B2 (en) | 2016-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104076740B (en) | Numerical-control device | |
JP5127934B2 (en) | Machine motion trajectory measuring device, numerically controlled machine tool, and machine motion trajectory measuring method | |
CN101952084B (en) | Backlash quantity detecting method for feeding drive device, and backlash quantity detecting device for the feeding drive device | |
JP4581096B2 (en) | Friction compensation method, friction compensator, and motor control device | |
TWI435517B (en) | Load inertia estimation method and control parameter adjustment method | |
CN104049567B (en) | Digital control device and friction compensation method | |
CN102455683B (en) | Number control device and friction compensation method | |
JP2011140098A (en) | Machine displacement correction system for machine tool | |
US10247301B2 (en) | Servo control system with position compensation function for driven member | |
US8810181B2 (en) | Control apparatus and measuring apparatus | |
JP2014119853A (en) | Servo controller for correcting position error when moving body turns around | |
CN109324568A (en) | Position control device | |
CN112236729B (en) | CNC device | |
JP5334932B2 (en) | Parameter setting method and parameter setting device | |
CN103970070B (en) | Numerical control device and power loss compensation method | |
JP4503148B2 (en) | Compensator for feeding mechanism of numerically controlled machine tool and numerically controlled machine tool | |
JP5786436B2 (en) | Numerical control apparatus and processing method | |
CN106886229B (en) | Control device of electric motor | |
JP2003157114A (en) | Method and device for lost motion correction | |
JP2012032215A (en) | Industrial machine | |
JP7193361B2 (en) | position controller | |
JP2018020415A (en) | Driving device for machine tool | |
JP2003131713A (en) | Feed control method and device thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |