Numerical control device and computer-readable storage medium

The numerical control device automatically specifies the correction direction for coordinate values during manual measurement, addressing operator errors and ensuring precise workpiece positioning by integrating acquisition, determination, and calculation units.

JP7794961B2Active Publication Date: 2026-01-06FANUC LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2024522826
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-05-26
Publication Date
2026-01-06
Estimated Expiration
2042-05-26

AI Technical Summary

Technical Problem

In manual mode, determining the accurate position of a workpiece is hindered if the operator specifies the wrong direction of correction for coordinate values, leading to inaccurate measurement.

Method used

A numerical control device with a first acquisition unit for start position information, a second acquisition unit for contact position information, a determination unit to determine the approach direction, and a calculation unit to correct the contact position information, automatically specifying the direction of correction and calculating the measurement position.

Benefits of technology

Enables accurate automatic determination of the correction direction for coordinate values during manual measurement, preventing operator errors and ensuring precise measurement positioning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007794961000001
    Figure 0007794961000001
  • Figure 0007794961000002
    Figure 0007794961000002
  • Figure 0007794961000003
    Figure 0007794961000003
Patent Text Reader

Abstract

This numerical control device is provided with: a first acquisition unit that acquires start position information indicating the start position at which a contact body starts to measure an object to be measured in manual measurement; a second acquisition unit that acquires contact position information indicating the contact position at which the contact body and the object to be measured come into contact with each other; a determination unit that determines the direction in which the contact body approaches the object to be measured on the basis of the start position information acquired by the first acquisition unit and the contact position information acquired by the second acquisition unit; and a calculation unit that corrects the contact position information on the basis of the direction determined by the determination unit and thereby calculates the measurement position.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present disclosure relates to a numerical control device and a computer-readable storage medium. [Background technology]

[0002] Conventionally, the position of a workpiece has been measured using a measuring instrument attached to the spindle of a machine tool (see, for example, Patent Document 1). For example, in manual mode, an operator can measure the position of the workpiece by bringing a measuring probe into contact with the workpiece. In this case, the operator must correct the coordinate value indicating the contact position in the positive or negative direction by the length or outer diameter of the contactor, depending on the approach direction of the contactor relative to the workpiece.

[0003] For example, if the contactor is moved from the negative direction to the positive direction toward the workpiece, the coordinate value indicating the contact position is corrected in the positive direction by the length or outer diameter of the contactor. On the other hand, if the contactor is moved from the positive direction to the negative direction toward the workpiece, the coordinate value indicating the contact position is corrected in the negative direction by the length or outer diameter of the contactor. This makes it possible to determine the accurate position of the workpiece. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Japanese Patent Application Publication No. 5-66820 Summary of the Invention [Problem to be solved by the invention]

[0005] However, if the operator specifies the wrong direction of correction, the accurate position of the workpiece cannot be determined.

[0006] Therefore, when measuring the position of a workpiece in manual mode, there is a demand for a technique for automatically specifying the direction of correction of the coordinate values ​​indicating the contact position to calculate the measurement position. [Means for solving the problem]

[0007] The numerical control device includes a first acquisition unit that acquires start position information indicating the start position at which the contact body starts measuring the object to be measured in manual measurement, a second acquisition unit that acquires contact position information indicating the contact position where the contact body and the object to be measured come into contact, a determination unit that determines the direction in which the contact body approaches the object to be measured based on the start position information acquired by the first acquisition unit and the contact position information acquired by the second acquisition unit, and a calculation unit that calculates the measurement position by correcting the contact position information based on the direction determined by the determination unit.

[0008] A computer-readable storage medium stores instructions that cause a computer to execute the following: acquiring start position information indicating the start position at which the contact body starts measuring the object to be measured in manual measurement; acquiring contact position information indicating the contact position at which the contact body and the object to be measured come into contact; determining the direction in which the contact body approaches the object to be measured based on the acquired start position information and the acquired contact position information; and correcting the contact position information based on the determined direction to calculate the measurement position. [Effects of the Invention]

[0009] According to one aspect of the present disclosure, when measuring the position of a workpiece in manual mode, it is possible to automatically specify the direction of correction of the measurement value and calculate the measurement position. [Brief explanation of the drawings]

[0010] [Figure 1] FIG. 2 is a block diagram illustrating an example of a hardware configuration of an industrial machine. [Figure 2A] FIG. 10 is a diagram for explaining a method for calculating a measurement position. [Figure 2B] FIG. 10 is a diagram for explaining a method for calculating a measurement position. [Figure 3] FIG. 2 is a block diagram showing an example of functions of a numerical control device that controls industrial machinery. [Figure 4A] FIG. 10 is a diagram illustrating an example of a method for acquiring start position information. [Figure 4B] FIG. 10 is a diagram illustrating an example of a method for acquiring start position information. [Figure 4C] FIG. 10 is a diagram illustrating an example of a method for acquiring start position information. [Figure 4D] FIG. 10 is a diagram illustrating an example of a method for acquiring start position information. [Figure 5] 3 is a flowchart illustrating an example of processing executed in the numerical control device. [Figure 6] FIG. 2 is a block diagram showing an example of the functions of a numerical control device including a control unit. DETAILED DESCRIPTION OF THE INVENTION

[0011] Numerical control devices according to embodiments of the present disclosure will be described below with reference to the drawings. Note that not all combinations of features described in the following embodiments are necessarily required to solve the problems. In addition, more detailed explanation than necessary may be omitted. Furthermore, the following description of the embodiments and the drawings are provided to enable those skilled in the art to fully understand the present disclosure, and are not intended to limit the scope of the claims.

[0012] A numerical control device is a device that controls industrial machinery, such as machine tools, wire electric discharge machines, injection molding machines, industrial robots, and 3D printers. Machine tools include lathes, machining centers, and multi-tasking machines.

[0013] 1 is a block diagram showing an example of the hardware configuration of an industrial machine equipped with a numerical control device. The industrial machine 1 includes a numerical control device 2, an input / output device 3, a servo amplifier 4, a servo motor 5, a spindle amplifier 6, a spindle motor 7, and an auxiliary device 8.

[0014] The numerical control device 2 is a control device that controls the entire industrial machine 1. The numerical control device 2 includes a hardware processor 201, a bus 202, a ROM (Read Only Memory) 203, a RAM (Random Access Memory) 204, and a non-volatile memory 205.

[0015] The hardware processor 201 is a processor that controls the entire numerical control device 2 in accordance with a system program. The hardware processor 201 reads the system program stored in the ROM 203 via the bus 202 and performs various processes based on the system program. The hardware processor 201 also controls the servo motor 5 and the spindle motor 7, for example, based on an operation program that operates industrial machinery. The hardware processor 201 is, for example, a CPU (Central Processing Unit) or an electronic circuit.

[0016] The hardware processor 201 analyzes the machining program and outputs control commands to the servo motor 5 and the spindle motor 7, for example, for each control period.

[0017] The bus 202 is a communication path that connects the various pieces of hardware within the numerical control device 2. The various pieces of hardware within the numerical control device 2 exchange data via the bus 202.

[0018] The ROM 203 is a storage device that stores a system program for controlling the entire numerical control device 2. The ROM 203 is a computer-readable storage medium.

[0019] The RAM 204 is a storage device that temporarily stores various data and functions as a work area for the hardware processor 201 to process various data.

[0020] The nonvolatile memory 205 is a storage device that retains data even when the power to the industrial machine 1 is turned off and power is not supplied to the numerical control device 2. The nonvolatile memory 205 stores, for example, an operation program and various parameters. The nonvolatile memory 205 is a computer-readable storage medium. The nonvolatile memory 205 is, for example, a battery-backed memory or an SSD (Solid State Drive).

[0021] The numerical control device 2 further includes an interface 206 , an axis control circuit 207 , a spindle control circuit 208 , a PLC (Programmable Logic Controller) 209 , and an I / O unit 210 .

[0022] The interface 206 connects the bus 202 and the input / output device 3. The interface 206 sends various data processed by the hardware processor 201 to the input / output device 3, for example.

[0023] The input / output device 3 receives various data via the interface 206 and displays the various data on a display screen. The input / output device 3 also accepts input of various data and sends the various data via the interface 206 to, for example, the hardware processor 201.

[0024] The input / output device 3 is, for example, a touch panel. The input / output device 3 is, for example, a capacitive touch panel. The touch panel is not limited to a capacitive touch panel and may be a touch panel of another type. The input / output device 3 is installed on an operation panel (not shown) in which the numerical control device 2 is housed.

[0025] The input / output device 3 includes a pulse handle. The pulse handle is a device that generates a pulse signal based on an operation by an operator. The hardware processor 201 controls the control axis of the industrial machine 1 based on the pulse signal received from the pulse handle.

[0026] The axis control circuit 207 is a circuit that controls the servo motor 5. The axis control circuit 207 receives control commands from the hardware processor 201 and sends various commands to the servo amplifier 4 for driving the servo motor 5. The axis control circuit 207 sends, for example, a torque command for controlling the torque of the servo motor 5 to the servo amplifier 4.

[0027] The servo amplifier 4 receives a command from the axis control circuit 207 and supplies a current to the servo motor 5 .

[0028] The servo motors 5 are driven by receiving a current supply from the servo amplifier 4. The servo motors 5 are provided for each control axis of the industrial machine 1. When the industrial machine 1 is a machine tool having five axes, the servo motors 5 include, for example, an X-axis servo motor, a Y-axis servo motor, a Z-axis servo motor, an A-axis servo motor, and a C-axis servo motor.

[0029] The servo motor 5 is connected to, for example, a ball screw that drives a tool post. When the servo motor 5 is driven, a structure of the industrial machine 1, such as the tool post, moves in a predetermined control axis direction. The servo motor 5 has a built-in encoder (not shown) that detects the position and feed rate of the control axis. Position feedback information and speed feedback information indicating the position and feed rate of the control axis detected by the encoder are fed back to the axis control circuit 207. In this way, the axis control circuit 207 performs feedback control of the control axis.

[0030] The spindle control circuit 208 is a circuit for controlling the spindle motor 7. The spindle control circuit 208 receives a control command from the hardware processor 201 and sends a command to the spindle amplifier 6 to drive the spindle motor 7. The spindle control circuit 208 sends, for example, a spindle speed command to the spindle amplifier 6 to control the rotation speed of the spindle motor 7.

[0031] The spindle amplifier 6 receives a command from the spindle control circuit 208 and supplies a current to the spindle motor 7 .

[0032] The spindle motor 7 is driven by receiving a current supplied from the spindle amplifier 6. The spindle motor 7 is connected to the main shaft and rotates the main shaft.

[0033] The PLC 209 is a device that executes a ladder program to control the auxiliary device 8. The PLC 209 sends commands to the auxiliary device 8 via an I / O unit 210.

[0034] The I / O unit 210 is an interface that connects the PLC 209 and the auxiliary device 8. The I / O unit 210 sends commands received from the PLC 209 to the auxiliary device 8.

[0035] The auxiliary device 8 is a device that is installed in the industrial machine 1 and performs auxiliary operations in the industrial machine 1. The auxiliary device 8 operates based on commands received from the I / O unit 210. The auxiliary device 8 may be a device that is installed in the periphery of the industrial machine 1. The auxiliary device 8 is, for example, a tool changer, a cutting fluid injection device, or an opening / closing door drive device.

[0036] Next, we will explain the method of calculating the measurement position executed in the numerical control device 2. The measurement position is the position of the measurement point on the object to be measured, that is, the position on the object to be measured that is in contact with the contact body.

[0037] When measuring the position of an object to be measured in manual measurement, the operator brings a contact body into contact with the object to be measured. Manual measurement means that the operator manually measures the position of the object to be measured when the numerical control device 2 is set to manual mode. "Manual" means that the operator moves the contact body using, for example, a pulse handle connected to the numerical control device 2. Alternatively, the operator moves the contact body using an axis movement switch on the operation panel.

[0038] The contact body is a member that comes into contact with the object to be measured. The contact body is, for example, a touch probe. The contact body may also be a tool such as an end mill.

[0039] The measurement object is an object to be measured in manual measurement. The measurement object is, for example, a workpiece. The measurement object may be a table on which the workpiece is placed, or a jig that fixes the workpiece to the table.

[0040] When measuring an object to be measured using a contact body, a deviation occurs between the position of the contact body when it comes into contact with the object to be measured and the measurement position of the object to be measured that the contact body comes into contact with, depending on the size of the contact body. Therefore, it is necessary to calculate the measurement position by correcting the value indicating the position of the contact body when it comes into contact with the object to be measured using information indicating the size of the contact body. The position of the contact body when it comes into contact with the object to be measured is a reference position in measuring the object to be measured. This reference position is called the machine position. The machine position is the position of the control axis in the machine coordinate system. If the industrial machine 1 is a machining center, the machine position is, for example, the position of the end face of the spindle, which is the position of the central axis of the spindle.

[0041] 2A and 2B are diagrams for explaining a method for calculating a measurement position. In Fig. 2A, the mechanical position Pma in the X-axis direction is located in the negative direction by the radius d of the contact body T from the measurement position Pme where the contact body T is in contact with the measurement object W. Therefore, as will be described in detail later, in manual measurement, the numerical control device 2 calculates a position obtained by moving the mechanical position Pma in the positive direction by the radius d of the contact body T as the measurement position Pme.

[0042] 2B is located in the positive direction by the length l of the contact body T from the measurement position Pme where the contact body T is in contact with the object to be measured W. Therefore, as will be described in detail later, in manual measurement, the numerical control device 2 calculates the position obtained by moving the mechanical position Pma in the negative direction by the length l of the contact body T as the measurement position Pme.

[0043] 3 is a block diagram showing an example of the functions of a numerical control device 2 that controls an industrial machine 1. The numerical control device 2 includes a first acquisition unit 211, a second acquisition unit 212, a determination unit 213, a calculation unit 214, and a display unit 215. The first acquisition unit 211, the second acquisition unit 212, the determination unit 213, the calculation unit 214, and the display unit 215 are realized, for example, by the hardware processor 201 performing arithmetic processing using a system program stored in the ROM 203, an operating program stored in the non-volatile memory 205, and various data.

[0044] The first acquisition unit 211 acquires start position information indicating a start position at which the contact body T starts measuring the measurement object W in manual measurement. The start position is a position that serves as a reference when the determination unit 213 determines the approach direction of the contact body T with respect to the measurement object W.

[0045] The start position is any position between the position of the contact body T and the contact position when the movement direction of the contact body T is set immediately before the contact body T reaches the contact position where it comes into contact with the measurement object W. The start position may be the position of the contact body T when the movement direction of the contact body T is set immediately before the contact body T reaches the contact position.

[0046] 4A to 4D are diagrams for explaining an example of a method by which the first acquiring unit 211 acquires start position information. When measuring the X-axis coordinate value of the measurement position Pme shown in each of FIGS. 4A to 4D, first, the contact body T is placed at a position in the positive direction of the Z-axis with respect to the object to be measured W. The coordinate value indicating the position of the contact body T at this time is, for example, (100, 100) (see FIG. 4A). In order to move the contact body T in the negative direction of the X-axis, the operator performs an operation to select the X-axis in manual mode. Selecting an axis means selecting the control axis to be moved. The operator selects the X-axis using, for example, an axis changeover switch provided on the pulse handle.

[0047] In response to the selection of the X axis, the first acquisition unit 211 acquires position information of the contact body T based on a signal from a sensor (not shown) that detects the position of the control axis. That is, the first acquisition unit 211 acquires information indicating the position of the contact body T when the movement direction of the contact body T is set to the direction of one of the multiple control axes. The information indicating the position is, for example, a coordinate value. The acquired position information of the contact body T is stored, for example, in a predetermined storage area of ​​the non-volatile memory 205. Next, the operator moves the contact body T in the negative direction of the X axis using, for example, a pulse handle (see FIG. 4B). The coordinate value indicating the position of the contact body T at this time is, for example, (50, 100).

[0048] Next, the operator performs an operation to select the Z axis. The operator selects the Z axis using, for example, an axis changeover switch provided on the pulse handle. In response to the selection of the Z axis, the first acquisition unit 211 acquires position information of the contact body T and stores it in a predetermined storage area.

[0049] The first acquisition unit 211 may store the newly acquired position information of the contact object T in a storage area in which already acquired position information is stored. That is, the first acquisition unit 211 may overwrite the already acquired position information with the newly acquired position information and store it. Alternatively, the first acquisition unit 211 may store the newly acquired position information in a storage area separate from the already acquired position information. Next, the operator moves the contact object T in the negative direction of the Z axis (see FIG. 4C). The coordinate values ​​indicating the position of the contact object T at this time are, for example, (50, 80).

[0050] Next, the operator performs an operation to select the X-axis. In response to the X-axis being selected, the first acquisition unit 211 acquires the position information of the contact body T and stores it in a predetermined storage area.

[0051] Next, the operator moves the contact body T to a contact position PT where the contact body T comes into contact with the measurement object W (see FIG. 4D). The coordinate value indicating the contact position PT at this time is, for example, (75, 80). When the contact body T moves to the contact position PT, the position information of the contact body T last acquired by the first acquisition unit 211 becomes the start position information. In other words, the latest position information of the contact body T acquired by the first acquisition unit 211 and stored in a predetermined storage area becomes the start position information indicating the start position. In the example shown in FIGS. 4A to 4D, the coordinate value indicating the start position is (50, 80).

[0052] The second acquiring unit 212 acquires contact position information indicating a contact position PT where the contact body T comes into contact with the object to be measured W. The contact position information is information indicating the position of the control axis when the contact body T comes into contact with the object to be measured W. The second acquiring unit 212 acquires the contact position information based on, for example, a signal indicating that the contact body T has come into contact with the object to be measured W.

[0053] If the contact body T is, for example, a touch probe, the signal indicating that the contact body T has come into contact with the object to be measured W is a signal output by the touch probe. If the contact body T is, for example, a tool, the signal indicating that the contact body T has come into contact with the object to be measured W is a signal indicating the load applied to a control axis that moves the tool. The load applied to the control axis is acquired, for example, based on the value of the current supplied to the servo motor 5.

[0054] The second acquiring unit 212 may acquire the contact position information based on a signal output based on an operation of a predetermined operating unit (not shown), such as a switch, by an operator. In this case, the operator operates the predetermined operating unit while keeping the contact body T in contact with the object W to be measured.

[0055] The determination unit 213 determines the direction in which the contact body T approaches the measurement object W based on the start position information acquired by the first acquisition unit 211 and the contact position information acquired by the second acquisition unit 212.

[0056] If the coordinate value of the start position indicated by the start position information is greater than the coordinate value of the contact position PT indicated by the contact position information, the determination unit 213 determines that the direction in which the contact body T approaches the measurement object W is the negative direction. On the other hand, if the coordinate value of the start position indicated by the start position information is equal to or less than the coordinate value of the contact position PT indicated by the contact position information, the determination unit 213 determines that the approach direction of the contact body T is the positive direction.

[0057] In the examples shown in FIGS. 4A to 4D, the X-axis coordinate value of the start position indicated by the start position information is equal to or less than the X-axis coordinate value of the contact position PT indicated by the contact position information, and therefore the determination unit 213 determines that the approach direction of the contact body T is the positive direction.

[0058] The calculation unit 214 corrects the contact position information based on the direction determined by the determination unit 213 to calculate the measurement position Pme. Here, correction means calculating the measurement position Pme by adding a value indicating the size of the contact body T to the value indicated by the contact position information, or calculating the measurement position Pme by subtracting the value indicating the size of the contact body T from the value indicated by the contact position information. The value indicating the size of the contact body T is, for example, either a value indicating the radius d of the contact body T or a value indicating the length l of the contact body T. The calculation unit 214 may use the tool radius compensation value or the tool length compensation value stored in the numerical control device 2 as the value indicating the size of the contact body T.

[0059] 4A to 4D, the approach direction of the contact body T with respect to the measurement object W is the positive direction. Furthermore, the radius d of the contact body T is, for example, 5 mm. In this case, the determination unit 213 calculates the measurement position Pme by adding a value indicating the magnitude of the radius d of the contact body T to the X-axis coordinate value 75 indicating the contact position PT. In other words, the X-axis coordinate value of the calculated measurement position Pme is 80.

[0060] The display unit 215 displays on the display screen information indicating the measurement position Pme calculated by the calculation unit 214. The display unit 215, for example, displays a pop-up screen on the display screen of the input / output device 3, and displays coordinate values ​​indicating the measurement position Pme in the pop-up screen. This allows the numerical control device 2 to allow the operator to recognize the position of the object to be measured W.

[0061] The display unit 215 may also display the correction direction of the contact position information on the display screen. For example, when the calculation unit 214 corrects the coordinate value indicating the contact position PT in the negative direction, the display unit 215 displays the character string "negative direction" on the display screen. When the calculation unit 214 corrects the coordinate value indicating the contact position PT in the positive direction, the display unit 215 displays the character string "positive direction" on the display screen. The display unit 215 may also represent the correction direction of the contact position information with a graphic such as an arrow.

[0062] 5 is a flowchart showing an example of processing executed by the numerical control device 2. When manual measurement is performed, first, the numerical control device 2 sets the operation mode to manual mode based on the operation of the operator (step S1).

[0063] Next, the first acquisition unit 211 acquires information indicating the position of the control axis and stores the acquired information in a predetermined storage area (step S2). This information indicating the position of the control axis is information indicating the position of the control axis when the manual mode is set.

[0064] Next, it is determined whether or not the control axis to be moved has been set based on the operator's operation (step S3). In other words, it is determined whether or not the control axis to be moved has been changed. For example, in response to the operator's operation to select the X axis, the control axis to be moved is set to the X axis.

[0065] If the control axis to be moved has not been changed (No in step S3), the numerical control device 2 moves the contact body T based on the operator's operation on the pulse handle (step S5). On the other hand, if the control axis to be moved has been changed (Yes in step S3), the first acquisition unit 211 acquires information indicating the position of the control axis (step S4). Then, the process proceeds to step S5.

[0066] Next, it is determined whether or not measurement has been performed (step S6). The numerical control device 2 determines whether or not measurement has been performed, for example, depending on whether or not a signal indicating that the contact body T has come into contact with the object to be measured W has been received.

[0067] If measurement has not been performed (No in step S6), the process returns to step S3. If measurement has been performed (Yes in step S6), the second acquisition unit 212 acquires contact position information (step S7). Once the contact position information is acquired, the information indicating the position of the control axis acquired in step S4 becomes the start position information. Furthermore, if step S4 has not been performed, the information indicating the position of the control axis acquired in step S2 becomes the start position information.

[0068] Next, the numerical control device 2 compares the coordinate values ​​of the start position indicated by the start position information with the coordinate values ​​of the contact position PT indicated by the contact position information (step S8).

[0069] If the coordinate value of the start position is greater than the coordinate value of the contact position PT (Yes in step S8), the determination unit 213 determines that the approach direction of the contact body T with respect to the measured object W is the negative direction (step S9). On the other hand, if the coordinate value of the start position is equal to or less than the coordinate value of the contact position PT (No in step S8), the determination unit 213 determines that the approach direction of the contact body T with respect to the measured object W is the positive direction (step S10).

[0070] Next, the calculation unit 214 calculates the measurement position Pme based on the approach direction (step S11). Next, the display unit 215 displays the measurement position Pme on the display screen (step S12), and the process ends.

[0071] As described above, the numerical control device 2 includes a first acquisition unit 211 that acquires start position information indicating the start position at which the contact body T starts measuring the object to be measured W in manual measurement, a second acquisition unit 212 that acquires contact position information indicating the contact position PT at which the contact body T and the object to be measured W come into contact, a judgment unit 213 that judges the direction in which the contact body T approaches the object to be measured W based on the start position information acquired by the first acquisition unit 211 and the contact position information acquired by the second acquisition unit 212, and a calculation unit 214 that corrects the contact position information based on the direction judged by the judgment unit 213 and calculates the measurement position Pme.

[0072] Therefore, when measuring the position of a workpiece in manual mode, the numerical control device 2 can automatically specify the direction of correction of the coordinate values ​​indicating the contact position PT and calculate the measurement position Pme. As a result, it is possible to prevent an operator who is unfamiliar with manual measurement from specifying the direction of correction incorrectly. Furthermore, even if the operator mistakenly causes the contact body T to dig into the measurement object W and then returns the contact body T in the direction opposite to the approach direction to move it to the contact position PT, the determination unit 213 correctly determines the approach direction. Therefore, the calculation unit 214 can accurately calculate the measurement position Pme.

[0073] Furthermore, the start position is any position between the position of the contact object T when the movement direction of the contact object T is set immediately before the contact object T reaches the contact position PT and the contact position PT. Therefore, the first acquisition unit 211 can acquire the start position information at any timing after the movement direction of the contact object T is set. For example, the first acquisition unit 211 can set the position of the contact object T when the movement speed of the contact object T exceeds a predetermined speed after the movement direction of the contact object T is set as the start position.

[0074] The start position may be the position of the contact object T when the movement direction of the contact object T is set immediately before the contact object T reaches the contact position PT. In this case, the first acquisition unit 211 acquires the start position information in response to the setting of the movement direction.

[0075] Furthermore, the second acquiring unit 212 acquires contact position information based on a signal indicating that the contact body T has contacted the object to be measured W. The signal indicating that the contact body T has contacted the object to be measured W is at least one of a signal output by the contact body T and a signal indicating a load applied to a control axis that moves the contact body T. Therefore, the second acquiring unit 212 can automatically acquire contact position information when the operator performs an operation to bring the contact body T into contact with the object to be measured W. As a result, the operation of the operator in manual measurement is simplified.

[0076] The numerical control device 2 further includes a display unit 215 that displays the direction in which the contact position information is to be corrected. Therefore, the numerical control device 2 can make the operator recognize the direction in which the contact position information is to be corrected.

[0077] The numerical control device 2 may further include a control unit that moves the contact body T to a start position when the second acquisition unit 212 acquires the contact position information.

[0078] Fig. 6 is a block diagram showing an example of a numerical control device 2 equipped with a control unit. The block diagram shown in Fig. 6 differs from the numerical control device 2 shown in Fig. 3 in that the numerical control device 2 is equipped with a control unit 216. Therefore, the control unit 216 and its related functions will be described here, and a description of the same functions as those described using Fig. 3 will be omitted.

[0079] When the second acquisition unit 212 acquires the contact position information, the control unit 216 moves the contact body T to the start position. This eliminates the need for the operator to manually return the contact body T to the start position. This prevents the operator from accidentally causing the contact body T to collide with the object to be measured W. The control unit 216 may operate each control axis of the industrial machine 1 based on an operation program.

[0080] The present disclosure is not limited to the above-described embodiments, and can be appropriately modified without departing from the spirit of the present disclosure. For example, any of the components of the embodiments of the present disclosure can be modified or omitted. [Explanation of symbols]

[0081] 1. Industrial machinery 2. Numerical control device 201 Hardware Processor 202 Bus 203 ROM 204 RAM 205 Non-volatile memory 206 Interface 207 Axis Control Circuit 208 Spindle control circuit 209 PLC 210 I / O units 211 First Acquisition Section 212 Second Acquisition Section 213 Judgment Department 214 Calculation Unit 215 Display section 216 Control Unit 3 Input / Output Devices 4 Servo amplifiers 5 Servo motors 6 Spindle amplifier 7 Spindle motor 8 Auxiliary equipment Pma machine position Pme measurement position

Claims

1. a first acquisition unit that acquires start position information indicating a start position at which a contact body starts measuring an object to be measured in manual measurement, the start position being at a time when an operator sets a moving direction of the contact body; a second acquiring unit that acquires contact position information indicating a contact position where the contact body and the object to be measured come into contact; a determination unit that determines a direction in which the contact body approaches the object to be measured based on the start position information acquired by the first acquisition unit and the contact position information acquired by the second acquisition unit; a calculation unit that calculates a measurement position by correcting the contact position information based on the direction determined by the determination unit; A numerical control device comprising:

2. The numerical control device according to claim 1 , wherein the first acquisition unit acquires and updates the start position information anew at a time when the first acquisition unit receives a selection by an operator of a control axis corresponding to a direction in which the contact body moves.

3. The numerical control device according to claim 1 or 2, wherein the second acquisition unit acquires the contact position information based on a signal indicating that the contact body has come into contact with the object to be measured.

4. 4. The numerical control device according to claim 3, wherein the signal indicating that the contact body has come into contact with the object to be measured is at least one of a signal output by the contact body and a signal indicating a load applied to a control axis that moves the contact body.

5. The numerical control device according to claim 1 or 2, further comprising a display unit that displays a direction in which the contact position information is to be corrected.

6. The numerical control device according to claim 1 , further comprising a control unit that moves the contact body to the start position when the second acquisition unit acquires the contact position information.

7. acquiring start position information indicating a start position at which a contact body starts measuring an object to be measured in manual measurement, the start position being at a time when an operator sets a moving direction of the contact body; acquiring contact position information indicating a contact position where the contact body and the object to be measured come into contact; determining a direction in which the contact body approaches the object to be measured based on the acquired start position information and the acquired contact position information; correcting the contact position information based on the determined direction to calculate a measurement position; A computer-readable storage medium that stores instructions for causing a computer to execute the above.

Citation Information

Patent Citations

  • Method and device for measuring coordinates

    JP1983077613A

  • Numerical controller having measuring function

    JP1993066820A

  • Tracer control system

    JP1995285051A

  • Multidimensional coordinate measuring unit

    JP1997145354A

  • Inversion error measuring method of machine tool

    JP2021086370A