Summary of the invention
In view of the deficiencies of the prior art, the present invention intends to provide a kind of numerically-controlled machine tool self-diagnosing method and be
System, the specific link for facilitating determining processing problems to occur.
To achieve the above object, the present invention provides the following technical scheme that
A kind of numerically-controlled machine tool self-diagnosing method, including
When error exceeds standard, first runs software self-test, including system emulation operation is carried out with identical process and parameter, it surveys
Whether examination overall error complies with standard, and processing flow is decomposed, and by each step of system emulation, whether testing procedure error
It complies with standard;
After software self-test passes through, actual processing detection is carried out, including actual processing is carried out with identical process and parameter, added
The error after the completion of each procedure of processing is detected during work, and respectively compared with the standard error of each step, and decompose
Former and later two procedure of processings out, are processed respectively, detect overall error compared with the standard error of the process.
By adopting the above technical scheme, when there is error, first software is detected, specifically, on the one hand carrying out overall
Whether the simulation run of process, test overall error comply with standard, and whether the error on the other hand testing each step respectively meets
Standard, so that it is determined that the specific steps that error occurs.Actual processing detection is just carried out after software self-test, improves detection effect
Rate.Actual processing detection includes re-working detection and decomposing processing detection, and re-working detection includes practical each processing step
Detection after rapid precisely determines source of error, and by decomposing processing detection, distinguishes former and later two procedure of processings to detect
It influences, to determine source of error, entire scheme more can intuitively determine the specific steps that error generates, convenient to overhaul.
It further, further include recording each process of self-test and corresponding error-detecting size.
By adopting the above technical scheme, each process of self-test and corresponding error-detecting size are recorded, is facilitated subsequent
Error analysis.
Further, further include the error-detecting size added up based on each procedure of processing, calculate being averaged for the procedure of processing
Error, if mean error is greater than standard error, judges that the processing walks by the mean error of the procedure of processing compared with standard error
Rapid failure.
By adopting the above technical scheme, average mode is calculated by constantly accumulative detection, evades accidental error, enhancing detection
Accuracy.
Further, further include the mismachining tolerance of former and later two procedure of processings based on decomposition, calculate two procedure of processing mistakes
Mean error afterwards, by the mean error of the procedure of processing compared with standard error, if mean error is greater than standard error, judgement
Two procedure of processing errors are excessive.
By adopting the above technical scheme, the mismachining tolerance of former and later two procedure of processings is calculated, it is determined whether due to previous step
Error cause the error of second step excessive, thus more accurate lookup error producing cause.
Second aspect provides a kind of numerically-controlled machine tool self-diagnosable system, including processor and memory, the memory storage
There is instruction set to call for locating processor to implement function such as:
When error exceeds standard, first runs software self-test, including system emulation operation is carried out with identical process and parameter, it surveys
Whether examination overall error complies with standard, and processing flow is decomposed, and by each step of system emulation, whether testing procedure error
It complies with standard;
After software self-test passes through, actual processing detection is carried out, including actual processing is carried out with identical process and parameter, added
The error after the completion of each procedure of processing is detected during work, and respectively compared with the standard error of each step, and decompose
Former and later two procedure of processings out, are processed respectively, detect overall error compared with the standard error of the process.
By adopting the above technical scheme, when there is error, first software is detected, specifically, on the one hand carrying out overall
Whether the simulation run of process, test overall error comply with standard, and whether the error on the other hand testing each step respectively meets
Standard, so that it is determined that the specific steps that error occurs.Actual processing detection is just carried out after software self-test, improves detection effect
Rate.Actual processing detection includes re-working detection and decomposing processing detection, and re-working detection includes practical each processing step
Detection after rapid precisely determines source of error, and by decomposing processing detection, distinguishes former and later two procedure of processings to detect
It influences, to determine source of error, entire scheme more can intuitively determine the specific steps that error generates, convenient to overhaul.
Further, the processor, which also passes through, calls described instruction collection to implement function such as:
Based on the error-detecting size that each procedure of processing adds up, the mean error of the procedure of processing is calculated, by the procedure of processing
Mean error compared with standard error, if mean error be greater than standard error, judge the procedure of processing failure.
By adopting the above technical scheme, each process of self-test and corresponding error-detecting size are recorded, is facilitated subsequent
Error analysis.
Further, the processor, which also passes through, calls described instruction collection to implement function such as:
Based on the error-detecting size that each procedure of processing adds up, the mean error of the procedure of processing is calculated, by the procedure of processing
Mean error compared with standard error, if mean error be greater than standard error, judge the procedure of processing failure.
By adopting the above technical scheme, average mode is calculated by constantly accumulative detection, evades accidental error, enhancing detection
Accuracy.
Further, the processor, which also passes through, calls described instruction collection to implement function such as:
The mismachining tolerance of former and later two procedure of processings based on decomposition calculates the mean error after two procedure of processings, by this
The mean error of procedure of processing is compared with standard error, if mean error is greater than standard error, judges that two procedure of processings are missed
Difference is excessive.
By adopting the above technical scheme, the mismachining tolerance of former and later two procedure of processings is calculated, it is determined whether due to previous step
Error cause the error of second step excessive, thus more accurate lookup error producing cause.
In conclusion the invention has the following advantages:
1. first detecting to software when there is error, the simulation run of overall process is on the one hand carried out, tests overall error
Whether comply with standard, whether the error on the other hand testing each step respectively complies with standard, so that it is determined that the tool that error occurs
Body step;
2. just carrying out actual processing detection after software self-test, detection efficiency is improved, actual processing detection includes adding again
Work detection and decomposition processing detection, re-working detection includes the detection after each procedure of processing of reality, precisely determines that error is former
Cause, and by decomposing processing detection, to detect the influence for distinguishing former and later two procedure of processings, to determine source of error, entirely
Scheme more can intuitively determine the specific steps that error generates, convenient to overhaul;
3. calculating average mode by constantly accumulative detection, evades accidental error, enhance the accuracy of detection.
Embodiment 1
A kind of numerically-controlled machine tool self-diagnosing method, referring to Fig.1, including step S101 to step S102.
Step S101: when error exceeds standard, first runs software self-test, including be with identical process and parameter
System simulation run, whether test overall error complies with standard, and processing flow is decomposed, and passes through each step of system emulation, surveys
Whether the rapid error of try complies with standard.
Error in step S101 exceeds standard, refers to error of the work pieces process after the completion compared with standard size, right
The specific detection of workpiece is referring to application No. is 201410605568.6 patents of invention.Software self-test refers to the control of lathe
Device operation emulation inspection software processed, the procedure simulation processing of idle running identical parameters, identical process.Finally compare overall error with
Whether the error of standard overall error and each step complies with standard, if not being inconsistent standardization, output error exceed standard the step of
Discrepancy Report.If all complying with standard into next step.
Step S102: actual processing detection is carried out, including actual processing is carried out with identical process and parameter, in process
Error after the completion of the middle each procedure of processing of detection, and respectively compared with the standard error of each step, and decomposite front and back
Two procedure of processings, are processed respectively, detect overall error compared with the standard error of the process.
In step s 102, actual processing detection includes re-working workpiece according to the identical processing method of workpiece, herein
In addition the procedure of processing of workpiece is decomposed into the combination of former and later two procedure of processings by the specific error for detecting processing in the process, first
After complete former and later two steps and calculate error respectively, to judge influence of the preceding first-order error to rear first-order error.Above-mentioned mistake
Difference is not compared with the standard error of the step and feedback result, carries out analyzing last output result.
In addition, numerically-controlled machine tool self-diagnosing method further includes recording each process of self-test and corresponding error-detecting is big
It is small.
Based on the error-detecting size that each procedure of processing adds up, the mean error of the procedure of processing is calculated, by the processing
The mean error of step, if mean error is greater than standard error, judges the procedure of processing failure compared with standard error.By not
Disconnected accumulative detection calculates average mode, evades accidental error, enhances the accuracy of detection.
Numerically-controlled machine tool self-diagnosing method further includes the mismachining tolerance of former and later two procedure of processings based on decomposition, calculates two
Mean error after procedure of processing, by the mean error of the procedure of processing compared with standard error, if mean error is greater than mark
Quasi- error judges that two procedure of processing errors are excessive.Calculate the mismachining tolerance of former and later two procedure of processings, it is determined whether due to
The error of previous step causes the error of second step excessive, thus more accurate lookup error producing cause.
Embodiment 2
A kind of numerically-controlled machine tool self-diagnosable system, referring to Fig. 2, including processor 1 and memory 2, memory 2 is stored with instruction set confession
Locating processor 1 is called to implement function such as:
When error exceeds standard, first runs software self-test, including system emulation operation is carried out with identical process and parameter, it surveys
Whether examination overall error complies with standard, and processing flow is decomposed, and by each step of system emulation, whether testing procedure error
It complies with standard;
After software self-test passes through, actual processing detection is carried out, including actual processing is carried out with identical process and parameter, added
The error after the completion of each procedure of processing is detected during work, and respectively compared with the standard error of each step, and decompose
Former and later two procedure of processings out, are processed respectively, detect overall error compared with the standard error of the process.
Based on the error-detecting size that each procedure of processing adds up, the mean error of the procedure of processing is calculated, by the processing
The mean error of step, if mean error is greater than standard error, judges the procedure of processing failure compared with standard error.
Based on the error-detecting size that each procedure of processing adds up, the mean error of the procedure of processing is calculated, by the processing
The mean error of step, if mean error is greater than standard error, judges the procedure of processing failure compared with standard error.
The mismachining tolerance of former and later two procedure of processings based on decomposition calculates the mean error after two procedure of processings,
By the mean error of the procedure of processing compared with standard error, if mean error is greater than standard error, this two processing steps are judged
Rapid error is excessive.
The above is only a preferred embodiment of the present invention, protection scope of the present invention is not limited merely to above-mentioned implementation
Example, all technical solutions belonged under thinking of the present invention all belong to the scope of protection of the present invention.It should be pointed out that for the art
Those of ordinary skill for, several improvements and modifications without departing from the principles of the present invention, these improvements and modifications
It should be regarded as protection scope of the present invention.