1. Technical Field
The present disclosure relates to motor controllers, and more particularly to an apparatus for generating a speed instruction to control a motor.
2. Description of Related Art
In industrial motion systems, operating status of a motor is adjustable according to a position instruction of the motor, and a position parameter of the motor is fed back to a control loop of the motor by a measurement device. A speed instruction can be generated according to a difference between the position instruction of the motor and the measured position parameter. The speed instruction is used to adjust a rotation speed of the motor automatically. The speed instruction may be discontinuous when the motor is operated by discontinuous position instructions. This will cause discontinuous motor jerk, and may shorten the life of the motor.
Referring to
The interpolating device 11 receives the position instruction P1ref, and interpolates the position instruction P1ref to obtain a position instruction P2ref. The position measurement device 13 measures an actual position value P3 of the motor 80. The ALU 15 outputs a position difference ΔP by subtracting the actual position value P3 from the position instruction P2ref. The position controlling device 14 receives the position difference ΔP, and outputs a speed instruction ω2 according to the position difference ΔP. The feed forward compensating device 12 outputs a compensation speed ω3 by processing the position instruction P2ref. The ALU 16 adds the speed instruction ω2 and the compensation speed ω3 to obtain the speed instruction ωref.
The speed instruction generation apparatus 10 is deployed in a control loop 1. The control loop 1 includes a speed measuring device 20, a speed controller 30, a current measuring device 40, a current controller 50, a pulse-width modulation (PWM) controller 60, and a converter 70. The control loop 1 controls the rotation speed of the motor 80 by the speed instruction ωref generated by the speed instruction generation apparatus 10.
The speed measuring device 20 is connected to the motor 80 to measure the rotation speed ω1 of the motor 80 and output the rotation speed ω1 to the speed controller 30. The speed controller 30 receives the speed instruction ωref and generates a current instruction Iref according to a comparison result between the rotation speed ω1 and the speed instruction ωref. The current measuring device 40 measures a working current I1 of the motor 80. The current controller 50 receives the current instruction Iref and the working current I1, and generates a controlling current I according to a comparison result between the current instruction Iref and the working current I1. The PWM controller 60 outputs a PWM signal to the inverter 70 in response to receipt of the controlling current I. The inverter 70 properly controls rotations of the motor 80 under the control of the received PWM signal.
In this embodiment, the interpolating device 11 interpolates the position instruction P1ref to obtain the position instruction P2ref according to the following formulas:
where, P2ref (t) is a function of change of the position instruction P2ref with respect of time t, Ni,k(t) is a basis function of the function P2ref (t), Bi represents a position vector of the position instruction P1ref, called control points, a number of the control points of the position instruction P1ref is predetermined to be n+1, a degree of the basis function Ni,k(t) is k, xi represents knot vectors of knots i ranged from tmin to tmax, Knot vector xi is less than Knot vector xi+1. For example, it may be defined that x1=t1=0, x2=t2=1, x3=t3=3, x4=t4=4, x5=t5=5, x6=t6=6, and x7=t7=7, wherein tmin≦t1≦t2≦t3≦t4≦t5≦t6≦t7≦tmax.
From the formulas (1) to (3), it can be known that the function P2ref(t) is a polynomial function of degree k−1 in any interval [xi, xi+1]. The function P2ref(t) is a second-order continuous function on time t, as long as the degree k is defined to be greater than 2. Therefore, the position instruction P2ref is a second-order continuous instruction of the time t.
Referring to
The foregoing description of the exemplary embodiments of the disclosure has been presented only for the purposes of illustration and description and is not intended to be exhaustive or to limit the disclosure to the precise forms disclosed. Many modifications and variations are possible in light of the above everything. The embodiments were chosen and described in order to explain the principles of the disclosure and their practical application so as to enable others of ordinary skill in the art to utilize the disclosure and various embodiments and with various modifications as are suited to the particular use contemplated. Alternative embodiments will become apparent to those of ordinary skills in the art to which the present disclosure pertains without departing from its spirit and scope. Accordingly, the scope of the present disclosure is defined by the appended claims rather than the foregoing description and the exemplary embodiments described therein.
Number | Date | Country | Kind |
---|---|---|---|
200910301955.X | Apr 2009 | CN | national |