Numerical controller and computer-readable storage medium
The numerical control device automatically determines and corrects the proximity direction of the contact body, which solves the problem of inaccurate position caused by incorrectly designated direction when measuring the position of the workpiece in manual mode, and realizes accurate measurement position calculation in manual mode.
Patent Information
- Application Number
- CN202280096196.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-26
- Publication Date
- 2024-12-27
AI Technical Summary
When measuring the workpiece position in manual mode, the operator incorrectly specifies the correction direction, resulting in the inability to find the exact position of the workpiece.
The numerical control device automatically determines the direction of the contact body approaching the object to be measured, and corrects and calculates the measured position based on the start position information and the contact position information.
Automatically specify the calibration direction of the measured value in manual mode to ensure the accuracy of the measurement position and prevent the operator from incorrectly specifying the calibration direction.
Smart Images

Figure CN119213372A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a numerical control device and a computer-readable storage medium. Background Art
[0002] Conventionally, the position of a workpiece is measured using a measuring instrument mounted on the spindle of a machine tool (e.g., Patent Document 1). For example, an operator can measure the position of a workpiece by bringing a probe into contact with the workpiece in a manual mode. In this case, the operator needs to correct the coordinate value representing the contact position in the positive direction or the negative direction by the length of the contact or the outer diameter of the contact according to the approach direction of the contact relative to the workpiece.
[0003] For example, when the contact is brought closer to the workpiece from the negative direction to the positive direction, the coordinate value representing the contact position is corrected in the positive direction by the length of the contact or the outer diameter of the contact. On the other hand, when the contact is brought closer to the workpiece from the positive direction to the negative direction, the coordinate value representing the contact position is corrected in the negative direction by the length of the contact or the outer diameter of the contact. In this way, the accurate position of the workpiece can be obtained.
[0004] Prior art literature
[0005] Patent Literature
[0006] Patent Document 1: Japanese Patent Application Laid-Open No. 5-66820 Summary of the invention
[0007] Problems to be solved by the invention
[0008] However, if the operator incorrectly designates the direction of correction, the accurate position of the workpiece cannot be obtained.
[0009] Therefore, when measuring the position of the workpiece in the manual mode, a technique is required to automatically specify the direction of correction of the coordinate value indicating the contact position to calculate the measured position.
[0010] Means for solving problems
[0011] The numerical control device comprises: a first acquisition unit, which acquires starting position information indicating the starting position where the contact body starts measuring the measured object in manual measurement; a second acquisition unit, which acquires contact position information indicating the contact position where the contact body contacts the measured object; a judgment unit, which judges the direction in which the contact body approaches the measured object based on the starting position information acquired by the first acquisition unit and the contact position information acquired by the second acquisition unit; and a calculation unit, which corrects the contact position information and calculates the measurement position based on the direction determined by the judgment unit.
[0012] A computer-readable storage medium stores commands that cause a computer to execute: obtaining starting position information indicating a starting position at which a contact body starts measuring an object to be measured in manual measurement; obtaining contact position information indicating a contact position at which the contact body contacts the object to be measured; determining a direction in which the contact body approaches the object to be measured based on the obtained starting position information and the obtained contact position information; and correcting the contact position information based on the determined direction and calculating a measurement position.
[0013] Effects of the Invention
[0014] According to one aspect of the present disclosure, when the position of a workpiece is measured in a manual mode, the direction of correction of the measured value can be automatically specified to calculate the measured position. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is a block diagram showing an example of the hardware configuration of an industrial machine.
[0016] Figure 2A It is a diagram for explaining a method of calculating a measurement position.
[0017] Figure 2B It is a diagram for explaining a method of calculating a measurement position.
[0018] Figure 3 This is a block diagram showing an example of the functions of a numerical control device that controls industrial machinery.
[0019] Figure 4A This is a diagram for explaining an example of a method of acquiring start position information.
[0020] Figure 4B This is a diagram for explaining an example of a method of acquiring start position information.
[0021] Figure 4C This is a diagram for explaining an example of a method of acquiring start position information.
[0022] Figure 4D This is a diagram for explaining an example of a method of acquiring start position information.
[0023] Figure 5 This is a flowchart showing an example of processing executed in the numerical control device.
[0024] Figure 6 This is a block diagram showing an example of the functions of a numerical control device including a control unit. DETAILED DESCRIPTION
[0025] The numerical control device involved in the embodiment of the present disclosure is described below using the accompanying drawings. In addition, all combinations of the features described in the following embodiments are not necessarily necessary when solving the problem. In addition, unnecessary detailed descriptions are sometimes omitted. In addition, the descriptions of the following embodiments and the accompanying drawings are provided by those skilled in the art in order to fully understand the present disclosure, and are not intended to limit the scope of the claims.
[0026] Numerical control devices are devices for controlling industrial machines. Examples of industrial machines include machine tools, wire discharge machines, injection molding machines, industrial robots, and 3D printers. Examples of machine tools include lathes, machining centers, and multi-tasking machines.
[0027] Figure 1 The block diagram shows an example of the hardware configuration of an industrial machine including a numerical controller. The industrial machine 1 includes a numerical controller 2, an input / output device 3, a servo amplifier 4, a servo motor 5, a spindle amplifier 6, a spindle motor 7, and auxiliary equipment 8.
[0028] The numerical controller 2 is a control device that controls the entire industrial machine 1. The numerical controller 2 includes a hardware processor 201, a bus 202, a ROM (Read Only Memory) 203, a RAM (Random Access Memory) 204, and a nonvolatile memory 205.
[0029] The hardware processor 201 is a processor that controls the entire numerical control device 2 according to the 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. In addition, the hardware processor 201 controls the servo motor 5 and the spindle motor 7 based on the action program for operating the industrial machinery, for example. The hardware processor 201 is, for example, a CPU (Central Processing Unit) or an electronic circuit.
[0030] The hardware processor 201 analyzes a machining program and outputs control commands to the servo motor 5 and the spindle motor 7 , for example, in each control cycle.
[0031] The bus 202 is a communication path that mutually connects the hardware in the numerical controller 2 . The hardware in the numerical controller 2 exchanges data via the bus 202 .
[0032] The ROM 203 is a storage device that stores a system program and the like for controlling the entire numerical controller 2. The ROM 203 is a computer-readable storage medium.
[0033] 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.
[0034] The nonvolatile memory 205 is a storage device that retains data even when the power of the industrial machine 1 is turned off and the numerical controller 2 is not supplied with power. 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 composed of, for example, a battery-backed memory or an SSD (Solid State Drive).
[0035] The numerical controller 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 .
[0036] The interface 206 connects the bus 202 and the input / output device 3. The interface 206 transmits various data processed by the hardware processor 201 to the input / output device 3, for example.
[0037] The input / output device 3 receives various data via the interface 206 and displays the various data on the display screen. In addition, the input / output device 3 receives input of various data and transmits the various data to the hardware processor 201 via the interface 206, for example.
[0038] The input / output device 3 is, for example, a touch panel. The input / output device 3 is, for example, a capacitive touch panel. In addition, the touch panel is not limited to the capacitive touch panel, and may be a touch panel of another type. The input / output device 3 is provided on an operation panel (not shown) that houses the numerical control device 2.
[0039] 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.
[0040] The axis control circuit 207 is a circuit for controlling the servo motor 5. The axis control circuit 207 receives control instructions from the hardware processor 201 and sends various instructions for driving the servo motor 5 to the servo amplifier 4. The axis control circuit 207 sends a torque command for controlling the torque of the servo motor 5 to the servo amplifier 4, for example.
[0041] The servo amplifier 4 receives a command from the axis control circuit 207 and supplies current to the servo motor 5 .
[0042] The servo motor 5 is driven by receiving current supply from the servo amplifier 4. The servo motor 5 is provided in each control axis of the industrial machine 1. When the industrial machine 1 is a machine tool having five axes, the servo motor 5 includes, 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.
[0043] The servo motor 5 is connected to a ball screw driving a tool rest, for example. The servo motor 5 drives the tool rest and other structures of the industrial machine 1 in a predetermined control axis direction. The servo motor 5 has an encoder (not shown) built in to detect the position and feed speed of the control axis. Position feedback information indicating the position of the control axis and the feed speed of the control axis detected by the encoder, and speed feedback information are fed back to the axis control circuit 207. Thus, the axis control circuit 207 performs feedback control of the control axis.
[0044] The spindle control circuit 208 is a circuit for controlling the spindle motor 7. The spindle control circuit 208 receives a control instruction from the hardware processor 201 and sends an instruction for driving the spindle motor 7 to the spindle amplifier 6. The spindle control circuit 208 sends a spindle speed command for controlling the rotation speed of the spindle motor 7 to the spindle amplifier 6, for example.
[0045] The spindle amplifier 6 receives a command from the spindle control circuit 208 and supplies current to the spindle motor 7 .
[0046] The spindle motor 7 is driven by receiving a supply of electric current from the spindle amplifier 6. The spindle motor 7 is coupled to the spindle to rotate the spindle.
[0047] The PLC 209 is a device that executes a ladder program to control the auxiliary device 8 . The PLC 209 sends a command to the auxiliary device 8 via the I / O unit 210 .
[0048] The I / O unit 210 is an interface that connects the PLC 209 and the auxiliary device 8 . The I / O unit 210 transmits a command received from the PLC 209 to the auxiliary device 8 .
[0049] The auxiliary device 8 is provided in the industrial machine 1 and is a device that performs auxiliary actions in the industrial machine 1. The auxiliary device 8 operates based on the instructions received from the I / O unit 210. The auxiliary device 8 may also be a device provided around the industrial machine 1. The auxiliary device 8 is, for example, a tool changing device, a cutting fluid spraying device, or a door opening and closing drive device.
[0050] Next, a method for calculating the measurement position executed in the numerical controller 2 will be described. The measurement position refers to the position of the measurement portion of the object to be measured, that is, the position of the object to be measured where the contact body contacts.
[0051] When measuring the position of the object to be measured in manual measurement, the operator brings the 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 in a state where the numerical controller 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 controller 2. Alternatively, the operator moves the contact body using an axis movement switch on the operating panel.
[0052] The contact body is a part that contacts the object to be measured. The contact body is, for example, a contact probe. The contact body can also be a tool such as an end mill.
[0053] The object to be measured is an object to be measured in manual measurement. The object to be measured is, for example, a workpiece. The object to be measured may also be a workbench on which the workpiece is placed or a fixture that fixes the workpiece to the workbench.
[0054] When a contact body is used to measure an object to be measured, a deviation in the size of the contact body occurs between the position of the contact body when the contact body is in contact with the object to be measured and the measured position of the object to be measured with which the contact body is in contact. Therefore, it is necessary to use information representing the size of the contact body to correct the value representing the position of the contact body when the contact body is in contact with the object to be measured to calculate the measurement position. In addition, the position of the contact body when the contact body is in contact with the object to be measured refers to a position that serves as a reference in the measurement of the object to be measured. The position that serves as a reference is referred to as a mechanical position. The mechanical position is the position of a control axis in a mechanical coordinate system. In the case where the industrial machine 1 is a machining center, the mechanical position is, for example, the position of the end face of a spindle and the position of the center axis of the spindle.
[0055] Figure 2A and Figure 2B It is a diagram for explaining a method of calculating a measurement position. Figure 2A The mechanical position Pma in the X-axis direction is located in a position that is in the negative direction and the amount of the radius d of the contact body T relative to the measurement position Pme where the contact body T contacts the measured object W. Therefore, as described in detail later, the numerical control device 2 calculates the position in which the mechanical position Pma is moved in the positive direction by the amount of the radius d of the contact body T in the manual measurement as the measurement position Pme.
[0056] in addition, Figure 2B The mechanical position Pma in the Z-axis direction is located at a position in the positive direction and by the length l of the contact body T than the measurement position Pme where the contact body T contacts the measured object W. Therefore, as described in detail later, the numerical control device 2 calculates the position after the mechanical position Pma is moved in the negative direction by the length l of the contact body T as the measurement position Pme in the manual measurement.
[0057] Figure 31 is a block diagram showing an example of the functions of the numerical control device 2 for controlling the 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. For example, 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 by the hardware processor 201 performing calculation processing using the system program stored in the ROM 203, the operation program stored in the nonvolatile memory 205, and various data.
[0058] The first acquisition unit 211 acquires start position information indicating the start position where the contact body T starts measuring the object W in manual measurement. The start position is a reference position when the determination unit 213 determines the approach direction of the contact body T with respect to the object W.
[0059] The starting position is any position from the position of the contact body T to the contact position when the moving direction of the contact body T is set just before the contact body T reaches the contact position with the measured object W. The starting position may be the position of the contact body T when the moving direction of the contact body T is set just before the contact body T reaches the contact position.
[0060] Figure 4A to Figure 4D is a diagram for explaining an example of a method in which the first acquisition unit 211 acquires the start position information. Figure 4A to Figure 4D In the case of the X-axis coordinate values of the measurement position Pme shown in each figure, first, the contact body T is arranged at a position in the positive direction of the Z-axis relative to the object to be measured W. The coordinate values representing the position of the contact body T at this time are, for example, (100, 100) (see Figure 4A ). In order to move the contact body T in the negative direction of the X-axis, the operator selects the X-axis in the manual mode. Selecting an axis means selecting the control axis to be moved. The operator selects the X-axis using, for example, an axis switching switch provided on the pulse handle.
[0061] Corresponding to the selection of the X-axis, the first acquisition unit 211 acquires the position information of the contact body T based on the signal from the 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 moving 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 specified storage area of the non-volatile memory 205. Next, the operator uses, for example, a pulse handle to move the contact body T in the negative direction of the X-axis (see Figure 4B ). The coordinate value indicating the position of the contact body T at this time is, for example, (50, 100).
[0062] Next, the operator performs an operation to select the Z axis. The operator selects the Z axis using, for example, an axis switching switch provided on the pulse handle. In response to the selection of the Z axis, the first acquisition unit 211 acquires the position information of the contact body T and stores it in a predetermined storage area.
[0063] The first acquisition unit 211 may store the newly acquired position information of the contact body T in the storage area storing the already acquired position information. That is, the first acquisition unit 211 may also store the newly acquired position information over the already acquired position information. Alternatively, the first acquisition unit 211 may store the newly acquired position information in a storage area different from the already acquired position information. Next, the operator moves the contact body T in the negative direction of the Z axis (refer to Figure 4C ). The coordinate value indicating the position of the contact body T at this time is, for example, (50, 80).
[0064] Next, the operator performs an operation to select the X-axis. In response to the selection of the X-axis, the first acquisition unit 211 acquires the position information of the contact body T and stores it in a predetermined storage area.
[0065] Next, the operator moves the contact body T to the contact position PT (see Figure 4D ). The coordinate value representing 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 starting position information. That is, the latest position information of the contact body T acquired by the first acquisition unit 211 and stored in the specified storage area becomes the starting position information representing the starting position. Figure 4A to Figure 4D In the example shown, the coordinate value indicating the start position is (50, 80).
[0066] The second acquisition unit 212 acquires contact position information indicating a contact position PT where the contact body T contacts the object W. The contact position information is information indicating the position of the control axis when the contact body T contacts the object W. The second acquisition unit 212 acquires the contact position information based on a signal indicating that the contact body T contacts the object W, for example.
[0067] When the contact body T is, for example, a contact probe, the signal indicating that the contact body T is in contact with the object to be measured W is a signal output by the contact probe. When the contact body T is, for example, a tool, the signal indicating that the contact body T is in contact with the object to be measured W is a signal indicating a load applied to a control axis that moves the tool. The load applied to the control axis is obtained based on, for example, a current value supplied to the servo motor 5.
[0068] The second acquisition unit 212 may acquire the contact position information based on a signal outputted by an operator operating a predetermined operation unit (not shown) such as a switch. In this case, the operator operates the predetermined operation unit while the contact body T is in contact with the object W to be measured.
[0069] The determination unit 213 determines the direction in which the contact body T approaches the 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 .
[0070] When 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 the direction in which the contact body T approaches the measured object W as a negative direction. On the other hand, when the coordinate value of the start position indicated by the start position information is less than the coordinate value of the contact position PT indicated by the contact position information, the determination unit 213 determines the approach direction of the contact body T as a positive direction.
[0071] exist Figure 4A to Figure 4D In the example shown, since the X-axis coordinate value of the start position indicated by the start position information is less than or equal to the X-axis 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.
[0072] The calculation unit 214 calculates the measurement position Pme based on the direction-corrected contact position information determined by the determination unit 213. Here, correction means calculating the measurement position Pme by adding the 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, any one of a value indicating the radius d of the contact body T and a value indicating the length l of the contact body T. The calculation unit 214 may use the value of the tool diameter correction or the value of the tool length correction stored in the numerical controller 2 as the value indicating the size of the contact body T.
[0073] exist Figure 4A to Figure 4D In the example shown, the approach direction of the contact body T relative to the measured object W is the positive direction. In addition, 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 the value representing the radius d of the contact body T to the X-axis coordinate value 75 representing the contact position PT. That is, the calculated X-axis coordinate value of the measurement position Pme is 80.
[0074] The display unit 215 displays information indicating the measurement position Pme calculated by the calculation unit 214 on the display screen. The display unit 215 displays, for example, a pop-up screen on the display screen of the input / output device 3, and displays the coordinate value indicating the measurement position Pme on the pop-up screen. Thus, the numerical control device 2 can allow the operator to recognize the position of the object W to be measured.
[0075] In addition, 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 representing the contact position PT in the negative direction, the display unit 215 displays the string "negative direction" on the display screen. In addition, when the calculation unit 214 corrects the coordinate value representing the contact position PT in the positive direction, the display unit 215 displays the string "positive direction" on the display screen. In addition, the display unit 215 may also indicate the correction direction of the contact position information using a graphic such as an arrow.
[0076] Figure 5 2 is a flowchart showing an example of processing executed by the numerical controller 2. When performing manual measurement, first, the numerical controller 2 sets the operation mode to the manual mode according to an operation by the operator (step S1).
[0077] 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). The information indicating the position of the control axis is information indicating the position of the control axis when the manual mode is set.
[0078] Next, based on the operator's operation, it is determined whether the control axis to be moved has been set (step S3). In other words, it is determined whether the control axis to be moved has been changed. For example, in response to the operator performing an operation to select the X axis, the control axis to be moved is set to the X axis.
[0079] If the control axis to be moved has not been changed (if it is No in step S3), the numerical control device 2 moves the contact body T based on the operator's operation of the pulse handle (step S5). On the other hand, if the control axis to be moved has been changed (if it is Yes in step S3), the first acquisition unit 211 acquires information indicating the position of the control axis (step S4). Then, the process moves to step S5.
[0080] Next, it is determined whether the measurement has been performed (step S6 ). The numerical control device 2 determines whether the measurement has been performed, for example, based on whether a signal indicating that the contact body T and the object W have been contacted has been received.
[0081] If the measurement is not performed (if the result is No in step S6), the process moves to step S3 again. If the measurement is performed (if the result is Yes in step S6), the second acquisition unit 212 acquires the contact position information (step S7). When the contact position information is acquired, the information indicating the position of the control axis acquired in step S4 becomes the starting position information. In addition, if step S4 is not executed, the information indicating the position of the control axis acquired in step S2 becomes the starting position information.
[0082] Next, the numerical controller 2 compares the coordinate value of the start position indicated by the start position information with the coordinate value of the contact position PT indicated by the contact position information (step S8 ).
[0083] When the coordinate value of the start position is greater than the coordinate value of the contact position PT (if it is YES in step S8), the determination unit 213 determines that the approach direction of the contact body T relative to the object to be measured W is the negative direction (step S9). On the other hand, when the coordinate value of the start position is less than the coordinate value of the contact position PT (if it is NO in step S8), the determination unit 213 determines that the approach direction of the contact body T relative to the object to be measured is the positive direction (step S10).
[0084] 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.
[0085] As described above, the numerical control device 2 includes: a first acquisition unit 211, which acquires starting position information indicating the starting position where the contact body T starts to measure the measured object W in manual measurement; a second acquisition unit 212, which acquires contact position information indicating the contact position PT where the contact body T contacts the measured object W; a judgment unit 213, which judges the direction in which the contact body T approaches the measured object W based on the starting 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, which corrects the contact position information based on the direction determined by the judgment unit 213 and calculates the measurement position Pme.
[0086] Therefore, when measuring the position of the workpiece in the manual mode, the numerical controller 2 can automatically specify the direction of correction of the coordinate value representing the contact position PT to calculate the measurement position Pme. As a result, it is possible to prevent an operator who is not accustomed to manual measurement from mistakenly specifying the direction of correction. In addition, even if the operator makes the contact body T mistakenly sink into the measured object W and then returns the contact body T in the direction opposite to the approach direction to move to the contact position PT, the judgment unit 213 correctly judges the approach direction. Therefore, the calculation unit 214 can calculate the accurate measurement position Pme.
[0087] In addition, the starting position is any position from the position of the contact body T to the contact position PT when the moving direction of the contact body T is set before the contact body T reaches the contact position PT. Therefore, the first acquisition unit 211 can acquire the starting position information at any time after the moving direction of the contact body T is set. For example, after the moving direction of the contact body T is set, when the moving speed of the contact body T exceeds a predetermined speed, the first acquisition unit 211 can set the position of the contact body T as the starting position.
[0088] Alternatively, the start position may be the position of the contact body T when the moving direction of the contact body T is set immediately before the contact body T reaches the contact position PT. In this case, the first acquisition unit 211 acquires the start position information in accordance with the setting of the moving direction.
[0089] In addition, the second acquisition unit 212 acquires the contact position information based on the signal indicating that the contact body T is in contact with the object to be measured W. The signal indicating that the contact body T is in contact with 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 acquisition unit 212 can automatically acquire the contact position information by the operator performing 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.
[0090] In addition, the numerical controller 2 further includes a display unit 215 that displays the direction in which the contact position information is to be corrected. Therefore, the numerical controller 2 can allow the operator to recognize the direction in which the contact position information is to be corrected.
[0091] The numerical control device 2 may further include a control unit that moves the contact body T to the start position when the second acquisition unit 212 acquires the contact position information.
[0092] Figure 6 It is a block diagram showing an example of a numerical control device 2 including a control unit. Figure 6 The block diagram shown in FIG. 1 is similar to the numerical control device 2 in that the numerical control device 2 includes a control unit 216. Figure 3 Therefore, the control unit 216 and its related functions are described here, and the use of Figure 3 The description of functions that are the same as those described above will be omitted.
[0093] When the second acquisition unit 212 acquires the contact position information, the control unit 216 moves the contact body T to the starting position. As a result, the operator does not need to manually return the contact body T to the starting position. Therefore, it is possible to prevent the operator from mistakenly causing the contact body T to collide with the measured object W. In addition, the control unit 216 can also operate each control axis of the industrial machine 1 based on the action program.
[0094] In addition, the present disclosure is not limited to the above-mentioned embodiment, and can be appropriately modified within the scope not departing from the gist. For example, any structural element of the embodiment of the present disclosure can be modified, or any structural element of the embodiment can be omitted.
[0095] Description of Reference Numerals
[0096] 1Industrial Machinery
[0097] 2 Numerical control device
[0098] 201 Hardware Processor
[0099] 202 bus
[0100] 203ROM
[0101] 204RAM
[0102] 205 Non-volatile memory
[0103] 206 interface
[0104] 207 axis control circuit
[0105] 208 spindle control circuit
[0106] 209PLC
[0107] 210I / O units
[0108] 211 First Acquisition Department
[0109] 212 Second Acquisition
[0110] 213 Judgment Department
[0111] 214 Computing Department
[0112] 215 Display Department
[0113] 216 Control Department
[0114] 3 Input and output devices
[0115] 4 Servo amplifier
[0116] 5. Servo Motor
[0117] 6-spindle amplifier
[0118] 7 Spindle motor
[0119] 8 Auxiliary equipment
[0120] Pma mechanical position
[0121] Pme measures the position.
Claims
1. A numerical control device, characterized in that: have: a first acquisition unit that acquires start position information indicating a 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 a contact position where the contact body contacts the object to be measured; a determination unit configured to determine a direction in which the contact body approaches the object to be measured based on the start position information obtained by the first acquisition unit and the contact position information obtained by the second acquisition unit; A calculation unit that corrects the contact position information based on the direction determined by the determination unit and calculates a measurement position.
2. The numerical control device according to claim 1, characterized in that: The start position is any position from the position of the contact body to the contact position when the moving direction of the contact body is set immediately before the contact body reaches the contact position.
3. The numerical control device according to claim 1 or 2, characterized in that: The start position is a position of the contact body when the moving direction of the contact body is set immediately before the contact body reaches the contact position.
4. The numerical control device according to any one of claims 1 to 3, characterized in that: The second acquisition unit acquires the contact position information based on a signal indicating that the contact body is in contact with the object to be measured.
5. The numerical control device according to claim 4, characterized in that: The signal indicating that the contact body is in 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 shaft for moving the contact body.
6. The numerical control device according to any one of claims 1 to 5, characterized in that: The numerical control device further includes a display unit that displays a direction in which the contact position information is corrected.
7. The numerical control device according to any one of claims 1 to 6, characterized in that: The numerical control device further includes a control unit that moves the contact body to the start position when the second acquisition unit acquires the contact position information.
8. A computer-readable storage medium storing instructions, characterized in that: The command causes the computer to execute: Acquiring starting position information indicating the starting position at which the contact body starts measuring the object to be measured in manual measurement; Acquiring contact position information indicating a contact position where the contact body contacts the object to be measured; determining a direction in which the contact body approaches the object to be measured based on the obtained starting position information and the obtained contact position information; The contact position information is corrected based on the determined direction and a measurement position is calculated.
