Code generation assistance device and code generation assistance program
The code generation assistant aligns shape data from multiple sensors into a common system, simplifying setup and processing by generating text codes, addressing the challenges of integrating multiple shape sensors and facilitating data alignment.
Patent Information
- Application Number
- CN202510588525.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2025-02-28
- Filing Date
- 2025-05-08
- Publication Date
- 2025-07-15
AI Technical Summary
When measuring the measured object from multiple directions using multiple shape sensors, how to effectively process and integrate multiple shape data becomes a problem, especially when combining multiple devices, it is difficult to use dedicated application software to perform appropriate shape data processing.
A code generation auxiliary device and a program are provided. The receiving unit receives shape data, the correction unit corrects each shape data to a common coordinate system, the setting unit sets measurement elements and items, the execution unit executes measurement items, and generates a display screen through the screen generation unit. The corrected shape data can be displayed in two-dimensionally and/or three-dimensionally, and the display mode can be switched for easy operation.
The simplified measurement and setting operation of shape data obtained from multiple shape sensors is realized, reducing the need for independent programs and improving the efficiency and accuracy of data processing.
Smart Images

Figure CN120315698A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a code generation support device and a code generation support program for assisting in the generation of codes for measuring and processing shape data obtained from a shape sensor that measures the shape of a measurement object. Background Art
[0002] For example, a light cutting type optical displacement measurement system is disclosed in Patent Document 1. The optical displacement measurement system of Patent Document 1 includes a light projecting unit that irradiates slit light onto a measurement object and a light receiving unit that receives the slit light reflected from the measurement object. By relatively moving the measurement object with respect to the light projecting unit and the light receiving unit, a plurality of contours are generated corresponding to each position in the moving direction, and three-dimensional data representing the three-dimensional shape of the measurement object is generated by synthesizing the generated plurality of contours.
[0003] By using an optical displacement measurement system such as that of Patent Document 1, it is possible to perform an appearance inspection of a measurement object. When measuring and inspecting a measurement object using an optical displacement measurement system, it is necessary to appropriately process the shape data. In order to appropriately process the shape data, it is considered to use a dedicated application software corresponding to the optical displacement measurement system.
[0004] However, for example, in the case of combining multiple devices, etc., it is sometimes difficult to use dedicated application software. Therefore, for example, the user needs to create independent programs for each device involved in the combination, but it is not easy to create an appropriate processing program according to the measurement content for the shape data representing the three-dimensional shape.
[0005] In addition, since many measurement objects have a three-dimensional shape, it is considered that it is easier to grasp the shape of the measurement object by measuring the measurement object from multiple directions not only by one shape sensor but by multiple shape sensors.
[0006] However, in the case where the measurement object is measured from multiple directions by multiple shape sensors, a plurality of shape data corresponding to the multiple shape sensors are obtained, and thus how to present them to the user becomes a problem.
[0007] Patent Document 1: Japanese Unexamined Patent Application Publication No. 2022-138028 Summary of the Invention
[0008] The present disclosure has been made in view of this point, and an object thereof is to provide a code generation support device and a code generation support program that can easily and appropriately perform a measurement setting operation for shape data obtained from multiple shape sensors.
[0009] To achieve the above object, in one aspect of the present disclosure, it is premised on an auxiliary device for code generation of an inspection device. The auxiliary device for code generation of the inspection device includes: a receiving unit that receives shape data; a correction unit that corrects the shape data corresponding to each shape sensor so that the shape data becomes a common coordinate system based on correction values corresponding to the position and orientation of each shape sensor among a plurality of shape sensors; a setting unit that sets one or more measurement elements and a measurement item using the one or more measurement elements; an execution unit that determines the one or more measurement elements set by the setting unit for the shape data received by the receiving unit and executes an inspection of the measurement item using the one or more measurement elements set by the setting unit; a code generation unit that determines the one or more measurement elements for the shape data and generates a text code for executing an inspection of the measurement item using the one or more measurement elements; and a screen generation unit that generates a display screen having a first display area and a second display area, and is capable of switching the display mode of simultaneously displaying the shape data corresponding to the plurality of shape sensors and the display mode of displaying individual shape data among the plurality of shape data for the display object in the first display area. The first display area two-dimensionally and / or three-dimensionally displays the shape data corrected to a common coordinate system by the correction unit, and displays the one or more measurement elements on the shape data. The second display area displays a cross-sectional shape of the shape data.
[0010] According to this configuration, when the plurality of shape sensors respectively acquire shape data, the shape data corresponding to each shape sensor is corrected by the correction unit so that the shape data becomes a common coordinate system. The measurement elements are determined for the shape data and an inspection of the measurement item is executed. Since a text code for executing the inspection of the measurement item is generated by the code generation unit, the user does not need to create an independent program, and the measurement setting operation becomes easy.
[0011] In addition, the shape data corrected to a common coordinate system by the correction unit can be displayed two-dimensionally and / or three-dimensionally, and the measurement elements can be displayed on the shape data, and the cross-sectional shape of the shape data can also be displayed. Furthermore, it is also possible to switch the display mode of simultaneously displaying the shape data corresponding to the plurality of shape sensors and the display mode of displaying individual shape data among the plurality of shape data.
[0012] In addition, in other aspects of the present disclosure, it is also possible to assume a code generation assistance program. The code generation assistance program causes a computer to perform the following processes: receiving shape data; correcting the shape data corresponding to each shape sensor based on correction values corresponding to the position and orientation of each shape sensor of a plurality of shape sensors; setting one or more measurement elements and measurement items using the one or more measurement elements; for the received shape data, determining the set one or more measurement elements and performing an inspection of the set measurement items using the one or more measurement elements; for the shape data, determining the one or more measurement elements and generating a text code for performing an inspection of the measurement items using the one or more measurement elements; and generating a display screen having a first display area and a second display area, and capable of switching the display mode of simultaneously displaying a plurality of shape data corresponding to the plurality of shape sensors and the display mode of displaying individual shape data among the plurality of shape data for a display object in the first display area, the first display area two-dimensionally and / or three-dimensionally displaying the corrected shape data and displaying the one or more measurement elements on the shape data, and the second display area displaying a cross-sectional shape of the shape data.
[0013] According to the technology of the present disclosure, it is possible to easily and appropriately perform a measurement setting operation for shape data obtained from a plurality of shape sensors. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a schematic diagram for explaining the structures of the main measurement system and the sub-measurement system of the present embodiment.
[0015] Figure 2 is a diagram for explaining the relationship between the text code and a library.
[0016] Figure 3 is a block diagram showing the structure of the main measurement device.
[0017] Figure 4 is a flowchart showing the process from the input of shape data to the code generation process.
[0018] Figure 5 is a flowchart showing the operation process required for the user.
[0019] Figure 6 is a diagram showing an example of the screen displayed on the display unit in the first stage.
[0020] Figure 7 is a diagram showing an example of the installation state of a plurality of measurement heads.
[0021] Figure 8 is a diagram showing an example of the image synthesis screen.
[0022] Figure 9 It is a diagram showing an example of a connection setting screen.
[0023] Figure 10 It is a diagram showing an example of a calibration screen displayed during calibration.
[0024] Figure 11 It is a diagram showing an example of an image acquisition screen.
[0025] Figure 12 It is a diagram showing an example of an image synthesis setting screen.
[0026] Figure 13 It is a diagram showing an example of a main screen.
[0027] Figure 14 It is a diagram showing an example of a main screen in a state where measurement elements and measurement items are set.
[0028] Figure 15 It is a diagram showing an example of a text code generation window.
[0029] Figure 16 It is a diagram showing an example of an information output window.
[0030] Figure 17 It is a diagram showing an example of a text code display window.
[0031] Figure 18 It is a flowchart showing the process of text code generation.
[0032] Figure 19 It is a block diagram showing the structure of an auxiliary measurement device. Detailed implementation mode
[0033] Hereinafter, embodiments of the present invention will be described in detail based on the drawings. In addition, the description of the following preferred embodiments is essentially just an illustration and is not intended to limit the present invention, its applications, or its uses. For example, the relative sizes and positional relationships of the respective components shown in the drawings are for illustrating one embodiment and do not limit the present invention.
[0034] The code generation auxiliary device according to an embodiment of the present invention is, for example, assembled in a measurement system for measuring the shape of a measurement object W. In addition, the code generation auxiliary device is used to assist the setting operation of a measurement device included in another measurement system so that the shape of the measurement object W is measured in the other measurement system. In the description of the present embodiment, the measurement system including the structure of the code generation auxiliary device is referred to as the main measurement system, and the other measurement system including the auxiliary object (measurement device) of the setting operation is referred to as the auxiliary measurement system.
[0035] AsFigure 1 As shown, the main measurement system 1 according to the present embodiment can measure the shapes of a plurality of measurement objects W sequentially conveyed by a conveying device such as a belt conveyor, etc., and can inspect the measurement objects W. The main measurement system 1 includes a measurement head 11 as an example of a shape sensor, a display unit 13, an operation unit 14, and a main measurement device 20. The shape sensor is not limited to the measurement head 11, and may be, for example, a three-dimensional profiler or a three-dimensional image sensor.
[0036] The measurement head 11 is arranged to face the measured surface of the measurement object W. The measurement head 11 has a light projecting unit and a light receiving unit (not shown). The light projecting unit of the measurement head 11 irradiates the measurement object W conveyed by the conveying device with a strip-shaped measurement light extending in one direction. The light receiving unit of the measurement head 11 receives the measurement light reflected by the measurement object W and outputs the light reception amount distribution. The light receiving unit of the measurement head 11 is connected to the main measurement device 20. In the main measurement device 20, shape data representing the three-dimensional shape of the measurement object W is generated based on the light reception amount distribution output from the measurement head 11.
[0037] The shape data representing the three-dimensional shape of the measurement object W includes plane position information according to a plane coordinate system predetermined for the measurement head 11 and height information corresponding to each plane position in the plane coordinate system. The shape data representing the three-dimensional shape of the measurement object W, as the plane position information according to the plane coordinate system, may also be composed of the XY coordinates of each point in a lattice-like point array and the Z coordinates corresponding to each point array. Since the point arrays in the shape data representing the three-dimensional shape of the measurement object W are arranged in a lattice-like manner, they are arranged at equal intervals in the X direction and also at equal intervals in the Y direction. At this time, the interval in the X direction and the interval in the Y direction may be the same or different. In addition, in addition to the plane position information and the height information, the shape data representing the three-dimensional shape of the measurement object W may also include brightness information, etc., corresponding to each plane position.
[0038] The main measurement device 20 is an example of the code generation auxiliary device according to the embodiment of the present invention. The main measurement device 20 is composed of, for example, a personal computer, and includes a receiving unit 21, a storage unit 22, and a control unit 23. The receiving unit 21 has, for example, various communication interfaces and memories, etc., and is the part that receives the shape data of the measurement object W output from the measurement head 11. Specifically, the receiving unit 21 receives the light reception amount distribution output from the measurement head 11, generates contour data based on the received light reception amount distribution, and temporarily stores the generated contour data.
[0039] The storage unit 22 is constituted by a recording medium such as a non-volatile memory, a hard disk, etc. The code generation assistance program of the embodiment of the present invention is stored in the storage unit 22. The code generation assistance program is a program that generates and outputs setting assistance information for assisting various setting operations of the sub-measurement devices 20A, 20B, ... described later.
[0040] For example, inspection data, etc. is also stored in the storage unit 22. The inspection data includes, for example, text codes, libraries, reference images, calibration data, etc. The storage unit storing the inspection data and the storage unit storing the code generation assistance program may be different.
[0041] The control unit 23 includes, for example, a CPU (Central Processing Unit) 23a, a ROM (Read Only Memory) 23b, a RAM (Random Access Memory) 23c, etc. The RAM 23c is used as a work area when the CPU 23a of the control unit 23 operates. For example, a system program is stored in the ROM 23b. The CPU 23a executes multiple processes by the personal computer by executing the code generation assistance program stored in the storage unit 22. That is, the code generation assistance program is a program for causing a computer to execute multiple processes. When the CPU 23a executes the code generation assistance program, various functional units for generating setting assistance information are implemented. In addition, the code generation assistance program may not be stored in the storage unit 22, but may be stored in the ROM 23b of the control unit 23. Additionally, the code generation assistance program can be provided, for example, in a state stored in a recording medium 29 such as a CD-ROM, a USB memory, etc. In this case, the code generation assistance program stored in the recording medium 29 can be installed in the storage unit 22, the ROM 23b for use. Also, the code generation assistance program can be installed in an external server. In this case, the external server can also become an element constituting a part of the code generation assistance device.
[0042] The display unit 13 is constituted by, for example, an organic EL (Electro-Luminescence) panel, an LCD (Liquid Crystal Display) panel, etc. The display unit 13 is connected to the main measurement device 20. The display unit 13 may be included in the main measurement device 20 or may not be included in the main measurement device 20. Additionally, the operation unit 14 includes, for example, pointing devices such as a keyboard, a mouse, etc. The operation unit 14 is constituted by a device operated by a user and is connected to the main measurement device 20. The main measurement device 20 detects the operation status of the operation unit 14 and reflects it in each process.
[0043] In Figure 1 a plurality of sub-measurement systems 1A, 1B, ... are shown. Since the plurality of sub-measurement systems 1A, 1B, ... have the same structure, the structure of the sub-measurement system 1A will be described below.
[0044] The sub-measurement system 1A includes a measurement head 11 and a sub-measurement device 20A. The measurement head 11 of the sub-measurement system 1A has the same structure as the measurement head 11 of the main measurement system 1. The sub-measurement device 20A can be configured by the same personal computer as the main measurement device 20. In addition, the code generation assistance program is not stored in the storage unit of the sub-measurement device 20A.
[0045] The main measurement device 20 generates and outputs setting assistance information based on the user's operation by executing the code generation assistance program. In the sub-measurement device 20A, various settings related to the measurement of the measurement object W are performed using the setting assistance information output from the main measurement device 20 of the main measurement system 1. In the sub-measurement device 20A after the setting using the setting assistance information, a predetermined measurement or inspection of the shape of the measurement object W is performed based on the shape data obtained from the measurement head 11.
[0046] The sub-measurement device 20A is connected to an external device 2A. The external device 2A is constituted by, for example, a PLC (Programmable Logic Controller) or the like. The measurement result or inspection result of the sub-measurement device 20A is sent to the external device 2A. Similarly to the sub-measurement device 20A, an external device 2B is also connected to the sub-measurement device 20B.
[0047] The setting assistance information generated by the main measurement device 20 includes a text code (source code), a library, reference shape data, and calibration data. The text code is data generated by the main measurement device 20 based on the user's operation. The library is, for example, data prepared in advance by the manufacturer of the main measurement device 20. The reference shape data is the shape data of the measurement object W mainly used when generating the text code in the main measurement device 20.
[0048] Here, based on Figure 2 A summary of the relationship between the text code and the library will be described. Figure 2 is a diagram for explaining the relationship between the text code and the library. The library includes a plurality of processing programs that can respectively appropriately perform a plurality of predetermined processes on the shape data of the measurement object W. The library can be provided, for example, in the form of a DLL (Dynamic Link Library) file. The plurality of processing programs of the library in this example include processing programs classified into 3 groups (the first group GR1, the second group GR2, and the third group GR3). In addition, since the text code can be easily changed by the user, for example, in order to perform an inspection, it is easy to combine and use a plurality of different types of measurement devices and image processing devices, etc.
[0049] The plurality of processing programs classified into the first group GR1 are used to respectively determine various geometric shape parts according to the shape data of the measurement object W, and exist according to each type (geometric element) of the geometric shape. Geometric elements include, for example, points, lines, planes, and circles, etc. InFigure 2 In the example shown, "point determination processing program", "line determination processing program", "plane determination processing program", etc. are listed.
[0050] A plurality of processing programs classified as the second group GR2 are used to perform various measurements on the shape of the measurement object W according to the shape data of the measurement object W, and exist according to the type (measurement item) of each measurement. Measurement items include, for example, height, flatness, area, distance, and angle, etc. In Figure 2 In the example shown, "height calculation processing program", "flatness calculation processing program", "area calculation processing program", etc. are listed.
[0051] A plurality of processing programs classified as the third group GR3 are used to perform position correction on the shape data of the measurement object W by various methods, and exist according to each position correction method. The position correction method includes a correction method based on pattern matching. In Figure 2 In the example shown, "pattern matching processing program" is listed. Position correction includes correction of the position in the plane coordinate system. In addition, position correction may include correction of the rotational posture in the plane coordinate system in addition to the correction of the position in the plane coordinate system. In addition, position correction may include correction of the position in the height coordinate system corresponding to the height information in addition to the correction of the position in the plane coordinate system. Also, position correction may include correction of the posture (three-dimensional posture) in the three-dimensional coordinate system including the plane coordinate system and the height coordinate system. In addition, the number of processing programs classified as the third group GR3 may be 1.
[0052] The text code includes character information (processing program information described later) indicating the processing programs that should be called from the library in order to determine one or more geometric elements or perform one or more measurements according to the shape data. This character information may also be information indicating a "function" required for the processing of determining one or more geometric elements or performing one or more measurements.
[0053] In addition, the text code includes character information (designation information described later) indicating parameters, etc. required for determining one or more geometric elements or performing one or more measurements. This character information may also be information indicating an "argument" related to the above "function" used for determining one or more geometric elements or performing one or more measurements. In Figure 2 In the example shown, as the character information i11, i12, i13, i14 included in the text code, "plane determination", "information required for plane determination", "height calculation", and "information required for height calculation" are shown.
[0054] According to the text code, by reading in character information i11 such as "Determination of Plane", the "Plane Determination Handler" can be selected and called from multiple handlers in the library. In addition, based on the called "Plane Determination Handler" and character information i12 including the content of "Information Required for Plane Determination", the desired plane portion of the measurement object W can be determined.
[0055] Furthermore, according to the text code, by reading in character information i13 such as "Calculation of Height", the "Height Calculation Handler" can be selected and called from multiple handlers in the library. In addition, based on the called "Height Calculation Handler" and character information i14 including the content of "Information Required for Height Calculation", the height of the desired portion of the measurement object W can be measured according to the shape data of the measurement object W.
[0056] Figure 3 is a block diagram of the main measurement device 20 of the main measurement system 1. The main measurement device 20 of the main measurement system 1 includes a screen generation unit 33, an execution unit 34, an output unit 35, a reception unit 36, a code generation unit 37, a measurement setting generation unit 38, and a calibration data generation unit 39. The screen generation unit 33, the execution unit 34, the output unit 35, the reception unit 36, the code generation unit 37, the measurement setting generation unit 38, and the calibration data generation unit 39 are implemented by the CPU 23a of the control unit 23 ( Figure 1 as shown) executing the code generation assistance program stored in the storage unit 22. When the code generation assistance program is composed of multiple program modules, the screen generation unit 33, the execution unit 34, the output unit 35, the reception unit 36, the code generation unit 37, the measurement setting generation unit 38, and the calibration data generation unit 39 can be respectively composed of a single program module or multiple program modules. A part or all of the screen generation unit 33, the execution unit 34, the output unit 35, the reception unit 36, the code generation unit 37, the measurement setting generation unit 38, and the calibration data generation unit 39 can be composed of hardware or a combination of hardware and software.
[0057] Figure 4It is a flowchart showing the process of the main measurement system 1 from the input of shape data to the execution of code generation processing. In step S1, the main measurement system 1 sequentially measures the shapes of a plurality of measurement objects W conveyed by a conveying device provided with an encoder, for example. That is, the receiving unit 21 of the main measurement system 1 can grasp the moving distance in the conveying direction of each measurement object W conveyed by the conveying device based on the output from the encoder of the conveying device. The receiving unit 21 receives the contour data (hereinafter, also referred to as shape data) output from the measurement head 11 of the shape sensor every time each measurement object W moves a predetermined distance (set pitch amount) based on the output from the encoder of the conveying device. This process of receiving shape data is executed by a computer through a code generation assistance program. The receiving unit 21 generates a height image based on the received plurality of contour data. Here, the height image is shape data in which each pixel two-dimensionally arranged on a reference plane has a height in the vertical direction of the reference plane as a pixel value. The height direction is preset with respect to the measurement head 11 of the shape sensor. Therefore, shape data such as contour data and height images are represented by the local coordinate system of each shape sensor. The height image generated by the receiving unit 21 is a composite object height image. This composite object height image is sent from the receiving unit 21 to the screen generation unit 33, the execution unit 34, and the output unit 35. In addition, the receiving unit 21 may generate point group data in which each point constituting the shape data has arbitrary three-dimensional space coordinates based on the received plurality of contour data.
[0058] In addition, the receiving unit 21 can receive, for example, contour data output from a three-dimensional profiler, contour data output from a three-dimensional image sensor, three-dimensional CAD data, etc. in addition to the contour data output from the measurement head 11 to generate a height image. The contour data output from the three-dimensional profiler, the contour data output from the three-dimensional image sensor, the three-dimensional CAD data, etc. are also included in the shape data.
[0059] Figure 5 It is a flowchart showing the operation process required for the user when the main measurement system 1 executes code generation processing from the input of shape data. In step S11, the user specifies the input source of the shape data and the input conditions of the shape data, etc. This is called the first stage.
[0060] In the first stage, the screen generation unit 33 generates Figure 6An input source specifying screen 500 as shown is displayed on the display unit 13. In the input source specifying screen 500, as buttons for specifying the input source of the shape data, a first button 501 for inputting the shape data output from the measurement head 11 and a second button 502 for inputting the shape data from a file stored in the storage unit 22 or the like are provided. When the user operates the first button 501, the receiving unit 21 inputs the shape data output from the measurement head 11. On the other hand, when the user operates the second button 502, the receiving unit 21 inputs the shape data from the file. This input process is the process executed in step S1 of the flowchart shown in Figure 4 Step S1 shown.
[0061] In step S2, it is determined whether the main measurement system 1 performs position correction of the shape data. That is, for example, as shown in Figure 7 When the columnar measurement object W is axially conveyed by the conveying device, the shape data of the measurement object W may be measured by the first measurement head 11A of the shape sensor, the second measurement head 11B of the shape sensor, the third measurement head 11C of the shape sensor, and the fourth measurement head 11D of the shape sensor. The first measurement head 11A, the second measurement head 11B, the third measurement head 11C, and the fourth measurement head 11D are arranged at arbitrary intervals, for example, at equal intervals, in the circumferential direction of the measurement object W so as to surround the periphery of the measurement object W. By setting it to such a state, the shape of the entire circumference of the measurement object W can be measured by the first measurement head 11A, the second measurement head 11B, the third measurement head 11C, and the fourth measurement head 11D.
[0062] When measuring the measurement object W using a plurality of measurement heads 11A to 11D, it is necessary to correct the coordinate systems of the shape data corresponding to each of the measurement heads 11A to 11D. This process is a process of correcting the shape data corresponding to each of the measurement heads 11A to 11D according to the correction values corresponding to the position postures of each of the measurement heads 11A to 11D of the plurality of shape sensors so that the coordinate systems of the shape data are the same, and is executed by a computer through a code generation assistance program. The correction data generation unit 39 generates correction data corresponding to the postures in the height direction of each shape data, the orientation in the reference plane, and the common coordinates of each shape sensor corresponding to each shape data. In addition, the correction data generation unit 39 generates correction data in which the origin position of each shape data corresponds to the position in the common coordinates of each shape sensor corresponding to each shape data. The correction data generation unit 39 can generate not only the origin position and the orientation in the reference plane, but also correction data for processing shape data with different height directions in common coordinates. By synthesizing shape data with different height directions with each other, a shape of the entire circumference can be obtained from the contour data and the height image that have only a single value in the height direction.
[0063] Specifically, inFigure 5 In step S12 of the flowchart shown, the user designates a correction method for the input shape data, etc. The operation stage of the user on the main measurement device 20 at this time is referred to as the second stage. When the first stage is completed, the second stage is entered.
[0064] In Figure 4 In step S2 of the flowchart shown, the main measurement system 1 determines whether a correction method for the shape data has been designated in the second stage. If the correction method for the shape data has not been designated, step S3 is skipped and step S4 is entered. If the correction method for the shape data has been designated, step S3 is entered.
[0065] In step S3, the correction data generation unit 39 of the main measurement system 1 performs a correction setting process using a calibration tool. The correction data generation unit 39 corrects the shape data corresponding to each measurement head 11 based on the correction values corresponding to the position and orientation of each measurement head 11 of the plurality of measurement heads 11, and uses the calibration tool during this correction.
[0066] Figure 8 An image synthesis screen 510 displayed on the display unit 13 is shown in the case of correcting the shape data corresponding to each of the measurement heads 11A to 11D using a calibration tool. The image synthesis screen 510 is generated by the screen generation unit 33 and displayed on the display unit 13.
[0067] On the image synthesis screen 510, a step display area 511 for displaying processing steps, a calibration file selection area 512, an image display area 513 for displaying measurement images, a contour display area 514, and a head number designation area 515 for designating the number of measurement heads 11 used for image synthesis are provided.
[0068] In Figure 8 In the example shown, the process of selecting a calibration file is shown, so "File Selection" is highlighted in the step display area 511. In the calibration file selection area 512, the user can, by operating the operation unit 14, accept the operation of selecting a desired calibration file and opening the selected calibration file. The correction data generation unit 39 performs the process of opening the calibration file selected in the calibration file selection area 512.
[0069] The calibration file can be generated by executing the calibration tool. When executing the calibration tool, a calibration workpiece W1 in the shape of a regular hexagonal prism is prepared in a manner that is displayed in the image display area 513, and a first measurement head 11A, a second measurement head 11B, a third measurement head 11C, and a fourth measurement head 11D of a plurality of shape sensors are arranged so as to surround the calibration workpiece W1. The installation positions of the first measurement head 11A, the second measurement head 11B, the third measurement head 11C, and the fourth measurement head 11D are the installation positions during operation.
[0070] An image obtained by synthesizing the shape data measured by the first measurement head 11A, the second measurement head 11B, the third measurement head 11C, and the fourth measurement head 11D is displayed in the contour display area 514. This image is generated by the correction data generation unit 39.
[0071] In the head number specification area 515, the user can operate the operation unit 14 to input the number of measurement heads 11 to be used when synthesizing the shape data. In this example, the shape data measured by 4 measurement heads 11, namely the first measurement head 11A, the second measurement head 11B, the third measurement head 11C, and the fourth measurement head 11D, is synthesized, so "4" is input. The input number is acquired by the correction data generation unit 39.
[0072] Figure 9 Indicates the state of "Connection Setting" after entering "File Selection". When the user operates Figure 8 the next button 510a, it enters "Connection Setting" from "File Selection". In the step display area 511, "Connection Setting" is emphasized and displayed. In the connection setting, the screen generation unit 33 generates a connection setting screen 516 and displays it on the display unit 13. In the connection setting screen 516, the 4 measurement heads 11A, 11B, 11C, and 11D are represented by "A", "B", "C", and "D" respectively. In the connection setting screen 516, it is possible to set the IP address, set the port number, and input connection information for each of the 4 measurement heads 11A, 11B, 11C, and 11D respectively. In addition, in the connection setting screen 516, the setting angle can be input for each of the 4 measurement heads 11A, 11B, 11C, and 11D. The correction data generation unit 39 acquires the information set in the connection setting screen 516.
[0073] Here, the generation process of the calibration file will be described. The generation process of the calibration file is the process in the second stage of step S12 shown in Figure 5 the figure. Figure 10FIG. 0 is a diagram showing an example of a calibration screen 600 displayed during calibration. The calibration screen 600 is generated by a screen generation unit 33 and displayed on a display unit 13. In the calibration screen 600, a calibration step display area 601 for displaying steps of a calibration process, a contour display area 602, and a correction value display area 603 are provided.
[0074] In the contour display area 602, an image obtained by synthesizing shape data measured by a first measurement head 11A, a second measurement head 11B, a third measurement head 11C, and a fourth measurement head 11D used during synthesis is displayed. This image is generated by a correction data generation unit 39.
[0075] In the correction value display area 603, correction values corresponding to the position postures of the respective measurement heads 11A, 11B, 11C, 11D of the plurality of measurement heads 11A, 11B, 11C, 11D are displayed. The calibration screen 600 having the correction value display area 603 for displaying the correction values is an example of a correction value display screen.
[0076] The correction values are calculated by a correction data generation unit 39. For example, the lengths of the respective sides of a calibration workpiece W1 are known, and in addition, since the calibration workpiece W1 is a regular hexagonal prism, the angle formed by two adjacent sides is also known. The correction data generation unit 39 acquires this geometric information of the calibration workpiece W1.
[0077] In addition, the correction data generation unit 39 acquires shape data measured by the respective measurement heads 11A, 11B, 11C, 11D. The correction data generation unit 39 calculates correction values for the positional relationships of the measurement heads 11A, 11B, 11C, 11D based on the geometric information of the calibration workpiece W1 so that the shape data measured by the respective measurement heads 11A, 11B, 11C, 11D is consistent with the shape of the calibration workpiece W1. Specifically, the correction data generation unit 39 calculates the offset value in the X direction, the offset value in the Z direction, and the θ angle of each of the measurement heads 11A, 11B, 11C, 11D. This calculation process is executed when an automatic calculation button 600a provided in the calibration screen 600 is operated by a user. After the correction data generation unit 39 calculates the correction values corresponding to the position postures of the respective measurement heads 11A, 11B, 11C, 11D through a calibration tool, the calculated correction values are displayed in the correction value display area 603. The correction data generation unit 39 automatically corrects the shape data corresponding to the respective measurement heads 11A, 11B, 11C, 11D based on the calculated correction values.
[0078] The calibration data generation unit 39 accepts the adjustment of the calibration value displayed in the calibration value display area 603. For example, when the alignment accuracy is low in the result of automatic calibration, if the user operates the operation unit 14 to perform an operation of adjusting the calibration value displayed in the calibration value display area 603, the calibration value reflecting the adjustment is displayed in the calibration value display area 603. Then, the calibration data generation unit 39 obtains the adjusted calibration value. Since the calibration data generation unit 39 uses the obtained adjusted calibration value in each process, it is possible to confirm whether the alignment accuracy has improved using the calibration value adjusted by the user.
[0079] The calibration data generation unit 39 is configured to be able to write the calculated calibration value as binary. The data including the calculated calibration value is used as calibration data. A save button 600b is provided on the calibration screen 600. When the save button 600b is operated, the calibration data generation unit 39 writes the calibration data as data to be used together with the output code. The output code written by the calibration data generation unit 39 can be saved in the storage unit 22, for example, or saved in an external device. This becomes a calibration file.
[0080] Figure 11 Indicates the state of "image acquisition" after entering "connection settings". When the user operates Figure 9 the next button 510b, it progresses from "connection settings" to "image acquisition". "Image" corresponds to the shape data. "Image acquisition" is highlighted in the step display area 511. During image acquisition, the screen generation unit 33 generates an image acquisition screen 517 and displays it on the display unit 13. An image acquisition start button 517a for starting to acquire shape data, an image acquisition stop button 517b for stopping the acquisition of shape data, and a shape data display area 517c are provided on the image acquisition screen 517.
[0081] When the image acquisition start button 517a is operated, the shape data obtained by the first measurement head 11A, the second measurement head 11B, the third measurement head 11C, and the fourth measurement head 11D of the plurality of shape sensors is displayed in the shape data display area 517c. Here, the shape data such as the contour data and the height image obtained by the shape sensor has a single height data at each measurement point on the reference line and the reference plane, but only the measurement points that obtain valid height data may be displayed in the shape data display area 517c. The valid height data is, for example, the height data obtained by removing the background, etc. from the height data in the height range where the measurement object exists, the height data determined to be normal in comparison with the height data of the surrounding measurement points, the height data when the shape sensor is an optical sensor and the measurement light amount is sufficient, etc. The shape data display area 517c is divided into four, and the shape data obtained by the first measurement head 11A, the second measurement head 11B, the third measurement head 11C, and the fourth measurement head 11D can be respectively displayed. Thus, the shape data obtained by the first measurement head 11A, the second measurement head 11B, the third measurement head 11C, and the fourth measurement head 11D can be confirmed.
[0082] Figure 12 Shows the state of "Image Composition Settings" after entering "Image Acquisition". When the user operates Figure 11 the next button 510c, it enters from "Image Acquisition" to "Image Composition Settings". In Figure 12 the step display area 511, "Image Composition Settings" is highlighted. In the image composition settings, the screen generation unit 33 generates an image composition setting screen 520 and displays it on the display unit 13.
[0083] In the image composition setting screen 520, there are a composite image display area 521 and a composite setting display area 522. In the composite image display area 521, a composite image obtained by combining the plurality of shape data displayed in Figure 11 the shape data display area 517c is displayed. This composite image is an image based on the shape data corrected by the correction data generation unit 39 and is generated by the screen generation unit 33. In the composite setting display area 522, the X-direction offset value, the Y-direction offset value, the θ angle, and the Z-direction offset value of the first measurement head 11A, the second measurement head 11B, the third measurement head 11C, and the fourth measurement head 11D are displayed as the setting values for image composition. If the reset button 520a provided on the image composition setting screen 520 is operated, the setting values for image composition are reset.
[0084] If the user operates the image composition button 520b provided on the image composition setting screen 520, the screen generation unit 33 generates Figure 13The main screen (display screen) 700 shown is displayed on the display unit 13. The main screen 700 has a first display area 710 and a second display area 720. The first display area 710 is an area for two-dimensional and / or three-dimensional display of the shape data corrected by the correction data generation unit 39. The first display area 710 and the second display area 720 may be arranged in the vertical direction as shown in Figure 13 , or may be arranged in the horizontal direction (not shown).
[0085] The first display area 710 of the present embodiment includes a shape data display unit 710a for displaying the shape data and an individual image display unit 710b for displaying the shape data measured by each measurement head 11. The shape data display unit 710a and the individual image display unit 710b may be arranged in the vertical direction as shown in Figure 13 , or may be arranged in the horizontal direction (not shown).
[0086] In the shape data display unit 710a, the shape data corrected by the correction data generation unit 39 is displayed two-dimensionally and / or three-dimensionally. An adjustment unit 710c for adjusting the viewing direction (view) of the displayed shape data is provided in the shape data display unit 710a. Since the viewing direction of the shape data is adjusted to the view adjusted by the adjustment unit 710c and is displayed on the shape data display unit 710a, the user can view the shape data of the measurement object W from the desired viewing direction.
[0087] Examples of the shape data displayed on the shape data display unit 710a include point group data composed of a large number of point groups. In this case, an image is provided in which the color of each point is changed according to the height. Thereby, the user can grasp the relative height of each part in the shape data.
[0088] A switching button 710e for switching between execution and non-execution of image synthesis is provided in the shape data display unit 710a. When the user operates the switching button 710e and image synthesis is executed, the synthesized shape data is displayed on the shape data display unit 710a. On the other hand, when the user operates the switching button 710e and image synthesis is not executed, only the shape data measured by the measurement head 11 selected from the four measurement heads 11A, 11B, 11C, and 11D is displayed two-dimensionally and / or three-dimensionally on the shape data display unit 710a.
[0089] That is, a selection acceptance area 710d for selecting any one of the four measurement heads 11A, 11B, 11C, and 11D is provided in the individual image display unit 710b. Figure 14It shows the state where "B" is selected, that is, the state where the second measurement head 11B is selected by the user. In this case, the switching button 710e is black. When an operation to not perform image synthesis is carried out, the screen generation unit 33 causes only the shape data measured by the second measurement head 11B to be displayed in two-dimensional and / or three-dimensional manners on the shape data display unit 710a. Although not shown, similarly, when "A" is selected, only the shape data measured by the first measurement head 11A is displayed in two-dimensional and / or three-dimensional manners on the shape data display unit 710a. When "C" is selected, only the shape data measured by the third measurement head 11C is displayed in two-dimensional and / or three-dimensional manners on the shape data display unit 710a. When "D" is selected, only the shape data measured by the fourth measurement head 11D is displayed in two-dimensional and / or three-dimensional manners on the shape data display unit 710a.
[0090] In this way, the screen generation unit 33 generates a display screen capable of switching between a display mode in which multiple shape data corresponding to the multiple measurement heads 11A, 11B, 11C, 11D are simultaneously displayed and a display mode in which individual shape data among the multiple shape data are displayed for the display object in the first display area 710. This process is executed by a computer through a code generation assistance program.
[0091] On the other hand, in the individual image display unit 710b, only the shape data measured by the measurement head 11 selected in the selection reception area 710d is displayed. In Figure 13 it shows the state where "A" is selected, that is, the state where the first measurement head 11A is selected by the user. In this case, only the shape data measured by the first measurement head 11A is displayed on the individual image display unit 710b. Similarly, when "B" is selected, only the shape data measured by the second measurement head 11B is displayed on the individual image display unit 710b. When "C" is selected, only the shape data measured by the third measurement head 11C is displayed on the individual image display unit 710b. When "D" is selected, only the shape data measured by the fourth measurement head 11D is displayed on the individual image display unit 710b.
[0092] In this way, the screen generation unit 33 displays a selection reception area 710d for accepting the selection of any one of the multiple measurement heads 11A, 11B, 11C, 11D in the first display area 710. And the screen generation unit 33 displays the shape data obtained by one measurement head 11 accepted in the selection reception area 710d as individual shape data on the individual image display unit 710b.
[0093] In addition, the screen generation unit 33 generates a screen that three-dimensionally displays, in a thumbnail form, the shape data corrected by the correction data generation unit 39 in a third display area 730 outside the first display area 710 and the second display area 720. The third display area 730 generated by the screen generation unit 33 can be set, for example, below the first display area 710, below the second display area 720, etc., and becomes a region smaller than the first display area 710 and the second display area 720. By displaying the shape data in a thumbnail form in the third display area 730, the user can easily grasp the approximate shape of the measurement object W.
[0094] As Figure 14 shown, the cross-sectional shape of the shape data corrected by the correction data generation unit 39 is displayed in the second display area 720. The setting of measurement elements and the setting of measurement items can be performed on the second display area 720. The setting of the measurement elements and the measurement items is Figure 5 the third stage shown. The third stage corresponds to Figure 4 the determination in step S4 in the flowchart shown. When the measurement conditions are set, the process proceeds to step S5, and the setting process of the measurement conditions is started. This setting process is a process of setting one or more measurement elements and measurement items using the one or more measurement elements, and is executed by a computer through a code generation assistance program.
[0095] On the other hand, when the measurement conditions are not set, the process proceeds to step S6 to determine whether to perform position correction of the shape data. When performing position correction of the shape data, the process proceeds to step S3.
[0096] Step S5 can be executed by the measurement setting generation unit (setting unit) 38. That is, in the state where the cross-sectional shape is displayed in the second display area 720 as Figure 14 shown, the measurement setting generation unit 38 sets one or more measurement elements and measurement items using the one or more measurement elements for the cross-sectional shape of the shape data displayed in the second display area 720.
[0097] In Figure 14 the example shown, the measurement object W is a pipe having an arc-shaped wall portion. Therefore, as the measurement element, "circle" is set as shown by the dotted line L1. The measurement item is distance. Specifically, the diameter of the circle as the measurement element is set as the measurement item. In addition to Figure 14 the example shown, as the measurement element, for example, a plane can also be set. As the measurement item, height, flatness, area, angle, etc. can also be set.
[0098] In the individual image display unit 710b of the first display area 710, one or more measurement elements set by the measurement setting generation unit 38 are displayed on the shape data. The measurement elements set by the measurement setting generation unit 38 are shown by a solid line L2 in the individual image display unit 710b. Thus, the position and range of the measurement elements can be confirmed by looking down.
[0099] When the measurement element is a circle and the measurement item is distance, shape data measured by four measurement heads 11A, 11B, 11C, and 11D is required. Therefore, the screen generation unit 33 causes the first display area 710 to display an image obtained by synthesizing the shape data measured by the four measurement heads 11A, 11B, 11C, and 11D. In addition, when the measurement element is a plane and the measurement item is height, and the plane is set at a position that can be measured only by the first measurement head 11A, the screen generation unit 33 causes only the shape data measured by the first measurement head 11A to be displayed in the first display area 710. Similarly, when a measurement item is set at a position that can be measured only by the second measurement head 11B, the screen generation unit 33 causes the first display area 710 to display only the shape data measured by the second measurement head 11B. In addition, when a measurement item is set at a position that can be measured only by the third measurement head 11C, the screen generation unit 33 causes the first display area 710 to display only the shape data measured by the third measurement head 11C. And, when a measurement item is set at a position that can be measured only by the fourth measurement head 11D, the screen generation unit 33 causes the first display area 710 to display only the shape data measured by the fourth measurement head 11D. In this way, the screen generation unit 33 displays an image corresponding to the measurement item set by the measurement setting generation unit 38 in the first display area 710.
[0100] The execution unit 34 is a part that executes the inspection of the measurement item. Specifically, the execution unit 34 acquires the shape data received by the reception unit 21. The execution unit 34 determines one or more measurement elements set by the measurement setting generation unit 38 for the shape data received by the reception unit 21. The execution unit 34 executes the inspection of the measurement item using one or more measurement elements set by the measurement setting generation unit 38. This process is executed by the computer through the code generation assistance program.
[0101] For example, the execution unit 34 calculates the values of one or more measurement items of the measurement object W based on the shape data received by the reception unit 21 and the text codes and libraries stored in the storage unit 22. When the measurement item is an item for measuring a physical quantity, the execution unit 34 measures physical quantities such as height, flatness, and distance based on the measurement item.
[0102] As Figure 14As shown, the screen generation unit 33 displays the result display element (measurement result) 720a of the measurement element calculated by the execution unit 34 in the second display area 720. When the measurement item is distance, the result display element 720a is displayed in the second display area 720 in a manner combining a numerical value and a unit. The result display element 720a can be displayed overlapping the cross-sectional shape of the shape data displayed in the second display area 720, or can be displayed in a part other than the cross-sectional shape of the shape data.
[0103] In Figure 4 When the position correction of the shape data is not performed in step S6, the process proceeds to step S7. In step S7, it is determined whether to generate a text code. The determination in this step S7 is based on whether there is an instruction indicating the intention to generate a text code through the user's operation of the operation unit 14. Specifically, when the user operates the operation unit 14 to give a code generation instruction, it is determined in step S7 that a text code is to be generated and the process proceeds to step S8. On the other hand, when it is determined in step S7 that no text code is to be generated, the process proceeds to step S2.
[0104] In step S8, the code generation unit 37 generates a text code. This step S8 is Figure 5 the fourth stage of step S14 in the flowchart shown. The code generation unit 37 determines one or more measurement elements for the shape data and generates a text code for performing an inspection of a measurement item using the one or more measurement elements. This text code generation process is executed by a computer through a code generation assistance program.
[0105] The text code generation process is, for example, a process of generating a text code for setting auxiliary information based on the correction information set in the correction setting process in step S3, the measurement conditions set in the measurement condition setting process in step S5, etc. In this text code generation process, it also includes a process of outputting a library and reference shape data together with the text code, that is, a process of outputting setting auxiliary information. When the text code generation process ends, the code generation assistance process ends.
[0106] When the text code generation process starts, the screen generation unit 33 generates a text code generation window 750 as shown in Figure 15 and displays it on the display unit 13. In the text code generation window 750, there are a namespace input area 751, a folder input area 752, a file name input area 753, and a code generation button 754. The namespace input area 751 is an area for setting a namespace for the generated text code. The folder input area 752 is an input field for determining the address of a folder, etc., which is the save destination (output destination) of the generated text code. The file name input area 753 is an area for inputting the file name of the file for identifying the generated text code.
[0107] The user can input information corresponding to the generated text code in the namespace input area 751, folder input area 752, and file name input area 753 of the text code generation window 750. The multiple pieces of information input into the namespace input area 751, folder input area 752, and file name input area 753 of the text code generation window 750 can be referred to as file generation information.
[0108] The code generation button 754 is a button for indicating the generation of a file of text code. After the user inputs file generation information into the namespace input area 751, folder input area 752, and file name input area 753, the user operates the code generation button 754 via the operation unit 14. Then, the code generation unit 37 Figure 3 generates a file of text code with the desired file name in the desired folder in the storage unit 22 shown.
[0109] If the code generation button 754 is operated, the screen generation unit 33 generates Figure 16 the information output window 760 shown and displays it on the display unit 13. A string representing the file of text code, the library corresponding to the file, and the usage method of the corresponding reference shape data is displayed in the information output window 760.
[0110] In the information output window 760, in addition to the string representing the usage method, a text code display button 761 and an output button 762 are also displayed. The user can operate the output button 762 on the basis of confirming the usage method displayed in the information output window 760. If the output button 762 is operated, the information output window 760 is closed, and the set auxiliary information is output to a predetermined output destination.
[0111] The text code display button 761 of the information output window 760 is a button for causing the display unit 13 to display the content of the generated text code. If the text code display button 761 is operated, the screen generation unit 33 generates Figure 17 the text code display window 770 shown and displays it on the display unit 13. The text code generated by the code generation unit 37 is displayed in the text code display window 770. Thus, the user can confirm the content of the text code generated by the code generation unit 37 on the screen of the display unit 13. A close button 771 for closing the text code display window 770 is displayed in the text code display window 770.
[0112] Figure 18 is a flowchart showing the process of the text code generation process. When the text code generation process starts, in step S81, Figure 3 the receiving unit 36 ofFigure 15 It is performed by operating the text code generation window 750 shown.
[0113] In step S82, the acceptance unit 36 determines whether there is an instruction for a file to generate a text code. The determination in step S82 is performed, for example, based on Figure 15 whether the code generation button 754 of the text code generation window 750 shown is operated. In the case where there is no instruction for generating a file, the acceptance unit 36 repeats the process of step S82. On the other hand, in the case where there is an instruction for generating a file, it proceeds to step S83, and the code generation unit 37 generates a file of text code based on the file generation information accepted in step S81.
[0114] That is, in step S83, the code generation unit 37 generates character information representing a processing program to be called from the library as processing program information based on the information (types of measurement items) of a plurality of set measurement items. In addition, the code generation unit 37 generates character information representing parameters and the like obtained by the user's designation in association with each processing program information as designation information. Further, the code generation unit 37 combines the mutually related processing program information and designation information.
[0115] The library of the present embodiment includes a processing program for setting an input source of shape data (input source setting) or setting a process for generating shape data (shape data generation process setting). In the case of including such a processing program, the code generation unit 37 can include information indicating the input source of shape data and the input pitch of contour data as data input conditions in the text code. In addition, the library may not include a processing program for input source setting and shape data generation process setting. When the library does not include a processing program for input source setting and shape data generation process setting, the code generation unit 37 does not include information indicating the input source of shape data and the input pitch of contour data set by the user as data input conditions in the text code. Therefore, when setting the sub-measurement device 20A or the like, the user sets this information through an additional setting operation.
[0116] The library may also include a processing program related to the synthesis of shape data. In this case, when a plurality of synthesis conditions of shape data are set, the code generation unit 37 includes the synthesis conditions in the text code. In addition, the library may not include a processing program related to the synthesis of shape data. In this case, even if a plurality of synthesis conditions of shape data are set, the code generation unit 37 does not include the synthesis conditions in the text code.
[0117] The code generation unit 37 may also include information indicating the measurement result as measurement result information in the text code. According to the text code including the measurement result information, it is possible to easily grasp the measurement result that should be paid attention to. When the measurement result information is included in the text code, the code generation unit 37 processes the measurement result information as a structure in the text code.
[0118] Specifically, the measurement results can include information (values, units and item names) of each measurement item such as "peak height", "valley height", "average height", "maximum peak height", "minimum peak height", "maximum valley height", "minimum valley height", "maximum average height" and "minimum average height".
[0119] The value of each measurement item is a floating point type, and the unit and the project name are string types. In addition, the language of the project name can be selected in conjunction with the language used in the code generation auxiliary program, or a language different from the language used in the code generation auxiliary program can be selected. The code generation unit 37 can also determine the measurement results that should be paid attention to in the text code through a structure containing the measurement results of the values, units, and project names of each measurement item and an identifier for identifying the measurement items that should be paid attention to. For example, the measurement items that should be paid attention to can also be determined in the structure containing the measurement results of the values, units, and project names of each measurement item through an enumeration symbol (enum constant) of an enumeration type (enum type) as an identifier.
[0120] The library may include a processing program for executing a function, which takes an enumerator as an independent variable and returns a measurement result corresponding to the measurement item to be paid attention to from the structure of the enumeration type processing result. In addition, the function that returns the measurement result may also include a function that outputs the measurement result as a floating point value and a function that outputs the measurement result as a string representing a value with a unit such as "mm". Moreover, the function that returns the measurement result may also include a function that returns a string representing the project name with an enumerator as an independent variable. In this case, the code generation unit 37 can output an identifier such as an enumerator corresponding to the measurement item to be paid attention to, and generate a text code that uses the identifier to obtain the project name of the measurement item to be paid attention to and the value with a unit of the measurement result.
[0121] The library may also include a processing program for executing a process for displaying the measurement results. The processing program may also list the item names of the measurement items that should be paid attention to and the values of the measurement results with units. In addition, the library may also include a processing program for executing a function that takes the shape data, the area of the tool, and the measurement result of each area as arguments and returns image data that displays the measurement result of each area of the set tool on the two-dimensional shape data or the three-dimensional shape data.
[0122] In step S84,Figure 3 The screen generation unit 32 of Figure 3 displays the usage method of the setting assistance information ( Figure 16 as shown). In step S85, the receiving unit 36 determines whether there is an instruction to display the text code. The determination in step S85 is performed, for example, based on whether the text code display button 761 shown in Figure 16 is operated. If there is no instruction to display the text code, the process proceeds to step S87. On the other hand, if there is an instruction to display the text code, in step S86, the screen generation unit 32 causes the display unit 13 to display the text code as shown in Figure 17 . The display of the text code ends by operating the close button 771.
[0123] In step S87, the receiving unit 36 determines whether the output of the setting assistance information is instructed. The determination in step S87 is performed, for example, based on whether the output button 762 shown in Figure 16 is operated. If the output of the setting assistance information is not instructed, the process proceeds to step S85. On the other hand, if the output of the setting assistance information is instructed, in step S88, the output unit 35 associates the library and the reference shape data with the text code generated by the code generation unit 37 respectively, and outputs the setting assistance information including the text code, the library, and the reference shape data. Thus, the text code generation process ends.
[0124] (Details of the sub-measuring device)
[0125] Figure 19 is a block diagram showing the structure of the control system of the sub-measuring devices 20A and 20B shown in Figure 1 . As shown in Figure 19 , the control unit 23 of the sub-measuring devices 20A and 20B in the present embodiment includes a screen generation unit 33, an execution unit 34, an input unit 41, and an analysis unit 42 as parts for measuring the shape of the measurement object W. The screen generation unit 33, the execution unit 34, the input unit 41, and the analysis unit 42 are realized, for example, by the CPU of the control unit 23 of the sub-measuring devices 20A and 20B executing a program for measuring the shape of the measurement object W stored in the storage unit 22 in advance.
[0126] When setting the sub-measuring devices 20A and 20B for measuring the shape of the measurement object W, the setting assistance information read from the storage unit 22 of the main measuring device 20 is input to the sub-measuring devices 20A and 20B. The input unit 41 reads the setting assistance information stored in the storage unit 22 and holds the library of the setting assistance information.
[0127] The receiving units 21 of the sub-measuring devices 20A and 20B have the same structure and functions as the receiving unit 21 of the main measuring device 20. The execution unit 34 performs an inspection of a measurement item using one or more measurement elements in the measurement object W based on the shape data received by the receiving unit 21 and the text code and library read by the input unit 41.
[0128] The analysis unit 42 performs various analyses based on the calculation results (measurement results) obtained by the execution unit 34. The screen generation unit 33 causes the display unit 13 to display an image of the measurement object W based on the shape data received by the receiving unit 21. In addition, the screen generation unit 33 causes the calculation results calculated by the execution unit 34 and the analysis results analyzed by the analysis unit 42 to be displayed on the display unit 13.
[0129] The above-described embodiments are merely illustrative in all respects and should not be construed in a limiting sense. Also, all modifications and changes within the equivalent scope of the claimed patent protection are within the scope of the present invention.
[0130] Industrial Applicability
[0131] As described above, the code generation auxiliary device and the code generation auxiliary program according to the present disclosure can be used to measure the shapes of various measurement objects.
[0132] Reference Signs
[0133] 11 Measuring head (shape sensor),
[0134] 13 Display unit,
[0135] 20 Main measuring device (code generation auxiliary device),
[0136] 21 Receiving unit,
[0137] 22 Storage unit,
[0138] 33 Image generation unit,
[0139] 34 Execution unit,
[0140] 36 Reception unit,
[0141] 37 Code generation unit,
[0142] 38 Measurement setting generation unit (setting unit),
[0143] 39 Calibration data generation unit (calibration unit).
Claims
1. An auxiliary device for code generation of an inspection device, characterized in that: The auxiliary device for code generation includes: A receiving unit that receives shape data; A correction unit that corrects each shape data corresponding to each shape sensor so that each shape data is in a common coordinate system based on correction values corresponding to the position postures of the plurality of shape sensors; A setting unit that sets one or more measurement elements and measurement items using the one or more measurement elements; An execution unit that determines one or more measurement elements set by the setting unit for the shape data received by the receiving unit, and executes an inspection of the measurement items using the one or more measurement elements set by the setting unit; A code generation unit that determines the one or more measurement elements for the shape data and generates a text code for executing an inspection of the measurement items using the one or more measurement elements; And A screen generation unit that generates a display screen, the display screen having a first display area and a second display area, and is capable of switching the display mode of simultaneously displaying a plurality of shape data corresponding to the plurality of shape sensors and the display mode of displaying individual shape data among the plurality of shape data for the display object in the first display area. The first display area two-dimensionally and / or three-dimensionally displays the shape data corrected to a common coordinate system by the correction unit, and displays the one or more measurement elements on the shape data. The second display area displays the cross-sectional shape of the shape data.
2. The auxiliary device for code generation according to claim 1, characterized in that: The setting unit at least accepts the designation of the position of the cross-sectional shape of the shape data displayed in the second display area, and sets the measurement element and the measurement item corresponding to the position for the cross-sectional shape.
3. The auxiliary device for code generation according to claim 2, characterized in that: The screen generation unit displays the measurement result of the measurement element, the cross-sectional shape of the shape data, and an image corresponding to the measurement element set for the cross-sectional shape together in the second display area.
4. The auxiliary device for code generation according to claim 1, characterized in that: The screen generation unit displays an image corresponding to the measurement item set by the setting unit in the first display area.
5. The auxiliary device for code generation according to claim 1, characterized in that: The screen generation unit generates a correction value display screen for displaying the correction value.
6. The auxiliary device for code generation according to claim 5, characterized in that: The correction unit accepts the adjustment of the correction value displayed on the correction value display screen.
7. The auxiliary device for code generation according to claim 1, characterized in that: The correction unit is configured to be able to calculate the correction value corresponding to the position posture of each shape sensor through a calibration tool, and write the calculated correction value as binary correction data corresponding to the text code generated by the code generation unit.
8. The auxiliary device for code generation according to claim 1, characterized in that: The calibration unit calculates the correction values corresponding to the position and orientation of each shape sensor through a calibration tool, and automatically corrects the shape data corresponding to each shape sensor based on the calculated correction values.
9. The code generation assistance device according to claim 1, wherein The screen generation unit displays a selection reception area that receives the selection of any one shape sensor from the plurality of shape sensors in the first display area, and displays the shape data obtained by the one shape sensor received in the selection reception area as the individual shape data in the first display area.
10. The code generation assistance device according to claim 1, wherein The screen generation unit generates a screen that three-dimensionally displays in thumbnail form the shape data based on the shape data corrected by the correction unit in an area other than the first display area and the second display area.
11. A code generation assistance program, characterized in that, Cause a computer to perform the following processing: Receive shape data; Based on the correction values corresponding to the position and orientation of each shape sensor of a plurality of shape sensors, correct the shape data corresponding to each shape sensor; Set one or more measurement elements and measurement items using the one or more measurement elements; For the received shape data, determine the set one or more measurement elements, and perform an inspection of the set measurement items using the one or more measurement elements; For the shape data, determine the one or more measurement elements, and generate a text code for performing an inspection of the measurement items using the one or more measurement elements; And Generate a display screen having a first display area and a second display area, and capable of switching the display mode of simultaneously displaying the plurality of shape data corresponding to the plurality of shape sensors and the display mode of displaying the individual shape data among the plurality of shape data for the display object in the first display area. The first display area two-dimensionally and / or three-dimensionally displays the corrected shape data, and displays the one or more measurement elements on the shape data. The second display area displays the cross-sectional shape of the shape data.
Citation Information
Patent Citations
Optical displacement measuring system, processor, optical displacement measuring method, and optical displacement measuring program
JP2022138028A