Numerically-controlled machine dynamic Characteristic Simulation method
Technical field
The present invention relates to a kind of numerically-controlled machine dynamic Characteristic Simulation method.
Background technology
At present, in the Design and manufacturing process of numerically-controlled machine, selected suitable parts, as motor, are optimized structure and the size of lathe, obtain the work such as dynamic perfromance of numerically-controlled machine, mainly realize by the following method:
1. theoretical calculating, the peak acceleration that can reach by theoretical computer bed, speed, load, or the parts such as selected motor.The method can only be determined the characteristic that some are static, for the important dynamic perfromance of lathe as: follow precision, positioning precision, path accuracy, response all cannot obtain.And large to staff's technical ability dependence, result of calculation and actual deviation are larger, and selected parts are also conventionally and fail optimization accordingly.
2. test, makes real lathe, and is tested to collect the data of machine dynamic characteristics, repeats to be modified to meet the demands.Although the method accurately and reliably, exists the cycle very long, the shortcoming that cost is very high.
3. local emulation, some softwares have been realized some local emulation, but for whole system, fail to obtain the emulation of its dynamic perfromance.
Summary of the invention
The technical problem to be solved in the present invention is can not accurately obtain fast the defect of numerically-controlled machine overall dynamics characteristic in order to overcome prior art, and a kind of numerically-controlled machine dynamic Characteristic Simulation method is provided.
The present invention solves above-mentioned technical matters by following technical proposals:
A numerically-controlled machine dynamic Characteristic Simulation method, its feature is, it comprises the following steps:
Step 1, selection physical construction, set mechanical parameter;
Step 2, setting controller, driver and the parameter of electric machine;
Step 3, convert a machine tool motion program to a routing instruction signal;
Step 4, convert described routing instruction signal to a location of instruction signal;
Step 5, by described location of instruction signal and one feedback actual position signal convert an instruction current signal to;
Step 6, by described instruction current signal, one feedback phase position signal and one feedback actual current signal convert a command voltage signal to;
Step 7, convert described command voltage signal to a pwm signal;
Step 8, convert described pwm signal to a voltage signal, feed back described actual current signal;
Step 9, motor move according to described voltage signal, output one force signal;
Step 10, machinery, according to described force signal operation, feed back described actual position signal and described phase position signal;
Step 11, draw the simulation result of described numerically-controlled machine.
Wherein, the described parameter of electric machine comprises resistance, inductance, thrust coefficient and pole pitch.
Wherein, described simulation result comprises out of roundness, tracking error curve, vibration error and maximum actual current.
Positive progressive effect of the present invention is: by utilization of the present invention, can accurately obtain fast the dynamic perfromance of numerically-controlled machine integral body.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of this numerically-controlled machine dynamic Characteristic Simulation method preferred embodiment.
Fig. 2 is the schematic diagram of this numerically-controlled machine dynamic Characteristic Simulation method preferred embodiment.
Embodiment
Lift a preferred embodiment below, and carry out by reference to the accompanying drawings the clearer the present invention that intactly illustrates.
As Fig. 1, process flow diagram and the schematic diagram of this numerically-controlled machine dynamic Characteristic Simulation method preferred embodiment shown in Fig. 2, the present embodiment adopts software simulation, simulate a motion plug-in reader module, a movement planner module, a position and speed ring module, an electric current loop module, pwm signal generator module, a pwm driver module, a motor module, a grating scale module and a current sensor module, embodiment is:
Step 101, selection physical construction, set mechanical parameter;
Step 102, setting controller, driver and the parameter of electric machine;
Step 103, convert a machine tool motion program to a routing instruction signal;
Step 104, convert described routing instruction signal to a location of instruction signal;
Step 105, by described location of instruction signal and one feedback actual position signal convert an instruction current signal to;
Step 106, by described instruction current signal, one feedback phase position signal and one feedback actual current signal convert a command voltage signal to;
Step 107, convert described command voltage signal to a pwm signal;
Step 108, convert described pwm signal to a voltage signal, feed back described actual current signal;
Step 109, motor move according to described voltage signal, output one force signal;
Step 110, machinery, according to described force signal operation, feed back described actual position signal and described phase position signal;
Step 111, draw the simulation result of described numerically-controlled machine.
This numerically-controlled machine dynamic Characteristic Simulation method has been reacted physical construction and the impact of size on motion, and the error that mechanical vibration cause has been considered in the position of feedback.
User can select different physical construction, as: move horizontally or vertically move, worktable quality and mechanical dimension.
Described movement planner module parameter is set, as: maximal rate, peak acceleration, aero mode etc.;
Described position and speed ring module parameter is set, as: ratio, differential, integration, velocity feed forward, friction force feedforward etc.;
Described electric current loop module parameter is set, as: ratio, integration etc.;
Described pwm driver module parameter is set, as: voltage, Dead Time, disturbs etc.;
Described motor module parameter is set, as: resistance, inductance, thrust coefficient and pole pitch etc.;
Described grating scale module parameter is set, as: resolution, blade graph of errors etc.;
Described current sensor module parameter is set, as: figure place, the maximum electric current etc. that detects.
Although more than described the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is limited by appended claims.Those skilled in the art is not deviating under the prerequisite of principle of the present invention and essence, can make various changes or modifications to these embodiments, but these changes and modification all fall into protection scope of the present invention.