Background technology: adopting motor (to comprise synchronous motor at present, direct current generator, asynchronous machine, when linear electric motors etc.) the arm even load of the platform of lathe, semiconductor manufacturing equipment or robot being controlled, general all be earlier as the upper control part generation position command of NC etc., servomotor is controlled by this instruction by servomechanism then.Fig. 2 is the structural representation of existing motor control assembly.On the formation of physical construction, as shown in Figure 9, the first mechanical axis mechanical control device, 2, the first mechanical axis servo current controllers 4 constitute as a separate unit, are commonly referred to the first mechanical axis servo controller 17.Equally, as shown in figure 10, the second mechanical axis mechanical control device, 3, the second mechanical axis servo current controllers 5 constitute the second mechanical axis servo controller 18 as a separate unit.Each servomotor then is assembled between mechanical platform 8 and the lathe bed body according to the requirement of mechanical platform 8.NC controller 1 also is one and independently constitutes the unit.Between the NC controller 1 and the first mechanical axis servo controller 17 and the second mechanical axis servo controller 18, generally connect with cable, optical cable or special-purpose socket.Between the first mechanical axis servo controller 17 and the first mechanical axis servomotor 6, generally connect with cable.Between the second mechanical axis servo controller 18 and the second mechanical axis servomotor 7, generally connect with cable.As the NC controller 1 of upper control part, can when generating a NC position command r1 and the 2nd NC position command r2, monitor the primary importance feedback x1 and the second place feedback x2 of each servomotor working condition of reflection.The one NC position command r1 and the 2nd NC position command r2 can have following instruction type to transmit.The period of time T n of its transmission is generally greater than the control cycle Ti of mechanical control device Tj or current controller.Because the result of cycle occasion is easy to draw by analogizing At All Other Times, below only press Tn=4*Tj ... (1) occasion describes.Owing to no matter be absolute position instruction, relative position instruction and differential position instruction, utilize prior art all can be easy to be converted to other forms of instruction.For this reason, below will be only the occasion of absolute position instruction type be wherein described.Because a NC position command r1 is constant in period of time T n, so the first mechanical axis mechanical control device 2 when controlling computing, generally carries out following conversion earlier.
rc1(K*Tn)=r1((K-1)*Tn)……(2)
rc1(K*Tn+k*Tj)=rc1(K*Tn+(k-1)*Tj)+Vc((K-1)*Tn)*Tj……(3)
Vc1((K-1)*Tn)=r1(K*Tn)-r1((K-1)*Tn)/Tn……(4)
K=0,1?,2,,,,……(5)
k=0,1,2,3……(6)
Simultaneously, carry out unit conversion with one among the first motor position xm1 and the rc1, make that both units are unified.Afterwards, with rc1 the instruction in the period T j, the first mechanical axis mechanical control device 2 is finished required machinery control computing in period T j, provide the first torque instruction fr1 to the first mechanical axis servo current controller 4.4 of the first mechanical axis servo current controllers are instruction with the first torque instruction fr1, the first mechanical axis servomotor 6 is carried out Current Control etc., make the first Mechanical Driven power f1 of mechanical axis servomotor 6 outputs of winning the same substantially with the first torque instruction fr1.Because the principle of work of the second mechanical axis mechanical control device, 3, the second mechanical axis servo current controllers, 5, the second mechanical axis servomotors 7 is same as described above, in the explanation of this omission to them.Two shaft mechanical platforms 8 in general, it has as Fig. 4, Fig. 5, three kinds of versions shown in Figure 6.Corresponding to structure shown in Figure 4, as shown in Figure 7, when by the P2 point, the speed command vector V of NC will be from the sharp V2 that becomes of V1 acutely.Because two shaft mechanical platforms 8 are inertia systems, the property the jumped over variation of its speed can't realize, so, on the actual path of two shaft mechanical platforms 8, will occur such as the excess of stroke, vibrate, walk in problem such as a little less than envelope curve and the antijamming capability.Corresponding to structure shown in Figure 5, because two shaft mechanical platforms 8 are not still according to the size of the first Mechanical Driven power f1 and the second Mechanical Driven power f2, but also to reach the sense of rotation that centers on center of gravity in its resultant direction and make mechanical movement simultaneously according to their center of effort.At this moment, on the first mechanical axis mechanical control device 2 and the second mechanical axis mechanical control device 3 shown in Figure 2, just can't touch the design that type carries out controller, also just can't obtain satisfied control result at machinery shown in Figure 4.So, on the actual path of two shaft mechanical platforms 8, will occur such as the excess of stroke, vibration, a little less than the antijamming capability, automatic reaction waits problem slowly.Corresponding to structure shown in Figure 6, because two servomotor acting forces are on same direction, the first Mechanical Driven power f1 and the second Mechanical Driven power f2 will interfere.And between the first mechanical axis mechanical control device 2 and the second mechanical axis mechanical control device 3 shown in Figure 2, the message exchange that there is no need, the influence that just can't eliminate this interference fully and brought.So, a little less than will occurring on the actual path of two shaft mechanical platforms 8 such as the excess of stroke, vibration, antijamming capability and automatic reaction wait problem slowly.
Summary of the invention: purpose of the present invention just is to utilize the NC controller 1 that has possessed in the original motor control assembly, the first mechanical axis servo current controller 4, the second mechanical axis servo current controller 5, the first mechanical axis servomotor 6, the second mechanical axis servomotor 7, the condition of the software and hardware of mechanical platform 8, by appending general controller 9 and the original first mechanical axis mechanical control device 2 and the second mechanical axis mechanical control device, 3 not available control compute modes being provided, thereby improve the excess of stroke of two shaft mechanical platforms 8, walk interior envelope curve, vibration, antijamming capability is weak to wait problem slowly with automatic reaction, improves its actual path accuracy.The present invention is achieved by following proposal: a kind of motor control assembly, it comprises having generation the one NC position command r1 and the 2nd NC position command r2 and monitor primary importance feedback x1 and the NC controller 1 of second place feedback x2, generate the first mechanical axis servo current controller 4 of the first electric power signal V1 and primary importance feedback x1 according to the first torque instruction fr1 and the first motor position xm1, generate the second mechanical axis servo current controller 5 of the second electric power signal V2 and second place feedback x2 according to the second torque instruction fr2 and the second motor position xm2, generate the first Mechanical Driven power f1 and the first mechanical axis servomotor 6 of the first motor position xm1 is provided according to the above-mentioned first electric power signal V1, generate the second Mechanical Driven power f2 and the second mechanical axis servomotor 7 of the second motor position xm2 is provided according to the above-mentioned second electric power signal V2, under the effect of above-mentioned first Mechanical Driven power f1 and the above-mentioned second Mechanical Driven power f2, produce the mechanical platform 8 of mechanical motion, it is characterized in that it also comprises: according to an above-mentioned NC position command r1, the 2nd NC position command r2, primary importance feedback x1 and second place feedback x2, generate the first torque instruction fr1 and the second torque instruction fr2, make mechanical platform 8 produce the general controller 9 of mechanical motion by the requirement of NC controller 1.Motor control assembly of the present invention is owing to introduced general controller 9, just can provide the original first mechanical axis mechanical control device 2 and the second mechanical axis mechanical control device, 3 not available control compute modes by general controller 9, thereby improve two shaft mechanical platforms 8 the excess of stroke, walk the weak and automatic reaction of interior envelope curve, vibration, antijamming capability and wait problem slowly, improved mechanical platform actual path precision.
The present invention also provides a kind of motor control assembly, it comprises having generation the one NC position command r1 and the 2nd NC position command r2 and monitor primary importance feedback x1 and the NC controller 1 of second place feedback x2, generate the first Mechanical Driven power f1 and the first mechanical axis servomotor 6 of the first motor position xm1 is provided according to the first electric power signal V1, generate the second Mechanical Driven power f2 and the second mechanical axis servomotor 7 of the second motor position xm2 is provided according to the second electric power signal V2, under the effect of the first Mechanical Driven power f1 and the second Mechanical Driven power f2, produce the mechanical platform 8 of mechanical motion, it is characterized in that it also comprises: according to an above-mentioned NC position command r1, the 2nd NC position command r2, the primary importance feedback x1 and the second place are fed back x2, generate the general controller 9 of the first torque instruction fr1 and the second torque instruction fr2; Has the position control method of operation, the speed control method of operation, the torque control method of operation, and be set under the condition of the torque control method of operation, generate the first mechanical axis servo controller 17 of the first electric power signal V1 and primary importance feedback x1 according to the above-mentioned first torque instruction fr1 and the first motor position xm1; Has the position control method of operation, the speed control method of operation, the torque control method of operation, and be set under the condition of the torque control method of operation, generate the second mechanical axis servo controller 18 of the second electric power signal V2 and second place feedback x2 according to the above-mentioned second torque instruction fr2 and the second motor position xm2.Motor control assembly of the present invention is owing to introduced general controller 9, just can provide the original first mechanical axis mechanical control device 2 and the second mechanical axis mechanical control device, 3 not available control compute modes by general controller 9, thereby improve two shaft mechanical platforms 8 the excess of stroke, walk the weak and automatic reaction of interior envelope curve, vibration, antijamming capability and wait problem slowly, improve its actual path accuracy.Simultaneously, when original motor control assembly is transformed, owing to utilized the first mechanical axis servo controller 17 and the second mechanical axis servo controller 18 that have possessed in original motor control assembly, and do not append new servo controller, transform the required time of original motor control assembly thereby reduced to transform the required financial cost of original motor control assembly and shortened.
Specific embodiments one: specify the present embodiment below in conjunction with Fig. 1.It generates a NC position command r1 and the 2nd NC position command r2 and monitors primary importance feedback x1 and the NC controller 1 of second place feedback x2 by having, generate the first mechanical axis servo current controller 4 of the first electric power signal V1 and primary importance feedback x1 according to the first torque instruction fr1 and the first motor position xm1, generate the second mechanical axis servo current controller 5 of the second electric power signal V2 and second place feedback x2 according to the second torque instruction fr2 and the second motor position xm2, generate the first Mechanical Driven power f1 and the first mechanical axis servomotor 6 of the first motor position xm1 is provided according to the above-mentioned first electric power signal V1, generate the second Mechanical Driven power f2 and the second mechanical axis servomotor 7 of the second motor position xm2 is provided according to the above-mentioned second electric power signal V2, under the effect of above-mentioned first Mechanical Driven power f1 and the above-mentioned second Mechanical Driven power f2, produce the mechanical platform 8 of mechanical motion, according to an above-mentioned NC position command r1, the 2nd NC position command r2, primary importance feedback x1 and second place feedback x2, generate the first torque instruction fr1 and the second torque instruction fr2, make mechanical platform 8 produce general controller 9 compositions of mechanical motion by the requirement of NC controller 1.NC controller 1, the first mechanical axis servo current controller 4, the second mechanical axis servo current controllers 5, the first mechanical axis servomotors 6, the second mechanical axis servomotors 7, mechanical platform 8 is identical with original mode.Omission is to their detailed description.Below, describe for structure shown in Figure 6 at mechanical platform 8.At this moment, the one NC position command r1 is the position command of lower platform to ground, the 2nd NC position command r2 is the position command of upper mounting plate to ground, and primary importance feedback x1 is the physical location of lower platform to ground, and second place feedback x2 is the physical location of upper mounting plate to ground.General controller 9 generates the first torque instruction fr1 and the second torque instruction fr2 by following computing.Wherein, s is a differentiating operator, KP1, and Kv1, Ki1 are the ride gain at lower platform, KP2, Kv2, Ki2 are the ride gain at upper mounting plate, and m1 is the quality of lower platform, and m2 is the quality of upper mounting plate.
fr2=m2*(Kp2*(r2-x2)-s*x2)*(Ki2/s+Kv2)……(7)
fr1=m1*(Kp1*(r1-x1)-s*x1)*(Ki1/s+Kv1)-fr2……(8)
Because by (7), the interference problem of last lower platform has been eliminated in the computing of (8) formula fully, thereby has improved the kinetic characteristic of two shaft mechanical platforms 8, and its actual path accuracy is improved.And (7), the computing of (8) formula can't be achieved on original system architecture.
Specific embodiments two: specify the present embodiment below in conjunction with Fig. 3.It generates a NC position command r1 and the 2nd NC position command r2 and monitors primary importance feedback x1 and the NC controller 1 of second place feedback x2 by having, generate the first Mechanical Driven power f1 and the first mechanical axis servomotor 6 of the first motor position xm1 is provided according to the first electric power signal V1, generate the second Mechanical Driven power f2 and the second mechanical axis servomotor 7 of the second motor position xm2 is provided according to the second electric power signal V2, under the effect of the first Mechanical Driven power f1 and the second Mechanical Driven power f2, produce the mechanical platform 8 of mechanical motion, according to an above-mentioned NC position command r1, the 2nd NC position command r2, the primary importance feedback x1 and the second place are fed back x2, generate the general controller 9 of the first torque instruction fr1 and the second torque instruction fr2; Has the position control method of operation, the speed control method of operation, the torque control method of operation, and be set under the condition of the torque control method of operation, generate the first mechanical axis servo controller 17 of the first electric power signal V1 and primary importance feedback x1 according to the above-mentioned first torque instruction fr1 and the first motor position xm1; Has the position control method of operation, the speed control method of operation, the torque control method of operation, and be set under the condition of the torque control method of operation, the second mechanical axis servo controller 18 that generates the second electric power signal V2 and second place feedback x2 according to the above-mentioned second torque instruction fr2 and the second motor position xm2 is formed.NC controller 1, the first mechanical axis servomotor 6, the second mechanical axis servomotors 7, mechanical platform 8 is identical with original mode.Omission is to their detailed description.The first mechanical axis servo controller 17 shown in Figure 9 is the servo controller in original motor control assembly, but its control mode is set at the torque control method of operation.At this moment the first mechanical axis servo current controller 4 of the first mechanical axis servo controller 17, the first torque instruction fr1 and the first motor position xm1 that provide according to the outside of the first mechanical axis servo controller 17 generate the first electric power signal V1 and primary importance feedback x1.The second mechanical axis servo controller 18 shown in Figure 10 is the servo controller in original motor control assembly, but its control mode is set at the torque control method of operation.At this moment the second mechanical axis servo current controller 5 of the second mechanical axis servo controller 18, the second torque instruction fr2 and the first motor position xm2 that provide according to the outside of the second mechanical axis servo controller 18 generate the first electric power signal V2 and second place feedback x2.Below, describe for structure shown in Figure 6 at mechanical platform 8.At this moment, the one NC position command r1 is the position command of lower platform to ground, the 2nd NC position command r2 is the position command of upper mounting plate to ground, and primary importance feedback x1 is the physical location of lower platform to ground, and second place feedback x2 is the physical location of upper mounting plate to ground.General controller 9 generates the first torque instruction fr1 and the second torque instruction fr2 by the computing of (7), (8) formula.Owing to by the computing of (7), (8) formula, eliminated the interference problem of last lower platform fully, thereby improved the kinetic characteristic of two shaft mechanical platforms 8, its actual path accuracy is improved.And the computing of (7), (8) formula can't be achieved on original system architecture.Simultaneously, when original motor control assembly is transformed, owing to utilized the first mechanical axis servo controller 17 and the second mechanical axis servo controller 18 that have possessed in original motor control assembly, and do not append new servo controller, transform the required time of original motor control assembly thereby reduced to transform the required financial cost of original motor control assembly and shortened.
Specific embodiments three: specify the present embodiment below in conjunction with Fig. 8.The present embodiment and embodiment one or twos' difference is, general controller 9 in this motor control assembly comprises: according to an above-mentioned NC position command r1, the 2nd NC position command r2 generates the instruction reductor 10 of first real time position instruction rt1 and second real time position instruction rt2; According to above-mentioned first real time position instruction rt1, second real time position instruction rt2, primary importance feedback x1, second place feedback x2 generates first real time acceleration instruction ft1, the two shaft mechanical controllers 11 of second real time acceleration instruction ft2; According to above-mentioned generation first real time acceleration instruction ft1, second real time acceleration instruction ft2 generates the directive distributor 12 of the first torque instruction fr1 and the second torque instruction fr2.Below, describe for structure shown in Figure 4 at mechanical platform 8.The one NC position command r1 is the position command of x platform, and second real time position instruction rt2 is the position command of y platform, and primary importance feedback x1 is the feedback position of x platform, and second place feedback x2 is the feedback position of y platform.Instruction reductor 10, according to an above-mentioned NC position command r1, the 2nd NC position command r2 by following computing, generates first real time position instruction rt1 and second real time position instruction rt2.
rc1(K*Tn)=r1((K-1)*Tn)……(9)
Vn1((K-1)*K*Tn)=r1(K*Tn)-r1((K-1)*Tn)/Tn……(10)
Vm1((K-1)*Tn)=(Vn1((K-1)*Tn)+Vn1(K*Tn))/2……(11)
Vc1(K*Tn)=Vm1((K-1)*Tn)……(12)
A1(K*Tn)=(3*r1(K*Tn)-3*r1((K-1)*Tn)-10*Tj*Vm1((K-1)*K*Tn)-2*Tj*Vm1(K*Tn)/(10*Tj*Tj)……(13)
a1(K*Tn)=(2*r1((K-1)*Tn)-2*r1(K*Tn)+3*Vm1(K*Tn)*Tj+5*Vm1((K-1)*Tn)*Tj)/(10*Tj*Tj)……(14)
A1(K*Tn+k*Tj)=A1(K*Tn)+a1(K*Tn)*k……(15)
Vc1(K*Tn+(k+1)*Tj)=Vc1(K*Tn+k*Tj)+A1(K*Tn+(k+1)*Tj)*Tj……(16)
rc1(K*Tn+(k+1)*Tj)=rc1(K*Tn+k*Tj)+Vc1(K*Tn+k*Tj)*Tj……(17)
rc2(K*Tn)=r2((K-1)*Tn)……(18)
Vn2((K-1)*K*Tn)=r2(K*Tn)-r2((K-1)*Tn)/Tn……(19)
Vm2((K-1)*Tn)=(Vn2((K-1)*Tn)+Vn2(K*Tn))/2……(20)
Vc2(K*Tn)=Vm2((K-1)*Tn)……(21)
A2(K*Tn)=(3*r2(K*Tn)-3*r2((K-1)*Tn)-10*Tj*Vm2((K-1)*K*Tn)-2*Tj*Vm2(K*Tn))/(10*Tj*Tj)……(22)
a2(K*Tn)=(2*r2((K-1)*Tn)-2*r2(K*Tn)+3*Vm2(K*Tn)*Tj+5*Vm2((K-1)*Tn)*Tj)/(10*Tj*Tj)……(23)
A2(K*Tn+k*Tj)=A2(K*Tn)+a2(K*Tn)*k……(24)
Vc2(K*Tn+(k+1)*Tj)=Vc2(K*Tn+k*Tj)+A2(K*Tn+(k+1)*Tj)*Tj……(25)
rc2(K*Tn+(k+1)*Tj)=rc2(K*Tn+k*Tj)+Vc2(K*Tn+k*Tj)*Tj……(26)
rt1=rc1……(27)
rt2=rc2……(28)
Two shaft mechanical controllers 11 are according to above-mentioned first real time position instruction rt1, second real time position instruction rt2, primary importance feedback x1, second place feedback x2 is by following control computing, generate first real time acceleration instruction ft1, second real time acceleration instruction ft3.Wherein, KP1, Kv1, Ki1 are the ride gain at the x platform, KP2, Kv2, Ki2 are the ride gain at the y platform, and m1 is the quality of x platform, and m2 is the quality of y platform.
ft2=m2*(Kp2*(rt2-x2)-s*x2)*(Ki2/s+Kv2)……(29)
ft1=m1*(Kp1*(rt1-x1)-s*x1)*(Ki1/s+Kv1)……(30)
Directive distributor 12, according to above-mentioned generation first real time acceleration instruction ft1, second real time acceleration instruction ft2 exports the first torque instruction fr1 and the second torque instruction fr2 by following mode.
fr1=ft1……(31)
fr2=ft2……(32)
Because according to the Vc1 that above computing draws, Vc2 has not had jump phenomena on P2 point shown in Figure 7, thereby has improved the kinetic characteristic of two shaft mechanical platforms 8, makes its actual path accuracy be able to bigger raising.
Specific embodiments four: the present embodiment is described below in conjunction with Fig. 8.The difference of the present embodiment and embodiment one is, general controller 9 in this motor control assembly comprises: according to an above-mentioned NC position command r1, the 2nd NC position command r2 generates the instruction reductor 10 of first real time position instruction rt1 and second real time position instruction rt2; According to above-mentioned first real time position instruction rt1, second real time position instruction rt2, primary importance feedback x1, second place feedback x2 generates first real time acceleration instruction ft1, the two shaft mechanical controllers 11 of second real time acceleration instruction ft2; According to above-mentioned generation first real time acceleration instruction ft1, second real time acceleration instruction ft2 generates the directive distributor 12 of the first torque instruction fr1 and the second torque instruction fr2.Below, describe for structure shown in Figure 5 at mechanical platform 8.The one NC position command r1 is the first mechanical axis position command of mechanical platform 8, second real time position instruction rt2 is the second mechanical axis position command of mechanical platform 8, primary importance feedback x1 is the first mechanical axis feedback position of mechanical platform 8, and second place feedback x2 is the second mechanical axis feedback position of mechanical platform 8.Instruction reductor 10, according to an above-mentioned NC position command r1, the 2nd NC position command r2 by the computing of (9)~(28) formula, generates first real time position instruction rt1 and second real time position instruction rt2.Two shaft mechanical controllers 11 are according to above-mentioned first real time position instruction rt1, second real time position instruction rt2, primary importance feedback x1, second place feedback x2 is by following control computing, generate first real time acceleration instruction ft1, second real time acceleration instruction ft2.Wherein, KP1, Kv1, Ki1 is the ride gain at the sense of rotation of mechanical platform 8, KP2, Kv2, Ki2 is the ride gain at the translation direction of mechanical platform 8, Jm is the moment of inertia of mechanical platform 8, and M is the quality of mechanical platform 8, and R is the distance between the center of effort of first mechanical axis and second mechanical axis.
ft1=Jm*(Kp1*(rt1-rt2)/R-(x1-x2)/R)-s*x1)*(Ki1/s+Kv1)……(33)
ft2=M*(Kp2*(rt1+rt2)/2-(x1+x2)/2)-s*(x1+x2)/2)*(Ki2/s+Kv2)……(34)
Directive distributor 12, according to above-mentioned generation first real time acceleration instruction ft1, second real time acceleration instruction ft2 by following computing, generates the first torque instruction fr1 and the second torque instruction fr2.Wherein, Rx is the distance between the rotation center of gravity of the center of effort of first mechanical axis and mechanical platform 8, the distance between the center of effort of Ry second mechanical axis and the rotation center of gravity of mechanical platform 8.
fr1=ft2+ft1*Rx……(35)
fr2=ft2-ft1*Ry……(36)
In the first torque instruction fr1 and the second torque instruction fr2 that draw according to above computing, solved the interference problem between first mechanical axis and first mechanical axis, thereby improved the kinetic characteristic of two shaft mechanical platforms 8, made its actual path accuracy be able to bigger raising.