Workpiece on-line detection method and device and computer readable storage medium

文档序号:1012835 发布日期:2020-10-27 浏览:15次 中文

阅读说明:本技术 工件在线检测方法、装置及计算机可读储存介质 (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 workpiece detection device 10, wherein the online workpiece detection device 10 is connected to a production facility 20 in a communication manner. Specifically, the workpiece online inspection apparatus 10 includes an input unit 100, an inspection unit 200, a memory 300, and a processor 400. The workpiece on-line detection device 10 can be installed in the production equipment 20 and is in communication connection with the production equipment 20. In one embodiment, the production equipment 20 is CNC machining equipment. The workpiece online detection device 10 can also be electrically connected with the production equipment 20.

The input unit 100 serves to generate a signal in response to a user operation and transmit the signal to the processor 400.

Specifically, the input unit 100 may be a physical panel or a touch panel having function keys, or may be a remote controller having function keys and capable of remote input. The function keys of the input unit 100 can be specifically set according to actual needs.

The detecting unit 200 is used for detecting and determining whether the external dimensions of the workpiece detected by the first detecting method and the external dimensions of the workpiece detected by the second detecting method meet the preset standard.

The memory 300 is used for storing the received production equipment information, the appearance size detected by the first detection mode, the appearance size detected by the second detection mode and preset standard information. Such as program code, etc., and enables high-speed, automated access to programs and data during operation of the processor 400.

Specifically, the information of the production apparatus 20 includes, but is not limited to, the model and state of the production apparatus 20, the rate of workpiece production, and the number of workpiece productions.

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 Memory 300 may be, but is not limited to, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an electronically Erasable rewritable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, magnetic disk storage, tape storage, or any other medium readable by a computer that can be used to carry or store data.

The processor 400 is used for performing calculation processing on the related data in the memory 300. The processor 400 may be a Central Processing Unit (CPU), a digital signal processor, or a single chip, and is suitable for implementing various instructions.

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-line detection apparatus 10 further operates an on-line workpiece detection system 500. Included within the workpiece on-line inspection system 500 are one or more computer instructions in the form of a program that is stored in the memory 300 and executed by the processor 400. In the present embodiment, the workpiece on-line inspection system 500 includes a receiving module 510, a determining module 520, a detecting module 530, an inspecting module 540, and an outputting module 550.

The receiving module 510 is used for receiving information of the production equipment 20.

Specifically, the information of the production apparatus 20 includes, but is not limited to, the model and state of the production apparatus 20, the rate of workpiece production, and the number of workpiece productions.

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 production equipment 20.

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 production equipment 20, so as to determine whether the workpieces to be detected are first workpieces or last workpieces. For example, a number of ten workpieces is set as one cycle, and the counted number of workpieces after each cycle is automatically zeroed, that is, the count of the eleventh produced workpiece is one; in the whole counting process, workpieces with the count of one and the count of ten are respectively a first workpiece and a tail workpiece, and workpieces with the counts of two to nine are intermediate workpieces.

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 production equipment 20 to determine whether the workpieces to be detected are first workpieces or last workpieces. For example, the production apparatus 20 produces one workpiece per minute, and ten minutes is set as one cycle. The counting number of the workpieces is increased by one after every minute, and the counting number of the workpieces is automatically reset to zero after every cycle, namely, the counting number of the workpieces produced in the eleventh minute is one; in the whole counting process, workpieces with the count of one and the count of ten are respectively a first workpiece and a tail workpiece, and workpieces with the counts of two to nine are intermediate workpieces.

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 production equipment 20 continues to produce the workpiece. And when the detection value is out of the error range of the preset standard, judging that the workpiece is unqualified.

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 production equipment 20 and the mobile terminal, the production equipment 20 receives the alarm information and automatically stops producing the workpiece, and the technician adjusts and corrects the production equipment 20 according to the alarm information received by the mobile terminal.

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-line detecting device 10 continuously performs on-line detection on each workpiece produced by the production equipment 20 to determine whether the workpiece is qualified.

It is understood that in other embodiments, the workpiece on-line detecting device 10 may intermittently perform on-line detection on each workpiece produced by the production equipment 20 to determine whether the workpiece is qualified.

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 production apparatus 20 includes, but is not limited to, the model and state of the production apparatus 20, the rate of workpiece production, and the number of workpiece productions.

Step S602, determining whether the workpiece is the first workpiece or the last workpiece according to the received information of the production equipment 20. If yes, the process proceeds to step S603: detecting the appearance size of the workpiece by adopting a first detection mode; if not, the process proceeds to step S604: and detecting the appearance size of the workpiece by adopting a second detection mode.

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 production equipment 20, and determine whether the workpieces to be detected are first workpieces or last workpieces. For example, a number of ten workpieces is set as one cycle, and the counted number of workpieces after each cycle is automatically zeroed, that is, the count of the eleventh produced workpiece is one; in the whole counting process, workpieces with the count of one and the count of ten are respectively a first workpiece and a tail workpiece, and workpieces with the counts of two to nine are intermediate workpieces.

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 production equipment 20 to determine whether the workpieces to be detected are first workpieces or last workpieces. For example, the production apparatus 20 produces one workpiece per minute, and ten minutes is set as one cycle. The counting number of the workpieces is increased by one after every minute, and the counting number of the workpieces is automatically reset to zero after every cycle, namely, the counting number of the workpieces produced in the eleventh minute is one; in the whole counting process, workpieces with the count of one and the count of ten are respectively a first workpiece and a tail workpiece, and workpieces with the counts of two to nine are intermediate workpieces.

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 input unit 100 according to actual needs to select a probe of an appropriate size.

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 input unit 100 according to actual needs.

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 input unit 100 according to actual needs. The coordinates of the detection point can be two-dimensional coordinates or three-dimensional coordinates.

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 processor 400 can rank the coordinates of the plurality of probe points such that the probe probes according to the rank of the probe points.

S6035: and detecting the appearance size of the workpiece.

Specifically, the processor 400 controls the probe to detect the apparent size of the workpiece in the sequence of the detection points.

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 production equipment 20 continues to produce the workpiece. It is understood that in step S606, information that the inspection is qualified may be sent to the production equipment 20. When the detection value is out of the error range of the preset standard, step S607 is performed, it is determined that the workpiece is not qualified, the output module 550 sends alarm information to the production equipment 20 and the mobile terminal, the production equipment 20 receives the alarm information and automatically stops producing the workpiece, and a technician adjusts and corrects the production equipment 20 according to the alarm information received by the mobile terminal.

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 production equipment 20 to determine whether the workpiece is qualified.

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 production equipment 20 to determine whether the workpiece is qualified.

According to the workpiece online detection device 10 and the workpiece online detection method, 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 (5) the workpiece is unqualified, alarm information is sent out, and the production equipment 20 is adjusted. 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.

Further, through on-line detection in the production equipment 20, the manpower input of checking tools, machine adjusting and size checking is reduced, effective management and control can be achieved for production abnormity of the production equipment 20 through the prompt of alarm information, abnormal immediate alarm and timely machine adjusting are achieved, and therefore the occurrence of batch bad workpieces is avoided.

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.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:轮廓精度量测系统及量测方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!