Control device, industrial machine and control method
The control device addresses machining error correction in industrial machines by measuring and adjusting tool displacement and contact, enhancing the precision and accuracy of workpiece processing.
Patent Information
- Application Number
- JP2020155792
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-09-16
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2040-09-16
AI Technical Summary
Existing industrial machines face challenges in accurately correcting machining errors during the processing of workpieces, which affect the precision and quality of the final product.
A control device and method that includes a jig to support the workpiece and tool, measuring their displacement, specifying relative displacement, determining tool contact with the workpiece, and correcting tool length data based on captured images and sensor data to generate precise control commands.
The control device effectively corrects machining errors by accurately determining tool contact and adjusting tool length, improving the precision and accuracy of workpiece processing.
Smart Images

Figure 0007568461000002 
Figure 0007568461000003 
Figure 0007568461000004
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a control device, an industrial machine, and a control method. [Background technology]
[0002] Patent Document 1 discloses a technology that uses a tool of an industrial machine as a shape measuring probe. Specifically, Patent Document 1 discloses a technology that applies vibration to the tool and determines that the tool has come into contact with an object when a force sensor attached to the tool detects the vibration. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2006-159299 A Summary of the Invention [Problem to be solved by the invention]
[0004] 2. Description of the Related Art In order to improve the accuracy of machining a workpiece using a machine such as an industrial machine, it is desirable to correct machining errors while machining the workpiece. An object of the present disclosure is to provide a control device, an industrial machine, and a control method that are capable of correcting machining errors while machining a workpiece. [Means for solving the problem]
[0005] According to a first aspect of the present invention, a control device is a control device for a machine having a jig that supports a workpiece and a tool that machines the workpiece, and includes a relative displacement identification unit that identifies a relative displacement between the jig and the tool based on measurement values of displacement of the jig and the tool, a position determination unit that determines whether the jig and the tool are located at a jig calibration point and a tool calibration point, respectively, based on the measurement values of displacement of the jig and the tool, a displacement correction unit that corrects the measurement values of displacement of the jig and the tool based on an image captured at the jig calibration point and an image captured at the tool calibration point, when it is determined that the jig and the tool are located at the jig calibration point and the tool calibration point, respectively, a contact determination unit that determines whether the tool has come into contact with the workpiece based on a measurement value related to the deflection of the tool, a tool length correction unit that corrects tool length data indicating the length of the tool based on the relative displacement when it is determined that the tool has come into contact with the workpiece, and a control unit that generates a control command to control the jig or the tool based on the relative displacement, the shape of the workpiece, and the tool length data. Effect of the Invention
[0006] According to the above aspect, the control device can correct the machining error while machining the workpiece. [Brief description of the drawings]
[0007] [Figure 1] 1 is a perspective view showing the appearance of a machining center according to a first embodiment. [Diagram 2] FIG. 2 is a schematic diagram showing a configuration of a spindle head according to the first embodiment. [Diagram 3] 1 is a schematic block diagram showing a configuration of a control device according to a first embodiment. [Figure 4] 5 is a flowchart showing a calibration operation of the control device according to the first embodiment. [Diagram 5] 4 is a flowchart showing a processing operation performed by the control device according to the first embodiment. [Figure 6]13 is a diagram showing the relationship between the position of a calibration point and the position of a head mark during a correction operation of a relative displacement based on a captured image. FIG. [Figure 7] 13 is a diagram showing the relationship between the position of the calibration point and the position of the head mark when the spindle head is controlled to be located at the calibration point without correcting the relative displacement. FIG. [Figure 8] 1 is a graph showing the relationship between measured values of torque and deflection and calculated values of stiffness. [Figure 9] FIG. 13 is a diagram showing an example of side surface machining of a workpiece. [Figure 10] FIG. 13 is a diagram showing the measurement results of machining errors of a workpiece due to side machining. [Figure 11] FIG. 1 is a schematic block diagram illustrating a configuration of a computer according to at least one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] First embodiment <<Configuration of Machining Center 20>> Hereinafter, the embodiments will be described in detail with reference to the drawings. 1 is a perspective view showing the appearance of a machining center 20 according to a first embodiment. The machining center 20 includes a base 21, a column 22, a table 23, a head camera 31, a table camera 32, and a control device 40. The column 22 and the table 23 are provided on the upper surface of the base 21.
[0009] The column 22 is provided so as to be movable in the X-axis direction set parallel to the upper surface of the base 21. An X-axis motor 22M and an X-axis encoder 22E are provided on the base 21. The X-axis motor 22M is an actuator for moving the column 22 along the X-axis. The rotation of the X-axis motor 22M is converted into linear motion by a ball screw mechanism (not shown). The X-axis encoder 22E measures the amount of movement of the column 22.
[0010] A slider 24 is attached to the column 22. The slider 24 is disposed on the side of the column 22 facing the table 23, and is provided so as to be movable in the Y-axis direction perpendicular to both the X-axis and the Z-axis. A Y-axis motor 24M and a Y-axis encoder 24E are provided to the column 22. The Y-axis motor 24M is an actuator for moving the slider 24 along the Y-axis. The rotation of the Y-axis motor 24M is converted into linear motion by a ball screw mechanism (not shown). The Y-axis encoder 24E measures the amount of movement of the slider 24.
[0011] A spindle head 25 is attached to the surface of the slider 24 facing the table 23. A head mark 25X is drawn on the top surface of the spindle head 25. The head mark 25X is represented by, for example, an X mark as shown in FIG. 1. The shape of the head mark 25X is not limited to an X mark, and may be any shape that allows the center position and angle to be specified. The spindle head 25 supports a spindle 26 rotatably about a rotation axis parallel to the Z axis. Note that the spindle head 25 itself does not rotate. A tool A is attached to the spindle 26. An example of the tool A is a milling cutter. A spindle motor 26M for rotating the spindle 26 is provided on the spindle 26. The tool A is attached to the spindle 26 by the user, and can be replaced.
[0012] 2 is a schematic diagram showing the configuration of the spindle head 25 according to the first embodiment. The spindle head 25 is provided with a displacement sensor 26D that measures the displacement of the tool mounting portion of the spindle 26, and a torque sensor 26T that measures the torque of the spindle 26. An example of the displacement sensor 26D is an eddy current type displacement sensor. The displacement sensor 26D can measure the deflection of the tool A by measuring the displacement of the tool mounting portion. Note that in other embodiments, the machining center 20 may not include the torque sensor 26T, and the torque of the spindle 26 may be determined based on the torque command value or the current value of the spindle motor 26M.
[0013] The table 23 is provided so as to be movable in the Z-axis direction, which is parallel to the upper surface of the base 21 and perpendicular to the X-axis. A work table 27 is attached to the upper part of the table 23. The work table 27 is a jig that supports a work W, which is an object to be processed. A table mark 27X is drawn on the upper surface of the work table 27. The table mark 27X is represented by, for example, an X mark as shown in FIG. 1. The form of the table mark 27X is not limited to an X mark, and may be any mark that can specify the center position and angle. The table mark 27X may be drawn on a part of the table 23 on which the work W is not placed. By drawing the table mark 27X on a part on which the work W is not placed, it is possible to perform the calibration described below with the work W placed. The base 21 is provided with a Z-axis motor 23M and a Z-axis encoder 23E. The Z-axis motor 23M is an actuator for moving the table 23 along the Z-axis. The rotation of the Z-axis motor 23M is converted into linear motion by a ball screw mechanism (not shown). The Z-axis encoder 23E measures the amount of movement of the table 23.
[0014] The head camera 31 is installed so that its optical axis passes through the center of the head mark 25X of the spindle head 25 when the column 22 and slider 24 are located at a predetermined calibration point. The head camera 31 is installed so that its optical axis is parallel to the Y axis. The calibration point where the column 22 should be located is also called the column calibration point. The calibration point where the slider 24 should be located is also called the slider calibration point. When the column 22 is located at the column calibration point and the slider 24 is located at the slider calibration point, the spindle head 25 is located at the tool calibration point. The table camera 32 is provided so that its optical axis passes through the center of the table mark 27X of the work table 27 when the table 23 is located at a predetermined calibration point. The table camera 32 is provided so that its optical axis is parallel to the Y axis. The calibration point where the table 23 should be located is also called the table calibration point. When the table 23 is located at the table calibration point, the work table 27 is located at the jig calibration point. The head camera 31 and the table camera 32 are attached to a camera jig 33. The camera jig 33 has holes for attaching the head camera 31 and the table camera 32. The camera jig 33 is made of a material that hardly experiences thermal expansion, such as ceramics. The camera jig 33 is attached to a housing (not shown) that covers the machining center 20.
[0015] Configuration of the control device 40 3 is a schematic block diagram showing the configuration of the control device 40 according to the first embodiment. The control device 40 controls various actuators of the machining center 20 based on measurement data of the machining center 20. The control device 40 includes a data acquisition unit 41, a shape memory unit 42, a parameter memory unit 43, a position determination unit 44, a displacement correction unit 45, a relative displacement identification unit 46, a rigidity calculation unit 47, a contact determination unit 48, a tool length correction unit 49, a cutting amount determination unit 50, a model generation unit 51, an error identification unit 52, a control unit 53, a finished shape generation unit 54, and a display control unit 55.
[0016] The data acquiring unit 41 acquires measurement data from various sensors of the machining center 20. Specifically, the data acquiring unit 41 acquires measurement data from the X-axis encoder 22E, the Z-axis encoder 23E, the Y-axis encoder 24E, the displacement sensor 26D, and the torque sensor 26T. The data acquiring unit 41 also acquires image data from the head camera 31 and the table camera 32.
[0017] The shape memory unit 42 stores target shape data, which is three-dimensional data representing a target shape of the workpiece W, initial shape data, which is three-dimensional data representing an initial shape of the workpiece W, and machined shape data, which is three-dimensional data representing a shape after machining of the workpiece W. The target shape data and initial shape data are input in advance by a user of the machining center 20. The initial value of the machined shape data is the same as the initial shape data.
[0018] The parameter storage unit 43 stores parameters used for the control of the machining center 20 by the control unit 53. Specifically, the parameter storage unit 43 stores a relative displacement offset, a tool length, and a state model. The relative displacement offset is a correction value for the relative displacement between the spindle head 25 and the work table 27 obtained from the measurement data of the encoder. The relative displacement may include not only the amount of parallel movement but also the rotation angle. The relative displacement may be represented by the X-axis component and the Z-axis component of the distance between the center point of the head mark 25X and the center point of the table mark 27X. The rotation angle may be represented by the angle formed by a straight line extending from the center point of the head mark 25X to a characteristic point of the head mark 25X (for example, the upper right protrusion of the X mark) and a straight line extending from the center point of the table mark 27X to the characteristic point of the table mark 27X. The tool length is the length of the tool A attached to the spindle 26. The state model is a function that predicts a machining error caused by the state of the machining center 20 during machining of the workpiece W. Examples of the state of the machining center 20 during machining include bending of the tool A and changes in the torque of the spindle 26.
[0019] The position determination unit 44 determines whether the spindle head 25 and the work table 27 are located at a predetermined calibration point based on the measurement data of the X-axis encoder 22E, the Z-axis encoder 23E, and the Y-axis encoder 24E acquired by the data acquisition unit 41. Even if it is determined that the spindle head 25 and the work table 27 are located exactly at the calibration point, the actual positions of the spindle head 25 and the work table 27 may not coincide with the calibration point due to measurement errors of the encoders, etc. Even in this case, the spindle head 25 and the work table 27 are located at least in the vicinity of the calibration point. The vicinity refers to the range where the head mark 25X and the table mark 27X are located within the imaging range of the head camera 31 and the table camera 32, respectively.
[0020] The displacement correction unit 45 moves the spindle head 25 and the work table 27 to the calibration point based on the image data from the head camera 31 and the table camera 32. The displacement correction unit 45 updates the relative displacement offset stored in the parameter storage unit 43 based on the values of the X-axis encoder 22E, the Z-axis encoder 23E, and the Y-axis encoder 24E when the spindle head 25 and the work table 27 are positioned at the calibration point.
[0021] The relative displacement identifying unit 46 identifies the relative displacement between the spindle head 25 and the work table 27 based on the measurement data of the X-axis encoder 22E, the Z-axis encoder 23E, and the Y-axis encoder 24E, and the relative displacement offset stored in the parameter storage unit 43. For example, the relative displacement identifying unit 46 identifies the position of the spindle head 25 when the central point of the upper surface of the work table 27 is used as a reference.
[0022] The rigidity calculation unit 47 calculates the rigidity of the tool A based on the measurement data of the displacement sensor 26D and the torque sensor 26T. Specifically, the rigidity K is calculated according to the following formula (1).
number
[0023] The contact determination unit 48 determines whether or not the tool A has come into contact with the workpiece W based on the value of stiffness calculated by the stiffness calculation unit 47. When the tool A is not in contact with the workpiece W, the deflection ε of the tool A is zero, so the value of stiffness calculated by formula (1) diverges. On the other hand, when the tool A comes into contact with the workpiece W, the deflection ε of the tool A is no longer zero, so the value of stiffness calculated by formula (1) converges. Therefore, the contact determination unit 48 determines that the tool A has come into contact with the workpiece W when the value of stiffness calculated by the stiffness calculation unit 47 converges from a divergent state.
[0024] The tool length compensation unit 49 determines the tool length based on the relative displacement between the spindle head 25 and the work table 27 when it is determined that the tool A has come into contact with the workpiece W and the initial shape data stored in the shape memory unit 42. Specifically, the tool length compensation unit 49 determines the tool length in the following procedure: The tool length compensation unit 49 determines the height (Z-axis value) of the point where the workpiece W faces the tool A based on the values of the X-axis and Y-axis components of the relative displacement between the spindle head 25 and the work table 27 The tool length compensation unit 49 determines the tool length by subtracting the height of the point where the workpiece W faces the tool A from the value of the Z-axis component of the relative displacement between the spindle head 25 and the work table 27.
[0025] The cutting-in amount determination unit 50 calculates the cutting amount of the workpiece W based on the relative displacement between the spindle head 25 and the work table 27 identified by the relative displacement identification unit 46 and the target shape data stored in the shape memory unit 42.
[0026] The model generating unit 51 updates the state model stored in the parameter storage unit 43 based on the cutting amount calculated by the cutting amount determining unit 50 and the measurement data of the displacement sensor 26D and the torque sensor 26T. Specifically, the model generating unit 51 updates the state model so as to output a deflection vs. cutting gain indicating the amount of change in the deflection of the tool A relative to the cutting amount and a torque vs. cutting gain indicating the amount of change in the torque of the spindle 26 relative to the cutting amount. The state model is realized by, for example, a Kalman filter.
[0027] The error identification unit 52 identifies the deflection of tool A and the torque error of spindle 26 caused by instructions based on the cut-in amount calculated by the cut-in amount determination unit 50 by substituting the cut-in amount calculated by the cut-in amount determination unit 50 into the state model stored in the parameter memory unit 43.
[0028] The control unit 53 corrects the cutting amount determined by the cutting amount determination unit 50 so as to cancel out the error calculated by the error identification unit 52, and generates a control signal for each actuator based on the tool length stored in the parameter memory unit 43.
[0029] The finished shape generating unit 54 generates three-dimensional data indicating the shape of the workpiece W to be machined, based on the measurement data of the X-axis encoder 22E, the Z-axis encoder 23E, the Y-axis encoder 24E, the displacement sensor 26D, and the torque sensor 26T.
[0030] The display control unit 55 outputs the generated three-dimensional data to a display or the like.
[0031] Operation of the control device 40 Fig. 4 is a flowchart showing the calibration operation of the control device 40 according to the first embodiment. In the example shown in Fig. 1, a table mark 27X is drawn in a portion where the workpiece W is not placed, and a head mark 25X is drawn in a portion different from the attachment position of the tool A. This allows the control device 40 to perform calibration in a state where the tool A and the workpiece W are placed, that is, immediately before processing. On the other hand, when the table mark 27X is drawn in a portion where the workpiece W is placed, calibration is performed in a state where the workpiece W is not placed on the table 23, and the workpiece W is placed on the table 23 after the calibration.
[0032] When the machining center 20 is started, the data acquisition unit 41 acquires measurement data from the X-axis encoder 22E, the Z-axis encoder 23E, and the Y-axis encoder 24E (step S1). The position determination unit 44 judges whether the spindle head 25 and the work table 27 are located near a predetermined calibration point based on the measurement data acquired in step S1 (step S2). That is, the position determination unit 44 judges whether the values of the X-axis encoder 22E, the Z-axis encoder 23E, and the Y-axis encoder 24E indicate the position of the calibration point. If the spindle head 25 and the work table 27 are not located near the predetermined calibration point (step S2: NO), the control unit 53 controls the X-axis motor 22M, the Z-axis motor 23M, and the Y-axis motor 24M based on the measurement data acquired in step S1 so that the spindle head 25 and the work table 27 are located at the predetermined calibration point (step S3). After that, the control device 40 returns the process to step S1.
[0033] When the spindle head 25 and the work table 27 are located near the predetermined calibration point (step S2: YES), the data acquisition unit 41 acquires image data from the head camera 31 and the table camera 32 (step S4). The displacement correction unit 45 judges whether the head mark 25X and the table mark 27X shown in the image data acquired in step S4 are shown at a predetermined position (for example, the center of the image) of the image data with a predetermined size (step S5). That is, the displacement correction unit 45 stores in advance the shapes of the head mark 25X and the table mark 27X when the spindle head 25 and the work table 27 are located at the calibration point, and judges whether the head mark 25X and the table mark 27X shown in the image data match the shapes. When the head mark 25X or the table mark 27X is not shown at the predetermined position with a predetermined size (step S5: NO), the control unit 53 controls the X-axis motor 22M, the Z-axis motor 23M, and the Y-axis motor 24M so as to reduce the error in the shape (step S6). Then, the control device 40 returns the process to step S4.
[0034] On the other hand, if the head mark 25X and the table mark 27X are captured at a predetermined position and a predetermined size (step S5: YES), the data acquisition unit 41 acquires measurement data from the X-axis encoder 22E, the Z-axis encoder 23E, and the Y-axis encoder 24E (step S7). The displacement correction unit 45 calculates the difference between the values of the X-axis encoder 22E, the Z-axis encoder 23E, and the Y-axis encoder 24E set as the positions of the calibration points and the measurement data acquired in step S7 as a relative displacement offset, and stores the offset in the parameter storage unit 43 (step S8). This allows the control device 40 to quickly calibrate the relative displacement between the spindle head 25 and the work table 27.
[0035] FIG. 5 is a flowchart showing a processing operation performed by the control device 40 according to the first embodiment. When the calibration of the machining center 20 is completed, the control device 40 starts machining of the workpiece W. The operator stores the initial shape data and the target shape data in the shape storage unit 42 before starting machining.
[0036] When the control device 40 starts machining, the data acquisition unit 41 acquires measurement data from the X-axis encoder 22E, the Z-axis encoder 23E, and the Y-axis encoder 24E (step S21). The relative displacement identification unit 46 identifies the relative displacement between the spindle head 25 and the work table 27 based on the acquired measurement data and the relative displacement offset stored in the parameter storage unit 43 (step S22). The control unit 53 determines the machining start point of the workpiece W based on the target shape data, and controls the X-axis motor 22M and the Y-axis motor 24M so that the tool A faces the machining start point of the workpiece W based on the relative displacement identified in step S22 (step S23).
[0037] Next, the control unit 53 controls the Z-axis motor 23M so that the tool A approaches the workpiece W by a predetermined amount (step S24). The data acquisition unit 41 acquires measurement data from the X-axis encoder 22E, the Z-axis encoder 23E, the Y-axis encoder 24E, the displacement sensor 26D, and the torque sensor 26T (step S25). The relative displacement identification unit 46 identifies the relative displacement between the spindle head 25 and the work table 27 (step S26). The stiffness calculation unit 47 calculates the stiffness of the tool A based on the measurement data of the displacement sensor 26D and the torque sensor 26T acquired in step S25 (step S27). The contact determination unit 48 determines whether the stiffness value calculated in step S27 is diverging (step S28).
[0038] If the stiffness value is diverging (step S28: YES), the control device 40 returns the process to step S24. On the other hand, if the stiffness value is not diverging (step S28: NO), the tool length correction unit 49 specifies the tool length based on the relative displacement calculated in step S26 and the initial shape data stored in the shape storage unit 42 (step S29), and updates the tool length stored in the parameter storage unit 43.
[0039] Next, the cutting amount determination unit 50 calculates the cutting amount of the workpiece W based on the relative displacement between the spindle head 25 and the work table 27 specified by the relative displacement specification unit 46 and the target shape data stored in the shape storage unit 42 (step S30). The data acquisition unit 41 acquires measurement data from the X-axis encoder 22E, the Z-axis encoder 23E, the Y-axis encoder 24E, the displacement sensor 26D, and the torque sensor 26T (step S31). The model generation unit 51 generates a state model based on the cutting amount calculated in step S30 and the measurement data of the displacement sensor 26D and the torque sensor 26T (step S32). That is, the model generation unit 51 generates a state model so as to output a deflection vs. cutting gain indicating the amount of change in the deflection of the tool A relative to the cutting amount, and a torque vs. cutting gain indicating the amount of change in the torque of the spindle 26 relative to the cutting amount. The error identifying unit 52 identifies the error in the deflection of the tool A and the torque of the spindle 26 caused by the instruction of the cutting amount calculated in step S30 by substituting the cutting amount calculated in step S30 into the state model stored in the parameter storage unit 43 (step S33). That is, the error identifying unit 52 calculates the deflection of the tool A by multiplying the cutting amount by the deflection vs. cutting amount gain obtained from the state model. The error identifying unit 52 also calculates the torque of the spindle 26 by multiplying the cutting amount by the torque vs. cutting amount gain obtained from the state model. Then, the error identifying unit 52 can identify each error by comparing the calculated value based on the state model with the measured value. From these errors, the difference between the instructed cutting amount and the actual cutting amount, that is, the machining error, can be found.
[0040] The control unit 53 corrects the cutting amount based on the cutting amount calculated in step S30 and the error calculated in step S33, and controls each actuator based on the tool length stored in the parameter storage unit 43 (step S34). The finished shape generating unit 54 updates the machining shape data based on the measurement data acquired in step S31 (step S35).
[0041] The control unit 53 judges whether the machining of the workpiece W is completed (step S36). If the machining of the workpiece W is not completed (step S36: NO), the control device 40 returns the process to step S30. On the other hand, if the machining of the workpiece W is completed (step S36: YES), the display control unit 55 calculates the difference between the machining shape data stored in the shape storage unit 42 and the target shape data (step S37). The display control unit 55 maps a color corresponding to the difference calculated in step S37 onto the surface of the machining shape data, and generates a display image by rendering the machining shape data (step S38). The display control unit 55 outputs the display image to the display (step S39). The color corresponding to the difference may be, for example, a gradation of the magnitude of the difference, with red representing an insufficiently cut portion and blue representing an excessively cut portion. This allows the control device 40 to correct machining errors while machining the workpiece W, and further allows the worker to visually recognize the difference between the finished product and the target shape.
[0042] Actions and Effects In this way, the control device 40 according to the first embodiment corrects the tool length data based on the measurement values relating to the relative displacement between the spindle head 25 and the work table 27 and the deflection of the tool. That is, the control device 40 can detect contact between the workpiece W and the tool A during machining of the workpiece W, and correct the tool length data based on this. This allows the control device 40 to correct machining errors due to the tool length while machining the workpiece W.
[0043] The control device 40 according to the first embodiment calculates the stiffness based on the torque and deflection of the tool A, and judges the contact between the tool A and the workpiece W based on the calculated value. FIG. 8 is a graph showing the relationship between the measured values of the torque and deflection and the calculated value of the stiffness. As shown in FIG. 8, there is a delay between the contact between the workpiece W and the tool A and the measured values of the torque and deflection of the tool A. For example, in the example shown in FIG. 8, the workpiece W and the tool A are in contact at time T0. The measured values of the torque and deflection of the tool A change due to the contact between the workpiece W and the tool A, and are in a steady state after time t1 has elapsed since the contact between the workpiece W and the tool A. In other words, there is a delay of time t1 from the contact between the workpiece W and the tool A until the measured values of the torque and deflection of the tool A change significantly. In contrast, the calculated value of the stiffness converges after time t2 has elapsed since the contact between the workpiece W and the tool A. As shown in FIG. 8, it can be seen that time t2 is significantly shorter than time t1. Specifically, time t2 is approximately one-fifth of time t1. This shows that the calculated value of stiffness has high sensitivity to contact between the workpiece W and the tool A. Therefore, the control device 40 according to the first embodiment can perform contact determination without delay by using the calculated value of stiffness.
[0044] The control device 40 according to the first embodiment corrects the relative displacement of the spindle head 25 and the work table 27 based on the images captured by the head camera 31 and the table camera 32 when the spindle head 25 and the work table 27 are located at a predetermined calibration point. This allows the control device 40 to correct the measurement error of the encoder. FIG. 6 is a diagram showing the relationship between the position of the calibration point and the position of the head mark 25X during the relative displacement correction operation based on the captured image. FIG. 7 is a diagram showing the relationship between the position of the calibration point and the position of the head mark 25X when the spindle head 25 is controlled to be located at the calibration point without correcting the relative displacement. As shown in FIG. 7, when machining control is performed according to NC (Numerical Control) data generated from target shape data without correcting the tool position, the error in the tool position appears as a machining error due to the influence of displacement due to heat or gravity. The relative displacement of the head camera 31 and the table camera 32 is fixed by the camera jig 33. Therefore, by using the images captured by the head camera 31 and the table camera 32 as a reference to correct the relative displacement of the spindle head 25 and the work table 27, machining errors can be reduced. The control device 40 according to the first embodiment corrects the relative displacement by driving the actuator so that the head mark 25X and the table mark 27X are captured in a predetermined shape in the captured image. Therefore, the relative displacement of the spindle head 25 and the work table 27 can be corrected without precise calibration of the head camera 31 and the table camera 32. In another embodiment, the positions of the head camera 31 and the table camera 32 may be precisely set, and the displacement correction unit 45 may calculate the relative displacement offset from the deviation amount of the head mark 25X and the table mark 27X in the captured image. Furthermore, the control device 40 corrects the relative displacement of the spindle head 25 and the work table 27 using the image, and thereby can correct not only the relative translation amount but also the rotation angle, i.e., the deviation of the relative posture.
[0045] The control device 40 according to the first embodiment generates a state model for calculating the state of the machining center 20 based on the measurement value and the cutting amount of the machining center 20, and identifies the control error from the cutting amount based on the state model. This allows the control device 40 to correct the control error while machining the workpiece W. The tip of the tool A cannot be observed by a camera or the like due to the presence of sparks, chips, and coolant during machining of the workpiece W, but the control device 40 according to the present embodiment allows the state of the tip of the tool A to be recognized regardless of the presence or absence of these. FIG. 9 is a diagram showing an example of side machining of the workpiece W. According to FIG. 9, the machining center 20 machines the side of the workpiece W along the Y axis with the tool A. At this time, the tool A bends in the X axis direction due to contact with the side of the workpiece W. FIG. 10 is a diagram showing the measurement result of the machining error of the workpiece by side machining. As shown in FIG. 10, it can be seen that the machining error identified from the state model during side machining is almost the same as the machining error measured using a three-dimensional measuring machine after side machining. That is, according to this embodiment, the control device 40 can present the machining error with high accuracy without measuring the machining error in a later process.
[0046] Other Embodiments Although one embodiment has been described in detail above with reference to the drawings, the specific configuration is not limited to the above, and various design changes are possible. That is, in other embodiments, the order of the above-mentioned processes may be changed as appropriate. Also, some of the processes may be executed in parallel. The control device 40 according to the embodiment described above may be configured by a single computer, or the configuration of the control device 40 may be divided and arranged among a plurality of computers, and the plurality of computers may cooperate with each other to function as the control device 40. In this case, some of the computers constituting the control device 40 may be installed inside the machining center 20, and the other computers may be provided outside the machining center 20.
[0047] The control device 40 according to the embodiment described above controls the machining center 20, but is not limited to this. For example, the control device 40 according to another embodiment may control other machine tools such as a grinding machine, a milling machine, a lathe, and a drilling machine.
[0048] In the above-described embodiment, the deflection of the tool A is detected by the eddy current type displacement sensor 26D, but this is not limited to the above. For example, in other embodiments, the deflection of the tool A may be detected by a plurality of strain sensors or acceleration sensors attached to the spindle 26.
[0049] In the above-described embodiment, the head mark 25X is drawn on the upper surface of the spindle head 25, and the head camera 31 is provided above the spindle head 25, but this is not limited to the above. For example, the head mark 25X may be drawn on the side surface of the spindle head 25, and the head camera 31 may be provided to the side of the spindle head 25. Similarly, the table mark 27X may be drawn on the side surface of the table 23, and the table camera 32 may be provided to the side of the table 23. In another embodiment, a plurality of head cameras 31 and table cameras 32 may be provided, and the control device 40 may perform calibration based on images captured by each camera.
[0050] Computer Configuration FIG. 11 is a schematic block diagram illustrating a computer configuration according to at least one embodiment. The computer 100 includes a processor 101 , a main memory 102 , a storage 103 , and an interface 104 . The above-mentioned control device 40 is implemented in a computer 100. The operations of the above-mentioned processing units are stored in the storage 103 in the form of a program. The processor 101 reads the program from the storage 103, loads it in the main memory 102, and executes the above-mentioned processing in accordance with the program. The processor 101 also secures storage areas in the main memory 102 corresponding to the above-mentioned storage units in accordance with the program. Examples of the processor 101 include a CPU (Central Processing Unit), a GPU (Graphic Processing Unit), and a microprocessor.
[0051] The program may be for realizing a part of the functions to be performed by the computer 100. For example, the program may be for realizing the functions by combining with other programs already stored in the storage or by combining with other programs implemented in other devices. In another embodiment, the computer 100 may include a custom LSI (Large Scale Integrated Circuit) such as a PLD (Programmable Logic Device) in addition to the above configuration or instead of the above configuration. Examples of PLDs include PAL (Programmable Array Logic), GAL (Generic Array Logic), CPLD (Complex Programmable Logic Device), and FPGA (Field Programmable Gate Array). In this case, some or all of the functions to be realized by the processor 101 may be realized by the integrated circuit. Such an integrated circuit is also included in an example of a processor.
[0052] Examples of storage 103 include a magnetic disk, a magneto-optical disk, an optical disk, a semiconductor memory, etc. Storage 103 may be an internal medium directly connected to the bus of computer 100, or an external medium connected to computer 100 via interface 104 or a communication line. In addition, when this program is distributed to computer 100 via a communication line, computer 100 that receives the program may load the program into main memory 102 and execute the above-mentioned processing. In at least one embodiment, storage 103 is a non-transitory tangible storage medium.
[0053] The program may be for realizing part of the above-mentioned functions. Furthermore, the program may be a so-called differential file (differential program) that realizes the above-mentioned functions in combination with another program already stored in the storage 103. [Explanation of symbols]
[0054] 100...computer 101...processor 102...main memory 103...storage 104...interface 20...machining center 21...base 22...column 22E...X-axis encoder 22M...X-axis motor 23...table 23E...Z-axis encoder 23M...Z-axis motor 24...slider 24E...Y-axis encoder 24M...Y-axis motor 25...spindle head 25X...head mark 26...spindle 26D...displacement sensor 26M...spindle motor 26T...torque sensor 27...work table 27X...table mark 31...head camera 32...table camera 33...camera jig 40...control device 41...data acquisition unit 42...shape memory unit 43...parameter memory unit 44...position determination unit 45...displacement correction unit 46...relative displacement determination unit 47...rigidity calculation unit 48: Contact determination unit 49: Tool length correction unit 50: Cutting amount determination unit 51: Model generation unit 52: Error identification unit 53: Control unit 54: Finished shape generation unit 55: Display control unit A: Tool W: Workpiece
Claims
1. A control device for a machine having a jig for supporting a workpiece and a tool for machining the workpiece, a relative displacement specifying unit that specifies a relative displacement between the jig and the tool based on measurement values of the displacements of the jig and the tool; a position determination unit that determines whether the jig and the tool are located at a jig calibration point and a tool calibration point, respectively, based on the measurement values of the displacements of the jig and the tool; a displacement correction unit that corrects measurement values of displacements of the jig and the tool based on a captured image of the jig calibration point and a captured image of the tool calibration point when it is determined that the jig and the tool are located at a jig calibration point and a tool calibration point, respectively; a contact determination unit that determines whether or not the tool has come into contact with the workpiece based on a measurement value related to the deflection of the tool; a tool length correction unit that corrects tool length data indicating a length of the tool based on the relative displacement when it is determined that the tool has come into contact with the workpiece; a control unit that generates a control command for controlling the jig or the tool based on the relative displacement, a target shape of the workpiece, and the corrected tool length data; A control device comprising:
2. a rigidity calculation unit that calculates a rigidity of the tool based on a torque of the tool and a measurement value related to a deflection of the tool, The contact determination unit determines that the tool has come into contact with the workpiece when the calculated value of the stiffness has converged. The control device according to claim 1 .
3. a model generation unit that generates a state model for calculating a state of the machine based on the measurement values and the control commands related to the machine; an error identifying unit that identifies a control error by inputting the measurement values and the control command related to the machine into the state model; The control device according to claim 1 or 2, comprising:
4. a workpiece shape generating unit that generates three-dimensional data representing a shape of the workpiece machined according to the control command based on the control error; Equipped with The control unit generates the control command based on target data representing the target shape. The control device according to claim 3.
5. A jig for supporting the workpiece; A tool for machining the workpiece; A control device according to any one of claims 1 to 4; Industrial machinery equipped with
6. A method for controlling a machine having a jig for supporting a workpiece and a tool for machining the workpiece, comprising the steps of: determining a relative displacement between the jig and the tool based on measurements of the displacements of the jig and the tool; determining whether the jig and the tool are located at a jig calibration point and a tool calibration point, respectively, based on the measured displacements of the jig and the tool; when it is determined that the jig and the tool are located at a jig calibration point and a tool calibration point, respectively, correcting measurement values of displacements of the jig and the tool based on a captured image of the jig calibration point and a captured image of the tool calibration point; determining whether or not the tool has come into contact with the workpiece based on a measurement value relating to the deflection of the tool; correcting tool length data indicating a length of the tool based on the relative displacement when it is determined that the tool has come into contact with the workpiece; generating a control command for controlling the jig or the tool based on the relative displacement, a target shape of the workpiece, and the corrected tool length data; A control method comprising:
Citation Information
Patent Citations
NC machine tool machining reference point correction device
JP1985175555U
Operation control mechanism and its method in NC machine tool
JP1988108409A
Working device using tool
JP1999077491A
Measurement correcting method for machine tool
JP2001105279A
Device implemented for working unitary with measurement
JP2006159299A
