Embodiment
Fig. 1 is the synoptic diagram of prior art numerical control cutting processing feeding multiplying power switch and speed of mainshaft multiplying power switch, and the left side is feeding multiplying power switch, and the right is speed of mainshaft multiplying power switch.As shown in the figure, machined parameters is preseted, and mainly comprises two kinds, is respectively feeding multiplying power and main shaft multiplying power, adopts feeding multiplying power switch and speed of mainshaft multiplying power switch to select feeding multiplying power and the main shaft multiplying power of inputting.It is available that feeding multiplying power and main shaft multiplying power have a plurality of gears separately, but the generally no longer variation of the numerical value of these predefined a plurality of gears, the user can only select a certain gear in this predefined gear bands.The two is separate for feeding multiplying power and main shaft multiplying power, in process, can only adjust separately feeding multiplying power or main shaft multiplying power.The independent adjustment speed of feed of prior art and the speed of mainshaft may cause actual cutter feed engagement to produce huge fluctuation, the excessive breakage that may cause cutter of feed engagement, and feed engagement is too small then may to be caused the tool wear aggravation or flutter occurs.And when utilizing prior art to adjust feeding multiplying power and main shaft multiplying power, the amplitude that can not once adjust is excessive, otherwise, also can produce the excessive breakage that may cause cutter of feed engagement, feed engagement is too small then may to be caused the tool wear aggravation or flutter occurs.Therefore, traditional machined parameters method of adjustment can not intuitively reflect the actual adjustment situation of feed engagement, causes the accident easily.
The invention provides a kind of opertaing device of controlling feed of every rotation, Fig. 2 is the structural representation that the present invention controls the opertaing device of feed of every rotation.As shown in the figure, this equipment comprises: control panel, PLC module and CNC module.Control panel receives speed of mainshaft ratio signals and the feed engagement ratio signals of user's input, and the signal that receives is converted to corresponding information is sent to the PLC module; The PLC module according to the information that receives, is obtained speed of mainshaft multiplying power Ks and feed engagement multiplying power Ka, and calculates feeding multiplying power Kf=Ks*Ka, then speed of mainshaft multiplying power Ks and feeding multiplying power Kf is sent to the CNC module; The CNC module is asked for speed of mainshaft n '=Ks*n, speed of feed vf '=Kf*vf=Ks*Ka*vf, and speed of mainshaft n ' and speed of feed vf ' be converted into servo driving instruction output; When speed of mainshaft n ' variation, keep per tooth feeding multiplying power Ka constant.The PLC module can utilize hardware or software form to realize, main being responsible for processed the signal of user's input, by judging input signal, analyzes in inside, computing, and operation result is sent to the CNC module and further processes the most at last.
In the numerically-controlled machine field, can utilize the input signal of various ways production multiplying power control, for example button or selector switch.In the prior art, the main parameter object of paying close attention to is the speed of mainshaft and speed of feed, therefore, in the prior art, only has speed of mainshaft multiplying power switch and feeding multiplying power switch.The present invention adopts special speed of mainshaft multiplying power switch and per tooth feeding multiplying power switch.Fig. 3 is the synoptic diagram of speed of mainshaft multiplying power switch, and Fig. 4 is the synoptic diagram of per tooth feeding multiplying power switch.During original state, pointer on speed of mainshaft multiplying power switch and the per tooth feeding multiplying power switch all points to separately dial plate center line, speed of mainshaft multiplying power and the per tooth feeding multiplying power of this moment are 100%, times rate score on the dial plate center line left side is less than 100%, and along center line left numerical value diminish gradually, times rate score on dial plate center line the right is greater than 100%, and along center line to the right numerical value become gradually large.In the process that the speed of mainshaft changes, keep per tooth feeding multiplying power constant, namely do not adjust simultaneously the gear of speed of mainshaft multiplying power switch and feed engagement multiplying power switch.According to formula feeding multiplying power Kf=Ks*Ka, when speed of mainshaft multiplying power Ks increase, when feed engagement multiplying power Ka is constant, feeding multiplying power Kf and speed of mainshaft multiplying power Ks increase with multiple, otherwise feeding multiplying power Kf and speed of mainshaft multiplying power Ks reduce with multiple, at this moment, feed engagement remains unchanged; Ks is constant when speed of mainshaft multiplying power, and when feed engagement multiplying power Ka increased, feeding multiplying power Kf and feed engagement multiplying power increased with multiple, otherwise feeding multiplying power Kf and feed engagement multiplying power reduce with multiple, changes feed engagement by regulating the feeding multiplying power.
The method of utilizing the said equipment that feed of every rotation is controlled is as follows: a, PLC module are obtained current speed of mainshaft n, current speed of feed vf; B, control panel be according to user's selection input, speed of mainshaft ratio signals and per tooth feeding ratio signals is converted to corresponding information is sent to the PLC module; C, PLC module are judged the information that receives: if regulate separately speed of mainshaft multiplying power, guarantee that so feed engagement is constant, this moment speed of mainshaft multiplying power=Ks, speed of feed multiplying power=Ks; If regulate simultaneously speed of mainshaft multiplying power and per tooth feeding multiplying power, this moment speed of mainshaft multiplying power=Ks, feeding multiplying power Kf=Ks*Ka; Then speed of mainshaft multiplying power Ks and feeding multiplying power Kf are sent to the CNC module; D, CNC module are calculated and are asked for speed of mainshaft n '=Ks*n, speed of feed vf '=Kf*vf=Ks*Ka*vf; E, CNC module are converted into servo driving instruction output with speed of mainshaft n ' and speed of feed vf '.
Fig. 5 is the control flow chart of the speed of mainshaft and per tooth feeding multiplying power.As shown in the figure, the user presets gear value according to process requirements, regulates speed of mainshaft multiplying power Ks gear by speed of mainshaft multiplying power switch E, regulates per tooth feeding multiplying power Ka gear by per tooth feeding multiplying power switch F; The PLC module is after receiving speed of mainshaft multiplying power waver gear signal or per tooth feeding multiplying power waver gear signal, selected speed of mainshaft multiplying power Ks and per tooth feeding multiplying power Ka, calculate to get feeding multiplying power Kf according to formula Kf=Ks*Ka, the PLC module is sent to the CNC module with speed of mainshaft multiplying power Ks and the feeding multiplying power Kf that obtains; The CNC module is asked for speed of mainshaft n ' according to the speed of mainshaft multiplying power Ks that receives and the current speed of mainshaft n that obtains, feeding multiplying power processing module is asked for speed of feed vf ' according to the feeding multiplying power Kf that receives and the current speed of feed vf that obtains, then speed of mainshaft n ' and speed of feed vf ' are converted into servo driving instruction output, the control of Negotiation speed ring drives servomotor work.
Fig. 6 is the control flow chart of per tooth feeding multiplying power.As shown in the figure, the user presets a gear times rate score and is set to PLC module executive routine global variable; Regulate speed of mainshaft multiplying power Ks gear by speed of mainshaft multiplying power switch, regulate per tooth feeding multiplying power Ka gear by per tooth feeding multiplying power switch; The PLC module is after receiving speed of mainshaft multiplying power waver gear signal or per tooth feeding multiplying power waver gear signal, making gear judges, then from predefined gear times rate score, obtain speed of mainshaft multiplying power Ks and per tooth feeding multiplying power Ka, calculate to get feeding multiplying power Kf according to formula Kf=Ks*Ka, the PLC module is sent to main shaft multiplying power processing module and feeding multiplying power processing module in the CNC module with the speed of mainshaft multiplying power Ks that obtains and feeding multiplying power Kf; Main shaft multiplying power processing module is asked for speed of mainshaft n ' according to the speed of mainshaft multiplying power Ks that receives and the current speed of mainshaft n that obtains, feeding multiplying power processing module is asked for speed of feed vf ' according to the feeding multiplying power Kf that receives and the current speed of feed vf that obtains, then by the CNC module speed of mainshaft n ' and speed of feed vf ' are converted into servo driving instruction output, thus drive shaft servomotor and feed servo machine operation.When the user is written to times rate score in the PLC program as global variable, can use the definition waver address of ST language, also can adopt other variable-definition forms.A kind of method (wherein " Ks_Adr_1 " represents address name, and " IX1018.1 " represents interface IP address, and " BOOL " represents type) as follows of using the definition waver address of ST language:
Ks_Adr_1 AT%IX1018.1: BOOL; (* main shaft multiplying power No. 1 gear address *)
Ks_Adr_2 AT%IX1018.2: BOOL; (* main shaft multiplying power No. 2 gear addresses *)
……
Ks_Adr_11 AT%IX1018.11: BOOL; (* main shaft multiplying power No. 11 gear addresses *)
Ka_Adr_1 AT%IX1019.1: BOOL; (* per tooth feeding multiplying power No. 1 gear address *)
Ka_Adr_2 AT%IX1019.2: BOOL; (* per tooth feeding multiplying power No. 2 gear addresses *)
……
Ka_Adr_4 AT%IX1019.4: BOOL; (* per tooth feeding multiplying power No. 4 gear addresses *)
……
Ka_Adr_7 AT%IX1019.7: BOOL; (* per tooth feeding multiplying power No. 7 gear addresses *)
The PLC programming language has IL, ST, LD etc., illustrates (also can use other language) realization of user logic here with the ST language.Set up function " Ks_Control " in inside and finish speed of mainshaft multiplying power, the control of synchro-feed speed:
(* local variable definition *)
STEP: INT:=0; (* execution in step *)
R_Ks_Rate_1: R_TRIG; (* waver signal is along definition *)
R_Ks_Rate_2 :R_TRIG;
……
R_Ks_Rate_11 :R_TRIG;
(* function body *)
R_Ks_Rate_1 (CLK:=Ks_Adr_1); (* is along the related address * of signal)
R_Ks_Rate_2(CLK:=Ks_Adr_2);
……
R_Ks_Rate_11(CLK:=Ks_Adr_11);
(the * multiplying power is selected *)
IF R_Ks_Rate_1.Q AND STEP=0 THEN
Ks_Rate:=Ks_Rate_1;
Ka_Rate:=Ks_Ka_Rate_1;
STEP:=1;
ELSIF R_Ks_Rate_2.Q AND STEP=0 THEN
Ks_Rate:=Ks_Rate_2;
Ka_Rate:=Ks_Ka_Rate_2;
STEP:=1;
……
ELSIF R_Ks_Rate_11.Q AND STEP=0 THEN
Ks_Rate:=Ks_Rate_11;
Ka_Rate:=Ks_Ka_Rate_11;
STEP:=1;
END_IF;
(* implementation *)
CASE STEP OF
1:
Kf_Rate:=Ks_Rate*Ka_Rate/100;
Set_SpindleRate (1, Ks_Rate); (* sets spindle speed *)
Set_FeedRate (1, Kf_Rate); (* sets speed of feed *)
STEP:=0;
0:
;
END_CASE
The user also can preset the multiplying power adjustment form that comprises speed of mainshaft multiplying power Ks and feed engagement multiplying power Ka.When the user presets the multiplying power adjustment form that comprises speed of mainshaft multiplying power Ks and per tooth feeding multiplying power Ka, the PLC module is according to the speed of mainshaft ratio signals and the feed engagement ratio signals that receive, in the multiplying power adjustment form, transfer speed of mainshaft multiplying power Ks and feed engagement multiplying power Ka, then try to achieve feeding multiplying power Kf=Ks*Ka.The user also can pass through the direct entering spindle rotating speed of control panel multiplying power Ks or feed engagement multiplying power Ka, then sends into the PLC module, and the PLC module is calculated and asked for feeding multiplying power Kf.
For the controlled working precision, can in the d step, calculate and ask for speed of mainshaft n ' and speed of feed vf ' afterwards, by interpolator to the speed of feed computing.In order to guarantee the collaborative work of feed shaft and main shaft, main shaft instruction synchronizer can be set in interpolator, be responsible for sending the main shaft instruction to the PLC module, after wait PLC module is returned speed of mainshaft numerical value, speed of feed and the speed of mainshaft are done synchronous interpolation.For further controlled working precision, steps d also comprises: feeding multiplying power processing module, reception comes from closeization of the track point sequence of interpolator and multiplying power that the PLC resume module obtains is adjusted demand, and closeization point sequence is carried out again closeization of interpolation, adjusts the feeding multiplying power.
Fig. 7 is the structural drawing of an embodiment of the present invention's opertaing device of controlling feed of every rotation.As shown in the figure, this opertaing device mainly comprises following part: speed of mainshaft multiplying power switch, per tooth feeding multiplying power switch, NC machine tool operation panel, servo drive, digital control system.Digital control system is made of CNC system hardware, the real-time oss cnc system software three parts of unifying.
In the numerically-controlled machine field, can utilize the input signal of various ways production multiplying power control, for example button or selector switch.In the prior art, the main parameter object of paying close attention to is the speed of mainshaft and speed of feed, therefore, in the prior art, only has speed of mainshaft multiplying power switch and feeding multiplying power switch.The present invention adopts special speed of mainshaft multiplying power switch and per tooth feeding multiplying power switch.
CNC system hardware comprises servo and I/O equipment interface, real time clock, file system storage medium, central processor CPU, display device and input equipment, and they realize exchanges data by internal bus.The I/O equipment interface is used for being connected with external unit the data transmission between realization and external unit; Real time clock is used for triggering each parts periodic duty; The file system storage medium is used for the storage operation file.CNC system hardware can have various computing systems to consist of, for example many CPU framework of X86PC framework, arm processor framework, dsp processor framework, single-chip microcomputer framework and a plurality of above-mentioned processor formations.Adopt the X86PC framework hardware system can with in the machine 8253 or its compatible clock system make real time clock; Can be by pci bus or isa bus interface analog output unit and the servo and I/O equipment interface of digital quantity input-output card realization, for the servo of field-bus interface and I/O equipment, can adopt corresponding field bus communication interface card to realize servo and I/O equipment interface; Can adopt hard disk or SD card, CF card as the file system storage medium.
Real time operating system comprises that numerical control device driving, real-time task scheduling subsystem, graphical user interface GUI and file management and memory device drive.The real-time task scheduling subsystem is used for guaranteeing completion system function within the time of specifying or determining.Real time operating system can be selected VxWorks, and the real time operating system of RTLinux etc. specialty also can select Windows in conjunction with real-time extension RTX, or requires to select when low Windows CE etc. to have the operating system of certain soft real-time characteristic in system performance.Except supporting conventional file management and storage medium to drive and graphical user interface GUI, mainly pass through real time clock Interruption handling procedure as property performance period ground real-time task scheduling in the real time operating system.The standard Driver Development framework that can adopt real time operating system to provide is provided numerical control device, encapsulation is to data manipulation servo and the I/O equipment interface, these data comprise to servo instruction and to the instruction of I/O, also comprise gathering from servo feedback data and the data of I/O.
Cnc system software comprises PLC subsystem, PLC program file manipulater, nc program file operation device, program code resolver, interpolator, numerical control man-machine interaction subsystem, main shaft server, feeding multiplying power processing module and main shaft multiplying power processing module.
The PLC subsystem comprises ST CompilerTools and user logic actuator.When using other language compilation file routines, adopt other CompilerTools.Comprise S command logic function and feed of every rotation control power function in the user logic actuator.The PLC subsystem, the PLC programmed logic of being responsible for writing according to the user is processed the logic control of numerically-controlled machine peripheral hardware and annex, includes but not limited to the speed of mainshaft, the tool magazine tool changing, cooling, lubricated, chip removal etc.S command logic function refers to speed of mainshaft command logic function.The PLC subsystem is set up the memory mapping of peripheral hardware input and output by device drives, and the set logical operation of completing user on memory mapping.Usually the user can adopt the PLC programming language of IEC61131-3 standard convention to describe required steering logic, comprises trapezoid figure language, ST language, IL language etc.But at first user's ladder diagram logic, ST logic of language or IL language logic are converted into the user logic instruction sequence that can be consisted of by the processor basic instruction of CNC system hardware processor Direct Recognition by compiler in the PLC subsystem.The PLC subsystem is under the management of real-time task scheduling subsystem, periodically by user logic actuator run user logical order sequence.
PLC program file manipulater is responsible for loading the user and is write the PLC file that comprises the Machine-Tool Control logic from the file system storage medium of digital control system, comprise the PLC file of Machine-Tool Control logic as using the ST language compilation; The sign that the PLC file that uses the ST language compilation to comprise the Machine-Tool Control logic finishes as row mainly with new line character greatly; Usually nc program file operation device is in the invoked method of operation, does not possess the requirement of autonomous operation, and form that namely can one group of service function realizes that the object that also can have one group of service interface is realized.
Nc program file operation device is responsible for from load nc program from the file system storage medium of digital control system.
The program code resolver, mainly be responsible for calling nc program file operation device service interface, for interpolator provides macro-data, have the demand of certain real-time output, usually the program code resolver is included real-time task scheduling in the lower real-time thread of priority or the form of real-time task.The program code resolver obtains nc program with behavior unit; With the lexical analysis (can select Lex) of passing through of the nc program of character string type.The classes of instructions discriminator is on the basis of grammatical analysis (can select Yacc), for the processing of classifying of each key word that parses, for example to the one by one processing of G code, one by one processing to coordinate points, to the one by one processing of M code, also comprise the S instruction of the bright description speed of mainshaft that relates to of this law, namely start the M03 of main shaft, M04, the M05 instruction.The motion request that characterizes according to G code is in conjunction with coordinate information, is converted into the data structure with the interpolator agreement, by interpolator the interface interchange of program code resolver sent into interpolator.As the subsystem that initiatively moves, the program code resolver has certain requirement of real-time, usually can bring in the real-time task scheduling, participates in task scheduling with lower priority.
Interpolator comprises conventional geometric locus interpolator and the main shaft instruction synchronizers such as straight line, circular arc, is responsible for from the manually operated motion services request of program code resolver and interface.These motion services request comprise: the conventional geometric locuss such as straight line, circular arc, also comprise the S instruction to the speed of mainshaft, and namely start the M03 of main shaft, M04, the main shaft services request such as M05 instruction.Interpolator itself is only processed closeization of interpolation of feed shaft geometric instructions, can adopt " point-to-point comparison method ", " numerical value point-score " for linear interpolation and circular interpolation, and the interpolating method of other parametric equation forms.Because the not responsible motion of main shaft control of interpolator in order to guarantee the collaborative work of feed shaft and main shaft, is designed with main shaft instruction synchronizer in the interpolator, be responsible for sending the main shaft instruction to the PLC system, and wait for returning of PLC system, the synchronously work of interpolator.Interpolator is as the subsystem that initiatively moves, and interpolator has higher requirement of real-time, usually brings in the real-time task scheduling, is strictly periodically carried out.The implementation progress server also moves in the cycle of operation at interpolator.
Feeding multiplying power processing module, has the interpolated point buffering, responsible reception comes from closeization of the track point sequence of interpolator, receive simultaneously the multiplying power that obtains of processing from Processing Strategies power function in the PLC user logic and adjust demand, closeization of interpolation again on the basis of closeization point sequence realizes the adjustment of feeding multiplying power by the closeization point of adjusting increment output.Feasible adjustment algorithm is exemplified below:
Increment from interpolator is sat as follows to sequence:
(△X1,△Y1,△Z1);
(△X2,△Y2,△Z2);
……
(△XN,△YN,△ZN);
(△XN+1,△Y N+1,△Z N+1);
……
The vector (△ X0N, △ Y0N, △ Z0N) of actual output, when multiplying power less than 100% the time, the incremental vector that actual output vector calculates less than interpolator; When multiplying power greater than 100% the time, the incremental vector that actual output vector calculates greater than interpolator.Feasible treating method is as follows:
When multiplying power less than 100% the time, establishing the feeding multiplying power is A%, then has:
(△X01,△Y01,△Z01)=(A%*△X1,A%*△Y1,A%*△Z1);
So have residual vector ((1-A%) * △ X1, (1-A%) * △ Y1, (1-A%) * △ Z1) not export for (△ X1, △ Y1, △ Z1) vector, be accumulated to output (△ X02, △ Y02, △ Z02) next time.
If residual vector ((1-A%) * △ X1, (1-A%) * △ Y1, (1-A%) * △ Z1) is still large than (A%* △ X1, A%* △ Y1, A%* △ Z1), then:
(△X02,△Y02,△Z02)=(A%*△X1,A%*△Y1,A%*△Z1);
Then remain ((1-A%-A%) * △ X1, (1-A%-A%) * △ Y1, (1-A%-A%) * △ Z1)
……
The like, until residue section ((1-n*A%) * △ X1, (1-n*A%) * △ Y1, (1-n*A%) * △ Z1)<(A%* △ X1, A%* △ Y1, an A%* △ Z1), next section that then need to calculate by interpolator, feasible output policy is as follows:
For vector (△ X2, △ Y2, △ Z2), need the compute vector direction cosine
Cos(αX)=ΔX
2/L
2
Cos(αY)=ΔY
2/L
2
Cos(αZ)=ΔZ
2/L
2
Then have:
△X0n=(1-n*A%)*△X1+[A%-(1-n*A%)]*△X1*Cos(αX);
△Y0n=(1-n*A%)*△Y1+[A%-(1-n*A%)]*△Y1*Cos(αY);
△Z0n=(1-n*A%)*△Z1+[A%-(1-n*A%)]*△Z1*Cos(αX);
After this use (△ X2, △ Y2, △ Z2) to replace (△ X1, △ Y1, △ Z1), replace (△ X3, △ Y3, △ Z3) with (△ X3, △ Y3, △ Z3) and repeat said process, can obtain the output vector after each feeding is adjusted.
When the feeding multiplying power greater than 100% the time, establishing the feeding multiplying power is B%, then often has this interpolator computational data curtailment with output, the situation that need to use next section.
For using vector (△ X2, △ Y2, △ Z2), need the compute vector direction cosine:
Cos(αX2)=ΔX
2/L
2
Cos(αY2)=ΔY
2/L
2
Cos(α Z2)=Δ Z
2/ L
2Then have:
Work as L2〉(B%-1) * L1, illustrate that then L2 can satisfy first paragraph speed change residual paths demand, then:
△X01=△X1+(△X1*B%-△X1)*Cos(αX2);
△Y01=△Y1+(△Y1*B%-△Y1)*Cos(αY2);
△Z01=△Z1+(△Z1*B%-△Z1)*Cos(αZ2);
As the * L1 of L2<(B%-1), illustrate that then L2 can not satisfy first paragraph speed change residual paths demand, then needs to use (△ X3, △ Y3, △ Z3), as (L1+L2+L3)〉B%*L1 then illustrates (△ X3, △ Y3, △ Z3) can satisfy the speed change needs, otherwise borrow section downwards always.Be located at the N section and just satisfy (L1+L2+...+Ln) B%*L1, then have:
△X01=△X1+△X2+...+△Xn-1+(△X1*B%-△X1-△X2-...-△Xn-1)*Cos(αXn);
△Y01=△Y1+△Y2+...+△Yn-1+(△Y1*B%-△Y1-△Y2-...-△Yn-1)*Cos(αYn);
△Z01=△Z1+△Z2+...+△Zn-1+(△Z1*B%-△Z1-△Z2-...-△Zn-1)*Cos(αZn);
The like, can be to obtain successively output vector (△ X0n, △ Y0n, △ Z0n)
Main shaft multiplying power processing module, be responsible for receiving the main shaft multiplying power that obtains of processing from Processing Strategies power function in the PLC user logic and adjust demand, the spindle speed instruction is revised on basis in former main shaft instruction, and directly send numerical control device to drive, and spindle driver is sent in this instruction.Feasible adjustment algorithm is exemplified below: former main shaft instruction S requires K% from the main shaft multiplying power adjustment of PLC, then actual output main shaft instruction S0=S*K%.
The specific works principle is as follows: NC machine tool operation panel receives the user and regulates speed of mainshaft multiplying power switch gear information or per tooth feeding multiplying power switch gear information, and gear information driven by servo and I/O equipment interface and numerical control device be sent to the PLC subsystem, central processor CPU and real time clock are controlled this program implementation in real time.The PLC subsystem is according to gear information, judge gear, obtain the numerical value of speed of mainshaft multiplying power Ks of the corresponding gear in the file system storage medium or the numerical value of per tooth feeding multiplying power Ka by PLC program file manipulater, and then calculate the numerical value ask for feeding multiplying power Kf according to formula Kf=Ks*Ka, and the numerical value of speed of mainshaft multiplying power Ks and the numerical value of feed rate Kf are sent to the file system storage medium.From the file system storage medium, read the numerical value of current speed of mainshaft n and the numerical value of current speed of feed vf by nc program file operation device, speed of mainshaft n '=Ks*n is asked in calculating, speed of feed vf '=Kf*vf, and the speed of mainshaft n ' that calculating is asked for and speed of feed vf ' are sent to interpolator.Because the not responsible motion of main shaft control of interpolator in order to guarantee the collaborative work of feed shaft and main shaft, is designed with main shaft instruction synchronizer in the interpolator.Main shaft instruction synchronizer, send the main shaft instruction to the PLC system, and wait for that (for example system sends the instruction indication speed of mainshaft and is adjusted into 100r/min for the synchronic command that returns of PLC system, in order to confirm that the speed of mainshaft has reached the indicated speed of system, then system returns the affirmation information that the speed of mainshaft reaches 100r/min), realize the work of synchronous interpolator.Interpolator is as the subsystem that initiatively moves, and interpolator has higher requirement of real-time, and the real-time task scheduling subsystem guarantees that it is according to strictly periodically carrying out.The implementation progress server also moves in the cycle of operation at interpolator.Interpolator is sent to feeding multiplying power processing module with closeization of track point sequence after the synchronous interpolation of finishing the speed of mainshaft and speed of feed.Be provided with the interpolated point buffering in the feeding multiplying power processing module, receive simultaneously from PLC logic actuator and process the multiplying power adjustment demand that obtains, closeization of interpolation again on the basis of closeization point sequence realizes the adjustment of speed of feed by the closeization point of adjusting increment output.Main shaft multiplying power processing module receives the main shaft multiplying power that sends from PLC logic actuator and adjusts demand, revises speed of mainshaft instruction on the basis of main shaft instruction.Result after feeding multiplying power processing module and main shaft multiplying power processing module will be processed drives by numerical control device and servo and I/O equipment interface is sent to servo drive and drives servomotor M and work.In the process that the speed of mainshaft changes, keep per tooth feeding multiplying power constant, namely do not adjust simultaneously the gear of speed of mainshaft multiplying power switch and feed engagement multiplying power switch.According to formula feeding multiplying power Kf=Ks*Ka, when speed of mainshaft multiplying power Ks increase, when feed engagement multiplying power Ka is constant, feeding multiplying power Kf and speed of mainshaft multiplying power Ks increase with multiple, otherwise feeding multiplying power Kf and speed of mainshaft multiplying power Ks reduce with multiple, at this moment, feed engagement remains unchanged; Ks is constant when speed of mainshaft multiplying power, and when feed engagement multiplying power Ka increased, feeding multiplying power Kf and feed engagement multiplying power increased with multiple, otherwise feeding multiplying power Kf and feed engagement multiplying power reduce with multiple, changes feed engagement by regulating the feeding multiplying power.But still regulating feed engagement multiplying power Ka regardless of adjusting speed of mainshaft multiplying power Ks is 0 o'clock, and the speed of mainshaft and speed of feed all are 0 simultaneously.Thereby the damage of avoiding producing huge fluctuation and causing cutter.
The user also can preset the multiplying power adjustment form that comprises speed of mainshaft multiplying power Ks and feed engagement multiplying power Ka.When the user presets the multiplying power adjustment form that comprises speed of mainshaft multiplying power Ks and per tooth feeding multiplying power Ka, the PLC subsystem is according to the speed of mainshaft ratio signals and the feed engagement ratio signals that receive, in the multiplying power adjustment form, transfer speed of mainshaft multiplying power Ks and feed engagement multiplying power Ka, then try to achieve feeding multiplying power Kf=Ks*Ka.
The present invention is described by embodiment, and those skilled in the art know, in the situation that does not break away from the spirit and scope of the present invention, can carry out various changes or equivalence replacement to these features and embodiment.In addition, under instruction of the present invention, can make amendment to adapt to concrete situation and material to these features and embodiment and can not break away from the spirit and scope of the present invention.Therefore, the present invention is not subjected to the restriction of specific embodiment disclosed herein, and all interior embodiment of claim scope that fall into the application belong to protection scope of the present invention.