Numerical control device, and computer-readable storage medium
Patent Information
- Application Number
- JP2024515216
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Filing Date
- 2024-07-24
- Publication Date
- 2024-12-27
AI Technical Summary
Conventional numerical control devices require operators to sequentially specify axis configuration change commands across multiple blocks of machining programs to change the axis configurations of control axes in multiple systems, placing a heavy burden on the operator and increasing the risk of errors.
A numerical control device with an axis configuration memory that stores multiple patterns and a setting unit to easily change the axis configuration of control axes by selecting one of the stored patterns, allowing axis configuration changes in multiple systems with a single command, reducing operator burden and error likelihood.
Enables quick and efficient changes to axis configurations across multiple systems with a single command, reducing processing time and cycle time during machining programs, and minimizing operator errors.
Abstract
Description
Numerical control device and computer-readable storage medium
[0001] The present disclosure relates to a numerical control device and a computer-readable storage medium.
[0002] Conventionally, a numerical control device is known that controls multiple systems using different machining programs. The axis configurations of multiple control axes included in each of the systems are changed based on a predetermined command. For example, Patent Document 1 discloses that an axis removal setting or an axis allocation setting is performed by specifying a predetermined command in one block of a machining program used in a certain system.
[0003] JP 2010-211566 A
[0004] However, conventionally, it was only possible to remove or assign one control axis in one block of a machining program. Therefore, to change the axis configuration of multiple control axes, it was necessary to sequentially specify axis configuration change commands across multiple blocks, which was a significant burden for the operator. Therefore, there is a demand for technology that makes it easy to change the axis configuration of control axes in multiple systems.
[0005] The numerical control device includes an axis configuration storage unit that stores a plurality of axis configuration patterns that indicate the axis configurations of at least one first control axis belonging to a first system and at least one second control axis belonging to a second system, and a setting unit that sets the axis configuration in accordance with one of the plurality of axis configuration patterns stored in the axis configuration storage unit.
[0006] A computer-readable storage medium stores instructions that cause a computer to execute the following: storing a plurality of shaft configuration patterns indicating shaft configurations of at least one first control shaft belonging to a first system and at least one second control shaft belonging to a second system; and setting a shaft configuration according to one of the plurality of stored shaft configuration patterns.
[0007] According to one aspect of the present disclosure, the shaft configuration of control shafts in multiple systems can be easily changed.
[0008] 1 is a diagram illustrating an example of a hardware configuration of an industrial machine. FIG. 2 is a block diagram illustrating an example of the functions of a numerical control device. FIG. 3 is a diagram illustrating an example of an axis configuration pattern stored in an axis configuration storage unit. FIG. 4 is a diagram illustrating an example of another axis configuration pattern stored in an axis configuration storage unit. FIG. 5 is a diagram illustrating an example of a machining program. FIG. 6 is a diagram illustrating a newly set axis configuration. FIG. 7 is a diagram illustrating an example of a flow of processing executed in a numerical control device. FIG. 8 is a block diagram illustrating an example of the functions of a numerical control device equipped with an operation determination unit. FIG. 9 is a diagram illustrating an example of an axis configuration pattern. FIG. 10 is a diagram illustrating that identification numbers are substituted into system variables. FIG. 11 is a diagram for explaining a first axis configuration pattern. FIG. 12 is a diagram illustrating an example of the functions of a numerical control device equipped with a pattern update unit. FIG. 13 is a diagram illustrating an example of a machining program including an update command. FIG. 14 is a diagram illustrating an example of a first axis configuration pattern after a change.
[0009] 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.
[0010] A numerical control device is a control device that controls industrial machines. Examples of industrial machines include machine tools, electrical discharge machines, and industrial robots. Examples of machine tools include machining centers, lathes, and multi-tasking machines. Examples of electrical discharge machines include wire electrical discharge machines and die-sinking electrical discharge machines. Examples of industrial robots include manipulators.
[0011] 1 is a diagram showing an example of the hardware configuration of an industrial machine 1. 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.
[0012] 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 read-only memory (ROM) 203, a random access memory (RAM) 204, and a non-volatile memory 205.
[0013] 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 controls the servo motor 5 and the spindle motor 7 based on the machining program. The hardware processor 201 is, for example, a CPU (Central Processing Unit) or an electronic circuit.
[0014] The hardware processor 201 analyzes the machining program and outputs control commands to the servo motor 5 and the spindle motor 7 for each control period, for example.
[0015] 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.
[0016] 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.
[0017] 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.
[0018] The nonvolatile memory 205 is a storage device that retains data even when the industrial machine 1 is turned off and no power is supplied to the numerical control device 2. The nonvolatile memory 205 stores, for example, machining programs 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 a solid state drive (SSD).
[0019] 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 .
[0020] 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.
[0021] The input / output device 3 receives and displays various data via the interface 206. The input / output device 3 also receives input of various data and sends the data via the interface 206 to, for example, the hardware processor 201.
[0022] The input / output device 3 is, for example, a touch panel. When the input / output device 3 is 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 in an operation panel (not shown) in which the numerical control device 2 is housed.
[0023] 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.
[0024] The servo amplifier 4 receives a command from the axis control circuit 207 and supplies a current to the servo motor 5 .
[0025] 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. If 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. In this case, an axis control circuit 207 and a servo amplifier 4 are provided for each servo motor 5.
[0026] 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, respectively, are fed back to the axis control circuit 207. In this way, the axis control circuit 207 performs feedback control of the control axis.
[0027] 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.
[0028] The spindle amplifier 6 receives a command from the spindle control circuit 208 and supplies a current to the spindle motor 7 .
[0029] 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.
[0030] 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.
[0031] 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.
[0032] The auxiliary device 8 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 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.
[0033] Next, we will explain the functions of the numerical control device 2. Fig. 2 is a block diagram showing an example of the functions of the numerical control device 2. The numerical control device 2 includes a program storage unit 21, an analysis unit 22, a control unit 23, an axis configuration storage unit 24, a setting unit 25, an axis configuration setting storage unit 26, and a command receiving unit 27.
[0034] The program storage unit 21, the axis configuration storage unit 24, and the axis configuration setting storage unit 26 are realized by storing machining programs and various data in the RAM 204 or the non-volatile memory 205. The analysis unit 22, the control unit 23, the setting unit 25, and the command receiving unit 27 are realized by, for example, the hardware processor 201 performing arithmetic processing using the system program stored in the ROM 203 and various data stored in the non-volatile memory 205.
[0035] The program storage unit 21 stores a program. The program is, for example, a machining program used for machining in a machine tool. The program may also be an operation program that commands the operation of a manipulator.
[0036] The analysis unit 22 reads and analyzes the program stored in the program storage unit 21. If the program is a machining program, the analysis unit 22 reads the G code, M code, F code, T code, etc. written in the machining program and analyzes the meaning of each code.
[0037] The control unit 23 controls the control axes of the industrial machine 1 based on the machining program analyzed by the analysis unit 22. When the industrial machine 1 is a machine tool, the control unit 23 controls the control axes to machine a workpiece.
[0038] The axis configuration storage unit 24 stores a plurality of control axis patterns that indicate the axis configurations of the control axes that belong to each of the plurality of systems. That is, the axis configuration pattern is information that indicates which control axis belongs to which system. In other words, the axis configuration pattern is information that indicates the control axes that make up each of the plurality of systems.
[0039] The multiple systems include at least a first system and a second system. At least one control axis belongs to each system. The axis configuration storage unit 24 also stores multiple axis configuration patterns. That is, the axis configuration storage unit 24 stores multiple axis configuration patterns that indicate the axis configurations of at least one first control axis belonging to the first system and at least one second control axis belonging to the second system.
[0040] A system is a group of axes controlled by one machining program. For example, in a lathe having an upper tool rest, a lower tool rest, a first spindle, and a second spindle, if the upper tool rest and the first spindle are controlled based on a first machining program, the upper tool rest and the first spindle belong to a first system. Also, if the lower tool rest and the second spindle are controlled based on a second machining program, the lower tool rest and the second spindle belong to a second system.
[0041] The machining program may include one or more subprograms. The axes may include control axes such as the X-axis, Y-axis, Z-axis, A-axis, B-axis, and C-axis, as well as a main axis.
[0042] Fig. 3 is a diagram showing an example of an axis configuration pattern stored in the axis configuration storage unit 24. Hereinafter, the axis configuration pattern shown in Fig. 3 will be referred to as an axis configuration pattern in an initial state. The initial state is, for example, the state of the axis configuration that is set when the numerical control device 2 is manufactured and shipped.
[0043] At least one control axis belonging to each system is identified by an axis name and an identification number. The axis name is used, for example, when specifying a control axis in a machining program. The identification number is a unique number assigned to each of the multiple control axes of an industrial machine.
[0044] The multiple systems include, for example, a first system, a second system, and a third system. For example, the first system includes control axes with axis names "X1," "Y1," and "Z1." The identification numbers for "X1," "Y1," and "Z1" are "101," "102," and "103," respectively. The last two digits of the identification number indicate the axis number within the system to which the control axis belongs in the initial state. The third digit indicates the number of the system to which the control axis belongs in the initial state. In other words, the identification number "101" indicates that the control axis is the 01st control axis of the first system.
[0045] The second system includes control axes with the names "X2," "Y2," and "Z2." The identification numbers for "X2," "Y2," and "Z2" are "201," "202," and "203," respectively. For example, the identification number "201" indicates that this is the 01st control axis of the second system.
[0046] The third system includes control axes with the names "X3," "Y3," and "Z3." The identification numbers for "X3," "Y3," and "Z3" are "301," "302," and "303," respectively. For example, the identification number "301" indicates that this is the 01st control axis of the third system.
[0047] 4A and 4B are diagrams showing other axis configuration patterns stored in the axis configuration storage unit 24. The other axis configuration patterns are axis configuration patterns other than the initial axis configuration pattern. Hereinafter, the axis configuration pattern shown in FIG. 4A will be referred to as the first axis configuration pattern, and the axis configuration pattern shown in FIG. 4B will be referred to as the second axis configuration pattern.
[0048] The first axis configuration pattern is an axis configuration pattern in which "Y1" in the first system and "Y2" in the second system in the initial state axis configuration pattern are swapped, and further, "Z3" in the third system is moved to the first system. That is, "X1," "Y2," "Z1," and "Z3" belong to the first system of the first axis configuration pattern. "X2," "Y1," and "Z2" belong to the second system. "X3" and "Y3" belong to the third system.
[0049] The second axis configuration pattern is an axis configuration pattern in which "X1" of the first system and "X2" of the second system in the initial state axis configuration pattern are swapped. That is, "X2", "Y1", and "Z1" belong to the first system of the second axis configuration pattern. "X1", "Y2", and "Z2" belong to the second system. "X3", "Y3", and "Z3" belong to the third system.
[0050] The setting unit 25 sets the axis configuration in accordance with one of the axis configuration patterns stored in the axis configuration storage unit 24. The setting unit 25 sets the axis configuration by storing the axis configuration pattern in the axis configuration setting storage unit 26.
[0051] The axis configuration setting storage unit 26 stores the axis configuration set by the setting unit 25. The axis configuration setting storage unit 26 holds the set axis configuration until the setting unit 25 changes the axis configuration.
[0052] When the power supply of the numerical control device 2 is turned on, the setting unit 25 sets the axis configuration according to, for example, an axis configuration pattern in the initial state.
[0053] The command receiving unit 27 receives a change command for instructing a change of the set axis configuration. The change command is, for example, a command specified in a machining program.
[0054] Fig. 5 is a diagram showing an example of a machining program. The machining program includes a first system machining program, a second system machining program, and a third system machining program. In the example shown in Fig. 5, a change command is specified in the second system machining program. The change command may be specified in any of the machining programs of the multiple systems.
[0055] The change command is, for example, "G52.4P1." "G52.4" is a G code that commands a change of the axis configuration. "P" is a code that specifies the axis configuration pattern. In other words, "G52.4P1" is a change command that specifies that the axis configuration set in the axis configuration setting storage unit 26 be changed to the axis configuration indicated by the first axis configuration pattern.
[0056] In response to the command receiving unit 27 receiving a change command, the setting unit 25 sets the axis configuration according to another axis configuration pattern different from the one axis configuration pattern that has been set. In the example shown in Fig. 5, the setting unit 25 changes the axis configuration indicated by the initial axis configuration pattern to the axis configuration indicated by the first axis configuration pattern. In other words, the setting unit 25 sets a new axis configuration.
[0057] 6 is a diagram illustrating a newly set axis configuration. In the example shown in FIG. 6, the axis configuration is changed from the axis configuration indicated by the initial axis configuration pattern to the first axis configuration pattern. Specifically, "Y1" belonging to the first system and "Y2" belonging to the second system are swapped, and "Z3" belonging to the third system is moved to the first system.
[0058] When the axis configuration is newly set, the control unit 23 controls each control axis based on the newly set axis configuration. In the example shown in Fig. 6, the control unit 23 controls the control axes with the axis names "X1," "Y2," "Z1," and "Z3" based on the machining program of the first system. Similarly, the control unit 23 controls the control axes with the axis names "X2," "Y1," and "Z2" based on the machining program of the second system. Similarly, the control unit 23 controls the control axes with the axis names "X3" and "Y3" based on the machining program of the third system.
[0059] Next, a description will be given of the flow of processing executed by the numerical control device 2. Fig. 7 is a flowchart showing an example of the flow of processing executed by the numerical control device 2.
[0060] When the power supply of the numerical control device 2 is turned on, the setting unit 25 sets the axis configuration in accordance with the axis configuration pattern of the initial state (step S1).
[0061] Next, when the execution of the machining program is started, the analysis unit 22 starts analyzing the machining program (step S2).
[0062] Next, the control unit 23 controls the control axes based on the machining program analyzed by the analysis unit 22 (step S3).
[0063] Next, in response to the command receiving unit 27 receiving the change command, the setting unit 25 changes the axis configuration (steps S4 and S5).
[0064] Thereafter, the control unit 23 controls the control axes based on the changed axis configuration (step S6), and ends the process.
[0065] As described above, the numerical control device 2 includes an axis configuration memory unit 24 that stores a plurality of axis configuration patterns indicating the axis configurations of at least one first control axis belonging to a first system and at least one second control axis belonging to a second system, and a setting unit 25 that sets the axis configuration in accordance with one of the plurality of axis configuration patterns stored in the axis configuration memory unit 24.
[0066] Therefore, the numerical control device 2 can quickly change the axis configuration of multiple control axes belonging to multiple systems. For example, even in a multi-system system with 10 systems, the numerical control device 2 can change the axis configuration by a change command written in one block of the machining program for any system. In other words, the operator does not need to write a change command in each machining program for multiple systems. Furthermore, the operator does not need to write multiple change commands in order in the machining program to change the axis configuration of multiple control axes. This reduces the burden on the operator in creating the machining program. Furthermore, it reduces the occurrence of errors in creating the machining program.
[0067] The numerical control device 2 further includes a command receiving unit 27 that receives a change command to change the set axis configuration. In response to the command receiving unit 27 receiving the change command, the setting unit 25 sets the axis configuration according to another axis configuration pattern different from the one axis configuration pattern. Here, the change command is a command specified in the machining program. In particular, the change command is specified in one block. Therefore, the processing time required for the numerical control device 2 to analyze and process the change command can be shortened. As a result, the cycle time when the machining program is executed can be shortened.
[0068] The numerical control device 2 may further include an operation determination unit that determines whether at least one of the first control axis and the second control axis is in operation. The operation determination unit is realized, for example, by the hardware processor 201 performing arithmetic processing using the system program stored in the ROM 203 and various data stored in the non-volatile memory 205.
[0069] 8 is a block diagram showing an example of the functions of a numerical control device 2 equipped with an operation determination unit. The operation determination unit 28 determines whether at least one of the first control axis and the second control axis is in operation. The operation determination unit 28 determines whether at least one of the first control axis and the second control axis is in operation, for example, based on a command output from the control unit 23 to the servo amplifier 4. The operation determination unit 28 may determine whether at least one of the first control axis and the second control axis is in operation based on at least one of position feedback information and velocity feedback information.
[0070] If the operation determination unit 28 determines that at least one of the first control axis and the second control axis is in operation, the setting unit 25 cancels or suspends the change of the axis configuration. For example, when the machining program shown in FIG. 5 is executed, the control unit 23 suspends the execution of the change command "G52.4P1" specified by sequence number N11 until the X1 axis is moved to 100.0 in the first system, the Y2 axis is moved to 100.0 in the second system, and the X3 axis is moved to 100.0 in the third system. In other words, the control unit 23 performs a waiting control until the execution of the command specified by sequence number N10 in each system is completed.
[0071] When the operation determination unit 28 determines that at least one of the first control axis and the second control axis is not in operation, the setting unit 25 changes the axis configuration. In other words, when the operation determination unit 28 determines that the operation of the control axes belonging to each system has been completed, the setting unit 25 changes the axis configuration. That is, after the operation of the first control axis and the second control axis has stopped, the setting unit 25 sets the axis configuration. This makes it possible to prevent malfunctions that may occur when the axis configuration is changed while each control axis is in operation.
[0072] In the above-described embodiment, the setting unit 25 sets a new axis configuration based on a change command specified in one block of the machining program. However, the setting unit 25 may change the axis configuration based on a signal output from the numerical control device 2, not limited to a change command specified in the machining program. In other words, the change command may be a predetermined signal. For example, a predetermined signal is output by operating a predetermined switch on the operation panel of the numerical control device 2. This allows the setting unit 25 to change the axis configuration in accordance with the axis configuration pattern specified by the signal.
[0073] The axis configuration patterns stored in the axis configuration storage unit 24 may include an interrupted axis configuration pattern that is set when the operation of the first control axis and the second control axis is interrupted. The interruption occurs when the machining program is terminated midway through execution due to, for example, pressing the reset button on the operation panel.
[0074] The interrupted axis configuration pattern is, for example, an axis configuration pattern in an initial state. The interrupted axis configuration pattern may be an axis configuration pattern that is set when the power of the numerical control device 2 is turned on. The interrupted axis configuration pattern may be an axis configuration pattern that was set immediately before the interruption. The interrupted axis configuration pattern may be any predetermined axis configuration pattern.
[0075] The setting unit 25 sets the axis configuration according to the interruption axis configuration pattern in response to the command receiving unit 27 receiving an interruption command instructing to interrupt the operation of the first control axis and the second control axis.
[0076] 9 is a diagram showing an example of an axis configuration pattern set in response to the command receiving unit 27 receiving an interrupt command. In response to the command receiving unit 27 receiving an interrupt command, the setting unit 25 sets the axis configuration according to, for example, the initial axis configuration pattern. Therefore, if the axis configuration has been set according to the first axis configuration pattern, the setting unit 25 swaps "Y2" set in the first system with "Y1" set in the second system. In addition, the setting unit 25 transfers "Z3" set in the first system to the third system.
[0077] The axis configuration storage unit 24 may store a plurality of axis configuration patterns by storing identification numbers assigned to system variables. For example, in the numerical control device 2, system variables are assigned in advance to each control axis of each system, and the axis configuration storage unit 24 stores the identification numbers assigned to each system variable.
[0078] FIG. 10 is a diagram for explaining axis configuration patterns. FIG. 10 is a diagram showing that identification numbers are assigned to system variables. In the numerical control device 2, for example, system variables "#001" to "#050" are assigned to control axes belonging to the first system. System variables "#051" to "#100" are assigned to control axes belonging to the second system. System variables "#101" to "#150" are assigned to control axes belonging to the third system.
[0079] For example, identification numbers "101" to "103" are assigned to the system variables "#001" to "#003" assigned to the first system, respectively. Furthermore, identification numbers "201" to "203" are assigned to the system variables "#054" to "#056" assigned to the second system, respectively. Furthermore, identification numbers "301" to "303" are assigned to the system variables "#107" to "#109" assigned to the third system, respectively. In other words, FIG. 10 shows the axis configuration patterns in the initial state.
[0080] FIG. 11 is a diagram illustrating the first axis configuration pattern. The system variables "#010," "#012," "#014," and "#018" assigned to the first system are assigned the identification numbers "101," "103," "202," and "303," respectively. The system variables "#061," "#063," and "#065" assigned to the second system are assigned the identification numbers "102," "201," and "203," respectively. The system variables "#116" and "#117" assigned to the third system are assigned the identification numbers "301" and "302," respectively. Although not described here, the second axis configuration pattern also assigns predetermined identification numbers to system variables.
[0081] The setting unit 25 sets the axis configuration by reading in a system variable corresponding to one of a plurality of axis configuration patterns including the initial axis configuration pattern, the first axis configuration pattern, and the second axis configuration pattern, and storing the system variable in the axis configuration setting memory unit 26.
[0082] The numerical control device 2 may include a pattern update unit that updates any one of the axis configuration patterns included in the multiple axis configuration patterns stored in the axis configuration storage unit 24. The pattern update unit is realized, for example, by the hardware processor 201 performing arithmetic processing using the system program stored in the ROM 203 and various data stored in the non-volatile memory 205.
[0083] Fig. 12 is a diagram showing an example of the functions of a numerical control device 2 equipped with a pattern update unit. The numerical control device 2 shown in Fig. 12 differs from the numerical control device 2 shown in Fig. 8 in that it is equipped with a pattern update unit 29. Therefore, the pattern update unit 29 and functions related thereto will be described here, and a description of functions that are the same as those described using Fig. 8 will be omitted.
[0084] The pattern update unit 29 updates any one of the shaft configuration patterns included in the plurality of shaft configuration patterns stored in the shaft configuration storage unit 24. For example, the pattern update unit 29 updates any one of the shaft configuration patterns stored in the shaft configuration storage unit 24 in response to the command reception unit 27 receiving an update command to update the shaft configuration pattern.
[0085] FIG. 13 is a diagram showing an example of a machining program including an update command. In the example shown in FIG. 13, the update commands "#015=203," "#018=#0," "#065=#0," and "#118=303" are specified in the machining program for the third system. That is, the update command shown in FIG. 13 is an update command that adds "Z2" to the first system and deletes "Z3," deletes "Z2" from the second system, and adds "Z3" to the third system in the first axis configuration pattern shown in FIG. 11. FIG. 14 is a diagram showing the first axis configuration pattern after the change.
[0086] The update command may be specified in a location other than the machining program. For example, the update command may be input from an operation panel. Furthermore, the command receiving unit 27 may determine that the update command has been received when a predetermined signal is output from the numerical control device 2.
[0087] Furthermore, the numerical control device 2 may store a plurality of tables for setting identification numbers to system variables. The numerical control device 2 may read one of the plurality of tables based on, for example, an operation by an operator. As a result, the identification number set in the table is set to the system variable. As a result, a plurality of axis configuration patterns can be updated with a single operation.
[0088] The present disclosure is not limited to the above-described embodiments, and can be appropriately modified without departing from the spirit and scope of the present disclosure. In the present disclosure, any component of the embodiments can be modified or omitted.
[0089] REFERENCE SIGNS LIST 1 Industrial machine 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 unit 21 Program storage unit 22 Analysis unit 23 Control unit 24 Axis configuration storage unit 25 Setting unit 26 Axis configuration setting storage unit 27 Command reception unit 28 Operation determination unit 29 Pattern update unit 3 Input / output device 4 Servo amplifier 5 Servo motor 6 Spindle amplifier 7 Spindle motor 8 Auxiliary equipment
Claims
1. an axis configuration storage unit configured to store a plurality of axis configuration patterns indicating axis configurations of at least one first control axis belonging to a first system and at least one second control axis belonging to a second system; a setting unit that sets the shaft configuration according to one of the plurality of shaft configuration patterns stored in the shaft configuration storage unit; A numerical control device comprising:
2. A command receiving unit is further provided to receive a command to change the set shaft configuration, 2 . The numerical control device according to claim 1 , wherein, in response to the command receiving unit receiving the change command, the setting unit sets the shaft configuration according to another shaft configuration pattern different from the one shaft configuration pattern.
3. further comprising an operation determination unit that determines whether or not at least one of the first control axis and the second control axis is in operation; 3. The numerical control device according to claim 2, wherein when the operation determination unit determines that at least one of the first control axis and the second control axis is in operation, the setting unit cancels or suspends the change to the axis configuration.
4. 4. The numerical control device according to claim 2, wherein the change command is a command specified in a machining program.
5. 4. The numerical control device according to claim 2, wherein the change command is a predetermined signal.
6. the plurality of axis configuration patterns include an interrupted axis configuration pattern that is set when the operations of the first control axis and the second control axis are interrupted; 4. The numerical control device according to claim 2 or 3, wherein the setting unit sets the axis configuration according to the interruption axis configuration pattern in response to the command receiving unit receiving an interruption command to interrupt the operation of the first control axis and the second control axis.
7. A pattern update unit that updates any one of the shaft configuration patterns included in the plurality of shaft configuration patterns stored in the shaft configuration storage unit, 4. The numerical control device according to claim 2, wherein the pattern update unit updates any one of the shaft configuration patterns in response to the command reception unit receiving an update command for updating any one of the shaft configuration patterns.
8. storing a plurality of axis configuration patterns indicating axis configurations of at least one first control axis belonging to a first system and at least one second control axis belonging to a second system; Setting the shaft configuration according to one shaft configuration pattern among the plurality of stored shaft configuration patterns; A computer-readable storage medium that stores instructions for causing a computer to execute the above.
