Image teaching method and image teaching system
The image teaching method and system improve teaching accuracy by displaying workpiece and grindstone outlines on a common screen, enabling manual alignment and contact detection, thus eliminating the need for chart paper and projectors, and ensuring precise grinding path generation.
Patent Information
- Application Number
- JP2022176337
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-12-10
- Filing Date
- 2022-11-02
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-11-02
AI Technical Summary
Conventional image teaching methods in optical copy grinding require the use of chart paper and optical projectors, leading to variations in grinding wheel positioning based on operator skill and a lack of clarity in projecting the grinding wheel image, which affects teaching accuracy.
An image teaching method and system that displays the workpiece and grindstone outlines on a common screen, allowing manual operation to align the grindstone contour with the workpiece contour, with detection and notification of contact points, and generation of trajectories based on these alignments.
Enables accurate and easy teaching without the need for chart paper or optical projectors, maintaining trajectory accuracy through visual feedback and contact detection, and facilitating the creation of precise grinding paths.
Smart Images

Figure 0007551164000006 
Figure 0007551164000012 
Figure 0007551164000009
Abstract
Description
[Technical field]
[0001] The present invention relates to an image teaching method in an image teaching system and an image teaching system. [Background technology]
[0002] Conventionally, in the optical copy grinding method, an operator attaches a chart paper on which the shape of the workpiece is drawn to the screen of a projector. Next, while the grinding wheel is projected onto the screen, the operator operates the X-axis handle and the Y-axis handle to move the grinding wheel so as to match the shape of the workpiece on the chart paper, thereby teaching the position of the grinding wheel. Through such a teaching playback method, an NC program is created and the grinding of the workpiece is performed. In the above method, lighting projects the shape from below the grinding wheel. Therefore, the projected image of the grinding wheel is blurred. The determination of the position of the grinding wheel through this blur, i.e., teaching, depends on the skill of the operator. Therefore, in teaching, the position of the grinding wheel varies depending on the skill of the operator.
[0003] In order to solve the problems of the above-mentioned method, Patent Document 1 employs the following method. A test piece is ground with a grinding wheel to transfer the shape of the grinding wheel onto the test piece. An operator moves the transferred shape of the grinding wheel of the test piece obtained along the workpiece shape on the projector screen to teach the positions of the workpiece shape change points in the workpiece coordinate system. The positions of the obtained shape change points in the workpiece coordinate system are converted into the grinding wheel coordinate system and the grinding wheel movement path. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2001-88002 A Summary of the Invention [Problem to be solved by the invention]
[0005] Incidentally, the teaching in Patent Document 1 is performed by grinding a test piece with a grinding wheel, and then projecting the transferred shape of the grinding wheel of the obtained test piece onto the screen of a projector to which chart paper on which the workpiece is drawn is attached. Therefore, it is necessary to prepare the chart paper, print the workpiece on the chart paper, attach the chart paper, etc., and there is room for improvement.
[0006] An object of the present invention is to provide an image teaching method and an image teaching system in which teaching can be easily performed. [Means for solving the problem]
[0007] In order to solve the above problems, the image teaching method in the image teaching system of the present invention is an image teaching method in an image teaching system equipped with a display, a display control unit for controlling the display of the display, a manual operation unit, a teaching unit, and a trajectory generating unit, and includes a step of displaying the workpiece shape contour (hereinafter referred to as workpiece contour) and grinding wheel contour on a common screen of the display based on workpiece shape drawing data and grinding wheel contour image data by the display control unit, a moving step of moving the grinding wheel contour to the workpiece contour on the common screen of the display by control of the display control unit based on operation of the manual operation unit, a teaching step of teaching the position of the grinding wheel contour when the grinding wheel contour comes into contact with the workpiece contour by the teaching unit, and a step of repeating the moving step and the teaching step to obtain a trajectory including the position of the obtained grinding wheel contour in the trajectory generating unit (Claim 1).
[0008] According to the above configuration, the workpiece contour and the grinding wheel contour are displayed on a common screen of the display. After that, in a moving step, the display control unit moves the grinding wheel contour to the workpiece contour based on the operation of the manual operation unit by the operator. In a teaching step, the operator teaches the teaching unit the position of the grinding wheel contour when it comes into contact with the workpiece contour. As the operator repeats these steps, the trajectory generating unit generates a trajectory including the position of the obtained grinding wheel contour.
[0009] In addition, in the image teaching method, in the step of displaying the workpiece shape contour (hereinafter referred to as the workpiece contour) and the grinding wheel contour on a common screen of the display based on the workpiece shape drawing data and the grinding wheel contour image data by the display control unit, the display control unit may further superimpose the grinding wheel contour on the acquired grinding wheel image and display it (Claim 2).
[0010] According to the method configured as above, the grindstone image and the grindstone contour are displayed in a superimposed manner, so that teaching can be performed in a state in which a sense of reality is obtained. The image teaching system may further include a detection unit that detects contact between the grindstone contour and the workpiece contour in the moving step, and a notification unit that notifies a teaching operator of the contact between the grindstone contour and the workpiece contour when the detection unit detects the contact, and the position of the grindstone contour is taught by the teaching unit after the notification by the notification unit (claim 3). In the above configuration, when the detection unit detects contact between the grindstone contour and the workpiece contour in the moving step, the notification unit notifies the teaching operator of the contact. When the notification unit notifies the operator, the operator can know the contact between the grindstone contour and the workpiece contour from this notification. After this notification, the operator maintains the accuracy of the trajectory generated by the trajectory generation unit by teaching the position of the grindstone contour using the teaching unit.
[0011] The notification unit may be the display, and in response to the detection of the contact by the detection unit, the display control unit may control the display to highlight the area where the grinding wheel contour contacts the workpiece contour, or a predetermined range including the contact area, thereby notifying the teaching operator of the contact of the grinding wheel contour with the workpiece contour (claim 4). According to the above configuration, the display as the notification unit highlights the area where the grinding wheel contour contacts the workpiece contour, or a predetermined range including the contact area, under the control of the display control unit. This highlighting allows the operator to know which area of the workpiece contour the grinding wheel contour has contacted.
[0012] The image teaching system of the present invention comprises a display, a display control unit for displaying the workpiece shape contour (hereinafter referred to as workpiece contour) and the grindstone contour on a common screen of the display based on the workpiece shape drawing data and the grindstone contour image data, a manual operation unit for moving the grindstone contour on the display, a teaching unit for teaching the position of the grindstone contour when the grindstone contour comes into contact with the workpiece contour, and a trajectory generating unit for generating a trajectory including the position of the grindstone contour taught by the teaching unit (claim 5).The image teaching system described above makes it easy to realize the image teaching method described above.
[0013] In the image teaching system, when the display control unit displays the workpiece shape contour (hereinafter referred to as workpiece contour) and the grindstone contour on the common screen of the display based on the workpiece shape drawing data and the grindstone contour image data, the display control unit may superimpose the acquired grindstone image and the grindstone contour (claim 6). According to the image teaching system configured as above, teaching can be performed in a state where a sense of reality is obtained by superimposing the grindstone image and the grindstone contour.
[0014] Also, the image teaching system may include a detection unit that detects contact between the grindstone contour and the workpiece contour, and a notification unit that notifies a teaching operator of the contact between the grindstone contour and the workpiece contour when the detection unit detects the contact, and the teaching unit may teach the position of the grindstone contour after the notification unit notifies the operator of the contact between the grindstone contour and the workpiece contour (claims 7 and 8). With the above configuration, the notification unit notifies the operator of the contact between the grindstone contour and the workpiece contour, making teaching easy.
[0015] In the image teaching system, the notification unit may be the display, and in response to the detection of the contact by the detection unit, the display control unit may control the display to highlight the contact area of the grindstone contour with the workpiece contour or a predetermined range including the contact area, thereby notifying the teaching operator of the contact of the grindstone contour with the workpiece contour (claims 9 and 10). With the above configuration, the contact area of the grindstone contour with the workpiece contour or a predetermined range including the contact area is highlighted, so that the operator can know the contact between the grindstone contour and the workpiece contour, and teaching can be easily performed. The workpiece contour may include at least one of a change point between a straight line and a straight line, a change point between a straight line and a curved line, or a change point between a curved line and a curved line, and may have a change point position display instruction unit that displays and instructs the position of the change point, and the display control unit may cause the display to display the change point position in response to an operation of the change point position display instruction unit to display the change point position (claim 11).
[0016] The image teaching system displays the positions of the change points on the common screen of the display in response to an operation of the change point display instruction unit to display the positions of the change points included in the workpiece contour. This display of the change point positions enables the operator to move the grinding wheel contour relative to the workpiece contour using the displayed change points as a guide. In particular, in the case of a change point between a straight line and a curve, a change point where the angle at which two straight lines intersect is shallow, or a change point between two arcs with different radii of curvature, the position of the change point is likely to be unclear without the display of the change point position. If the change point position is displayed, it becomes possible to easily move the grinding wheel contour relative to the change point itself.
[0017] In addition, the work contour may include at least one of a straight line and a change point between a straight line, a change point between a straight line and a curve, or a change point between a curve and a curve, and has a change point relationship line extension display instruction unit that instructs the display of an extension of the straight line or curve related to the change point from the change point, and the display control unit may cause the display to display the extension of the straight line or curve related to the change point in response to an operation of the change point relationship line extension display instruction unit to instruct the display of the extension from the change point (Claim 12).
[0018] According to the image teaching system, the extension display of the straight line or curve related to the change point included in the workpiece contour is displayed on the common screen of the display in response to the operation of the extension display of the straight line or curve related to the change point by the change point relation line extension display instruction unit. The extension display of the straight line or curve related to the change point enables the operator to move the grinding wheel contour relative to the workpiece contour based on the change point. In particular, in the case of a change point between a straight line and a curve, or a change point where the angle at which the straight line intersects with the straight line is shallow, if there is no extension display of the line related to the change point, it is easy to be unclear where the change point is located. In such a case, if the extension display of the straight line or curve related to the change point is displayed, it is also possible to easily move the grinding wheel contour relative to the change point itself. Alternatively, it is also possible to easily move the grinding wheel contour between the change points. Effect of the Invention
[0019] The present invention has the advantage that teaching can be easily carried out without the need for an optical projector or chart paper. [Brief description of the drawings]
[0020] [Figure 1] FIG. 1 is a schematic diagram showing the overall configuration of an image teaching system. [Diagram 2] FIG. 2 is an explanatory diagram of steps of an image teaching method in an image teaching system. [Diagram 3] (a) is an operation panel displayed on the common screen of the display, and (b) is a special menu that pops up on the common screen of the display by touching a special button on the common screen of the display. [Figure 4] FIG. 1A is an explanatory diagram of two-point teaching in the automatic change-point teaching mode, and FIG. 1B is an explanatory diagram of three-point teaching in the automatic change-point teaching mode. [Diagram 5] FIG. 1A is an explanatory diagram of two-point teaching in the change-point direct teaching mode, and FIG. 1B is an explanatory diagram of three-point teaching in the change-point direct teaching mode. [Figure 6] FIG. 13 is an explanatory diagram showing a workpiece contour and a grinding wheel contour displayed on a common screen of a display. [Figure 7] 1A is an explanatory diagram of the highlight display when the grinding wheel contour contacts the workpiece contour at one point, and FIG. 1B is an explanatory diagram of the highlight display when the grinding wheel contour contacts the workpiece contour at two points. [Figure 8] FIG. 11 is an explanatory diagram of the operation buttons for the "guideline / crossline" displayed on the common screen of the display. [Figure 9] 1A is an explanatory diagram when reference lines are displayed on the workpiece contour, and FIG. 1B is an explanatory diagram when the reference lines are not displayed on the same workpiece contour as in FIG. [Figure 10] 1A is an explanatory diagram when cross lines are displayed on the workpiece contour, and FIG. 1B is an explanatory diagram when cross lines are not displayed on the same workpiece contour as FIG. [Figure 11] 10 is an explanatory diagram of an example of a trajectory when a grinding wheel contour moves along a workpiece contour. FIG. [Figure 12] FIG. 13 is an explanatory diagram of an "Edit" operation button displayed on the common screen of the display. [Figure 13] 13 is an explanatory diagram of a case where a locus when a point is moved is changed during editing. FIG. [Figure 14] 13 is an explanatory diagram of a case where a locus is changed when a circular arc is changed during editing. FIG. [Figure 15] FIG. 13 is a schematic diagram showing the overall configuration of an image teaching system according to another embodiment. [Figure 16] (a) is an explanatory diagram of the grindstone contour display ON button, (b) is an explanatory diagram of the grindstone image when the grindstone contour display ON button is not turned on, and (c) is an explanatory diagram of the grindstone image when the grindstone contour display ON button is turned on. [Figure 17] (a) is an explanatory diagram of the highlight display when the grinding wheel contour contacts the workpiece contour at one point in the second embodiment, and (b) is an explanatory diagram of the highlight display when the grinding wheel contour contacts the workpiece contour at two points in the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0021] (First embodiment) Hereinafter, an image teaching method and an image teaching system according to an embodiment of the present invention will be described with reference to FIGS.
[0022] (1. System Overview) 1, the image teaching system 10 includes an image teaching processing device 12, a display 14, a console 16 as an input device, a mouse 18, an X-axis operation device 20, and a Y-axis operation device 22. The image teaching processing device 12 is connected to an NC device 33 so as to be able to communicate with it.
[0023] (2. Image teaching processing device 12) The image teaching processing device 12 is made up of a computer and includes a CPU (Central Processing Unit) 24, and a storage unit 26 including a ROM, RAM, a hard disk, etc. The control program for the image teaching system 10 is stored in the storage unit 26 and is read when the system is executed. The RAM is a working memory. The hard disk stores shape drawing data of a plurality of workpieces and grinding wheel contour image data in a writable and readable manner. The shape drawing data of the workpiece is shape drawing data to be ground by a grinding wheel provided in the NC device 33, and is saved, for example, as a DXF file that can be read and written by CAD software. The shape drawing data of the workpiece is not limited to a DXF file, and may be in another file format.
[0024] The shape drawing data of the workpiece may be shape drawing data formed from a template. The shape drawing data formed from a template includes shape data of a combination of predefined shapes such as lines, circles, arcs, rectangles, triangles, etc., or single shape data. The shape drawing data formed from a template is created by selecting the straight lines, circles, etc., using a template selection button (not shown) or the like on the screen 15 of the display 14 and performing a drawing operation, and is stored in an image memory constituted by the RAM. The display control unit 28 draws the shape drawing data based on the shape drawing data formed from the template stored in this image memory.
[0025] The workpiece shape contour displayed on screen 15 of display 14 based on the workpiece shape drawing data has shape change points, i.e., change points between straight lines, change points between straight lines and arcs, or change points between arcs. In this way, the straight lines and arcs forming the change points are "elements" forming the workpiece shape contour. The arcs correspond to curved lines. For ease of explanation, the workpiece shape contour will be referred to as the workpiece contour below. Screen 15 corresponds to a common screen.
[0026] The grinding wheel profile image data is shape data of the grinding wheel. The shape data of the grinding wheel is obtained by extracting the contour of the grinding wheel by edge detection or the like through image processing based on an image of the grinding marks on a dummy workpiece ground with a grinding wheel. The contour of the grinding wheel profile image is hereinafter simply referred to as the grinding wheel contour. As shown in FIG. 1, when the CPU 24 executes the control program for the image teaching system 10, it performs various processing operations as a display control unit 28, a detection unit 30, and a trajectory generation unit 32.
[0027] (3. Input Device) The console 16 is an input device for inputting numerical values, characters, etc. to the CPU 24. The mouse 18 is an input device for enlarging and reducing an image displayed in the image operation area 15a of the screen 15 shown in FIG. 1, and for moving a mouse pointer (not shown) on the screen 15. In the following description, it is assumed that various operations or teaching are performed by touch operation. However, after the mouse pointer (not shown) is matched to various buttons by operating the mouse 18, teaching or various input operations may be performed by clicking. The X-axis operation device 20 includes a manual handle 20a and an encoder 20b. When the manual handle 20a is operated, the encoder 20b outputs an operation signal corresponding to the operation to the CPU 24 of the image teaching processing device 12. The display control unit 28 of the CPU 24 moves the grinding wheel contour A (see FIG. 6) displayed in the image operation area 15a of the screen 15 in the X-axis direction of the machine coordinate system shown in FIG. 1 based on the operation signal. The machine coordinate system is the machine coordinate system of the NC device 33.
[0028] The Y-axis operation device 22 is equipped with a manual handle 22a and an encoder 22b. When the manual handle 22a is operated, the encoder 22b outputs an operation signal corresponding to the operation to the CPU 24 of the image teaching processing device 12. Based on the operation signal, the display control unit 28 of the CPU 24 moves the grinding wheel contour A (see FIG. 6) displayed in the image operation area 15a of the screen 15 in the Y-axis direction of the machine coordinate system shown in FIG. 1. The X-axis operation device 20 and the Y-axis operation device 22 correspond to a manual operation unit.
[0029] (4. Display 14) The display 14 is composed of a liquid crystal display device, an organic EL display device, a CRT, or the like. The display 14 is a touch panel display. As shown in Fig. 1, a screen 15 of the display 14 during image teaching has an image operation area 15a, button display areas 15b and 15c, and a switching tab display area 15d. In the image operation area 15a during image teaching, an image of the grinding wheel contour, etc. is displayed.
[0030] (5. Operation buttons) As shown in Fig. 3(a), various operation buttons used during image teaching are displayed in button display areas 15b and 15c. The various operation buttons in button display areas 15b and 15c can be touched by the operator. In the following, touch operation is simply referred to as operation. The various buttons arranged in button display area 15b include a program save button 34, a program load button 36, and a machine transfer button 38.
[0031] When the program save button 34 is operated, a process program in which the grinding wheel moves along a trajectory created based on teaching to perform grinding is saved on the hard disk of the storage unit 26. When the program load button 36 is operated, the process program stored on the hard disk of the storage unit 26 is displayed in a pop-up screen. The process program displayed on this pop-up screen can be read. When the machine transfer button 38 is operated, the loaded process program is transferred to the NC device 33.
[0032] The various buttons in the button display area 15c include a list up button 40, a list down button 42, a point input method selection button 43, a start point button 44, a midpoint button 46, an end point button 48, an edit button 50, and a special button 52. The start point button 44, the midpoint button 46, and the end point button 48 correspond to a teaching section. The various buttons in the button display area 15c also include a setting button 56, a valid button 58, an approach button 60, and a "x10" button 62, a "x1" button 64, and a "x1 / 10" button 66 for handle magnification.
[0033] As shown in Fig. 3(a), the switching tab display area 15d has display switching tabs such as a shape data tab 67a and a teaching tab 67b. In Fig. 3(a), when the teaching tab 67b is operated, a process list 68 obtained by teaching is displayed in the switching tab display area 15d. When the shape data tab 67a is operated, various operation buttons such as a guide line / cross line selection menu 76 shown in Fig. 8 and a shape data load button (not shown) are displayed in the switching tab display area 15d and the button display area 15c.
[0034] The process list 68 includes a teaching process line number column 70, a Type column 72, and an axis movement speed column 74. In each row of the process line number column 70, the CPU 24 writes the process number obtained by teaching in row order, with 0 as the initial value. In each row of the Type column 72, the CPU 24 writes the type of each process, for example, Line (straight line) or Circle (circular arc). In the axis movement speed column 74, the machining speed of each process is written by the operator. The process list 68 can be scrolled up or down by operating the list up button 40 or list down button 42.
[0035] (Display of change point relationship line extension and change point position) (5.1. Change point relationship line extension display) When the shape data tab 67a shown in Fig. 3(a) is operated, a guide line / cross line selection menu 76 shown in Fig. 8 is displayed. The guide line / cross line selection menu 76 is provided with a radio button-type hide button 77, a guide line button 78, and a cross line button 79. The guide line button 78 corresponds to the change point relationship line extension display instruction section. The cross line button 79 corresponds to the change point position display instruction section.
[0036] FIG. 9(b) shows an example of the workpiece contour B. This workpiece contour B has a pair of straight lines Ba and Bb that intersect at a change point Q1 as a shape change point. When the guide line button 78 is operated, as shown in FIG. 9(a), a guide line Ma having a predetermined length is displayed, which is extended from the straight line Ba starting from the change point Q1. At the same time, as shown in FIG. 9(a), a guide line Mb having a predetermined length is displayed, which is extended from the straight line Bb starting from the change point Q1. The coordinates of the change point Q1 of the workpiece contour B are contained in the DXF file. Therefore, the CPU 24 as the display control unit 28 judges whether the coordinates of this change point and the line forming the change point are a straight line or an arc, and displays a straight line or an arc guide line, which will be described later, based on the judgment result.
[0037] Although not shown in the figure, when the workpiece contour B has a change point due to the intersection of a straight line and an arc, when the guide line button 78 is operated, a guide line having a predetermined length is displayed, which is extended from the straight line of the workpiece contour B with the change point as the starting point. At the same time, a guide line of a circular arc having a predetermined length extended from the arc with the same radius of curvature and the same center of curvature as the arc of the workpiece contour B with the change point as the starting point is displayed. Also, when the workpiece contour B has a change point due to the intersection of two arcs, when the guide line button 78 is operated, a guide line having a predetermined length extended from one arc with the same radius of curvature and the same center of curvature as the arc is displayed, which is extended from the other arc with the same radius of curvature and the same center of curvature as the arc, which is extended from the change point as the starting point. The display of each guide line described above corresponds to the change point relationship line extension display.
[0038] (5.2. Display of change point position) The coordinates of the change points of the workpiece contour B are included in the DXF file. When the cross line button 79 is operated, the CPU 24 as the display control unit 28 displays the cross lines C so that the center (intersection) of the cross lines C coincides with each change point based on the coordinates of the change points. FIG. 10(b) shows an example of the workpiece contour B. This workpiece contour B has a pair of arcs Bc and straight lines Bd that intersect at a change point Q2 as a shape change point. In this example, the straight line Bd is positioned approximately on the same plane as the tangent line of the arc Bc at the end point of the arc Bc. Therefore, in this example, it is difficult for the operator to visually recognize the position of the change point Q2. When the cross line button 79 is operated, the cross lines C (cross lines) are displayed so that the center point coincides with the change point Q2, as shown in FIG. 10(a). 10(a), the center of the cross line C is displayed so as to coincide with the change point Q2, so when the grindstone contour A is brought into contact with the change point Q2, it is possible to bring the grindstone contour A into contact with the change point Q2 by using the center of the cross line C as a target. When the cross line C is displayed at the change point of the workpiece contour B in this way, the target for the contact of the grindstone contour A with the change point is clearly indicated, making it easier to move the grindstone contour A to the change point.
[0039] (5.3. Hiding the extension of change point relationship lines and the change point position display) In the case where the guide lines and cross lines are not to be displayed, when a non-display button 77 shown in FIG. 8 is operated, the CPU 24 as the display control unit 28 hides the guide lines and cross lines in response to the operation.
[0040] (5.4. Point input button) The point input method selection button 43 shown in Fig. 3(a) is a mode switching button operated when selecting one of the modes "automatic change point teaching mode" and "change point direct teaching mode". The start point button 44, midpoint button 46, and end point button 48 are point input buttons. These buttons are operated when the operator determines that the contact point between the grinding wheel contour A and the workpiece contour B should be the start point, midpoint, or end point when there is contact. Here, highlighting and contact detection will be described.
[0041] (5.5. Contact Detection) Whether or not the grindstone contour A has come into contact with the workpiece contour B or the reference line is detected as follows. The CPU 24 as the detection unit 30 calculates the distance between the workpiece contour B or the reference line and the grindstone contour A while the grindstone contour A is being moved in the image operation area 15a based on the operation of the X-axis operation device 20 and the Y-axis operation device 22. When the detection unit 30 detects that the distance has reached the contact determination threshold, it determines that the grindstone contour A has come into contact at the portion of the workpiece contour B or the portion of the reference line that has reached the contact determination threshold.
[0042] (5.6. Highlighting) Next, as shown in FIG. 7(a), FIG. 7(b), and FIG. 9(a), the CPU 24 as the display control unit 28 sets the part of the workpiece contour B or the part of the reference line that has reached the contact judgment threshold as the contact point J, and highlights a predetermined range including the contact point J. In FIG. 7(a), FIG. 7(b), and FIG. 9(a), the highlighted part of the workpiece contour B or the reference lines Ma and Mb is surrounded by a long and thin rectangular frame W for convenience of explanation. FIG. 7(a) shows a case where the grindstone contour A contacts the workpiece contour B at one point. FIG. 7(b) shows a case where the grindstone contour A contacts the workpiece contour B at two points. Regarding the "contact point" described in the following text, even if there is no explanation about the detection of the contact and the result of the highlighting of a predetermined range including the contact point, it should be understood that the contact is detected and highlighted. The display 14 corresponds to a notification unit. In addition, only the contact point may be highlighted instead of the predetermined range.
[0043] The "automatic change point teaching mode" and the "direct change point teaching mode" will now be described. (5.7. Start point button 44, middle point button 46, end point button 48) <5.7.1. Automatic change point teaching mode> When the automatic change point teaching mode is selected by the point input method selection button 43, specification of whether the "element" forming the workpiece contour B is a straight line or a circular arc is performed by using the start point button 44, the midpoint button 46, and the end point button 48. In the automatic change point teaching mode, the "element" is taught to be a straight line by two-point teaching, and the "element" is taught to be a circular arc by three-point teaching.
[0044] <5.7.1-1. Calculation of line trajectories and change point coordinates between lines> The workpiece contour in FIG. 4(a) has straight lines D1 and D2 as "elements", which intersect at a change point Qa.
[0045] The operator brings the grindstone contour A (not shown) into contact with any two arbitrary points on the straight line D1. Of the two contact points Ja and Ra, the start point button 44 is operated at the contact point Ja, and the end point button 48 is operated at the contact point Ra. Based on the operation of the start point button 44 and the end point button 48, the CPU 24 calculates the machine coordinate system positions of the grindstone contour at each contact point, i.e., the machine coordinate system coordinates of the start point Ka and end point Ea of the grindstone contour in FIG. 4(a).
[0046] Based on this two-point teaching, the CPU 24 determines that the start point Ka and the end point Ea are on the straight line H1. Next, the operator brings the grindstone contour A (not shown) into contact with any two points on the straight line D2. Of these two contact points Jb and Rb, the start point button 44 is operated at the contact point Jb closest to the contact point Ra, and the end point button 48 is operated at the contact point Rb. Based on the operation of the start point button 44 and the end point button 48, the CPU 24 calculates the machine coordinate system positions of the grindstone contour A at each contact point, that is, the machine coordinate system coordinates of the start point Kb and the end point Eb of the grindstone contour A in FIG. 4(a). Based on this two-point teaching, the CPU 24 determines that the start point Kb and the end point Eb are on the straight line H2.
[0047] Furthermore, by successively teaching the start point Ka and the end point Ea, as well as the start point Kb and the end point Eb, the CPU 24 calculates the coordinates of the trajectory change point Fa of the two straight lines H1 and H2 based on the linear equations of the straight lines H1 and H2 which form the trajectory of the grinding wheel contour.
[0048] In this embodiment, the trajectory of the grindstone profile is the machining path of the center of the perfect circle when the tip shape of the grindstone profile is an arc of a perfect circle. Note that the trajectory is not limited to the center of the perfect circle, and may be the machining path of any point such as a point in the vicinity of the center.
[0049] The trajectory change point Fa is the position of the grindstone contour when the grindstone contour A (not shown) hypothetically comes into contact with the change point Qa of the workpiece contour. By such two-point teaching, the CPU 24, i.e., the trajectory including the straight lines H1, H2 and the coordinates of the change point between the straight lines H1, H2 on the grindstone contour is calculated by the CPU 24, i.e., the trajectory generating unit 32. Based on the start point and end point thus taught and the calculated trajectory change point Fa, the CPU 24 creates a trajectory as the trajectory generating unit 32 and displays the trajectory on the screen 15 of the display 14 as the display control unit 28.
[0050] <5.7.1-2. Calculating the trajectory of an arc and the coordinates of the change points between a line and an arc> The workpiece profile in FIG. 4(b) has a straight line D1 and a circular arc D3 as "elements" and intersects at a change point Qb. The contact points Ja and Ra, the start point Ka, the end point Ea, and the straight line H1 related to the straight line D1 of the workpiece profile are the same as those described above, and therefore will not be described. The operator brings the grindstone profile (not shown) into contact with any three points on the circular arc D3. Among the three contact points Jc, Lc, and Rc, the start point button 44 is operated at the contact point Jc closest to the contact point Ra, the midpoint button 46 is operated at the contact point Lc, and the end point button 48 is operated at the contact point Rc. Based on the operation of the buttons 44, 46, and 48, the CPU 24 calculates the machine coordinate system positions of the grindstone profile at each contact point, that is, the machine coordinate system coordinates of the start point Kc, the midpoint Tc, and the end point Ec of the grindstone profile in FIG. 4(b). Furthermore, based on this three-point teaching, the CPU 24 determines that the start point Kc, the midpoint Tc and the end point Ec are on the circular arc H3.
[0051] Furthermore, the CPU 24 calculates the coordinates of the trajectory change point Fb of the straight line H1 and the arc H3 based on the equation of the straight line H1, which is the trajectory of the grindstone profile, and the equation of the circle of the arc H3, by continuing the two-point teaching and the three-point teaching. The trajectory change point Fb is the position of the grindstone profile when the grindstone profile (not shown) contacts the change point Qb of the workpiece profile B. It is obvious that if the three-point teaching is performed first to identify the arc, and then the two-point teaching is performed to identify the straight line, it is possible to obtain the equation of the circle, which is the trajectory of the grindstone profile, and the equation of the straight line. Therefore, in this case as well, the CPU 24 calculates the coordinates of the change points of both based on the equation of the circle and the equation of the straight line.
[0052] When such two-point teaching is followed by three-point teaching, or three-point teaching is followed by two-point teaching, a trajectory including straight lines and arcs as well as changing points between straight lines and arcs on the grinding wheel contour A is calculated by the trajectory generating unit 32. Based on the start point, end point, and midpoint thus taught and the calculated trajectory changing point Fb, the CPU 24 functions as the trajectory generating unit 32 to create a trajectory, and functions as the display control unit 28 to display the trajectory on the screen 15 of the display 14.
[0053] <5.7.1-3. Calculation of coordinates of change points between arcs and between arcs> Although not shown, when the workpiece contour has arcs and points at which the arcs change, the operator brings the grinding wheel contour into contact with any three points on each arc, and performs three-point teaching at each contact point using the start point button 44, midpoint button 46, and end point button 48. As a result, the CPU 24 creates a trajectory as the trajectory generating unit 32 based on the coordinates in the machine coordinate system of the start point, midpoint, and end point of the grinding wheel contour that is in contact with the contact points of each arc, and displays the trajectory on the screen 15 of the display 14 as the display control unit 28.
[0054] Furthermore, by continuing the three-point teaching on the arcs, the CPU 24 calculates the coordinates of the arcs and the change points of the arcs based on the equations of the circles that form the path of the grindstone contour. These change points are positions on the path of the grindstone contour when the grindstone contour (not shown) contacts the change point of the workpiece contour. By continuing the three-point teaching in this manner, the path generating unit 32 calculates the path of the grindstone contour, including the coordinates of the change points of the adjacent arcs and the arcs and the change points of the arcs, and the display control unit 28 displays the path on the screen 15 of the display 14.
[0055] <5.7.2. Change point direct teaching mode> When the change point direct teaching mode is selected by the point input method selection button 43, the start point button 44, midpoint button 46, and end point button 48 are used when the grinding wheel contour is brought into contact with the end points of straight lines, end points of arcs, change points, etc. contained in the workpiece contour.
[0056] <5.7.2-1. Calculation of line trajectories and change point coordinates between lines> The workpiece contour in Fig. 5(a) has straight lines D1 and D2, similar to Fig. 4(a), which intersect at a change point Qa. The operator brings the grindstone contour (not shown) into contact with a contact point Jd, which is one end point of the straight line D1, and with a change point Qa, which is the other end point of the straight line D1. The start point button 44 is operated at the contact point Jd, and the end point button 48 is operated at the change point Qa. Based on the operation of the start point button 44 and the end point button 48, the CPU 24 calculates the machine coordinate system position of the grindstone contour A that contacts the contact point Jd and the change point Qa, i.e., the machine coordinate system coordinates of the start point Kd and the end point Ee of the grindstone contour in Fig. 5(a).
[0057] Based on this two-point teaching, the CPU 24 also determines that the start point Kd and the end point Ee are the straight line H1 and that the points on the start point Kd and the end point Ee are the end points of the straight line H1. Next, the operator contacts the grindstone contour (not shown) with the end point Rf on the straight line D2 and operates the end point button 48. Based on the operation of the end point button 48 at the end point Rf, which is the contact point, the CPU 24 calculates the position in the machine coordinate system of the grindstone contour contacted with the end point Rf, that is, the coordinates in the machine coordinate system of the end point Ef of the grindstone contour in FIG. 5(a). Based on the one-point teaching at the end point Ef on the straight line H2, which is the trajectory of the grindstone contour, the CPU 24 determines that the previous end point Ee and the end point Ef are on the straight line H2. In this way, when the workpiece contour B first has a straight line and then a straight line, first the two-point teaching is performed, and then the one-point teaching is performed, and the trajectory including the straight lines H1 and H2 on the grindstone contour A is calculated by the CPU 24, i.e., the trajectory generating unit 32. Furthermore, thereafter, when a straight line continues on the workpiece contour, the one-point teaching is performed, and the trajectory of the straight line on the grinding wheel contour is similarly calculated (created) by the CPU 24 as the trajectory generating unit 32. The created trajectory is displayed on the display 14 by the CPU 24 as the display control unit 28.
[0058] <5.7.2-2. Calculating the trajectory of an arc and the coordinates of the change points between a line and an arc> The workpiece contour in Fig. 5(b) has a straight line D1 and a circular arc D3, similar to Fig. 4(b), which intersect at a change point Qb. Note that the contact point Jd, start point Kd, end point Ee, and straight line H1 related to the straight line D1 of the workpiece contour are the same as those described above, and therefore will not be described here.
[0059] The operator contacts the grindstone profile (not shown) with two points including the other end point Rg and the point Ld between the change point Qb and the other end point Rg on the arc D3 as contact points, when the change point Qb is set as one end point. Then, the midpoint button 46 is operated at the point Ld, and the end point button 48 is operated at the end point Rg. Based on the operation of the buttons 46 and 48, the CPU 24 calculates the machine coordinate system positions of the grindstone profile A at each contact point, that is, the machine coordinate system coordinates of the midpoint Tg and end point Eg of the grindstone profile in FIG. 5(b). Based on the two-point teaching at the point Ld and the end point Rg, and the change point Qb, the CPU 24 determines that the end point Ee, the midpoint Tg, and the end point Eg are on the arc H3.
[0060] Furthermore, the CPU 24 calculates (creates) a trajectory including a straight line and an arc in the grinding wheel contour A based on the equation of the straight line H1 and the equation of the circle of the arc H3 by the CPU 24, i.e., the trajectory generating unit 32. The created trajectory is displayed on the display 14 by the CPU 24 as the display control unit 28. It is obvious that it is possible to obtain the equation of the circle and the equation of the straight line when the arc is identified by the three-point teaching first and then the straight line is identified by the one-point teaching similar to that shown in FIG. 5(a). Therefore, in this case as well, the trajectory including the straight line and the arc is calculated by the CPU 24 of the trajectory generating unit 32 based on the equation of the circle and the equation of the straight line.
[0061] <5.7.2-3. When two arcs are connected> Although not shown, when the workpiece contour has arcs and arc change points, the operator performs three-point teaching by contacting the grindstone contour with three points, namely, the end points of each arc and the midpoint between the end points of each arc. Specifically, the operator operates the buttons 44, 46, and 48 at the contact points of the first arc, which is one end point, the midpoint, and the other end point (change point). Since one end point of the next second arc is a change point with the first arc, the button operation here is omitted. Then, when the grindstone contour A contacts the midpoint and the other end point of the second arc, the operator operates the buttons 46 and 48 to perform two-point teaching. If there are subsequent arcs, two-point teaching is performed in the same manner. As a result, the trajectory of the arc in the grindstone contour along each arc of the workpiece contour is calculated (created) by the CPU 24 as the trajectory generating unit 32. The created trajectory is displayed on the display 14 by the CPU 24 acting as a display control unit .
[0062] <5.7.2-4. When the wheel contour A cannot come into direct contact with the transition point of the workpiece contour B> In the above, the case where the grindstone contour A directly contacts the change point of the workpiece contour B has been described. However, as shown in the example of FIG. 9(b), when the workpiece contour B has a change point Q1 as a shape change point at a point where the workpiece contour B is sharpened by the straight lines Ba and Bb, the point where the grindstone contour A should draw a path must also be a path change point. For this reason, in such an example, the operator operates the X-axis operation device 20 and the Y-axis operation device 22 so that the grindstone contour A contacts both the guide lines Ma and Mb simultaneously while the reference lines Ma and Mb are displayed. In this state, the start point button 44 or the end point button 48 is operated. By this operation, the position of the grindstone contour A that contacts the guide lines Ma and Mb simultaneously is taught as the start point or the end point. In addition to the change point between the straight lines, examples of the workpiece contour B having a change point at a sharp point include a change point between a straight line and an arc, or a change point between arcs. Even in such a case, teaching is performed in the same manner as described above at the position where the grindstone contour A contacts both the guide lines simultaneously while a pair of guide lines are displayed.
[0063] Also, FIG. 7(b) shows another example in which there is a change point Q3 where the grindstone contour A cannot contact. The change point Q3 of the straight lines Be and Bf is located at a recessed portion of the workpiece contour B. Even in this case, the trajectory change point where the grindstone contour A should draw a trajectory must correspond to the change point Q3. Therefore, in such an example, the operator operates the X-axis operation device 20 and the Y-axis operation device 22 so that the grindstone contour A contacts the straight lines Be and Bf simultaneously. Then, the operator operates the start point button 44 or the end point button 48. By this operation, the position of the grindstone contour A that contacts the straight lines Be and Bf simultaneously is taught as the start point or the end point. In addition to the change points between the straight lines, examples of a change point at a recessed portion of the workpiece contour B include a change point between a straight line and an arc, or a change point between arcs. Even in such a case, teaching is performed in the same manner as described above at the position where the grindstone contour A contacts the straight line and the arc, or both arcs simultaneously. Next, returning to FIG. 3(a), the other operation buttons will be described.
[0064] (5.8. Edit button 50, special button 52) (5.8.1. Point Movement) When moving a point on the displayed trajectory, that is, when changing the position of a trajectory change point of the trajectory or changing the trajectory of a circular arc, the operator operates the trajectory range including the trajectory change point to be changed or the trajectory range including the circular arc to be changed. After this, the operator operates the edit button 50. The display control unit 28 pops up an edit menu 80 shown in FIG. 12 based on both operations. The edit menu 80 is provided with a point movement button 82, an arc change button 84, and a close button 86. The point movement button 82 is for re-teaching the position of the trajectory change point by teaching. In the following, an example of moving the position of the end point P3, which is a trajectory change point, in the trajectory N shown in FIG. 13, which has a circular trajectory Na1 including a start point P1, a midpoint P2, and an end point P3, and a circular trajectory Nb1 adjacent to the circular trajectory Na1 at the end point P3, is described. In FIG. 13, P0 is an approach point.
[0065] When the point movement button 82 is operated, the display control unit 28 displays a virtual grinding wheel contour A1, which is created in advance as shown in FIG. 13, on the trajectory N before the change, superimposed on the end point P3 of the change target, instead of the grinding wheel contour A described above. In FIG. 13, the grinding wheel contour A1 superimposed on the end point P3 of the change target is shown by a two-dot chain line. The virtual grinding wheel contour A1 has, for example, an ideal grinding wheel image contour that has not yet been ground and has no uneven wear, but is not limited to this. The end point P3 of the change target is specified by the display control unit 28 on the basis that the trajectory range including the trajectory change point of the change target is operated. After this, the operator operates the X-axis operation device 20 and the Y-axis operation device 22 shown in FIG. 1. When the point movement button 82 is operated, the control program makes it possible to move the trajectory change point of the change target via the virtual grinding wheel contour A1 based on the operation amount of the X-axis operation device 20 and the Y-axis operation device 22.
[0066] Therefore, based on the operation of the X-axis operation device 20 and the Y-axis operation device 22, the display control unit 28 moves the grindstone contour A1, as shown in Fig. 13, to move the end point P3 of the change target. The trajectory generation unit 32 calculates the coordinates of the end point P3a of the change target after the movement, and further calculates the arc trajectory Na2 by a circle equation based on the coordinates of the start point P1, the midpoint P2, and the end point P3a. In addition, the trajectory generation unit 32 also calculates the arc trajectory Nb2 for the arc trajectory Nb1 in the same manner, based on the coordinates of the end point P3a, and the midpoint and end point (both not shown) of the arc trajectory Nb1. Then, as shown in Fig. 13, the display control unit 28 displays the calculated arc trajectories Na2 and Nb2 in the image operation area 15a as indicated by the two-dot chain line.
[0067] In addition, when the trajectory adjacent to the arc trajectory Na1 is a straight trajectory instead of the arc trajectory Nb1, the calculation of the adjacent straight trajectory may be calculated based on the equation of the straight line. Also, when a straight trajectory including a starting point P1 and an end point P3 is used instead of the arc trajectory Na1, and the adjacent trajectory is also a straight trajectory, and the end point P3 is moved by a point, the calculation may be performed as follows. That is, the straight trajectory after the point movement is calculated based on the coordinates of the point after the movement and the equation of the straight line passing through the starting point or the end point adjacent to this point. This calculated straight trajectory is displayed in the image operation area 15a by the display control unit 28.
[0068] (5.8.2. Arc Change) Next, the case of changing the arc will be described with reference to the example shown in FIG. 14. Note that FIG. 14 shows the same trajectory N as FIG. 13. This example is an example in which the arc trajectory Na1 is changed in the trajectory N, and it is assumed that the arc trajectory Na1 to be changed is specified by touch operation before the edit button 50 is operated. When the arc change button 84 is operated, the display control unit 28 displays the virtual grinding wheel contour A1 on the trajectory N before the change, superimposed on the arc trajectory Na1 to be changed, which is indicated by a two-dot chain line, based on the fact that the button was operated before the edit button 50 was operated. Note that the position where the virtual grinding wheel contour A1 is superimposed on the arc trajectory Na1 is, for example, a position approximately half the length of the arc trajectory Na1, but is not limited to this position and may be another position.
[0069] After that, the operator operates the X-axis operating device 20 and the Y-axis operating device 22 shown in FIG. 1. The control program allows the trajectory change point to be changed to be moved via the virtual grindstone contour A1 based on the amount of operation of the X-axis operating device 20 and the Y-axis operating device 22 when the arc change button 84 is operated. Therefore, based on the operation of the X-axis operating device 20 and the Y-axis operating device 22, the display control unit 28 moves the grindstone contour A1 to move the arc trajectory Na1 to be changed, as shown in FIG. 14. When the arc trajectory Na1 to be changed after the movement is moved, the trajectory generating unit 32 calculates the coordinates of the midpoint P2a after the movement, and further calculates the arc trajectory Na3 by the equation of a circle based on the coordinates of the start point P1, the midpoint P2a, and the end point P3. Then, as shown in FIG. 14, the display control unit 28 displays the calculated arc trajectory Na3 in the image operation area 15a as indicated by a two-dot chain line. This change in arc allows the radius (size) of the arc trajectory to be changed arbitrarily, as shown in Fig. 14. When the close button 86 of the edit menu 80 is operated, the display control unit 28 hides the edit menu 80.
[0070] (5.8.3. Special buttons 52) When the special button 52 shown in FIG. 3(a) is operated, the display control unit 28 pops up a special menu 88 shown in FIG. 3(b) on the screen 15 of the display 14. The special menu 88 is provided with a dwell button 90, an OP stop button 92, and a close button 94. The dwell button 90 is operated when inserting a command to stop NC operation for a predetermined second at each point position in the axis movement speed field 74 shown in FIG. 3(a) when teaching each point of the start point, midpoint, and end point. The OP stop button 92 is operated when inserting a command to stop NC operation at each point position in the axis movement speed field 74 shown in FIG. 3(a) when teaching each point of the start point, midpoint, and end point. When the close button 94 of the special menu 88 is operated, the display control unit 28 hides the special menu 88.
[0071] (5.9. Setting button 56, Enable button 58, Approach button 60) When the operator wants to move the grindstone contour A linearly in any of the steps, the display control unit 28 operates the setting button 56 shown in FIG. 3(a) to display an input field (not shown) in which the angle at which the grindstone contour A is moved can be input for that step. When an angle input is input into the input field by the console 16 and the enable button 58 is operated, the linear trajectory of the set step can be moved by linear interpolation at the set angle θ in that step. The angle θ is an angle with respect to a line parallel to the X-axis. FIG. 11 shows a case where the linear trajectory Nd of the trajectory N having linear trajectories Nc and Nd is set to move by linear interpolation at the set angle θ. Note that if the enable button 58 is not operated, the movement by linear interpolation is invalid.
[0072] The approach button 60 shown in FIG. 3(a) is operated when setting the approach method. The approach operation is performed only by the Y-axis operation device 22. When the approach button 60 is operated, the display control unit 28 displays on the display 14 a setting field for the movement direction of the grindstone contour A from the approach point toward the workpiece contour B, and an input field for the set angle (both not shown). In setting the movement direction, either the "direction perpendicular to the normal to the set angle" or the "Y-axis direction" is set. When the set angle is inputted into the input field by the console 16 and the "direction perpendicular to the normal to the set angle" is selected, when the enable button 58 is operated, the approach of the grindstone contour A is performed by movement in the direction perpendicular to the normal to the set angle. When the "Y-axis direction" is set and the enable button 58 is operated, the approach of the grindstone contour A is performed by movement in the "Y-axis direction".
[0073] (5.10. "x10" button 62, "x1" button 64, "x1 / 10" button 66) The "x10" button 62, "x1" button 64, and "x1 / 10" button 66 for the handle magnification are buttons for selecting the movement speed of the grindstone contours A, A1 when the X-axis operation device 20 and the Y-axis operation device 22 are operated. Based on the movement speed of the grindstone contours A, A1 when the "x1" button 64 is operated, when the "x10" button 62 and the "x1 / 10" button 66 are operated, the grindstone contours A, A1 are moved at 10 times the speed and 1 / 10 times the speed, respectively.
[0074] (Operation of the first embodiment) An image teaching method in the image teaching system 10 configured as above will be described with reference to FIGS.
[0075] In S10 shown in FIG. 2, the operator operates the shape data tab 67a shown in FIG. 3(a) to display various operation buttons such as a shape data read button (not shown) in the switching tab display area 15d and the button display area 15c. The operator operates the shape data read button (not shown) to cause the CPU 24 to read the shape drawing data of the workpiece from the hard disk of the storage unit 26. The CPU 24 as the display control unit 28 displays the workpiece contour in the image operation area 15a of the display 14 as shown in FIG. 6 based on the read workpiece shape drawing data. In S20 in FIG. 2, the operator operates the shape data read button (not shown) to cause the CPU 24 to read the grindstone contour image data from the hard disk of the storage unit 26. The CPU 24 as the display control unit 28 displays the grindstone contour A in the image operation area 15a of the display 14 as shown in FIG. 6 based on the read grindstone contour image data. In this way, the screen 15 of the display 14 is a common screen that displays both the workpiece contour and the grindstone contour.
[0076] In S30 in FIG. 2, the operator operates the teaching tab 67b shown in FIG. 3(a) to cause the display control unit 28 to display various operation buttons in the switching tab display area 15d and the button display area 15c as shown in FIG. 3(a). After that, the operator moves the grindstone contour A by operating the X-axis operation device 20 and the Y-axis operation device 22. Then, when the detection unit 30 calculates the distance between the grindstone contour A and the workpiece contour B and detects that the distance reaches the contact judgment threshold, the display control unit 28 highlights the contact point of the workpiece contour B based on this detection as shown in FIG. 7(a). The operator performs teaching for this highlighted portion by operating the start point button 44, the midpoint button 46, or the end point button 48. Thereafter, the grindstone contour A is moved in the same manner, and teaching is repeated for the portion in contact with the workpiece contour B. The trajectory generation unit 32 generates the trajectory of the grindstone contour A each time teaching is repeated as described above. In this trajectory, information such as Type and axis movement speed is input for each teaching process line number.
[0077] FIG. 6 shows the points obtained by teaching the approach point P0 to the retreat point P10 in the change point direct teaching mode. The dashed line passing through these points is the trajectory of the grindstone contour A. In FIG. 6, "K", "E", and "T" on the workpiece contour B are the points where the grindstone contour A contacts the workpiece contour B, and are the points where the start point button 44, the end point button 48, and the midpoint button 46 are operated, respectively. Thus, S30 corresponds to a moving step in which the grindstone contour is moved to the workpiece contour under the control of the display control unit 28, and a teaching step in which teaching is performed in the teaching unit. S30 also includes a step in which the moving step and the teaching step are repeated to obtain a trajectory including the position of the obtained grindstone contour in the trajectory generating unit.
[0078] When the program save button 34 is operated in S40, the process program including the information such as the teaching process line number, Type, and axis movement speed, and the trajectory is saved in the hard disk of the storage unit 26. Then, in S40, when the program load button 36 in FIG. 3(a) is operated, the process program stored in the hard disk of the storage unit 26 is displayed in a pop-up screen. The process program displayed in this pop-up screen can be read. When the machine transfer button 38 is operated, the loaded process program is transferred to the NC device 33. The NC device 33 executes the transferred process program to perform grinding of the workpiece. In this embodiment, the grinding wheel contour A and the workpiece contour B can be displayed on a common screen. Therefore, the trajectory including the position of the grinding wheel contour A can be generated in the machine coordinate system. Therefore, the process program transferred to the NC device 33 can be used without coordinate conversion.
[0079] This embodiment has the following features. (1) The image teaching method and system 10 includes a step of displaying the workpiece contour and the grinding wheel contour on the screen 15 (common screen) of the display 14 by the display control unit 28. After this, in a moving step, the display control unit moves the grinding wheel contour to the workpiece contour based on the operation of the manual operation unit by the operator. In a teaching step, the operator teaches the position of the grinding wheel contour when the grinding wheel contour comes into contact with the workpiece contour using the start point button 44, the midpoint button 46, and the end point button 48 (teaching unit). By the operator repeating these steps, the trajectory generating unit generates a trajectory including the obtained position of the grinding wheel contour. As a result, this embodiment does not require an optical projector or chart paper, and teaching can be easily performed.
[0080] (2) In the image teaching method and system 10 of this embodiment, the image teaching system 10 has a detection unit 30 that detects contact between the grinding wheel contour A and the workpiece contour B in the movement step. The image teaching system 10 has a display 14 (notification unit) that notifies the teaching operator of the contact between the grinding wheel contour A and the workpiece contour B when the contact is detected by the detection unit 30 in the movement step. After receiving the notification on the display 14 (notification unit), the operator teaches the position of the grinding wheel contour using the start point button 44, midpoint button 46, and end point button 48 (teaching unit). As a result, the accuracy of the trajectory generated by the trajectory generation unit 32 can be maintained.
[0081] (3) In the image teaching method and system 10 of this embodiment, in response to detection of the contact by the detection unit 30, the display 14 (notification unit) highlights a predetermined range including the portion where the grinding wheel contour A contacts the workpiece contour B under the control of the display control unit 28. According to the above configuration, since not only the portion where the grinding wheel contour A contacts the workpiece contour B but also the predetermined range is highlighted, the operator can easily know which portion of the workpiece contour the grinding wheel contour has contacted.
[0082] (4) When an end point is taught following a start point, the trajectory generating unit 32 of the image teaching system 10 forms a straight line trajectory of the grinding wheel contour at the time of the teaching of the start point and the teaching of the end point. As a result, the image teaching system 10 can easily form a straight line trajectory of the grinding wheel contour.
[0083] (5) When teaching of the start point, teaching of the midpoint, and teaching of the end point are successively performed, the trajectory generating unit 32 forms an arc trajectory of the grinding wheel contour at the time of teaching of the start point, teaching of the midpoint, and teaching of the end point. As a result, the trajectory generating unit can obtain the arc trajectory of the grinding wheel contour by teaching the start point, teaching the midpoint, and teaching the end point.
[0084] (6) The image teaching system 10 has a cross line button 79 (change point position display instruction unit) that displays and instructs the positions of the change points between straight lines, between straight lines and arcs, and between arcs and arcs, which are included in the workpiece contour. The display control unit 28 of the image teaching system 10 causes the display 14 to display the change point positions in response to the operation of the cross line button 79 to instruct the display of the change point positions. As a result, the operator can move the grinding wheel contour relative to the workpiece contour using the displayed change points as a guide. In particular, in the case of a change point between a straight line and an arc, a change point where the angle at which the straight line and the straight line intersect is shallow, or a change point between arcs with different radii of curvature, if there is no change point position display, the change point position is likely to be unclear. In such cases, if the change point position display is performed, it is also possible to easily move the grinding wheel contour relative to the change point itself. Alternatively, it is also possible to easily move the grinding wheel contour between mutually different change points.
[0085] (7) The image teaching system 10 has a guide line button 78 (change point related line extension display instruction unit) that instructs the display of an extension of a straight line or a circular arc related to the change point from the change point. The display control unit 28 causes the display to display an extension of the straight line or the circular arc related to the change point in response to an operation of instructing the extension display from the change point by the guide line button 78. As a result, the extension display of the straight line or the circular arc related to the change point enables the operator to move the grinding wheel contour relative to the workpiece contour with the change point as a reference. In particular, in the case of a change point between a straight line and a circular arc, or a change point where the angle at which the straight lines intersect is shallow, in the case of a change point between circular arcs with different radii of curvature, if there is no extension display of the line related to the change point, it is easy to know where the change point is located. In such a case, if the extension display of the straight line or the circular arc related to the change point is displayed, it is also possible to easily move the grinding wheel contour relative to the change point itself. Alternatively, it is also possible to easily move the grinding wheel contour between the change points.
[0086] Second embodiment An image teaching system 10 and an image teaching method according to the second embodiment will be described with reference to Figs. 14 to 17(a) and 17(b).
[0087] The image teaching system 10 of this embodiment is the same as the image teaching system 10 of the first embodiment. However, since the present embodiment involves an NC device 33, the configuration of the NC device 33 will be further described.
[0088] (NC device 33) As shown in FIG. 15, the NC device 33 includes a grinding mechanism 131, a workpiece holding mechanism 132, a moving mechanism 133, and an imaging unit 139.
[0089] The grinding mechanism 131 is equipped with a disk-shaped grindstone 135, and during grinding, grinds the workpiece 120 held by the workpiece holding mechanism 132. The grindstone 135 is formed with grinding marks on the dummy workpiece of the first embodiment. The grinding mechanism 131 rotates the grindstone 135 during grinding. The workpiece holding mechanism 132 detachably holds the workpiece 120. The workpiece holding mechanism 132 can also detachably hold a dummy workpiece (not shown) instead of the workpiece 120.
[0090] The grinding mechanism 131 is provided in a moving mechanism 133, and moves the grindstone 135 relative to the workpiece 120. The moving mechanism 133 includes an X-axis motor 137, a Y-axis motor 138, and a Z-axis motor 136. The X-axis motor 137 and the Y-axis motor 138 are rotated and controlled by an NC control unit 29, which will be described later, so that the moving mechanism 133 can move the grindstone 135 in the X and Y directions. In addition, the Z-axis motor 136 can be driven to swing the grindstone 135 up and down (Z direction) within a predetermined range.
[0091] The imaging unit 139 is disposed above the workpiece 120 or the dummy workpiece held by the workpiece holding mechanism unit 132. The imaging unit 139 is composed of a CMOS camera or a CCD camera, and has a focal position at the height position of the upper end surface of the workpiece 120 or the dummy work. An illumination device 134 is disposed below the workpiece 120 or the dummy work, and illumination light is irradiated toward the imaging unit 139 from below the workpiece 120 or the dummy work.
[0092] The imaging unit 139 transmits to the display control unit 28 imaging signals of moving images of the grinding wheel 135 during teaching, imaging signals of moving images of the movement of the grinding wheel 135 and the workpiece 120 during cutting processing, or imaging signals of still images of the grinding marks on the dummy workpiece cut by the grinding wheel 135.
[0093] The display control unit 28 displays a grindstone image Gg of the grindstone 135 in the image operation area 15a of the display 14 based on an imaging signal of a moving image of the grindstone 135 during teaching. The display control unit 28 also displays the grindstone image Gg of the grindstone 135 and an actual work image (not shown) of the workpiece 120 in the image operation area 15a of the display 14 based on an imaging signal of a moving image of the grindstone 135 and the workpiece 120 during cutting processing. The display control unit 28 also displays an actual image of the grinding marks on the dummy workpiece cut by the grindstone 135 in the image operation area 15a of the display 14 based on an imaging signal of a still image of the grinding marks on the dummy workpiece cut by the grindstone 135.
[0094] (Image teaching processing device 12) The CPU 24 of the image teaching processing device 12 of this embodiment also operates as an NC control unit 29 .
[0095] When the manual handle 20a of the X-axis operation device 20 is operated, the encoder 20b outputs an operation signal corresponding to the operation to the CPU 24 of the image teaching processing device 12. The NC control unit 29 drives and controls the X-axis motor 137, which will be described later, based on the operation signal, thereby moving the grindstone 135 in the X direction.
[0096] Based on the operation signal, the display control unit 28 of the CPU 24 moves the grindstone contour A described in the first embodiment and displayed in the image operation area 15a of the screen 15 in the X-axis direction of the machine coordinate system shown in FIG.
[0097] When the manual handle 22a of the Y-axis operation device 22 is operated, the encoder 22b outputs an operation signal corresponding to the operation to the CPU 24. The NC control unit 29 drives and controls a Y-axis motor 138 (described later) based on the operation signal, thereby moving the grindstone 135 in the Y direction.
[0098] In addition, based on the operation signal, the display control unit 28 of the CPU 24 moves the grinding wheel contour A described in the first embodiment and displayed in the image operation area 15a of the screen 15 in the Y-axis direction of the machine coordinate system shown in Figure 1.
[0099] Here, the XY coordinates of the grinding wheel contour A are updated in response to the operation of the manual handles 20a, 22a so as to be equal to the XY coordinates of the grinding wheel 135, which are updated each time the grinding wheel 135 moves in the X and Y directions in response to the operation of the manual handles 20a, 22a.
[0100] (Operation of the second embodiment) Next, the operation of the second embodiment will be described with reference to FIGS. 2, 16, 17(a) and 17(b).
[0101] In this embodiment, it is assumed that the grindstone 135 attached to the grinding mechanism 131 is imaged by the imaging unit 139, and a grindstone image Gg (see FIG. 16(b)) is displayed in the image operation area 15a of the display 14. Note that the workpiece 120 is not held by the workpiece holding mechanism 132.
[0102] In this case, only some steps of the image teaching method in the image teaching system shown in FIG. 2 are different from those in the first embodiment, so the following will describe only the differences.
[0103] In this embodiment, when teaching is performed, the operator displays the grindstone contour A and the grindstone image Gg in an overlapping manner. Since S10 is the same as in the first embodiment, the description will be omitted.
[0104] In S20, the operator touches the grindstone contour display ON button 54 as a shape data read button in the button display area 15c shown in Fig. 16(a). As a result, the CPU 24 as the display control unit 28 reads the grindstone contour image data from the hard disk of the storage unit 26.
[0105] The display control unit 28 superimposes the grindstone contour A on the grindstone image Gg and displays it in the image operation area 15a of the display 14 as shown in Fig. 16(c) based on the read grindstone contour image data. In this case, the display control unit 28 superimposes the grindstone contour A on the portion that becomes the contour of the grindstone image Gg for each frame of the video. When the display control unit 28 enlarges or reduces the display of the grindstone image Gg on the screen of the display 14, it also enlarges or reduces the display of the grindstone contour A at the same magnification.
[0106] 16(b) and 16(c), the grindstone image Gg is an image when the grindstone 135 is located at the focal position of the imaging unit 139. For ease of explanation, the entire grindstone image Gg of the grindstone 135 is drawn with hatched lines to clearly indicate that the grindstone 135 is located at the focal position. Note that the hatched lines do not indicate a cross-sectional view.
[0107] In addition, in the grindstone image Gg of the grindstone 135 that is not positioned at the focal position, a blurred region Gb with an unclear outline is depicted as a point cloud. When the grindstone contour A is displayed superimposed on the grindstone image Gg as described above, to cancel the superimposed display, the operator touches the grindstone contour display ON button 54. This touch operation causes the display control unit 28 to stop displaying the grindstone contour A.
[0108] In this manner, by operating the grindstone contour display ON button 54, the display and non-display of the grindstone contour A can be performed with a single touch. Since S30 is similar to that in the first embodiment, the description will be omitted.
[0109] In this embodiment, when teaching is performed, the grindstone contour A and the grindstone image Gg are displayed superimposed on each other. As a result, for example, Fig. 7(a) and Fig. 7(b) explained in the section (5.6. Highlight display) of the first embodiment become Fig. 17(a) and Fig. 17(b), respectively. As shown in Fig. 17(a) and Fig. 17(b), in the grindstone image Gg, the blurred area Gb may be located further inside the workpiece than the workpiece contour B. In this case, the operator may visually mistakenly recognize that there is no contact.
[0110] In this embodiment, the grindstone contour A and the grindstone image Gg are superimposed, so there is no risk of the operator misunderstanding. In addition, when the grindstone contour A comes into contact with the workpiece contour B, the contact is highlighted, so the operator can easily know which part of the workpiece contour the grindstone contour has come into contact with. In addition, the grindstone image Gg is also displayed on the display 14, so teaching can be performed in a realistic state.
[0111] This embodiment has the following features. (1) In the image teaching method and image teaching system 10 of this embodiment, in the step of displaying the workpiece contour and the grindstone contour on the common screen of the display 14 by the display control unit 28, the grindstone contour is displayed superimposed on the grindstone image Gg.
[0112] With the above configuration, teaching can be performed in a state where a sense of reality is obtained by displaying the grindstone image and the grindstone contour superimposed on each other. In addition, since the grindstone contour A and the grindstone image Gg are superimposed on each other, there is no risk of the operator misunderstanding.
[0113] With the above configuration, the work can be performed as an extension of the work that was previously performed with a projector. In other words, with the configuration of this embodiment, instead of looking at the grindstone with a projector, you can look at the grindstone image on the display and operate the X-axis operation device and the Y-axis operation device on the machine side. Create a trajectory using the conventional teaching method.
[0114] By overlaying the wheel image on the wheel outline, teaching can be done more accurately and easily than before. As a result, workers do not need to change the teaching work they have been doing with the projector, and they do not need to learn new operations.
[0115] (2) In addition, when the grindstone contour is superimposed on the grindstone image and the grindstone contour comes into contact with the workpiece contour, a specified area including the contacted area is highlighted. Therefore, even when the grindstone contour is superimposed on the grindstone image, the operator can easily know which area of the workpiece contour the grindstone contour has come into contact with, and can perform teaching more accurately and simply than before.
[0116] This embodiment can be modified as follows: This embodiment and the following modifications can be combined with each other to the extent that there is no technical contradiction. In the above embodiment, when contact is made between the grinding wheel contour A and the workpiece contour B, the display is configured to highlight a predetermined range of the workpiece contour B including the contact point with the grinding wheel contour A. However, the notification of contact between the two may be changed as follows.
[0117] Highlight the entire workpiece contour B. Change the color of the wheel contour A or workpiece contour B or make it flash. When using something other than a display as the notification unit, the following may be done.
[0118] The display screen may light up a lamp to notify the user of said contact. A separate indicator light may be used as the notification unit to light up when contact occurs. A sound generating unit such as a buzzer may be used as the notification unit to notify the user of said contact by sound.
[0119] In the above embodiment, the change point position display is performed by cross lines, but the change point position display is not limited to cross lines. The change point position display may be displayed in other shapes as long as it clearly indicates the position of the change point.
[0120] In the above embodiment, the elements of the workpiece contour include circular arcs, but the curves as elements are not limited to circular arcs. In addition to circular arcs, partial curves contained in spline curves, cycloid curves, ellipses, etc. may be included. When the elements are partial curves of these curves and are extended from the change point as a reference line, the reference line may be extended as a part of the curve described above. [Explanation of symbols]
[0121] 10. Image teaching system 12...Image teaching processing device 14…Display (notification section) 15...Screen (common screen) 20...X-axis operating device 22...Y-axis operating device 24…CPU 26...Storage section 28...Display control unit 30…Detection section 32...Trajectory generation section 33…NC device 34…Program save button 36...Program load button 38...Machine transfer button 44…Start point button (teaching section) 46...Middle point button (teaching section) 48...End point button (teaching section) 54…Whetstone outline display ON button 78...Guideline button (change point relationship line extension display indicator) 79...Cross line button (change point position display indicator) A…Wheel profile B…Workpiece contour Ba, Bb...straight line Bc…Circular arc Be, Bf...straight line C: Cross wire D1, D2…straight line D3…Arc Ea, Eb, Ec, Ee, Ef, Eg, ... end point Fa, Fb: Trajectory change points Gg…Grinding stone image Gb…Bokeh area H1, H2…straight line H3…Arc J…Contact point Ja, Jb, Jc…Contact point Ka, Kb, Kc, Kd...Start point Lc…Contact point Ma, Mb...Guideline N…Trajectory Qa, Qb, Q1, Q2, Q3...Change points Ra, Rb, Rc…Contact point Rf, Rg…end points Tc, Tg…midpoint
Claims
1. An image teaching method in an image teaching system including a display, a display control unit that controls the display, a manual operation unit, a teaching unit, and a trajectory generation unit, A step of displaying the workpiece shape contour (hereinafter referred to as the workpiece contour) and the grindstone contour on a common screen of the display based on the workpiece shape drawing data and the grindstone contour image data by the display control unit; a moving step of moving the grinding wheel contour to the workpiece contour on the common screen of the display by controlling the display control unit based on an operation of the manual operation unit; a teaching step of teaching the position of the grinding wheel contour when the grinding wheel contour comes into contact with the workpiece contour by the teaching unit; The method includes a step of repeating the moving step and the teaching step to obtain a trajectory including the obtained position of the grinding wheel contour by the trajectory generating unit, The image teaching system includes a detection unit that detects contact between the grinding wheel contour and the workpiece contour in the moving step, and a notification unit that notifies a teaching operator of the contact between the grinding wheel contour and the workpiece contour when the contact is detected by the detection unit, The image teaching method includes teaching the position of the grinding wheel contour by the teaching unit after the notification by the notification unit.
2. The image teaching method described in claim 1, wherein the step of displaying the workpiece shape contour (hereinafter referred to as the workpiece contour) and the grinding wheel contour on the common screen of the display based on the workpiece shape drawing data and the grinding wheel contour image data by the display control unit further comprises the display control unit superimposing and displaying the grinding wheel contour on the acquired grinding wheel image.
3. The notification unit is the display, The image teaching method described in claim 1 or 2, wherein, in response to detection of the contact by the detection unit, the display control unit controls to highlight the area where the grinding wheel contour comes into contact with the workpiece contour, or a predetermined range including the contact area, thereby notifying a teaching operator of the contact of the grinding wheel contour with the workpiece contour.
4. A display and a display control unit that displays the workpiece shape contour (hereinafter referred to as the workpiece contour) and the grindstone contour on a common screen of the display based on the workpiece shape drawing data and the grindstone contour image data; a manual operation unit for moving the grindstone contour on the display; a teaching unit that teaches the position of the grindstone contour when the grindstone contour comes into contact with the workpiece contour; a trajectory generating unit that generates a trajectory including the position of the grinding wheel contour taught by the teaching unit; A detection unit that detects contact between the grindstone contour and the workpiece contour; A notification unit is provided that notifies a teaching operator of the contact between the grinding wheel contour and the workpiece contour when the contact is detected by the detection unit, The teaching unit is an image teaching system that teaches the position of the grinding wheel contour after the notification unit notifies the contact between the grinding wheel contour and the workpiece contour.
5. A display; a display control unit that displays the workpiece shape contour (hereinafter referred to as the workpiece contour) and the grindstone contour on a common screen of the display based on the workpiece shape drawing data and the grindstone contour image data; a manual operation unit for moving the grindstone contour on the display; a teaching unit that teaches the position of the grindstone contour when the grindstone contour comes into contact with the workpiece contour; a trajectory generating unit that generates a trajectory including the position of the grinding wheel contour taught by the teaching unit, The workpiece contour includes at least one of a straight line and a line change point, a straight line and a curve change point, and a curve and a curve change point, a change point position display / indication unit for displaying and instructing the position of the change point; The display control unit is an image teaching system that causes the display to display the position of the change point in response to an operation of the change point position display instructing unit to display the position of the change point.
6. A display; a display control unit that displays the workpiece shape contour (hereinafter referred to as the workpiece contour) and the grindstone contour on a common screen of the display based on the workpiece shape drawing data and the grindstone contour image data; a manual operation unit for moving the grindstone contour on the display; a teaching unit that teaches the position of the grindstone contour when the grindstone contour comes into contact with the workpiece contour; a trajectory generating unit that generates a trajectory including the position of the grinding wheel contour taught by the teaching unit, The workpiece contour includes at least one of a straight line and a line change point, a straight line and a curve change point, and a curve and a curve change point, An image teaching system having a change point relationship line extension display instruction unit that instructs the extension display of a straight line or arc related to the change point from the change point, and the display control unit causes the display to display the extension of the straight line or curve related to the change point in response to an operation of the change point relationship line extension display instruction unit to instruct the extension display from the change point.
7. The image teaching system of any one of claims 4 to 6, wherein the display control unit displays the acquired grinding wheel image and the grinding wheel contour by superimposing them on each other when displaying the workpiece shape contour (hereinafter referred to as the workpiece contour) and the grinding wheel contour on the common screen of the display based on the workpiece shape drawing data and the grinding wheel contour image data.
8. The notification unit is the display, The image teaching system described in claim 4 or claim 7 which cites claim 4, wherein in response to detection of the contact by the detection unit, the display control unit controls to highlight the area where the grinding wheel contour comes into contact with the workpiece contour, or a specified range including the contact area, thereby notifying a teaching operator of the contact of the grinding wheel contour with the workpiece contour.
Citation Information
Patent Citations
Grinding device
JP1985104650A
Off-line teaching method for robot
JP1994348322A
Optical profile grinding method and device
JP2001088002A
Grinding method by use of grinding machine, and grinding machine
JP2008105119A
Processing simulation device
JP2009230571A
