Workpiece on-line detection method and device and computer readable storage medium
阅读说明:本技术 工件在线检测方法、装置及计算机可读储存介质 (Workpiece on-line detection method and device and computer readable storage medium ) 是由 刘洋群 吴正亮 杨云 兰华英 黄荣舜 周兵 曾涛 张能维 于 2019-04-18 设计创作,主要内容包括:本发明提出了一种工件在线检测方法,包括如下步骤:接收生产设备的信息;根据接收的生产设备信息判断工件是否为首件或尾件;若为是,则采用第一探测方式探测工件的外观尺寸;若为否,则采用第二探测方式探测工件的外观尺寸;判断工件的外观尺寸是否符合预设标准;若为是,判定工件合格;若为否,则向所述生产设备发出报警信息。本发明对应提供了工件在线检测装置和计算机可读存储介质。本发明不仅能有效防止工件在检测时刮伤且检测结果反馈快,并且不同的探测方式能明显提升生产作业效率。(The invention provides a workpiece online detection method, which comprises the following steps: receiving information of production equipment; judging whether the workpiece is a first workpiece or a tail workpiece according to the received production equipment information; if so, detecting the appearance size of the workpiece by adopting a first detection mode; if not, detecting the appearance size of the workpiece by adopting a second detection mode; judging whether the appearance size of the workpiece meets a preset standard or not; if so, judging that the workpiece is qualified; if not, alarm information is sent to the production equipment. The invention correspondingly provides a workpiece online detection device and a computer readable storage medium. The invention can not only effectively prevent the workpiece from being scratched during detection, but also has quick detection result feedback, and the production operation efficiency can be obviously improved by different detection modes.)
1. An online workpiece detection method is characterized by comprising the following steps:
receiving information of production equipment;
judging whether the workpiece is a first workpiece or a tail workpiece according to the received information of the production equipment;
if so, detecting the appearance size of the workpiece by adopting a first detection mode;
if not, detecting the appearance size of the workpiece by adopting a second detection mode;
judging whether the appearance size of the workpiece meets a preset standard or not;
if so, judging that the workpiece is qualified;
if not, alarm information is sent to the production equipment.
2. The workpiece on-line detection method as claimed in claim 1, wherein the step of detecting the external dimension of the workpiece by using the first detection mode or the second detection mode specifically comprises the steps of:
selecting the type of the probe;
inputting detection parameters;
determining the coordinates of the detection points;
sorting the coordinates of the detection points;
and detecting the appearance size of the workpiece according to the sorted coordinates of the detection points.
3. The workpiece on-line detection method as recited in claim 1, wherein the appearance size comprises one or more of height, groove size, hole diameter, cylinder size, length and width size, position degree, step size, wall thickness and offset.
4. The workpiece on-line detection method as claimed in claim 3, wherein the first detection mode is to detect at least two external dimensions of the workpiece; the second detection mode is to detect at least one external dimension of the workpiece, and the type of the external dimension detected by the second detection mode is less than that detected by the first detection mode.
5. The workpiece online detection method as claimed in claim 1, wherein the alarm information is an external dimension of the workpiece which does not meet a preset standard.
6. The utility model provides an online workpiece detection device, its and production facility communication connection which characterized in that, online workpiece detection device includes:
a processor; and
a memory having stored therein a plurality of program modules, the plurality of program modules being executed by the processor and performing the steps of:
receiving information of production equipment;
judging whether the workpiece is a first workpiece or a tail workpiece according to the received information of the production equipment;
if so, detecting the appearance size of the workpiece by adopting a first detection mode;
if not, detecting the appearance size of the workpiece by adopting a second detection mode;
judging whether the appearance size of the workpiece meets a preset standard or not;
if so, judging that the workpiece is qualified;
if not, alarm information is sent out.
7. The on-line workpiece detection device of claim 6, wherein the step of detecting the external dimension of the workpiece by the first detection mode or the second detection mode comprises the following steps:
selecting the type of the probe;
inputting detection parameters;
determining the coordinates of the detection points;
sorting the coordinates of the detection points;
and detecting the appearance size of the workpiece according to the sorted coordinates of the detection points.
8. The workpiece on-line detection device as recited in claim 6, wherein the appearance size comprises one or more of height, groove size, hole diameter, cylinder size, length and width size, position degree, step size, wall thickness and offset, and the first detection mode is to detect at least two appearance sizes of the workpiece; the second detection mode is to detect at least one external dimension of the workpiece, and the type of the external dimension detected by the second detection mode is less than that detected by the first detection mode.
9. The on-line workpiece detection device as recited in claim 6, wherein the alarm information is the external dimension of the workpiece which does not meet a preset standard.
10. A computer-readable storage medium having computer program code stored thereon, which, when run on a computing device, causes the computing device to perform the method of online inspection of workpieces as claimed in any of claims 1 to 5.
Technical Field
The invention relates to the technical field of workpiece detection, in particular to a workpiece online detection method, a workpiece online detection device and a computer readable storage medium.
Background
CNC is an automated machine tool equipped with a programmed control system. Various dimensional checks may be involved with the work piece that it produces, such as the wall thickness, length, width, or height of the work piece.
Disclosure of Invention
In view of the above-mentioned circumstances, there is a need to provide an on-line workpiece detecting method, device and computer readable storage medium capable of effectively preventing the workpiece from being scratched during detection and providing fast feedback of the detection result, so as to solve the above-mentioned problems.
The invention provides a workpiece online detection method in a first aspect, which comprises the following steps: receiving information of production equipment; judging whether the workpiece is a first workpiece or a tail workpiece according to the received production equipment information; if so, detecting the appearance size of the workpiece by adopting a first detection mode; if not, detecting the appearance size of the workpiece by adopting a second detection mode; judging whether the appearance size of the workpiece meets a preset standard or not; if so, judging that the workpiece is qualified; if not, alarm information is sent to the production equipment.
Preferably, the step of detecting the appearance size of the workpiece by adopting the first detection mode or the second detection mode specifically comprises the steps of selecting the type of a probe; inputting detection parameters; determining the coordinates of the detection points; sorting the coordinates of the detection points; and detecting the appearance size of the workpiece according to the sorted coordinates of the detection points.
Preferably, the appearance size includes one or more of height, groove size, hole diameter, cylinder size, length and width size, position degree, step size, wall thickness and offset.
Preferably, the first detection mode is to detect at least two appearance sizes of the workpiece; the second detection mode is to detect at least one external dimension of the workpiece, and the type of the external dimension detected by the second detection mode is less than that detected by the first detection mode.
Preferably, the alarm information is the appearance size of the workpiece which does not meet the preset standard.
The invention provides an online workpiece detection device, which is in communication connection with production equipment, and comprises: a processor; and a memory having stored therein a plurality of program modules, the plurality of program modules being executed by the processor and performing the steps of: receiving information of production equipment; judging whether the workpiece is a first workpiece or a tail workpiece according to the received information of the production equipment; if so, detecting the appearance size of the workpiece by adopting a first detection mode; if not, detecting the appearance size of the workpiece by adopting a second detection mode; judging whether the appearance size of the workpiece meets a preset standard or not; if so, judging that the workpiece is qualified; if not, alarm information is sent out.
Preferably, the step of detecting the appearance size of the workpiece by adopting the first detection mode or the second detection mode specifically comprises the steps of selecting the type of a probe; inputting detection parameters; determining the coordinates of the detection points; sorting the coordinates of the detection points; and detecting the appearance size of the workpiece according to the sorted coordinates of the detection points.
Preferably, the appearance size comprises one or more of height, groove size, hole diameter, cylinder size, length and width size, position degree, step size, wall thickness and offset, and the first detection mode is to detect at least two appearance sizes of the workpiece; the second detection mode is to detect at least one external dimension of the workpiece, and the type of the external dimension detected by the second detection mode is less than that detected by the first detection mode.
Preferably, the alarm information is the appearance size of the workpiece which does not meet the preset standard.
A third aspect of the present invention provides a computer-readable storage medium storing computer program code which, when run on a computing device, causes the computing device to execute the above-mentioned method for on-line inspection of workpieces.
Compared with the prior art, the workpiece online detection device and the workpiece online detection method provided by the invention have the advantages that the corresponding appearance size is detected in different detection modes according to different workpieces, whether the appearance size of the workpiece meets the preset standard or not is judged, and if the workpiece is qualified, the production equipment continues to produce the workpiece; and if the workpiece is unqualified, sending alarm information and adjusting the production equipment. The invention can not only effectively prevent the workpiece from being scratched during detection, but also has quick detection result feedback, and the production operation efficiency can be obviously improved by different detection modes.
Drawings
Fig. 1 is a schematic hardware architecture of an on-line workpiece inspection apparatus according to an embodiment of the present invention.
FIG. 2 is a block diagram of an in-line workpiece inspection system in accordance with an embodiment of the present invention.
Fig. 3 is a schematic flow chart of a workpiece online detection method according to an embodiment of the invention.
Fig. 4 is a flowchart illustrating a method for detecting the external dimensions of the workpiece in fig. 3.
Description of the main elements
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. When an element is referred to as being "disposed on" another element, it can be directly on the other element or intervening elements may also be present.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, the present invention provides an online
The
Specifically, the
The detecting
The
Specifically, the information of the
The apparent dimensions of the workpiece that need to be inspected include, but are not limited to, height, slot dimensions, hole diameter, cylinder dimensions, length and width dimensions, position, step dimensions, wall thickness, and tolerance.
The first detection mode detects at least two appearance sizes of the workpiece; detecting at least one appearance size of the workpiece by a second detection mode; the type of the appearance size detected by the second detection mode is smaller than that detected by the first detection mode.
The preset standard is a standard appearance size of a workpiece stored in advance.
The
The
Specifically, the calculation processing method includes, but is not limited to, single point calculation, two point calculation, maximum-minimum difference calculation, and flatness calculation.
Referring to fig. 2, the workpiece on-
The receiving module 510 is used for receiving information of the
Specifically, the information of the
The judging module 520 is used for judging whether the workpiece is a first workpiece or a last workpiece according to the received information of the
Specifically, the determining module 520 can count the number of the workpieces to be detected periodically according to the number of the workpieces produced by the
It is understood that in other embodiments, the determining module 520 can count the number of workpieces to be detected periodically according to a preset time according to the number of workpieces produced by the
The detection module 530 is used to detect the apparent dimensions of the head piece, tail piece, and middleware.
Specifically, the detection module 530 includes a first detection mode and a second detection mode. The first detection mode is used for detecting the appearance size of the head piece or the tail piece; the second detection mode is used for detecting the appearance size of the intermediate piece between the head piece and the tail piece.
Apparent dimensions include, but are not limited to, height, slot dimensions, hole diameter, cylinder dimensions, length and width dimensions, position, step dimensions, wall thickness, and offset.
The first detection mode detects at least two appearance sizes of the workpiece; detecting at least one appearance size of the workpiece by a second detection mode; the type of the appearance size detected by the second detection mode is smaller than that detected by the first detection mode.
The detecting module 540 is used for detecting whether the external dimensions of the first piece, the last piece and the middle piece meet the preset standard. If so, the workpiece is qualified; if not, the workpiece is unqualified in production.
Specifically, the detection module 540 is configured to compare the external dimensions of the first piece, the last piece, and the middle piece with the standard dimensions of the preset workpiece. When the detection value is within the error range of the preset standard value, the workpiece is judged to be qualified, and the
The output module 550 is used for sending alarm information.
Specifically, when the detection value of the workpiece is out of the error range of the preset standard value, the output module 550 sends alarm information to the
The alarm information is the appearance size of the workpiece with the detection value outside the error range of the preset standard value.
In this embodiment, the workpiece on-
It is understood that in other embodiments, the workpiece on-
Referring to fig. 3, the present invention further provides an online workpiece detection method. Specifically, the workpiece online detection method comprises the following steps:
step S601, receiving information of the production equipment.
Specifically, the information of the
Step S602, determining whether the workpiece is the first workpiece or the last workpiece according to the received information of the
Specifically, the determining module 520 can count the number of the workpieces to be detected periodically according to the number of the workpieces produced by the
The first detection mode detects at least two appearance sizes of the workpiece; detecting at least one appearance size of the workpiece by a second detection mode; the type of the appearance size detected by the second detection mode is smaller than that detected by the first detection mode.
It is understood that in other embodiments, the determining module 520 can count the number of workpieces to be detected periodically according to a preset time according to the number of workpieces produced by the
Referring to fig. 4, the method for detecting the external dimension of the workpiece by the first detection method and the second detection method includes the following steps:
s6031: the probe species was selected.
Specifically, the diameter of the probe is inputted to the
S6032: and inputting detection parameters.
Specifically, the size specification, the upper limit tolerance, the lower limit tolerance, the safety height, the type and the direction of the probing are inputted into the
The types of detection include height, slot size, hole diameter, cylinder size, length and width dimensions, position, step size, wall thickness and offset.
The detection directions include an X positive direction, an X negative direction, a Y positive direction, a Y negative direction, a Z positive direction, and a Z negative direction.
S6033: the coordinates of the probe point are determined.
Specifically, the coordinates of a plurality of detection points are selected in the
It is understood that in other embodiments, the coordinates of the probe point are one.
S6034: and sorting the coordinates of the detection points.
In particular, the
S6035: and detecting the appearance size of the workpiece.
Specifically, the
Step S605, determine whether the external dimension of the workpiece meets a preset standard.
Specifically, the detection module 540 is configured to compare the external dimensions of the first piece, the last piece, and the middle piece with the standard dimensions of the preset workpiece. When the detected value is within the error range of the preset standard value, the step S606 is entered, the workpiece is determined to be qualified, and the
The alarm information is the appearance size of the workpiece with the detection value outside the error range of the preset standard value.
In this embodiment, the workpiece online detection method continuously performs online detection on each workpiece produced by the
It is understood that in other embodiments, the workpiece on-line detection method may intermittently perform on-line detection on each workpiece produced by the
According to the workpiece
Further, through on-line detection in the
In addition, each functional unit in the embodiments of the present invention may be integrated in the same data processing unit, or each unit may exist alone physically, or two or more units are integrated in the same unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. The units or computer means recited in the computer means claims may also be implemented by the same unit or computer means, either in software or in hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:轮廓精度量测系统及量测方法