Machine Tool Control System
The machine tool control system facilitates early tool evacuation by parallel execution of machining and evacuation programs, addressing the delay in conventional systems and reducing damage and downtime.
Patent Information
- Application Number
- JP2020127048
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-07-28
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2040-07-28
AI Technical Summary
Existing machine tool control systems require significant time to initiate tool evacuation after detecting an abnormality during machining, leading to potential damage to the tool, workpiece, and machine body.
A machine tool control system that includes parallel and independent NC calculations for machining and save programs, allowing simultaneous execution of machining and evacuation operations, with a composite command value generation to control common actuators, thereby initiating evacuation earlier.
Enables immediate initiation of tool evacuation upon abnormality detection, minimizing damage and reducing downtime by executing evacuation operations concurrently with machining operations.
Smart Images

Figure 0007585642000001 
Figure 0007585642000002 
Figure 0007585642000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a machine tool control system. [Background technology]
[0002] Patent Document 1 describes a machine tool that automatically retracts a broken tool when the tool is damaged during machining. Patent Document 2 describes a tool retraction when a cutting abnormality occurs during automatic machining. Patent Document 3 describes a machine tool that halts machining and retracts a tool when an emergency stop operation is performed during automatic machining.
[0003] Patent Document 4 describes a technique for retracting a tool when an emergency stop is made due to an abnormality occurring during processing in a skiving machine. Patent Document 5 describes a technique for stopping a skiving machine when an abnormality occurs during processing after the meshing state between the teeth of the workpiece and the blade of the tool is released while rotating the workpiece and the tool synchronously.
[0004] Patent Document 6 describes a multi-path NC control method in which independent paths are independently NC-controlled by independent NC programs. Patent Document 7 describes a method in which a multi-path arithmetic unit is provided that independently performs NC calculations based on independent NC programs, and one actuator is controlled by synthesizing control command values from the arithmetic units of the respective paths. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Japanese Patent Publication No. 62-88546 [Patent Document 2] Japanese Patent Application Publication No. 2-256444 [Patent Document 3] JP 2007-188170 A [Patent Document 4] Japanese Patent Application Publication No. 1-159127 [Patent Document 5] JP 2018-51694 A [Patent Document 6] Japanese Patent Application Publication No. 5-324046 [Patent Document 7] JP 2008-84130 A Summary of the Invention [Problem to be solved by the invention]
[0006] Generally, when an abnormality is detected, an interruption signal for the machining program being executed when the abnormality occurred is generated, and interruption processing for the machining program is started when the interruption signal is received. After interruption processing for the machining program is started, deceleration control is performed and the tool and workpiece are stopped. After the tool and workpiece are stopped, a start signal for the retraction program is generated, and startup processing for the retraction program is started when the start signal is received. Then, the retraction program is executed to retract the tool from the workpiece.
[0007] When an abnormality occurs, it is desirable to start the retraction operation of the tool as soon as possible in order to minimize adverse effects on the tool, the workpiece, and the machine body. However, as described above, it is necessary to perform processing such as stopping the machining program and starting the retraction program after detecting the abnormality and before starting execution of the retraction program, and there is room for improvement in shortening the time.
[0008] Moreover, machine tools generally have a CNC (Computerized Numerical Control) device and a PLC (Programmable Logic Controller) as control devices. The CNC device performs control using a machining program and a save program. The PLC controls the start / stop of the machining program and the save program by outputting start and stop signals related to the machining program and the save program to the CNC device. Even when an abnormality occurs, signals are still being sent and received between the CNC device and the PLC, making it difficult to start the save operation of the tool early.
[0009] An object of the present invention is to provide a machine tool control system that can start a tool retraction operation according to a retraction program earlier when an abnormality occurs during machining. [Means for solving the problem]
[0010] Machine tool control system, CNC device and PLC The CNC device includes a first system calculation unit that executes NC calculation according to a machining program for machining a workpiece, a second system calculation unit that executes NC calculation according to a save program for saving a machining state in parallel with and independently of the NC calculation by the first system calculation unit, a composite command value calculation unit that generates a composite command value for controlling a common actuator to be controlled by the first system calculation unit and the second control command value by the second system calculation unit when the actuator to be controlled by the first system calculation unit and the actuator to be controlled by the second system calculation unit are common, by combining a first control command value by the first system calculation unit and a second control command value by the second system calculation unit, and an abnormality detection processing unit that outputs an abnormality signal when an abnormality is detected.
[0011] The machining program includes machining operation instructions for performing machining operations on the workpiece. and an instruction to activate the save program.The evacuation program is started while the machining operation command is being executed, and includes a standby command for waiting until the abnormality signal is received after the program is started, and a evacuation operation command for performing a evacuation operation when the abnormality signal is received. The PLC outputs a start signal of the machining program to the first system calculation unit, and when receiving the activation command of the save program included in the machining program, outputs a start signal of the save program to the second system calculation unit, and when receiving the abnormality signal, outputs an interruption signal of the machining program to the first system calculation unit. After the PLC outputs an interruption signal to the first system calculation unit, until the interruption of the machining program is completed, the machining operation command by the machining program and the evacuation operation command by the evacuation program are executed in parallel.
[0012] In the machine tool control system, the first and second system calculation units can perform NC calculations in parallel and independently. That is, the first system calculation unit can perform NC calculations based on the machining program, and the second system calculation unit can perform NC calculations based on the save program, in parallel and independently.
[0013] The save program is started when a machining operation command in the machining program is being executed. In other words, the start of the save program is independent of the abnormality detection processing unit outputting an abnormality signal when it detects an abnormality, and the save program is already started when the abnormality signal is output. Therefore, while it was necessary to take time to start the save program after detecting an abnormality in the past, the above configuration eliminates the time required to start the save program after detecting an abnormality.
[0014] Here, when an abnormality is detected, a save operation command needs to be executed by the save program. Also, as described above, the save program is already in a running state before the abnormality is detected. To achieve this, the save program includes, in addition to the save operation command, a standby command that waits until an abnormality signal is received after the program is started.
[0015] In other words, when the second system calculation unit starts the evacuation program, the second system calculation unit does not execute the evacuation operation command in the evacuation program until it receives an abnormality signal from the abnormality detection processing unit, and enters a state in which a standby command in the evacuation program is executed. Then, when the second system calculation unit receives the abnormality signal, it executes the evacuation operation command.
[0016] Then, when the second system calculation unit starts executing the retreat operation command, the first system calculation unit does not completely stop the machining operation command of the machining program, but continues to execute the machining operation command. In other words, immediately after the execution of the retreat operation command is started, the machining operation command of the machining program and the retreat operation command of the retreat program are executed in parallel and independently.
[0017] Here, there may be cases where the actuator to be controlled by the first system calculation unit using a machining operation command and the actuator to be controlled by the second system calculation unit using a retraction operation command are the same. In this case, the composite command value calculation unit generates a composite command value by combining the first control command value by the first system calculation unit and the second control command value by the second system calculation unit, and the common actuator to be controlled is controlled by the generated composite command value.
[0018] Therefore, even if the machining operation command of the machining program and the retraction operation command of the retraction program are executed simultaneously, it is possible to control the actuators that are the common object of control. In other words, since the retraction operation command of the retraction program can be executed without waiting for the machining program to be completely stopped, the retraction operation command can be executed earlier. [Brief description of the drawings]
[0019] [Figure 1] FIG. 1 is a perspective view showing an example of a machine tool. [Diagram 2] FIG. 2 is a functional block diagram of a CNC device, and shows signal transmission and reception between a PLC, each unit of the CNC device, and a drive device. [Diagram 3] FIG. 4 is a diagram showing each command described in a first example machining program. [Figure 4] FIG. 13 is a diagram showing each command described in a first example of a save program. [Diagram 5] 13A shows a part of the machining operation commands of the machining program, FIG. 13B shows a part of the evacuation operation commands of the evacuation program, and FIG. 13C shows a composite command value. [Figure 6] The diagram shows the processing of each part of the PLC and CNC device over time. Time progresses downwards in the diagram. [Figure 7] FIG. 11 is a diagram showing each command described in a second example machining program. [Figure 8] FIG. 13 is a diagram illustrating each command described in a save program of a second example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0020] (1. Applicability) The machine tool control system is mounted on a machine tool. The machine tool is a machine that processes a workpiece using a tool, and is, for example, a lathe, a milling machine, a grinding machine, a gear processing device, or a machining center. In particular, when an abnormality occurs during processing, the machine tool control system executes a retraction operation command of a retraction program that retracts the tool from the workpiece. More specifically, when an abnormality occurs during processing, the machine tool control system first executes the retraction operation command early by simultaneously controlling the processing operation command of the processing program and the retraction operation command of the retraction program, and then performs control using only the retraction operation command after the processing operation command is interrupted.
[0021] Here, abnormalities occurring during machining include, for example, excessive machining load abnormality, excessive vibration abnormality due to machining, intrusion abnormality into a forbidden area, operation of an abnormality stop button by an operator, manual return operation by an operator, etc. Excessive machining load abnormality includes, for example, excessive current value abnormality of an axis movement actuator, excessive deviation command value abnormality in feedback control, etc.
[0022] As an example of a machine tool, in a gear machining device that generates a gear by relatively moving a tool and a workpiece while rotating them synchronously, such as in gear skiving or hobbing, a missynchronization between the rotation of the workpiece and the rotation of the tool is considered to be an abnormality. An arbitrary threshold may be set as a warning or the like, and an abnormality may be detected when the threshold is exceeded.
[0023] (2. Example of machine tool 1) A machining center is taken as an example of the machine tool 1. The machining center is configured to be tool replaceable, and is capable of machining according to the attached tool. For example, the replaceable tools include gear cutting tools such as gear skiving cutters and hob cutters, and may also include end mills, milling tools, drills, turning tools, threading tools, grinding tools, etc. Note that in FIG. 1, the tool exchange device and the tool magazine for storing the tools are not shown.
[0024] In this embodiment, the machining center as an example of the machine tool 1 is basically a horizontal machining center. However, the machine tool 1 can be a vertical machining center or other configuration.
[0025] As shown in FIG. 1, the machine tool 1 has, for example, three mutually orthogonal linear axes (X-axis, Y-axis, and Z-axis) as drive axes. Here, the direction of the rotation axis of the gear cutting tool T (equal to the rotation axis of the tool spindle) is defined as the Z-axis direction, and two axes perpendicular to the Z-axis direction are defined as the X-axis direction and the Y-axis direction. In FIG. 1, the horizontal direction is the X-axis direction, and the vertical direction is the Y-axis direction. Furthermore, the machine tool 1 has, as drive axes, two rotation axes (A-axis and B-axis) for changing the relative attitude of the gear cutting tool T and the workpiece W. The machine tool 1 also has a Ct axis as a rotation axis for rotating the gear cutting tool T.
[0026] That is, machine tool 1 is a 5-axis machine (a 6-axis machine when the tool spindle (Ct-axis) is taken into consideration) capable of machining a free curved surface. Here, machine tool 1 may be configured to have a Cw-axis (a rotation axis about the Z-axis in the reference state) and a B-axis, or may be configured to have an A-axis and a Cw-axis, instead of an A-axis (a rotation axis about the X-axis in the reference state) and a B-axis (a rotation axis about the Y-axis in the reference state).
[0027] In the machine tool 1, the configuration for relatively moving the gear cutting tool T and the workpiece W can be appropriately selected. In this example, the machine tool 1 is configured so that the gear cutting tool T can move linearly in the Y-axis and Z-axis directions, the workpiece W can move linearly in the X-axis direction, and the workpiece W can rotate about the A-axis and B-axis. In addition, the gear cutting tool T can rotate about the Ct axis.
[0028] The machine tool 1 includes a bed 10, a workpiece holding device 20, and a tool holding device 30. The bed 10 is formed in any shape, such as a substantially rectangular shape, and is placed on the floor surface. The workpiece holding device 20 enables the workpiece W to move linearly in the X-axis direction relative to the bed 10 and to rotate about the A-axis and B-axis. The workpiece holding device 20 mainly includes an X-axis moving table 21, a B-axis rotating table 22, and a workpiece spindle device 23.
[0029] The X-axis moving table 21 is provided so as to be movable in the X-axis direction relative to the bed 10. Specifically, a pair of X-axis guide rails extending in the X-axis direction (front-rear direction in FIG. 1) are provided on the bed 10, and the X-axis moving table 21 is driven by a driving device such as a linear motor or a ball screw mechanism (not shown) to move in the X-axis direction while being guided by the pair of X-axis guide rails.
[0030] The B-axis rotating table 22 is placed on the upper surface of the X-axis moving table 21, and moves in the X-axis direction integrally with the X-axis moving table 21. The B-axis rotating table 22 is provided so as to be rotatable about the B-axis relative to the X-axis moving table 21. A rotary motor (not shown) is housed in the B-axis rotating table 22, and the B-axis rotating table 22 is rotatable about the B-axis when driven by the rotary motor.
[0031] The workpiece spindle device 23 is mounted on the B-axis rotating table 22 and rotates about the B-axis integrally with the B-axis rotating table 22. The workpiece spindle device 23 supports the workpiece W so that it can rotate about the A-axis. The workpiece spindle device 23 is equipped with a rotary motor (not shown) that rotates the workpiece W. With the above configuration, the workpiece holding device 20 enables the workpiece W to move in the X-axis direction relative to the bed 10, and to rotate about the A-axis and B-axis.
[0032] The tool holding device 30 mainly includes a column 31, a saddle 32, and a tool spindle device 33. The column 31 is provided so as to be movable in the Z-axis direction relative to the bed 10. Specifically, the bed 10 is provided with a pair of Z-axis guide rails extending in the Z-axis direction (the left-right direction in FIG. 1), and the column 31 is driven by a driving device such as a linear motor or a ball screw mechanism (not shown) to move in the Z-axis direction while being guided by the pair of Z-axis guide rails.
[0033] The saddle 32 is disposed on the side surface of the column 31 facing the workpiece W (the left side surface in FIG. 1), which is parallel to a plane perpendicular to the Z-axis direction. A pair of Y-axis guide rails extending in the Y-axis direction (the up-down direction in FIG. 1) are provided on the side surface of the column 31, and the saddle 32 moves in the Y-axis direction by being driven by a driving device such as a linear motor or a ball screw mechanism (not shown).
[0034] The tool spindle device 33 is mounted on the saddle 32 and moves integrally with the saddle 32 in the Y-axis direction. The tool spindle device 33 supports the gear cutting tool T so that it can rotate about the Ct axis. The tool spindle device 33 is equipped with a rotary motor (not shown) that rotates the gear cutting tool T. In this manner, the tool holding device 30 holds the gear cutting tool T so that it can move in the Y-axis and Z-axis directions relative to the bed 10 and can rotate about the Ct axis.
[0035] Furthermore, the machine tool 1 is equipped with a control system 40 for controlling the operation of each of the above-mentioned structures. The control system 40 is equipped with a CNC (Computerized Numerical Control) device 41 that executes NC calculations according to an NC program, and a PLC (Programmable Logic Controller) 42 that controls the start, stop, interruption, etc. of the CNC device 41. As will be described in detail below, the CNC device 41 and the PLC 42 perform control so that the tool currently being used for machining is retracted from the workpiece W when an abnormality occurs during machining. The CNC device 41 and the PLC 42 are equipped with an arithmetic processing device such as a CPU, a storage device such as a memory, an interface for communicating with external devices, etc.
[0036] (3. Gear cutting operations) In gear skiving and hobbing, the central axis of the gear cutting tool T and the central axis of the workpiece W are set at an intersecting angle, and the gear cutting tool T and the workpiece W are moved relative to each other in the direction of the central axis while rotating synchronously, thereby generating a gear on the workpiece W.
[0037] In this gear cutting, a number of cutting edges of the gear cutting tool T cut the teeth of the workpiece W, forming a very complicated state. Therefore, when an abnormality occurs during the cutting, it is required to start an operation to retract the gear cutting tool T from the workpiece W as soon as possible, compared to, for example, turning or milling.
[0038] (4. Configuration of Control System 40) The detailed configuration of the control system 40 will be described with reference to Figs. 2 to 5. Here, the control system 40 mainly executes machining of the workpiece W using the tool T, and also executes a retreat operation if an abnormality occurs during machining. Here, the control system 40 is not limited to gear machining using the gear cutting tool T, but is also applicable to other machining such as turning, milling, end milling, drilling, and grinding.
[0039] 2, as described above, the control system 40 includes the CNC device 41 and the PLC 42. The CNC device 41 includes a first system calculation unit 51, a second system calculation unit 52, a composite command value calculation unit 53, and an abnormality detection processing unit 54.
[0040] The first system calculation unit 51 executes NC calculation according to a machining program for machining the workpiece W. When a start signal is output from the PLC 42, the first system calculation unit 51 starts the machining program and executes commands described in the machining program. When an interrupt signal is output from the PLC 42 during execution of the machining program, the first system calculation unit 51 executes interrupt processing of the machining program.
[0041] Here, as shown in Fig. 3, the machining program of the first example includes a machining operation command for machining the workpiece W. However, in this example, the machining program includes a save program enable command. The order of description is the save program enable command, followed by the machining operation command. In other words, when the machining program is started, the save program enable command is executed, and then the machining operation command is executed.
[0042] The machining operation command describes code information such as the target coordinates (X, Y, Z coordinates) of the tool T to be moved, the shape of the movement trajectory (straight line, arc, etc.), the movement speed (rapid forward speed, machining feed speed), etc. in a coordinate system (work coordinate system) defined based on a predetermined position of the workpiece W.
[0043] 2, the first system calculation unit 51 outputs a save program activation command to the PLC 42. The first system calculation unit 51 also performs NC calculation based on the machining operation command to generate a control command value for a controlled actuator (motor, etc.) constituting the drive device 60. Here, the control command value generated by the first system calculation unit 51 is referred to as a first control command value.
[0044] The second system calculation unit 52 executes NC calculation according to a save program for saving the machining state. The second system calculation unit 52 executes NC calculation according to the save program in parallel with and independently of the NC calculation by the first system calculation unit 51. That is, the first system calculation unit 51 and the second system calculation unit 52 realize so-called multi-system control.
[0045] The second system calculation unit 52 starts the save program and executes commands described in the save program when a start signal is output from the PLC 42. Furthermore, the second system calculation unit 52 executes a process of interrupting the save program when an interrupt signal is output from the PLC 42 during execution of the save program.
[0046] 4, the first example of the retraction program includes a retraction operation command for performing a retraction operation of retracting the tool T from the workpiece W. The second system calculation unit 52 performs NC calculation based on the retraction operation command to generate a control command value for an actuator (motor, etc.) to be controlled that constitutes the drive device 60. The control command value generated by the second system calculation unit 52 is referred to as a second control command value.
[0047] In this example, the save program is started when the machining operation command of the machining program is being executed. Therefore, the save program is already running before the abnormality signal is generated. Therefore, the save program includes a standby command to wait until the abnormality signal is received after the program is started, so that the save operation command is not executed immediately after the program is started.
[0048] 2, the second system calculation unit 52 outputs an abnormality detection enable command to the abnormality detection processing unit 54. The abnormality detection enable command is a trigger signal for executing abnormality detection monitoring by the abnormality detection processing unit 54. In addition, in the save program, the abnormality detection enable command is written prior to the standby command, as shown in FIG.
[0049] The order of the instructions in the save program is the abnormality detection enable command, the standby command, and the save operation command. In other words, when the save program is started, the abnormality detection enable command is executed first, followed by the standby command, and then the save operation command is executed when an abnormality signal is received.
[0050] The abnormality detection enable command may be output from the PLC 42 to the abnormality detection processing unit 54 almost simultaneously (including simultaneously, slightly later than simultaneously, or slightly earlier than simultaneously) when the command to start the save program is output from the PLC 42. The PLC 42 may also adjust the output timing of the abnormality detection enable command to the abnormality detection processing unit 54 in accordance with a standby command in the save program, etc. In these cases, the PC 42 executes the start of the save program in the second system calculation unit 52 and the abnormality detection enablement of the abnormality detection processing unit 54.
[0051] As shown in FIG. 2, when an actuator to be controlled by the first system calculation unit 51 and an actuator to be controlled by the second system calculation unit 52 are common, the composite command value calculation unit 53 generates a composite command value for controlling the common actuator to be controlled by combining the first control command value by the first system calculation unit 51 and the second control command value by the second system calculation unit 52.
[0052] For example, assume that the first control command value is a command value based on the description "G01 Za-200 F100" as shown in FIG. 5(a). "G01" is a code for linear movement. "Za-200" is a description for setting the Z-axis movement target coordinate to a position moved by "-200" from the current position. "F100" is a description for expressing the feed rate. Here, "Za" is appended with "a" to distinguish it from the description "Zb" of the Z-axis movement target coordinate in the second control command value described later.
[0053] The second control command value is assumed to be a command value based on the description "G01 Zb50 F100" as shown in Fig. 5(b). "Zb50" is a description that specifies the movement target coordinate of the Z axis as a position moved by "+50" from the current position.
[0054] Both the first control command value shown in (a) and the second control command value shown in (b) are for the Z-axis actuator to be controlled. Therefore, the actuator to be controlled is the same. In this case, the composite command value is a command value based on the description "G01 Z-150 F100" as shown in FIG. 5(c). "Z-150" is a description that sets the movement target coordinate for the Z-axis to a position that is moved by "-150" from the current position.
[0055] However, since the description shown in Fig. 5(c) represents a description in an NC program, the composite command value is not represented by this description. The composite command value is a composite value of the first control command value and the second control command value. In other words, Fig. 5(c) is a hypothetical description in the case where the composite command value is hypothetically represented by the description in an NC program.
[0056] That is, when the actuators to be controlled are common, the common actuators to be controlled are controlled based on a composite command value obtained by combining the first control command value and the second control command value. In other words, if the NC calculation by the first system calculation unit 51 to generate the first control command value is regarded as a main calculation for the actual drive axis, the NC calculation by the second system calculation unit 52 to generate the second control command value can be regarded as a secondary calculation for the virtual axis.
[0057] The abnormality detection processing unit 54 monitors the detection of an abnormality during machining, and outputs an abnormality signal when an abnormality is detected. The abnormality detection processing unit 54 starts monitoring the detection of an abnormality when it receives an abnormality detection enable command output by the second system calculation unit 52. Here, since the second system calculation unit 52 and the abnormality detection processing unit 54 constitute a part of the CNC device 41, the abnormality detection enable command becomes an internal signal of the CNC device 41.
[0058] Abnormalities occurring during machining include, for example, excessive machining load abnormality, excessive vibration due to machining, intrusion into a forbidden area, operation of an abnormality stop button by an operator, manual return operation by an operator, etc. Excessive machining load abnormality includes, for example, excessive current value of an actuator for axial movement, excessive deviation command value in feedback control, etc. In addition, in the case of machining to generate a gear by moving the gear cutting tool T and the workpiece W relatively while rotating them synchronously, such as in gear skiving machining and hobbing machining, a missynchronization between the rotation of the workpiece W and the rotation of the gear cutting tool T is considered as one of the abnormalities. In other words, the abnormality detection processing unit 54 judges abnormality based on signals detected by various sensors and detects abnormalities.
[0059] When the abnormality detection processing unit 54 detects an abnormality, it outputs an abnormality signal to the second system calculation unit 52 and also to the PLC 42. Since the second system calculation unit 52 and the abnormality detection processing unit 54 constitute a part of the CNC device 41, the abnormality signal becomes an internal signal of the CNC device 41. On the other hand, the abnormality signal output from the abnormality detection processing unit 54 to the PLC 42 becomes an external signal using the external communication line of the CNC device 41.
[0060] The PLC 42 outputs a start signal of the machining program to the first system calculation unit 51. Furthermore, when the PLC 42 receives a save program activation command from the first system calculation unit 51, it outputs a start signal of the save program to the second system calculation unit 52. Furthermore, when the PLC 42 receives an abnormality signal from the abnormality detection processing unit 54, it outputs an interruption signal of the machining program to the first system calculation unit 51.
[0061] (5. Operation of Control System 40) The operation of the control system 40 will be described with primary reference to FIG. 6, and with secondary reference to FIG. 3 and FIG. 4. In FIG. 6, time passes from top to bottom. Therefore, when statements are located at the same position in the vertical direction in FIG. 6, the statements are executed at approximately the same time. Also, in FIG. 6, the vertical intervals between statements in the same column do not correspond to time intervals. Also, in FIG. 6, the thick solid lines indicate the movement of signals using the external communication lines connecting the CNC device 41 and the PLC 42, and the thin solid lines indicate the movement of internal signals of the CNC device 41.
[0062] First, the PLC 42 outputs a start signal of the machining program to the first system calculation unit 51. Then, the first system calculation unit 51 receives the start signal and starts the machining program.
[0063] 3, a save program activation command is written at the beginning of the machining program. Therefore, the first system calculation unit 51 outputs the save program activation command to the PLC 42. Then, the PLC 42 outputs a save program startup signal to the second system calculation unit 52. Then, the second system calculation unit 52 receives the startup signal and starts the save program.
[0064] As shown in Fig. 3, the machining program describes a machining operation command following the save program activation command. Therefore, after outputting the save program activation command, the first system calculation unit 51 executes NC calculation based on the machining operation command. The first system calculation unit 51 executes NC calculation based on the machining operation command to generate a first control command value (a command value related to the machining operation). Then, the composite command value calculation unit 53 calculates a composite command value based only on the first control command value by the first system calculation unit 51, and controls the drive device 60. That is, at this timing, the composite command value includes only the machining operation.
[0065] Here, the start of the save program by the PLC 42 and the start of the save program by the second system calculation unit 52, the execution of the machining operation command by the first system calculation unit 51, and the generation of the composite command value by the composite command value calculation unit 53 are partially processed in parallel at the same time. However, since there is a short time between them, there is a possibility that the two are processed at different times. In other words, the two are allowed to be processed in parallel at the same time.
[0066] 4, an abnormality detection enable command is written first in the save program. Therefore, the second system calculation unit 52 outputs the abnormality detection enable command to the abnormality detection processing unit 54. This output signal is an internal signal of the CNC device 41. Then, when the abnormality detection processing unit 54 receives the enable command, it starts monitoring for abnormality detection.
[0067] In the save program, a standby command is written following the abnormality detection enable command, as shown in Fig. 4. Therefore, the second system calculation unit 52 waits without performing any processing until it receives an abnormality signal.
[0068] At this timing, the first system calculation unit 51 generates a first control command value (a command value related to the machining operation) by performing NC calculation based on the machining operation command. The second system calculation unit 52 waits without performing any processing until it receives an abnormality signal based on the standby command. In other words, the second system calculation unit 52 does not output a second control command value. Here, the composite command value calculation unit 53 performs a process of combining the first control command value by the first system calculation unit 51 and the second control command value by the second system calculation unit 52. However, at this timing, the composite command value calculation unit 53 controls the controlled actuator of the drive device 60 based on a command value represented only by the first control command value. Furthermore, the abnormality detection processing unit 54 monitors abnormality detection.
[0069] Now, suppose that the abnormality detection processing unit 54 detects an abnormality during machining. In this case, the abnormality detection processing unit 54 outputs an abnormality signal to the second system calculation unit 52. The abnormality signal output to the second system calculation unit 52 is an internal signal of the CNC device 41. Therefore, the abnormality signal is sent and received at a very high speed.
[0070] 4, the evacuation program describes an evacuation operation command following a standby command. Therefore, when the second system calculation unit 52 receives an abnormality signal from the abnormality detection processing unit 54, it shifts from the standby command to an evacuation operation command. The second system calculation unit 52 generates a second control command value (a command value related to the evacuation operation) by executing NC calculation based on the evacuation operation command.
[0071] At this timing, the first system calculation unit 51 generates a second control command value based on the machining operation command. Therefore, the composite command value calculation unit 53 generates a composite command value by combining the first control command value by the first system calculation unit 51 and the second control command value by the second system calculation unit 52. Then, the composite command value calculation unit 53 controls the controlled actuator of the drive unit 60 based on the generated composite command value. In other words, at this timing, the composite command value includes both the machining operation and the evacuation operation.
[0072] When the abnormality detection processing unit 54 detects an abnormality during machining, it outputs an abnormality signal to the second system calculation unit 52 and also outputs an abnormality signal to the PLC 42. The abnormality signal output to the PLC 42 is an external signal of the CNC device 41. Therefore, the transmission and reception of the abnormality signal takes more time than the transmission and reception of an internal signal of the CNC device 41.
[0073] When the PLC 42 receives an abnormality signal from the abnormality detection processing unit 54, it outputs a machining program interruption signal to the first system calculation unit 51. When the first system calculation unit 51 receives the machining program interruption signal, it starts the machining program interruption process. To interrupt the machining program, for example, the operation based on the current operation command is decelerated and the operation of the moving body is stopped. In other words, even if the machining program interruption process is started, it takes time for the interruption of the machining program to be completely completed. Therefore, even after the PLC 42 outputs an interruption signal to the first system calculation unit 51, the machining operation command and the evacuation operation command are executed in parallel until the interruption of the machining program is completed.
[0074] Then, when the first system calculation unit 51 completes the interruption process of the machining program, the composite command value calculation unit 53 generates a command value only from the second control command value by the second system calculation unit 52, since the first control command value from the first system calculation unit 51 is no longer output. Then, when the evacuation operation command in the second system calculation unit 52 ends, the generation of the command value by the composite command value calculation unit 53 also ends, and the evacuation is completed.
[0075] (6. Effects) In the control system 40, the first system calculation unit 51 and the second system calculation unit 52 can perform NC calculations in parallel and independently. That is, the first system calculation unit 51 can perform NC calculations based on the machining program, and the second system calculation unit 52 can perform NC calculations based on the save program in parallel and independently.
[0076] The save program is started when a machining operation command in the machining program is being executed. In other words, the start of the save program is unrelated to the abnormality detection processing unit 54 outputting an abnormality signal when detecting an abnormality, and the save program is already started when the abnormality signal is output. Therefore, while it was necessary to take time to start the save program after detecting an abnormality in the past, the above-mentioned control system 40 does not require the time required to start the save program after detecting an abnormality.
[0077] Here, when an abnormality is detected, a save operation command needs to be executed by the save program. Also, as described above, the save program is already in a running state before the abnormality is detected. To achieve this, the save program includes, in addition to the save operation command, a standby command that waits until an abnormality signal is received after the program is started.
[0078] In other words, when the second system calculation unit 52 starts the evacuation program, the second system calculation unit 52 does not execute the evacuation operation command in the evacuation program, and enters a state in which a standby command in the evacuation program is executed, until it receives an abnormality signal from the abnormality detection processing unit 54. Then, when the second system calculation unit 52 receives the abnormality signal, it executes the evacuation operation command.
[0079] Then, when the second system calculation unit 52 starts executing the retreat operation command, the first system calculation unit 51 does not completely stop the machining operation command of the machining program, but continues to execute the machining operation command. In other words, immediately after the execution of the retreat operation command is started, the machining operation command of the machining program and the retreat operation command of the retreat program are executed in parallel and independently.
[0080] Here, there may be cases where the actuator to be controlled by the first system calculation unit 51 using a machining operation command is the same as the actuator to be controlled by the second system calculation unit 52 using a retreat operation command. In this case, the composite command value calculation unit 53 generates a composite command value by combining the first control command value by the first system calculation unit 51 and the second control command value by the second system calculation unit 52, and the common actuator to be controlled is controlled by the generated composite command value.
[0081] Therefore, even if the machining operation command of the machining program and the retraction operation command of the retraction program are executed simultaneously, it is possible to control the actuators that are the common object of control. In other words, since the retraction operation command of the retraction program can be executed without waiting for the machining program to be completely stopped, the retraction operation command can be executed earlier.
[0082] 3, the machining program includes a machining operation command and a save program activation command. When the PLC 42 receives the save program activation command included in the machining program, it outputs a save program startup signal to the second system calculation unit 52. In this way, since the machining program includes the save program activation command, it is possible to realize startup of the save program at any timing in the machining program.
[0083] (7. Machining program and evacuation program of the second example) In addition to the first example of the machining program and the save program described above, a second example of the machining program and the save program described below can also be applied.
[0084] As shown in Fig. 7, the machining program of the second example is described for each tool to be used, with a tool change command, a retract program activation command, and a machining operation command as one unit. In the machining program, for example, a tool change command for tool type T01, a retract program activation command for tool type T01, and a machining operation command for tool type T01 are described. Next, in the machining program, for example, a tool change command for tool type T03, a retract program activation command for tool type T03, and a machining operation command for tool type T03 are described. The retract program of the second example is set for each tool type. In each retract program, an abnormality detection activation command, a standby command, and a retract operation command are described.
[0085] When the machining program and the retraction program of the second example are executed, the retraction operation command differs for each tool type. In this case, the control system 40 performs the operation shown in FIG. [Explanation of symbols]
[0086] 1: machine tool, 10: bed, 20: workpiece holding device, 21: X-axis moving table, 22: B-axis rotating table, 23: workpiece spindle device, 30: tool holding device, 31: column, 32: saddle, 33: tool spindle device, 40: control system, 41: CNC device, 51: first system calculation unit, 52: second system calculation unit, 53: composite command value calculation unit, 54: abnormality detection processing unit, 60: drive unit, T: tool, W: workpiece
Claims
1. A machine tool control system including a CNC device and a PLC, The CNC device is a first system calculation unit that executes NC calculations according to a machining program for machining a workpiece; a second system calculation unit that executes NC calculation according to a save program for saving a machining state in parallel with and independently of the NC calculation by the first system calculation unit; a composite command value calculation unit that generates a composite command value for controlling a common actuator to be controlled by the first system calculation unit and the second system calculation unit by combining a first control command value by the first system calculation unit and a second control command value by the second system calculation unit when the common actuator to be controlled by the first system calculation unit and the second control command value by the second system calculation unit are common; an abnormality detection processing unit that outputs an abnormality signal when an abnormality is detected, The machining program includes a machining operation command for performing a machining operation on the workpiece and an activation command for the retraction program, the evacuation program is started when the machining operation command is being executed, and includes a standby command for waiting until the abnormality signal is received after the program is started, and an evacuation operation command for performing an evacuation operation when the abnormality signal is received, The PLC comprises: A start signal for the machining program is output to the first system calculation unit, When receiving the activation command for the save program included in the machining program, outputting a start signal for the save program to the second system calculation unit; When the abnormality signal is received, a processing program interruption signal is output to the first system calculation unit; A machine tool control system, wherein after the PLC outputs an interruption signal to the first system calculation unit, the machining operation command by the machining program and the evacuation operation command by the evacuation program are executed in parallel until the interruption of the machining program is completed.
2. 2. The machine tool control system according to claim 1, wherein the second system calculation unit receives the abnormality signal from the abnormality detection processing unit as an internal signal of the CNC device.
3. the machining program is a machining program for machining a gear by synchronously rotating the workpiece and a tool, 3. The machine tool control system according to claim 1, wherein the abnormality detection processing section detects a loss of synchronization between the rotation of the workpiece and the rotation of the tool as the abnormality.
Citation Information
Patent Citations
Device for siding and handling broken tool in fms
JP1987088546A
Emergent return on NC skiving machine
JP1989159127A
Tool shelter method and its system of numerically controlled machine tool
JP1990256444A
X axis retracting system for hobbing machine
JP1991196305A
Method and device for numerically controlling multiple system
JP1993324046A
