Image inspection system

The image inspection system addresses the challenge of user burden by logging and displaying error relationships in a time-series format, facilitating easy identification and resolution of errors beyond parameter mismatches.

JP2024145759APending Publication Date: 2024-10-15KEYENCE CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023058244
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Conventional image inspection systems burden users with the need to visually identify and understand errors other than parameter mismatches, as they lack the ability to notify users of other types of errors explicitly.

Method used

An image inspection system that includes a log collection unit to chronologically record signals related to triggers, commands, and result outputs, an analysis unit to identify error relationships, and a display unit to present these errors in a time-series format, reducing the user's burden by clearly indicating error locations and reasons.

Benefits of technology

The system enables users to easily identify and address errors beyond parameter mismatches by providing clear, chronological displays of error relationships, thereby reducing user effort in diagnosing and resolving issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024145759000001_ABST
    Figure 2024145759000001_ABST
Patent Text Reader

Abstract

To enable other errors than parameter-related errors to be notified so as to mitigate a user's load at the time of error occurrence.SOLUTION: An image inspection system 1 comprises: an inspection setting unit 80a for setting an inspection content; an inspection execution unit 70a for executing the inspection content; a log collection unit 70b that collects execution logs indicating, in time series, triggers and commands or signals related to result outputs which are transmitted / received during execution of the inspection content; a storage unit 72 that stores normalcy information indicating the normal state of a second signal with respect to a first signal among a plurality of signals having relative relationships; an analysis unit 70c that analyzes the execution logs so as to identify a plurality of signals having relative relationships, and determines whether or not there is an error relationship on the basis of normalcy information related to the plurality of identified signals; and a display control unit 70d that causes a display unit 82 to display the execution logs, and that, when it is determined that there is an error relationship, causes the display unit 82 to display a timing in time series that served as the basis for the determination.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an image inspection system that performs inspection based on an inspection target image obtained by capturing an inspection target. [Background technology]

[0002] For example, Patent Document 1 discloses an image inspection system including an imaging unit that generates an image of an object to be inspected, and an image processing controller that executes an inspection based on the image of an object to be inspected generated by the imaging unit. In this image inspection system, status changes of the terminals of the image processing controller and commands sent to the image processing controller from external devices such as a PLC (Programmable Logic Controller) are stored as an execution log that shows them in chronological order, and can be presented to the user in the form of a timing chart. By presenting this execution log, the user can understand how each process of the inspection is being executed, and by highlighting commands that have caused errors, they can be easily confirmed. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2009-123070 A Summary of the Invention [Problem to be solved by the invention]

[0004] Incidentally, the conventional execution log presentation function was limited to errors related to parameters, such as when the test setting specified for switching does not exist in the first place by a command to switch test settings, or when the number of expected parameters does not match the number of parameters actually entered. Therefore, for errors other than those related to parameters, the user must visually identify the location of the error and the reason for its occurrence, which places a burden on the user.

[0005] The present disclosure has been made in consideration of the above points, and has as its object to reduce the burden on the user when an error occurs by making it possible to notify the user of errors other than parameter-related errors. [Means for solving the problem]

[0006] In order to achieve the above-mentioned objective, one aspect of the present disclosure can be based on an image inspection system that includes an imaging unit that images an object to be inspected and generates an image of the object to be inspected, an inspection setting unit that sets inspection content for inspecting the object to be inspected based on the image of the object to be inspected generated by the imaging unit, and an inspection execution unit that executes the inspection content set by the inspection setting unit.

[0007] The image inspection system further includes a communication interface unit for transmitting and receiving signals related to triggers, commands, or result output required for the inspection execution unit to execute the inspection content between an external device and the inspection execution unit; a log collection unit for collecting an execution log that chronologically shows signals related to triggers, commands, or result output transmitted and received via the communication interface unit when the inspection content is executed; a memory unit for storing normal information that shows a normal state of a second signal relative to a first signal among a plurality of signals that are in a relative relationship; an analysis unit that identifies a plurality of signals in the relative relationship by analyzing the execution log and determines whether the plurality of signals are in an error relationship based on the normal information for the identified plurality of signals stored in the memory unit; and a display control unit that displays the execution log collected by the log collection unit on a display unit and, if the analysis unit determines that there is an error relationship, displays the chronological timing that was the basis for the determination on the display unit.

[0008] According to this configuration, when the imaging unit generates an image of the inspection object, the inspection execution unit executes the inspection contents set in advance. Signals related to triggers, commands, or result output required for executing the inspection contents are collected in chronological order as an execution log by the log collection unit. Based on the collected execution log, the analysis unit identifies multiple signals that are in a relative relationship, and determines whether the identified signals are in an error relationship based on normal information stored in the storage unit. If it is determined that there is an error relationship, the chronological timing that is the basis for the determination can be displayed on the display unit together with the execution log, making it easier for the user to identify the location and reason of the error, even if the error is not related to a parameter.

[0009] The analysis unit can also determine that the first signal and the second signal are in an error relationship when a second signal indicating a state in which a trigger or a command is being input from the external device is input while the test execution unit is outputting a first signal indicating a state in which the test execution unit is not ready to receive a trigger or a command. For example, if the test execution unit is set not to output a trigger acceptance signal when in a trigger input prohibited state, the external device outputs a trigger after confirming the trigger acceptance signal of the test execution unit, so that a trigger may not be input to the test execution unit. Although such a situation does not result in an error in the system, it is a setting state that is contrary to the user's intention of "inputting a trigger from an external device to the test execution unit." The analysis unit can identify this and notify the user, thereby reducing the burden on the user required to identify the cause.

[0010] In another aspect, the analysis unit may determine that the first signal and the second signal are in an error relationship when, while the test execution unit is outputting a first signal indicating a state in which the execution result of the test content cannot be read, a second signal indicating a state in which the data output from the test execution unit has been read is input from the external device.

[0011] The image inspection system may further include an input unit for receiving from a user input of defect information regarding a defect occurring during the execution of the inspection content. In this case, the analysis unit analyzes an execution log of a trigger, a command, or a result output regarding the defect information, and the display control unit can display on the display unit a comment regarding the setting state of the trigger, the command, or the result output regarding the defect information based on the analysis result of the analysis unit based on the defect information. For example, when defect information that "results are not output" is received from a user, if the output of results is prohibited in the first place during the execution of the inspection content, "results are not output". In such a case, by displaying a comment regarding the setting state on the display unit, the user can grasp the cause of "results are not output" and can easily consider countermeasures.

[0012] The input unit may display candidates for defect information related to a trigger, a command, or a result output on the display unit, and accept an input of the defect information based on a user's selection operation of the candidate, thereby facilitating an input operation by the user.

[0013] The display control unit may also cause the display unit to display, as a sample log, an execution log for a case in which the plurality of signals in the erroneous relationship are in a normal relationship based on an analysis result by the analysis unit. The display control unit may cause the display unit to display a sample log corresponding to the error identified by the analysis unit.

[0014] In other words, even if multiple signals that are in an erroneous relationship can be identified, the user may not immediately understand what the relative relationship between the multiple signals should be. With this configuration, a sample log for when multiple signals are in a normal relationship can be presented, making it easier for the user to resolve the error.

[0015] When the analysis unit determines that there are multiple error relationships in the execution log, the display control unit may sequentially display the multiple timings in the time series that are the basis for the determination on the display unit, or may simultaneously display the multiple timings in the time series on the display unit. When multiple timings are sequentially displayed, it is possible to check each timing and consider a solution. When multiple timings are simultaneously displayed, verification can be performed while checking the positional relationship between the multiple timings, etc. Effect of the Invention

[0016] As described above, an execution log is displayed on the display unit, which shows in chronological order the triggers, commands, or signals related to result output that are sent and received when the test content is executed. In addition, when multiple signals in a relative relationship identified by analyzing the execution log are in an error relationship, the chronological timing that was the basis for this determination can be displayed on the display unit. This makes it possible to notify the user of errors other than parameter-related errors, thereby reducing the burden on the user when an error occurs. [Brief description of the drawings]

[0017] [Figure 1] 1 is a schematic diagram showing a configuration of an image inspection system according to an embodiment of the present invention. [Diagram 2] FIG. 1 is a block diagram of an image inspection system. [Diagram 3] FIG. 13 is a diagram showing an example of signal and data allocation. [Figure 4] 10 is a timing chart showing an example of an execution log. [Diagram 5] 10 is a timing chart showing another example of the execution log. [Figure 6] 11 is a time chart showing a trigger handshake under normal circumstances. [Figure 7] 11 is a time chart showing a command handshake under normal circumstances. [Figure 8] FIG. 8 is a diagram equivalent to FIG. 7 showing an error that can be identified based on the waveform information in the execution log. [Figure 9] FIG. 8 is a diagram equivalent to FIG. 7 when an error cannot be identified based on the waveform information in the execution log. [Figure 10] 11 is a time chart showing a handshake for result output under normal circumstances. [Figure 11] This is a figure equivalent to Figure 10 when an error occurs. [Figure 12] FIG. 13 is a diagram illustrating an example of a setting screen. [Figure 13] 13 is a diagram showing an example of displaying the timing at which the first error relation occurs when there are multiple error relations in the execution log; FIG. [Figure 14] 13 is a diagram showing an example of displaying the timing at which a second error relation occurs when there are multiple error relations in the execution log. FIG. [Figure 15] 13 is a diagram showing an example of displaying the timing at which a third error relation occurs when there are multiple error relations in the execution log. FIG. [Figure 16] 13 is a diagram showing an example of simultaneously displaying multiple timings at which error relationships occurred when there are multiple error relationships in the execution log; FIG. [Figure 17] 11 is a flowchart showing an example of a process executed by the image inspection system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0018] Hereinafter, the embodiments of the present invention will be described in detail with reference to the drawings. Note that the following description of the preferred embodiments is merely illustrative in nature and is not intended to limit the present invention, its applications, or its uses.

[0019] 1 is a schematic diagram showing the configuration of an image inspection system 1 according to an embodiment of the present invention. The image inspection system 1 is a system that performs inspection based on a workpiece image (image of the object to be inspected) obtained by capturing an image of a workpiece W that is an object to be inspected. The inspection includes, for example, judging whether there is a scratch, whether a measured dimension is within a tolerance range, and whether the workpiece W is a good or defective item.

[0020] FIG. 1 shows the image inspection system 1 during operation. The image inspection system 1 includes a camera 2 that captures an image of a workpiece W, an image processing controller 7 that performs inspections based on the workpiece image generated by the camera 2, and a client device 8. The image inspection system 1 may also include an external device 9 such as a PLC (Programmable Logic Controller), and the external device 9 may or may not be a component of the image inspection system 1. In the case of the image inspection system 1, the inspection process is performed by a control unit 70 included in the image processing controller 7, so the camera 2 may be a normal camera equipped with an image generation function. The number of cameras 2 is not limited to one, and may be any number of two or more. When multiple cameras 2 are provided, each camera 2 can be installed so as to capture a different portion of the workpiece W. The camera 2 of the image inspection system 1 may be a smart camera equipped with an image inspection function in addition to an image generation function.

[0021] The image inspection system 1 is used at a site where multiple workpieces W are transported in sequence. At such a site, the workpieces W are transported at a predetermined speed by a transport device such as a belt conveyor C. The camera 2 is controlled by, for example, an external device 9 or an image processing controller 7 so as to capture an image of the workpiece W transported by the belt conveyor C when the workpiece W enters the field of view of the camera 2. By repeating this process, the camera 2 sequentially captures images of the multiple workpieces W transported by the belt conveyor C.

[0022] The image inspection system 1 also includes lighting 10 (shown in FIG. 2) that irradiates light onto the workpiece W when the workpiece W is imaged by the camera 2. In this embodiment, a case will be described in which the lighting 10 is provided on the camera 2, but the lighting 10 may be an external lighting separate from the camera 2.

[0023] Although not shown, the camera 2 can also capture an image of a stationary workpiece W. The camera 2 can also be operated in a state where it is attached to, for example, a robot arm, and the operation form of the image inspection system 1 is not particularly limited.

[0024] The workpiece W may have any shape and size. The workpiece W includes, for example, a metallic workpiece having a glossy surface.

[0025] The client device 8 includes a control unit 80, a storage unit 81, a display unit 82, and an operation unit 83. The control unit 80 is configured with hardware such as a processor such as a CPU or ASIC, a RAM, a ROM, etc., and the hardware executes a predetermined program, which enables the test setting unit 80a to execute test setting processing and the like. The program is stored in the ROM, the storage unit 81, etc. The storage unit 81 is configured with a hard disk drive, a solid state drive, etc.

[0026] The display unit 82 is configured with a liquid crystal display device, an organic EL display device, or the like. The operation unit 83 includes, for example, a keyboard 83a and a mouse 83b. The operation states of the keyboard 83a and the mouse 83b are detected by the test setting unit 80a. The operation unit 83 is not limited to the keyboard 83a and the mouse 83b, and may be a so-called touch panel type operation unit.

[0027] The inspection setting unit 80a is a part that sets the inspection contents for inspecting the workpiece based on the workpiece image generated by the image sensor 21A of the camera 2. The inspection setting unit 80a generates a setting screen 200 as shown in FIG. 12, for example, and displays it on the display unit 82. The setting screen 200 is provided with an inspection setting area 203 for creating an inspection setting including an imaging tool 201 and an inspection tool 202, and a property setting area 204. In the inspection setting area 203, various settings related to imaging and various settings related to inspection can be performed, for example, in a palette format. In the property setting area 204, detailed settings such as the camera and lighting can be performed. In the setting screen 200, various settings can be performed by the user operating the operation unit 83.

[0028] 2, in addition to the illumination 10, the camera 2 includes an optical system 20 composed of multiple lenses, a sensor board 21, a main board 22, and a storage unit 23. Light irradiated onto the workpiece W by the illumination 10 and reflected by the surface of the workpiece W, natural light reflected by the surface of the workpiece W, and ambient light are incident on the optical system 20.

[0029] The sensor board 21 and the main board 22 are connected to each other so that they can communicate with each other. The sensor board 21 is provided with an image sensor 21A. The image sensor 21A has a light receiving surface composed of a number of light receiving elements, such as a CMOS image sensor or a CCD image sensor. The image sensor 21A is provided with an imaging control unit 21a and a photoelectric conversion unit 21b. The imaging control unit 21a is a unit that controls the exposure time and gain of the image sensor 21A. The photoelectric conversion unit 21b is a unit that converts the intensity of light emitted from the optical system 20 and received at the light receiving surface into an amount of charge and an electrical signal to generate a workpiece image by capturing an image of the workpiece W. Therefore, the image sensor 21A is a member corresponding to an example of the imaging unit of the present invention, and at a site where the workpieces W are transported sequentially as shown in FIG. 1, the image sensor 21A sequentially generates and outputs workpiece images.

[0030] The camera 2 outputs the generated workpiece image to the main board 22. The main board 22 is provided with a calculation unit 22A, an image sensor control unit 22B, and an output unit 22C. The calculation unit 22A, the image sensor control unit 22B, and the output unit 22C are configured with hardware such as a processor such as a CPU or an ASIC, a RAM, and a ROM, and the hardware executes a predetermined program, which enables the calculation unit 22A, the image sensor control unit 22B, and the output unit 22C to execute processing. The program is stored in the ROM, the storage unit 23, or the like.

[0031] The calculation unit 22A receives the workpiece image generated by the camera 2. In the calculation unit 22A, image processing is performed on the workpiece image to generate an output image. The image sensor control unit 22B is a part that outputs a control signal to the imaging control unit 21a of the image sensor 21A, and the imaging control unit 21a controls the exposure time and the gain so that the exposure time is a predetermined time and the gain is a predetermined gain based on the control signal output from the image sensor control unit 22B. The output unit 22C is a part that outputs the output image generated by the calculation unit 22A to the storage unit 23 and the image processing controller 7.

[0032] The storage unit 23 is configured, for example, with a storage device using an integrated circuit, and is connected to the main board 22 so as to be able to transmit and receive data to and from the main board 22. It is possible to store data (including image data, etc.) generated on the main board 22 side in the storage unit 23, and to read data stored in the storage unit 23 from the main board 22 side.

[0033] The camera 2 and the image processing controller 7 are connected by a first communication line L1. When an external device 9 is installed, the external device 9 and the image processing controller 7 are connected by a second communication line L2. Furthermore, the image processing controller 7 and the client device 8 are connected by a third communication line L3.

[0034] The image processing controller 7 includes a control unit 70, a communication interface unit 71, a storage unit 72, and an input unit 73, and the communication interface unit 71, the storage unit 72, and the input unit 73 are connected to the control unit 70. The control unit 70 includes an inspection execution unit 70a, a log collection unit 70b, an analysis unit 70c, and a display control unit 70d. For example, the input unit 73 may be configured by the control unit 70, and the inspection execution unit 70a, the log collection unit 70b, the analysis unit 70c, and the display control unit 70d may be configured by a processor other than the control unit 70, and the above-mentioned division is merely an example.

[0035] The control unit 70 is configured with hardware such as a processor, such as a CPU or ASIC, a RAM, and a ROM, and the hardware executes a predetermined program, which enables the test execution unit 70a, the log collection unit 70b, the analysis unit 70c, and the display control unit 70d to execute their respective processes. The programs are stored in the ROM, the storage unit 72, etc.

[0036] The inspection execution unit 70a is a part that executes the inspection contents set by an inspection setting unit 80a, which is included in the client device 8 described later. The inspection contents include, for example, pattern search, edge detection, blob processing, presence / absence inspection, scratch inspection, dimensional measurement, result display, result output, and the like.

[0037] The communication interface unit 71 is a portion to which the first communication line L1, the second communication line L2, and the third communication line L3 are connected. Various signals are transmitted and received between the image processing controller 7 and the camera 2 via the first communication line L1 and the communication interface unit 71, and a workpiece image generated by the camera 2 is sent to the image processing controller 7. Various signals are transmitted and received between the image processing controller 7 and the external device 9 via the second communication line L2 and the communication interface unit 71. Various signals and information are transmitted and received between the image processing controller 7 and the client device 8 via the third communication line L3 and the communication interface unit 71.

[0038] The image processing controller 7 transmits and receives signals related to triggers, commands, or result output required for the inspection execution unit 70a to execute the inspection contents with the external device 9 via the second communication line L2 and the communication interface unit 71. The external device 9 issues a trigger when, for example, a workpiece W enters the field of view of the camera 2, and the issued trigger is received by the image processing controller 7 via the second communication line L2 and the communication interface unit 71. The trigger is output only when the camera 2 is caused to capture an image. FIG. 3 shows an example of signal and data allocation when four cameras 2 can be connected, and in the figure, TRG1 to 4 shown at address 0001:bit0 to bit3 are examples of triggers, and a different trigger exists for each camera 2.

[0039] A command is a signal sent from the external device 9 to the image processing controller 7. For a command, an identification number for identifying the type of command and a parameter corresponding to each identification number (command) (for example, a number notifying the type of workpiece) are written into memory, and the data is output to the corresponding address. The command number and command parameters are stored in the byte allocation area on the receiving side in Fig. 3. The type of command to be executed and other information are specified here, and the command request (command execution request) in the bit area on the same receiving side is set to "H" (ON), whereupon the command is sent to the image processing controller 7.

[0040] A signal related to the output of the inspection result is a signal transmitted from the image processing controller 7 to the external device 9. The result is output to the byte area (Result Data) on the transmitting side of the image processing controller 7, and a signal enabling the result to be read is transmitted to the external device 9 by setting the result output completion notification (Result Ready) in the same bit area to "H" (ON). In this way, triggers, various commands, and signals related to the output of the inspection result by the inspection execution unit 70a are transmitted and received between the image processing controller 7 and the external device 9.

[0041] The image inspection system 1 is also equipped with a handshake function. Handshake is a mechanism by which the image processing controller 7 and the external device 9 inform each other of the receipt of a command (signal) when they have received each other. If the handshake function is not used, the timing of command receipt becomes unclear, and it becomes necessary to wait a sufficient amount of time before issuing the next command, which may result in prolonged processing. Note that for inspections that do not require high processing speed, the handshake function can be turned off.

[0042] As described above, there are a plurality of signals received by the image processing controller 7, and the plurality of signals include a plurality of signals in a relative relationship. For example, a trigger reception not possible signal (first signal) indicating that the inspection execution unit 70a of the image processing controller 7 is not ready to receive a trigger and a trigger input signal (second signal) indicating that a trigger is being input from the external device 9 to the image processing controller 7 are two signals in a relative relationship. In addition, a command reception not possible signal (first signal) indicating that the image processing controller 7 is not ready to receive a command and a command signal (second signal) indicating that a command is being input from the external device 9 to the image processing controller 7 are two signals in a relative relationship.

[0043] There are other two signals in a relative relationship besides the above. For example, the image processing controller 7 has a read-unable signal (first signal) indicating that the execution result of the inspection contents cannot be read, and a read-completed signal (second signal) indicating that the data output from the inspection execution unit 70a has been read.

[0044] The storage unit 72 is a part that stores normal information indicating a normal state of a second signal with respect to a first signal among a plurality of signals in a relative relationship. The normal state of a trigger signal with respect to a trigger unreceivable signal is that a trigger signal is received when the trigger unreceivable signal is OFF, and information indicating this state is normal information. The normal state of a command signal with respect to a command unreceivable signal is that a command signal is received when the command unreceivable signal is OFF, and information indicating this state is normal information. The normal state of a read completion signal with respect to a read unreceivable signal is that a read completion signal is received when the read unreceivable signal is OFF, and information indicating this state is normal information. In this way, there are a plurality of normal information, and the plurality of normal information are each stored in the storage unit 72.

[0045] The log collection unit 70b is a part that collects an execution log that indicates, in chronological order, signals related to triggers, commands, or result output transmitted and received via the communication interface unit 71 when the test execution unit 70a executes the test contents. The execution log collected by the log collection unit 70b can be stored in, for example, the storage unit 72.

[0046] FIG. 4 shows an example of the execution log collected by the log collecting unit 70b. FIG. 4 shows a case where the first work W1, the second work W2, and the third work W3 are transported in sequence, and shows a state seen from the image processing controller 7 side. The execution log collected by the log collecting unit 70b is displayed on the display unit 82 of the client device 8 by the display control unit 70d, which controls the display unit 82 of the client device 8. This allows the user to check the execution log based on a timing chart as shown in FIG. 4. The execution log is displayed, for example, in a state where it is incorporated into a predetermined user interface screen, and the display control unit 70d also displays the display of this user interface screen on the display unit 82 of the client device 8. Although not shown, a display control unit may be provided in the client device 8. The display control unit may also generate a user interface screen, and the generated user interface screen may be displayed on the display unit 82 in a state where the execution log is incorporated into the user interface screen.

[0047] 4, T1 is a signal indicating the period during which the camera 2 is capturing an image of the workpiece W after receiving a trigger, and indicates that imaging is in progress. Since the first workpiece W1, the second workpiece W2, and the third workpiece W3 are transported in sequence, an imaging period for the first workpiece W1, an imaging period for the second workpiece W2, and an imaging period for the third workpiece W3 exist in that order.

[0048] T2 is a signal indicating the period during which various calculations for inspection are being performed, and indicates that measurement is in progress. Measurement is also performed in sequence, just like imaging, so there is a measurement period for the first workpiece W1, a measurement period for the second workpiece W2, and a measurement period for the third workpiece W3, in that order. During the measurement period of one workpiece, it is not possible to measure another workpiece.

[0049] T3 is a signal indicating the period during which the inspection results are being output, and indicates the output period. Since the output of the inspection results is also performed in sequence, similar to the imaging, the output period of the first work W1, the output period of the second work W2, and the output period of the third work W3 exist in that order.

[0050] T4 is a signal indicating whether the above-mentioned handshake function is enabled (ON) or disabled (OFF). T5 is a trigger acceptance signal indicating whether a trigger (imaging trigger) can be accepted or not. This T5 is an example of a trigger acceptance not possible signal indicating a state in which the image processing controller 7 is not ready to accept a trigger. T6 is an example of a trigger input signal indicating a state in which a trigger is being input from the external device 9 to the image processing controller 7, with ON indicating a state in which a trigger is being input and OFF indicating a state in which a trigger is not being input.

[0051] T7 is a trigger reception notification signal indicating that the image processing controller 7 has received a trigger, with ON indicating that a trigger has been received and OFF indicating that a trigger has not been received.

[0052] T8 is an output completion notification signal that indicates whether the output of the execution results of the test contents has been completed or not, and ON indicates that the output of the execution results of the test contents has been completed, and OFF indicates that the output of the execution results of the test contents has not been completed.

[0053] T9 is a command execution request signal indicating whether or not a command execution is being requested, with ON indicating a state in which a command execution is being requested and OFF indicating a state in which a command execution is not being requested.

[0054] T10 is a command acceptability signal indicating whether a command can be accepted or not. This T10 is an example of a command unreceivable signal indicating that the image processing controller 7 is not ready to accept a command.

[0055] T11 is a command execution completion notification signal indicating whether or not the execution of the command is completed, with ON indicating that the execution of the command is completed and OFF indicating that the execution of the command is not completed.

[0056] The analysis unit 70c shown in Fig. 2 is a part that analyzes the execution log collected by the log collection unit 70b. As shown in Fig. 4, an analysis execution button 101 is provided on the timing chart displayed on the display unit 82. When the analysis execution button 101 is operated by a user, the analysis unit 70c detects the operation by the user and executes the following analysis process.

[0057] Specifically, the analysis unit 70c first identifies multiple signals in a relative relationship by analyzing the execution log collected by the log collection unit 70b, and reads normal information on the identified multiple signals in a relative relationship from the storage unit 72. Then, the log collection unit 70b determines whether or not the multiple signals in a relative relationship are in an error relationship based on the normal information stored in the storage unit 72. The range of the execution log (range in the time axis direction) analyzed by the analysis unit 70c may be specified in advance by the user, or may be the entire range of the recorded execution logs.

[0058] There are several types of error relationships. When the analysis unit 70c identifies that the trigger unreceivable signal and the trigger input signal are several signals in a relative relationship, if the inspection execution unit 70a of the image processing controller 7 outputs a first signal indicating a state in which the camera 2 is not ready to receive a trigger and a second signal indicating a state in which the trigger is being input from the external device 9 is input, the analysis unit 70c determines that the trigger unreceivable signal and the trigger input signal are in an error relationship. In other words, the analysis unit 70c acquires a situation in which a trigger to start imaging is input in a state in which the camera 2 is not ready to image, and can determine that there is an error relationship.

[0059] Furthermore, when the command unreceivable signal and the command input signal are identified as a plurality of signals in a relative relationship, if a second signal indicating a state in which a command is being input from the external device 9 is input while the inspection execution unit 70a of the image processing controller 7 outputs a first signal indicating a state in which the image processing controller 7 is not ready to receive a command, the analysis unit 70c determines that the command unreceivable signal and the command input signal are in an error relationship. In other words, inputting a command in a state in which the image processing controller 7 is not ready to receive a command means that there is an error in the command contents (the number indicating the type of command and the parameters at the time of execution), and the analysis unit 70c acquires this situation and can determine that there is an error relationship.

[0060] In addition, when the analysis unit 70c specifies that the execution result of the inspection contents is a signal that cannot be read, and a signal that has been read, which are multiple signals that have a relative relationship, if a signal that has been read is input from the external device 9 while the inspection execution unit 70a is outputting the signal that cannot be read, the analysis unit 70c determines that the signal that cannot be read and the signal that has been read are in an error relationship. In other words, the analysis unit 70c obtains a situation in which the external device 9 has read the results even though the results have not been output from the image processing controller 7, and can determine that there is an error relationship. Note that when the handshake function is ON, a signal indicating that the external device 9 has read the results is sent to the image processing controller 7, making it possible to determine whether there is an error relationship.

[0061] The errors mentioned above are errors that can be identified based on the waveform information in the execution log, but there are also errors that cannot be identified based on the waveform information in the execution log alone. There are several such errors, and these are caused by user setting errors.

[0062] For example, when a trigger cannot be received, the image processing controller 7 does not output a signal indicating that it is ready to receive a trigger. In this case, a correctly programmed external device 9 will output a trigger only after confirming that the image processing controller 7 is ready to receive a trigger, so the situation where a trigger is not input will continue. Also, the external device 9 may mistake the trigger address and try to send a command to a different address, causing the situation where a trigger is not input to continue.

[0063] There may be cases where the image processing controller 7 is prohibited from outputting the results, or where after the external device 9 reads the results output by the image processing controller 7, it does not notify that it has received the results even if the handshake function is ON.

[0064] Also, there are cases where the external device 9 does not transmit a signal notifying a command execution request. In other words, a command will not be executed unless a signal notifying an execution request is transmitted after the command content of the command is input, but the user may believe that if a flag is set, the command will be executed the moment the command content is written.

[0065] After the external device 9 requests the execution of a command, the image processing controller 7 transitions to a state in which it is unable to accept the command. However, if the execution request flag is lowered before the image processing controller 7 is notified that the command has been executed successfully, the image processing controller 7 may not output an execution completion notification or an error notification because it is not possible to know whether the external device 9 has completed the execution.

[0066] When the analysis unit 70c determines that multiple signals in a relative relationship are in an error relationship, the display control unit 70d causes the display unit 82 to display the timing in the time series that was the basis for determining that they are in an error relationship.

[0067] In the case of the execution log shown in Fig. 4, at the timing when the command acceptance signal T10 indicates that the command cannot be received, the command execution request signal T9 is in a state of requesting execution of a command. This timing is the timing on which it is determined that the command acceptance signal and the command execution request signal are in an error relationship, and is indicated by an indication line 100. The indication line 100 is generated, for example, by the display control unit 70d, and is displayed on the display unit 82 in a state where it is superimposed on the execution log. The form in which the above timing is indicated to the user is not limited to the indication line 100, and may be a display form using colors, characters, symbols, or the like.

[0068] The example shown in FIG. 4 is an error that can be determined based on the waveform information of the execution log, but in the example shown in FIG. 5, the error cannot be determined based on only the waveform information of the execution log. That is, the execution log shown in FIG. 5 includes an output prohibition signal T12. T12 is a signal indicating whether the image processing controller 7 is prohibited or permitted to output the result, with ON indicating a state in which the output of the result is prohibited and OFF indicating a state in which the output of the result is permitted. Since the output prohibition signal is ON, the image processing controller 7 is prohibited from outputting the result, and therefore the error cannot be determined based on only the waveform information. In such a case, the analysis unit 70c can retroactively analyze the stored execution log to identify the cause of the behavior that the user does not intend (setting error) and show it to the user. For example, the type of error, the reason for the error, etc. are displayed in the comment display area 102.

[0069] 6 shows a time chart of a normal trigger handshake. When the trigger acceptance signal T5 is ON, the trigger T6 can be accepted, and when the trigger T6 is accepted, a trigger acceptance notification signal T7 is output. This allows the image processing controller 7 to inform the external device 9 that it has received a trigger.

[0070] 7 shows a time chart of a command handshake under normal circumstances. When the command execution request signal T9 changes from OFF to ON, the command acceptance signal T10 becomes unacceptable, and then a command execution completion notification signal T11 is output. This enables the image processing controller 7 to inform the external device 9 that it has received a command. The command number and command parameters are output by the external device 9.

[0071] Fig. 8 shows an error time that can be identified based on the waveform information of the execution log. In Fig. 8, when the command acceptance signal T10 is in an unacceptable state, the command execution request signal T9 is ON. In this case, the analysis unit 70c determines that the command acceptance signal and the command execution request signal, which are in a relative relationship, are in an error relationship. The display control unit 70d causes the display unit 82 to display an indication line 100 indicating the timing when the command acceptance signal and the command execution request signal, which are in a relative relationship, were in an error relationship.

[0072] FIG. 9 shows an error that cannot be identified based on the waveform information of the execution log. In FIG. 9, the timing of turning off the command execution request signal at T9 is wrong. That is, if the image processing controller 7 does not need to check the completion of command execution, there is no problem in turning off the command reception possible signal at T10. However, since the command execution completion is not turned on, when using the ladder circuit of the external device 9 where the command execution completion notification signal is to be checked, the operation as intended by the user is not executed. In this case, the display control unit 70d displays an indication line 100 on the display unit 82, which indicates the timing when the command execution request signal and the command reception possible signal, which are in a relative relationship, were in an error relationship.

[0073] Figure 10 shows a time chart of the handshake of the result output under normal circumstances. T13 is a result reading completion signal indicating whether or not the result reading is completed, and ON indicates the state in which the result reading is completed. T14 is a result reading possible signal indicating whether or not the result reading is possible.

[0074] 11 shows the time of an error in the result output, and the setting is made to read the result when the result readable signal of T14 is not possible (during data writing). In this case, the display control unit 70d causes the display unit 82 to display an indication line 110 indicating the timing when the result readable signal and the result reading completion signal, which are in a relative relationship, were in an error relationship.

[0075] The input unit 73 of the image processing controller 7 shown in Fig. 2 is a part for accepting input of defect information relating to defects occurring during the execution of the inspection contents from the user. As shown in Fig. 4, a defect information input area 104 for inputting defect information relating to defects occurring during the execution of the inspection contents is provided on a screen displayed on the display unit 82. In the defect information input area 104, the user can input defect information by operating the operation unit 83. The defect information inputted in the defect information input area 104 is accepted by the input unit 73 of the image processing controller 7. Examples of defect information include trigger-related information, result output-related information, command-related information, etc.

[0076] Although the defect information may be input by character input or the like, in this embodiment, the input unit 73 displays defect information candidates related to triggers, commands, or result output on the display unit 82, and accepts the input of defect information based on the user's operation to select a candidate. The defect information candidates are the above-mentioned trigger-related candidates, result output-related candidates, command-related candidates, etc., and these candidates may be displayed in a list in the defect information input area 104 so that the user can select any candidate, or these candidates may be displayed in a selectable form such as a pull-down menu selection window.

[0077] When trigger-related defect information is input to the defect information input area 104, the analysis unit 70c analyzes the trigger execution log related to the defect information. When command-related defect information is input to the defect information input area 104, the analysis unit 70c analyzes the command execution log related to the defect information. When result output-related defect information is input to the defect information input area 104, the analysis unit 70c analyzes the result output execution log related to the defect information.

[0078] Based on the analysis result based on the defect information by the analysis unit 70c, the display control unit 70d causes the display unit 82 to display comments on the setting state of the trigger, command, or result output related to the defect information. Specifically, as shown in Fig. 5, the display control unit 70d generates a comment display area 102 in which comments based on the analysis result by the analysis unit 70c are displayed, and causes the display unit 82 to display the comment display area 102. The comment display area 102 displays the type of error, the reason for the error, hints on how to resolve the error, etc.

[0079] For example, when defect information that "results are not output" is received from a user, if the output of results is prohibited in the first place during the execution process of the test contents, "results are not output", so in such a case, by displaying a comment on the setting state on the display unit 82, the user can understand the cause of "results are not output" and can easily consider countermeasures. The comments include trigger-related comments, result output-related comments, and command-related comments, and are stored in advance in the storage unit 81 etc.

[0080] When it is determined that the relationship between two relative signals is in an error relationship, the display control unit 70d can also cause the display unit 82 to display, as a sample log, an execution log in the case where the multiple signals in the error relationship are in a normal relationship, based on the analysis result by the analysis unit 70c. The display control unit 70d can also cause the display unit 82 to display a sample log corresponding to the error identified by the analysis unit 70c. Examples of the sample log can be shown, for example, in waveforms (timing charts) as shown in Figs. 6, 7, and 10.

[0081] There may be multiple error relationships in the execution log. In this case, the analysis unit 70c identifies multiple error relationships by analyzing the execution log. When the analysis unit 70c determines that there are multiple error relationships in the execution log, the display control unit 70d causes the display unit 82 to sequentially display multiple timings in the time series that are the basis for the determination.

[0082] A case where a first error relation, a second error relation, and a third error relation are determined as a result of the analysis of the execution log by the analysis unit 70c will be described. It is assumed that the first error relation, the second error relation, and the third error relation are arranged in a chronological order. In FIG. 13, the timing (first timing) on ​​the time series that is the basis for determining the first error relation is indicated by an indication line 100. In the display unit 82, the input unit 73 displays a back button 105 and a forward button 106. When the user operates the forward button 106, the operation is accepted by the input unit 73, and the screen transitions to a screen shown in FIG. 14. In the screen shown in FIG. 14, the timing (second timing) on ​​the time series that is the basis for determining the second error relation is indicated by an indication line 100. Thereafter, when the user operates the forward button 106, the operation is accepted by the input unit 73, and the screen transitions to a screen shown in FIG. 15. In the screen shown in Fig. 15, the timing in the time series that was the basis for determining the third error relationship (third timing) is indicated by an indication line 100. Note that when back button 105 is operated on the screen shown in Fig. 15, the screen transitions to the screen shown in Fig. 14, and when back button 105 is operated on the screen shown in Fig. 14, the screen transitions to the screen shown in Fig. 13. This makes it possible to check the content of the error for each timing at which an error relationship was determined and to consider a solution.

[0083] In addition to the above-mentioned sequential display, when the analysis unit 70c determines that there are multiple error relationships in the execution log, the display control unit 70d may simultaneously display multiple timings on the time series that are the basis for the determination on the display unit 82. For example, as shown in FIG. 16, the first timing, which is the timing on the time series that is the basis for the determination of the first error relationship, is displayed by the first indication line 100a, the second timing, which is the timing on the time series that is the basis for the determination of the second error relationship, is displayed by the second indication line 100b, and the third timing, which is the timing on the time series that is the basis for the determination of the third error relationship, is displayed by the third indication line 100c. This allows verification to be performed while checking the positional relationship of multiple timings. In addition, it is possible to know which workpiece an error occurred for, and further at what timing during the imaging, measurement, or output period of the workpiece, so that the burden on the user can be reduced in identifying and improving errors in image inspection.

[0084] When the analysis unit 70c analyzes the execution log and identifies multiple error relationships, only the error relationships that exist within the range of the execution log specified by the user may be displayed on the display unit 82. Also, if the state of a certain command meets a predetermined condition, an analysis of error relationships limited to that command may be executed. For example, if the time that an output prohibition command has been ON for a predetermined time or longer, an analysis of error relationships limited to command-related may be executed.

[0085] The image inspection system 1 is configured as described above, and an example of processing using the image inspection system 1 will be described with reference to the flowchart shown in Fig. 17. In step SA1 after starting, inspection settings are made using the operation unit 83 of the client device 8, the display unit 82 displaying the setting screen 200 shown in Fig. 12, the inspection setting unit 80a, etc.

[0086] In step SA2, an inspection is performed. That is, the inspection execution unit 70a of the image processing controller 7 performs the inspection according to the inspection settings set by the inspection setting unit 80a based on the workpiece image generated by the camera 2. In step SA3, an error occurs during the inspection performed in step SA2.

[0087] In step SA4, an instruction to start log collection is accepted. In step SA5, the inspection is executed again, and the log collection unit 70b collects the execution log. In step SA6, input of defect information, such as a selection of an error type by the user, is accepted via the defect information input area 104 as shown in FIG.

[0088] In step SA7, the analysis unit 70c analyzes the execution log. If there is a case where the timing of the handshake waveform is definitely wrong, the timing is displayed on the display unit 82 as the timing that is the basis for determining that there is an error (step SA8). For example, an inappropriate trigger, command request, or data read is determined to be an error-related event.

[0089] Furthermore, if the selection of the error type accepted in step SA6 indicates that the waveform for handshake is not as intended by the user, the timing that is the basis for the error determination is displayed on the display unit 82 (step SA8). For example, even if the handshake function is enabled, there are cases where the user does not intend to use the handshake function for all types of triggers, result outputs, and commands. By understanding such user intentions through the selection of the error type, it is possible to present that the handshake function is not being executed despite the signal for which the handshake function is desired.

[0090] Furthermore, if it can be determined that an error is occurring based on the information received in step SA6, not just the handshake waveform, the timing that is the basis for determining that an error is occurring is displayed on the display unit 82 (step SA8). In step SA8, various comments regarding the error can also be displayed.

[0091] (Effects of the embodiment) As described above, according to the image inspection system 1 of this embodiment, when the camera 2 captures an image of a workpiece and generates a workpiece image, the inspection execution unit 70a of the image processing controller 7 executes the inspection contents set in advance. Signals related to triggers, commands, or result output required for executing the inspection contents are collected in chronological order as an execution log by the log collection unit 70b. Based on the collected execution log, the analysis unit 70c identifies multiple signals that are in a relative relationship, and determines whether the identified signals are in an error relationship based on normal information stored in the storage unit 72. If the analysis unit 70c determines that there is an error relationship, the timing in the time series that is the basis of the determination can be displayed on the display unit 82 of the client device 8 together with the execution log, so that the user can easily identify the location and reason of the error, even if the error is not related to the parameters.

[0092] The above-described embodiment is merely illustrative in all respects and should not be construed as limiting. Furthermore, all modifications and variations within the scope of the claims are within the scope of the present invention. [Industrial Applicability]

[0093] As described above, the image inspection system according to the present disclosure can be used, for example, when performing various inspections based on workpiece images captured of a workpiece. [Explanation of symbols]

[0094] 1. Image inspection system 21A Image sensor (imaging section) 70a Inspection Execution Department 70b Log collection section 70c Analysis Department 70d Display control unit 71 Communication interface section 72 Memory section 73 Input section 80a Inspection setting section

Claims

1. an imaging unit that captures an image of an object to be inspected and generates an image of the object to be inspected; an inspection setting unit for setting inspection details for inspecting the inspection object based on the inspection object image generated by the imaging unit; an inspection execution unit that executes the inspection content set by the inspection setting unit; a communication interface unit for transmitting and receiving signals related to triggers, commands, or result output required for the execution of the test content by the test execution unit to and from an external device; a log collection unit that collects an execution log that chronologically indicates signals related to triggers, commands, or result outputs transmitted and received via the communication interface unit during execution of the test content; a storage unit that stores normality information indicating a normal state of a second signal with respect to a first signal among a plurality of signals having a relative relationship; an analysis unit that identifies a plurality of signals in the relative relationship by analyzing the execution log, and determines whether or not the plurality of signals are in an error relationship based on the normal information related to the identified plurality of signals stored in the storage unit; An image inspection system comprising: a display control unit that causes the execution log collected by the log collection unit to be displayed on a display unit, and when the analysis unit determines that there is an error relationship, causes the display unit to display the timing on the time series that was the basis for the determination.

2. 2. The image inspection system according to claim 1, The storage unit is storing normality information indicating a normal state of a first signal indicating a state in which the device is not ready to receive a trigger or a command and a second signal indicating a state in which the device is receiving a trigger or a command from the external device; The analysis unit is An image inspection system that determines that the first signal and the second signal are in an error relationship when a second signal indicating a state in which a trigger or command is being input from the external device is input while the inspection execution unit is outputting a first signal indicating a state in which the unit is not ready to receive a trigger or command.

3. 2. The image inspection system according to claim 1, The storage unit is storing normality information indicating a normal state of a first signal indicating a state in which the execution result of the test content cannot be read and a second signal indicating a state in which the data output from the test execution unit has been read; The analysis unit is An image inspection system which, when a second signal indicating that the data output from the inspection execution unit has been read is input from the external device while the inspection execution unit is outputting a first signal indicating that the execution result of the inspection content cannot be read, determines that the first signal and the second signal are in an error relationship.

4. 2. The image inspection system according to claim 1, an input unit for receiving, from a user, input of defect information regarding a defect occurring during the execution of the inspection content; The analysis unit analyzes an execution log of a trigger, a command, or a result output related to the defect information, The display control unit displays on the display unit comments regarding the setting status of a trigger, command, or result output related to the defect information based on the analysis results of the defect information by the analysis unit.

5. 5. The image inspection system according to claim 4, The input unit displays candidates for defect information related to triggers, commands, or result output on the display unit, and accepts input of the defect information based on a user's selection operation of the candidates.

6. 2. The image inspection system according to claim 1, The display control unit causes the display unit to display, as a sample log, an execution log for when the multiple signals in an erroneous relationship are in a normal relationship based on the analysis results by the analysis unit.

7. 7. The image inspection system according to claim 6, An image inspection system, wherein the display control unit causes the display unit to display a sample log corresponding to the error identified by the analysis unit.

8. 2. The image inspection system according to claim 1, The display control unit, when the analysis unit determines that there are multiple error relationships in the execution log, sequentially displays on the display unit multiple timings on the time series that were the basis for the determination.

9. 2. The image inspection system according to claim 1, The display control unit, when the analysis unit determines that there are multiple error relationships in the execution log, simultaneously displays on the display unit multiple timings on the time series that were the basis for the determination.

Citation Information

Patent Citations

  • Test support system and image processing controller

    JP2009123070A