Machine tool, brake abnormality determination method, and storage medium

By conducting brake tests and parallel multiple load application tests in the processing area of ​​the machine tool, the problem of prolonged machine tool brake test time is solved, and fast and accurate brake abnormality judgment is achieved.

CN118544179APending Publication Date: 2024-08-27BROTHER KOGYO KK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310334068.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2023-03-30
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing machine tools cannot end the brake test quickly after the spindle moves to the tool replacement area, resulting in a longer brake abnormality determination time.

Method used

Perform the brake test when the spindle is located in the processing area, use the space margin in the processing area to shorten the spindle movement time, and conduct multiple load application tests in parallel to quickly complete the brake abnormality judgment.

Benefits of technology

The brake test can be quickly ended when the spindle is located in the processing area, avoiding unnecessary door opening and closing operations and spindle position deviation, and improving the efficiency and accuracy of the brake test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118544179A
    Figure CN118544179A
Patent Text Reader

Abstract

The invention provides a machine tool, a brake abnormality determination method, and a storage medium, which can quickly end a brake test. The machine tool includes: a spindle for detachably holding a tool for machining a workpiece; a tool changing device provided with a tool holding part capable of holding the tool attached to the main shaft; a first motor for driving the tool changing device so as to move the tool holding unit; a first brake for braking the rotation of the first motor; and a test unit that, in order to determine whether or not there is an abnormality in the first brake, performs a first load application test for applying a load to the first motor in a state in which the first brake is operated when the spindle is located in a machining region for machining the workpiece.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a machine tool, a brake abnormality judgment method and a storage medium. Background Art

[0002] The machine tool described in Patent Document 1 includes a spindle and a tool magazine (tool changing device).

[0003] The spindle holds a tool in a detachable manner and can move up and down, forward and backward, left and right. In a processing area for processing a workpiece, the tool held by the spindle processes the workpiece.

[0004] The tool magazine has a plurality of tool holding parts. Each tool holding part can hold a tool, and the tool magazine is driven by the tool magazine motor to circulate on a predetermined path. In the tool replacement area for replacing the tool, the tool held by the spindle is mounted on one tool holding part, and the tool held by the other tool holding part is mounted on the spindle, thereby replacing the tool.

[0005] During the stopping process of the tool magazine motor, the brake brakes the rotation of the tool magazine motor, thereby the tool holding part is actually stationary. In order to prevent the position of the tool holding part from being offset due to the abnormality of the brake, the machine tool is subjected to a brake test to determine whether there is any abnormality in the brake. In the brake test, the machine tool applies a load to the tool magazine motor while the brake is working to determine whether the rotation amount of the tool magazine motor is within the allowable range. If the rotation amount of the tool magazine motor is outside the allowable range, there is an abnormality in the brake, so the machine tool reports an error to the user.

[0006] Patent Document 1: Japanese Patent Application Publication No. 2019-67152 Summary of the invention

[0007] In the machine tool described in Patent Document 1, a load is applied to the magazine motor after the spindle moves to the tool replacement area, so the brake test cannot be completed quickly.

[0008] The object of the present invention is to provide a machine tool, a brake abnormality determination method and a storage medium capable of quickly completing a brake test.

[0009] In order to achieve the above-mentioned purpose, the present invention provides a machine tool, comprising: a spindle for holding a tool for machining a workpiece in a removable manner; a tool changing device, provided with a tool holding portion, wherein the tool holding portion can hold the tool mounted on the spindle; a first motor for driving the tool changing device to move the tool holding portion; a first brake for braking the rotation of the first motor; and a testing portion for performing a first load application test in which a load is applied to the first motor with the first brake working when the spindle is located in a machining area in order to determine whether there is any abnormality in the first brake. The machining area is an area for machining the workpiece.

[0010] In the present invention, a tool for machining a workpiece is held in a removable manner. The tool changing device is provided with a tool holding portion. The tool holding portion is capable of holding a tool mounted to a spindle. A first motor is used to drive the tool changing device to move the tool holding portion. A first brake is used to brake the rotation of the first motor.

[0011] The test unit performs a first load application test when the spindle is located in the machining area to determine whether the first brake has an abnormality. In the first load application test, the test unit applies a load to the first motor while the first brake is braking the rotation of the first motor.

[0012] Since the machining area is an area for machining a workpiece, the spindle located in the machining area is located away from the tool holding portion. Therefore, the tool holding portion, the spindle and the tool do not interfere with each other.

[0013] Since the spindle located in the processing area does not need to move to the area outside the processing area, the movement time of the spindle can be shortened. Therefore, the brake test can be completed quickly.

[0014] In the machine tool of the present invention, the test unit reports an error when the main spindle is located in a tool replacement area, and the tool replacement area is an area for replacing the tool mounted on the main spindle with the tool holding unit.

[0015] In the present invention, the test unit reports an error when the spindle is in the tool replacement area. For example, the test unit obtains the current position of the spindle before executing the first load application test and reports an error if the current position is in the tool replacement area.

[0016] Since the tool changing area is an area for changing the tool mounted on the spindle with the tool holding part, the spindle located in the tool changing area is located close to the tool holding part. In addition, the tool changing area sometimes lacks space margin. By reporting the error to the user, it is possible to prevent the brake test from being performed under undesirable conditions.

[0017] The machine tool of the present invention also includes: a cover, which covers the tool changing device and has an opening; and an opening and closing door, which is used to open and close the opening, and the opening is opened when the tool is replaced and the opening is closed when the workpiece is processed. The test unit performs the first load application test when the opening and closing door is closed.

[0018] In the present invention, the cover covers the tool changing device, and the opening of the cover is opened and closed by the opening and closing door. The opening and closing door opens the opening when the tool is changed, and closes the opening when the workpiece is processed. Therefore, when the spindle is located in the processing area, the possibility of the opening and closing door being closed is high.

[0019] The test unit performs the first load application test when the door is closed. That is, there is no need to open the closed door for the brake test, nor is there any need to close the opened door again. Therefore, the brake test can be completed quickly.

[0020] The machine tool of the present invention also includes: a second motor for moving the spindle; and a second brake for braking the rotation of the second motor. In order to determine whether there is any abnormality in the second brake, the testing unit performs a second load application test in which a load is applied to the second motor while the second brake is working when the spindle is located in the processing area.

[0021] In the present invention, the main shaft moves by driving the second motor, and the second brake brakes the rotation of the second motor.

[0022] In order to determine whether the second brake has an abnormality, the test unit performs a second load application test when the spindle is in the processing area. In the second load application test, the test unit applies a load to the second motor while the second brake is braking the rotation of the second motor. After the second load application test is completed, the test unit can determine whether the second brake has an abnormality.

[0023] Depending on the structure of the machine tool, when the spindle is misaligned, the user needs to return the misaligned spindle to its original position. At this time, if there is no space margin around the spindle, it may be difficult to return the misaligned spindle to its original position.

[0024] Since the machining area is an area for machining workpieces, the machining area has a larger space margin than the tool replacement area. Therefore, even if the second motor rotates due to the load applied as a result of the second load application test, causing the spindle position to shift, when returning the position-shifted spindle to its original position, the possibility of the spindle or the tool held by the spindle interfering with other components is low. Therefore, since it is easy to return the position-shifted spindle to its original position, it is possible to simply restore the original state after the brake test.

[0025] In the machine tool of the present invention, the testing section performs the first load application test and the second load application test together.

[0026] In the present invention, the test section performs the first load application test and the second load application test at the same time, and therefore the brake test can be quickly completed.

[0027] Here, performing a plurality of load application tests at a time means, for example, performing a plurality of load application tests in parallel or performing a plurality of load application tests sequentially without performing other operations between one load application test and another load application test.

[0028] In the machine tool of the present invention, the testing section determines whether or not there is an abnormality in the first brake and the second brake at the same time after the first load application test and the second load application test are completed.

[0029] In the present invention, after the first load application test and the second load application test are completed, the test unit determines whether or not there is an abnormality in the first brake and the second brake at the same time, so that the brake test can be completed quickly.

[0030] Here, collectively determining whether or not a plurality of brakes are abnormal is, for example, determining in parallel or continuously whether or not the rotation amount of each motor is within a predetermined allowable range by a load application test.

[0031] The machine tool of the present invention also includes: a swing table for installing a processing table for fixing the workpiece; a third motor for swinging the swing table; a third brake for braking the rotation of the third motor; and a receiving unit for receiving a movement command for commanding the spindle to move to a specified position in the processing area. In order to determine whether there is any abnormality in the third brake, the testing unit performs a third load application test for applying a load to the third motor when the third brake is working. When the receiving unit receives the movement command, the execution order of the first load application test, the second load application test and the third load application test is different from the execution order when the receiving unit does not receive the movement command.

[0032] In the present invention, the processing table is used to fix the workpiece. The processing table is installed on the swing table. The swing table swings through the drive of the third motor. The third brake is used to brake the rotation of the third motor.

[0033] The test unit performs a third load application test to determine whether the third brake has an abnormality. In the third load application test, the test unit applies a load to the third motor in a state where the third brake brakes the rotation of the third motor.

[0034] As a result of the third load application test, the third motor may rotate due to the load applied thereto, causing the oscillating table to shift in position. If the oscillating table shifts in position, the processing table (and the workpiece on the processing table) also shifts in position.

[0035] Since the tool held by the spindle is used to process the workpiece on the processing table, at least the workpiece on the processing table is located in the processing area. Since the processing table is mounted on the swing table, if the spindle located in the processing area is located close to the workpiece on the processing table, the swing table, the processing table, or the workpiece on the processing table, which is displaced as a result of the third load application test, may interfere with the spindle.

[0036] The receiving unit is used to receive a movement command for moving the spindle to a predetermined position in the processing area. The predetermined position is preferably a position where the swing table, the processing table, and the workpiece do not interfere with the spindle.

[0037] For example, the user determines whether the spindle needs to move to a specified position, and if necessary, gives a movement command to the receiving unit. In the case where the receiving unit receives the movement command, the above-mentioned interference may occur, and in the case where the receiving unit does not receive the movement command, the above-mentioned interference will not occur. Therefore, by changing the execution order of the first load application test, the second load application test, and the third load application test when the receiving unit receives the movement command and when the receiving unit does not receive the movement command, the above-mentioned interference can be effectively prevented from occurring.

[0038] In the machine tool of the present invention, when the receiving unit does not receive the movement command, the testing unit performs the first load application test, the second load application test, and the third load application test at a time.

[0039] In the present invention, when the receiving unit does not receive the movement command, the testing unit performs the first load application test, the second load application test, and the third load application test at a time.

[0040] Since the receiving unit does not receive the movement command, the above-mentioned interference does not occur. Therefore, it is not necessary to move the main shaft to a predetermined position for the brake test.

[0041] Therefore, the brake test can be completed quickly.

[0042] In the machine tool of the present invention, when the receiving unit does not receive the movement command, the testing unit determines whether the first brake, the second brake and the third brake have abnormalities at the same time after the first load application test, the second load application test and the third load application test are completed.

[0043] In the present invention, when the receiving unit does not receive the movement command, after the first load application test, the second load application test, and the third load application test are completed, the test unit determines whether the first brake, the second brake, and the third brake are abnormal at the same time. Therefore, the brake test can be quickly completed.

[0044] The machine tool of the present invention further includes: a fourth motor for moving the spindle in a direction intersecting the up-down direction; and a judgment unit for judging whether the spindle is located at the specified position, wherein the tool holding unit is driven by the first motor to rotate and move around a rotation axis extending in a direction intersecting the up-down direction, and the spindle is driven by the second motor to move in the up-down direction, and when the receiving unit receives the movement command, the testing unit: performs the first load application test and the second load application test at the same time, and after the first load application test and the second load application test are completed, when the judging unit judges that the spindle is not located at the specified position, controls the action of the second motor or the fourth motor to move the spindle to the specified position, and after the first load application test and the second load application test are completed, when the judging unit judges that the spindle is located at the specified position, performs the third load application test.

[0045] In the present invention, the tool changing device is driven by the first motor, and the tool holding portion rotates and moves around the rotating axis. Since the rotating axis extends in a direction intersecting the up and down directions, the tool holding portion changes its position in the up and down directions by rotating and moving around the rotating axis. Therefore, in the event of an abnormality in the brake, the tool holding portion is prone to positional displacement due to the effect of gravity. Similarly, the spindle is driven by the second motor to move in the up and down directions, and therefore, in the event of an abnormality in the brake, it is prone to positional displacement. In summary, the first load application test and the second load application test are particularly important.

[0046] The main shaft moves in a direction intersecting the up-down direction by driving the fourth motor. The determination unit determines whether the main shaft is located at a predetermined position.

[0047] When the receiving unit receives the movement command, the test unit performs the first load application test and the second load application test at the same time. Since the third load application test is not performed during their execution, the above-mentioned interference does not occur. Therefore, it is not necessary to move the main axis to the specified position. That is, multiple load application tests related to particularly important brakes can be performed at the same time with priority, thereby quickly ending the brake test.

[0048] After the first load application test and the second load application test are completed, if the judgment unit determines that the spindle is not located at the specified position, the test unit controls the operation of the second motor or the fourth motor to move the spindle to the specified position. After the first load application test and the second load application test are completed, if the judgment unit determines that the spindle is located at the specified position, the test unit performs the third load application test. That is, if the spindle is not located at the specified position before the third load application test is performed, the spindle moves to the specified position. Therefore, the above-mentioned interference can be prevented from occurring.

[0049] In the machine tool of the present invention, when the receiving unit receives the movement command, the testing unit determines whether the first brake, the second brake, and the third brake are abnormal at the same time after the third load application test is completed.

[0050] In the present invention, when the receiving unit receives the movement command, after the third load application test is completed, the test unit determines whether the first brake, the second brake and the third brake have abnormalities at the same time, so the brake test can be completed quickly.

[0051] In the machine tool of the present invention, the axial direction of the main shaft is horizontal.

[0052] In the present invention, the axial direction of the main shaft is the horizontal direction. That is, the machine tool of the present invention is a so-called horizontal machine tool.

[0053] In order to achieve the above-mentioned purpose, the present invention also provides a brake abnormality judgment method, in order to judge whether there is an abnormality in the brake used to brake the rotation of the motor, a load application test is performed on the motor when the brake is working when the spindle is located in the processing area, the motor is used to drive a tool changing device provided with a tool holding part to move the tool holding part, the tool holding part can hold the tool mounted on the spindle, the spindle is used to hold the tool for processing the workpiece in a removable manner, and the processing area is an area used to process the workpiece.

[0054] In the present invention, in the device including the main spindle, the tool changing device, the motor and the brake, the load application test can be performed when the main spindle is located in the machining area. Therefore, the brake test can be quickly completed.

[0055] In order to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium storing a computer program, wherein the computer program is used to cause a computer to execute the following processing: in order to determine whether a brake used to brake the rotation of a motor has an abnormality, a load application test is performed on the motor when the brake is working when the spindle is located in a processing area, the motor is used to drive a tool changing device provided with a tool holding portion to move the tool holding portion, the tool holding portion is capable of holding a tool mounted to the spindle, the spindle is used to hold the tool for processing a workpiece in a removable manner, and the processing area is an area for processing the workpiece

[0056] In the present invention, in a device including a spindle, a tool changing device, a motor, and a brake, the brake abnormality determination method of the present invention can be realized by executing the above-mentioned processing by a computer.

[0057] The machine tool, brake abnormality determination method and storage medium of the present invention can quickly end the brake test. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 This is a perspective view of the machine tool according to the embodiment as viewed from the upper front side.

[0059] Figure 2 This is a three-dimensional view of the machine tool as seen from the bottom front.

[0060] Figure 3 This is a three-dimensional view of the machine tool as seen from the top and rear.

[0061] Figure 4 This is the right side view of the machine tool.

[0062] Figure 5 It is an enlarged stereoscopic image of the machine tool.

[0063] Figure 6 This is an explanatory diagram showing the movement of the spindle when the tool is replaced (from the machining area to the tool replacement area).

[0064] Figure 7 This is an explanatory diagram showing the movement of the spindle when the tool is replaced (from the tool replacement area to the machining area).

[0065] Figure 8 This is a block diagram showing the structure of a control system of a machine tool.

[0066] Fig. 9 This is a flowchart showing the procedure of brake abnormality determination processing executed by the machine tool.

[0067] Fig.10 This is a flowchart showing the procedure of brake abnormality determination processing executed by the machine tool.

[0068] Fig.11 This is a flowchart showing the procedure of brake abnormality determination processing executed by the machine tool. DETAILED DESCRIPTION

[0069] The following describes an embodiment of the present invention. In the following description, up and down, front and back, and left and right are indicated by arrows in the drawings. In addition, "NC" described in the embodiments is an abbreviation of "Numerical Control".

[0070] Figure 1 This is a perspective view of the machine tool 1 according to the embodiment as viewed from the upper front side.

[0071] The machine tool 1 includes a base 10. The base 10 is made of iron, for example, and is placed on the floor of a factory. The base 10 is rectangular in a top view.

[0072] The X-axis direction of the machine tool 1 is along the short side of the upper surface of the base 10, corresponding to the left-right direction. The Y-axis direction of the machine tool 1 is along the up-down direction. The Z-axis direction of the machine tool 1 is along the long side of the upper surface of the base 10, corresponding to the front-back direction.

[0073] Figure 2 It is a perspective view of the machine tool 1 as viewed from the bottom front side.

[0074] Figure 3 This is a perspective view of the machine tool 1 as viewed from the upper rear side.

[0075] Figure 4 It is a right side view of the machine tool 1.

[0076] like Figures 1 to 4 As shown, the machine tool 1 includes an X-axis moving mechanism 11 , a Z-axis moving mechanism 12 , and a Y-axis moving mechanism 13 .

[0077] The X-axis moving mechanism 11 is provided at the rear portion of the upper surface of the base 10. The X-axis moving mechanism 11 has a moving body 111. The moving body 111 is movable along a guide rail (not shown) extending in the left-right direction.

[0078] The Z-axis moving mechanism 12 is provided on the upper part of the moving body 111. The Z-axis moving mechanism 12 has a column 121. The column 121 is in the shape of a column extending in the up-down direction and is movable along a guide rail (not shown) extending in the front-rear direction.

[0079] The column 121 has a through hole 122 that penetrates the column 121 in the front-rear direction (see Figure 3 The through opening 122 is in a rectangular shape with its long side extending in the up-down direction.

[0080] The machine tool 1 includes a spindle head 2. The spindle head 2 is columnar and penetrates the through hole 122 in the front-rear direction. The front end of the spindle head 2 protrudes forward from the through hole 122, and the rear end of the spindle head 2 protrudes rearward from the through hole 122.

[0081] The Y-axis moving mechanism 13 is provided on the front surface of the column 121 and supports the spindle head 2 so as to be movable along a guide rail (not shown) extending in the up-down direction.

[0082] The machine tool 1 includes a workpiece support device 14. The workpiece support device 14 is arranged at the front portion of the upper surface of the base 10. Figure 1 As shown, the workpiece supporting device 14 includes a swing table 141 and a processing table 142 .

[0083] The oscillating table 141 is capable of swinging around an oscillating axis (hereinafter referred to as the A-axis) not shown in the figure extending in the left-right direction. The processing table 142 has a fixed surface 14a for fixing the workpiece W using a clamp not shown in the figure. The fixed surface 14a is parallel to the A-axis, and the inclination of the fixed surface 14a relative to the horizontal plane changes by the swinging of the oscillating table 141 around the A-axis. The fixed surface 14a is not vertical or facing downward. The processing table 142 is mounted on the oscillating table 141 in a manner that allows it to rotate around a rotating axis not shown in the figure that is perpendicular to the fixed surface 14a. The workpiece support device 14 also has a motor for driving the processing table 142, and its detailed description is omitted here.

[0084] like Figures 1 to 3 As shown, a front support 101 is erected at each of the left and right ends of the upper surface of the base 10. The front support 101 is positioned further back than the workpiece support device 14 in the front-to-back direction and further forward than the column 121 (see Figure 4 The upper portion of the front support 101 is located higher than the spindle head 2 in the vertical direction. The connecting portion 102 extending in the left-right direction connects the upper portions of the two front support 101 to each other (see Figure 3 ).

[0085] like Figures 1 to 4 As shown, the machine tool 1 includes a box-shaped cover 31. The cover 31 is fixed to the front surface of the connecting portion 102. Figure 2 As shown, the cover 31 has an opening 311. The opening 311 spans the bottom wall 31a and the rear wall (see below) of the cover 31. Figure 6 and Figure 7 ).

[0086] The machine tool 1 includes an opening and closing door 32. The opening and closing door 32 can open and close the opening 311. Inside the cover 31, there is an actuator (eg, a cylinder) for driving the opening and closing door 32 to open and close the opening and closing door 32, but detailed description thereof is omitted here.

[0087] Figure 5 It is an enlarged perspective view of the machine tool 1 . Figure 5 The structure near the connecting portion 102 is shown in a state where the cover 31 is omitted.

[0088] The spindle head 2 has a spindle motor 21 at the rear end (see Figures 1 to 4 ), and has a spindle 22 at the front end. The spindle 22 moves with the movement of the spindle head 2. The spindle 22 can rotate around an axis. The spindle motor 21 drives the spindle 22, so that the spindle 22 rotates. The axial direction of the spindle 22 is along the front-back direction.

[0089] The machine tool 1 of the present embodiment is a horizontal machine tool in which the spindle 22 extends in the front-rear direction and the column 121 moves in the front-rear, left-right directions.

[0090] Figure 6 and Figure 7 It is an explanatory diagram showing the operation of the spindle 22 when the tool is replaced.

[0091] The spindle 22 holds a tool T for machining a workpiece W in a removable manner. The tool T includes: a tool body, for example, in the shape of a rod, having a cutting blade at the head end; and a holding portion for holding the base end of the tool body. The spindle 22 has a hole 221 into which the holding portion of the tool T can enter, and the hole 221 of the spindle 22 opens forward at the front end of the spindle head 2. The spindle 22 holds the holding portion of the tool T that enters the spindle 22 relatively from the front side of the spindle 22 in the hole 221 of the spindle 22. The tool T held by the spindle 22 rotates as the spindle 22 rotates. On the other hand, the tool T is detached from the spindle 22 by the spindle 22 retreating relatively from the tool T.

[0092] The machine tool 1 includes a tool changing device 4 , and the cover 31 covers the tool changing device 4 .

[0093] like Figure 5 As shown, the tool changing device 4 includes a tool magazine 41 and an M-axis motor 42 (first motor). The tool magazine 41 includes a tool magazine base 411 and a plurality of gripping arms 412 (tool holding units). Each gripping arm 412 holds a tool T in a detachable manner.

[0094] The tool magazine base 411 is disc-shaped, with the axial direction along the front-to-back direction. A plurality of gripping arms 412 are arranged at equal intervals on the outer periphery of the tool magazine base 411, and extend radially outward in the radial direction of the tool magazine base 411. The tool magazine 41 has a rotation axis (hereinafter referred to as the M axis) not shown in the figure at the center position of the tool magazine base 411. The M axis extends in the front-to-back direction and is located at the center of the connecting portion 102 in the left-to-right direction. The connecting portion 102 supports the tool magazine base 411 in a manner that the tool magazine base 411 can rotate circumferentially around the M axis.

[0095] The M-axis motor 42 drives the magazine base 411 to rotate the magazine base 411 in the circumferential direction around the M-axis. As the magazine base 411 rotates, the plurality of gripping arms 412 (and the tools T held by the gripping arms 412) respectively rotate (rotate) in the circumferential direction around the M-axis.

[0096] like Figure 6 and Figure 7 As shown, at least a portion of the opening 311 of the cover 31 is located directly below the gripping arm 412 at the lowest portion of the tool magazine base 411 (hereinafter referred to as the tool replacement position). Figure 6 and Figure 7 Only the holding arm 412 located in the tool changing position is shown. The head end of the holding arm 412 located in the tool changing position faces downward.

[0097] With the head end of the holding arm 412 facing downward, the holding arm 412 holds the tool T by mounting the tool T upward to the head end of the holding arm 412. With the head end of the holding arm 412 facing downward, the tool T held by the holding arm 412 is detached from the holding arm 412 by pulling the tool T downward.

[0098] The area for processing the workpiece W fixed on the processing table 142 is called the processing area AW. Figure 4 , Figure 6 and Figure 7 As shown, the machining area AW is an area on the lower side of the lower surface of the bottom wall 31a of the cover 31. The tool T held by the spindle 22 located in the machining area AW machines the workpiece W.

[0099] The area for replacing the tool between the spindle 22 and the holding arm 412 is called the tool replacement area AT. The tool replacement area AT is an area on the upper side of the lower surface of the bottom wall 31a of the cover 31, including the lower part of the internal space of the cover 31. The tool replacement area AT is located in the center of the machining area AW in the left-right direction when viewed from above, and is located in the rear part of the machining area AW (at least the rear part of the machining table 142) when viewed from the side.

[0100] By opening the opening and closing door 32 , the machining area AW and the tool replacement area AT communicate with each other through the opening 311 .

[0101] Tool replacement is performed between the spindle 22 located in the tool replacement area AT and the holding arm 412 located in the tool replacement position. Tool replacement is completed by mounting the tool T held by the spindle 22 to the holding arm 412 that does not hold the tool T, and mounting the tool T held by the holding arm 412 to the spindle 22 that does not hold the tool T.

[0102] When machining with the tool T held by the spindle 22 is completed, the spindle 22 moves from the machining area AW to the tool replacement area AT through the opening 311 to replace the tool. After the tool is replaced, the spindle 22 moves from the tool replacement area AT to the machining area AW through the opening 311.

[0103] For example, the spindle 22 is Figure 6 As shown, the spindle 22 is sufficiently separated from the workpiece W by retreating, and moves to the opening 311 of the cover 31 by retreating and ascending. The spindle 22 located at the opening 311 enters the tool change area AT by ascending, and approaches the holding arm 412 located at the tool change position. At the tool change position, the holding arm 412 that does not hold the tool T is pre-configured. The ascending spindle 22 mounts the held tool T to the holding arm 412 located at the tool change position. After the holding arm 412 holds the tool T, the spindle 22 retreats. By retreating the spindle 22, the tool T is detached from the spindle 22, and the spindle 22 is sufficiently separated from the tool magazine 41.

[0104] After the tool T is detached from the spindle 22 , the holding arm 412 rotates, and the holding arm 412 holding the tool T to be used next moves to the tool replacement position.

[0105] Spindle 22 Figure 7 As shown, the spindle 22 approaches the holding arm 412 located at the tool changing position by advancing. As the spindle 22 advances, the tool T held by the holding arm 412 enters the hole 221 of the spindle 22. After the spindle 22 holds the tool T, the spindle 22 is lowered to remove the tool T from the holding arm 412 and moves to the opening 311 of the cover 31. The spindle 22 located at the opening 311 enters the machining area AW by descending and advancing, and is located behind the workpiece W, and then approaches the workpiece W by advancing.

[0106] After the spindle 22 approaches the workpiece W, machining of the workpiece W begins using the tool T held by the spindle 22 .

[0107] The opening and closing door 32 opens the opening 311 when the tool is replaced, and closes the opening 311 when the workpiece W is processed. More specifically, when the spindle 22 is moved from the processing area AW to the tool replacement area AT for tool replacement, the opening and closing door 32 opens the opening 311, and when the spindle 22 is moved from the tool replacement area AT to the processing area AW for processing the workpiece W, the opening and closing door 32 closes the opening 311. By closing the opening and closing door 32, the communication between the tool replacement area AT and the processing area AW is blocked, and the cover 31 and the opening and closing door 32 protect the tool replacement device 4 and the tool T held by the holding arm 412 from being affected by the cutting fluid and chips that splash or scatter during the processing of the workpiece W.

[0108] Since the spindle 22 moves along a fixed path when the tool is replaced, there is no need to provide a space margin in the tool replacement area AT. By minimizing the size of the tool replacement area AT, the machine tool 1 can be miniaturized.

[0109] like Figures 1 to 4 As shown, two rear pillars 103 extend upward from the rear of the base 10. The two rear pillars 103 are separated from each other in the left-right direction.

[0110] The machine tool 1 includes a control device 5 . The control device 5 is fixed to the upper portion of each of the two rear-side pillars 103 .

[0111] Figure 8 It is a block diagram showing the configuration of a control system of machine tool 1 .

[0112] The control device 5 includes a control unit 51 , a volatile main storage unit 52 , and a nonvolatile auxiliary storage unit 53 .

[0113] The control unit 51 has one or more processors such as a CPU, an MPU or a GPU. The control unit 51 is connected to the main storage unit 52 and the auxiliary storage unit 53 through a bus not shown in the figure. The control unit 51 uses the main storage unit 52 as a work area and performs various calculation processes and control processes according to the computer program 5a (program product) stored in the auxiliary storage unit 53.

[0114] The main storage unit 52 is, for example, a RAM.

[0115] The auxiliary storage unit 53 has a storage medium such as an EEPROM, a FlashROM, and a hard disk. The auxiliary storage unit 53 stores a computer program 5a, including an NC program for machining a workpiece W, a program for performing a brake test, and the like. The computer program 5a stored in the auxiliary storage unit 53 can be downloaded from a server via a network, for example, or read from a portable storage medium 50 (such as a CD-ROM or a flash memory). The auxiliary storage unit 53 can also have a portable storage medium 50. In this case, the control unit 51 reads the computer program 5a from the portable storage medium 50 and executes it.

[0116] The machine tool 1 includes an operating panel 6 .

[0117] The operation panel 6 includes: a display unit for displaying information; and an operation unit operated when the user inputs a predetermined command to the machine tool 1. The control unit 51 controls the operation panel 6 to display predetermined information (e.g., error message) on the display unit of the operation panel 6. When the user operates the operation unit of the operation panel 6, the control unit 51 receives a predetermined command (e.g., a movement command described later).

[0118] The machine tool 1 includes an X-axis motor 112 (fourth motor), a Z-axis motor 123 (fourth motor), a Y-axis motor 131 (second motor), and an A-axis motor 143 (third motor).

[0119] The X-axis motor 112 constitutes the X-axis moving mechanism 11, and the moving body 111 moves left and right by the drive of the X-axis motor 112. The X-axis motor 112 drives the moving body 111 via a ball screw not shown in the figure. The Z-axis motor 123 constitutes the Z-axis moving mechanism 12, and the column 121 moves forward and backward by the drive of the Z-axis motor 123. The Z-axis motor 123 drives the column 121 via a ball screw not shown in the figure. The Y-axis motor 131 constitutes the Y-axis moving mechanism 13, and the spindle head 2 moves up and down by the drive of the Y-axis motor 131. The Y-axis motor 131 drives the spindle head 2 via a ball screw not shown in the figure.

[0120] The A-axis motor 143 constitutes the workpiece support device 14 , and the swing table 141 is driven by the A-axis motor 143 , so that the swing table 141 swings in the circumferential direction around the A-axis.

[0121] The moving body 111 moves left and right by the driving of the X-axis motor 112, the column 121 moves forward and backward by the driving of the Z-axis motor 123, and the spindle head 2 moves up and down by the driving of the Y-axis motor 131. As a result, the spindle 22 (and the tool T held by the spindle 22) moves up and down, forward and backward, left and right.

[0122] The swing table 141 swings due to the driving of the A-axis motor 143 , so that the inclination angle of the workpiece W fixed to the processing table 142 changes.

[0123] By driving the M-axis motor 42, the tool magazine base 411 rotates about the M-axis (and each holding arm 412 rotates), and the holding arm 412 not holding a tool T or the holding arm 412 holding a predetermined tool T moves to the tool replacement position.

[0124] The M-axis motor 42 has a brake 421 (first brake) for braking the rotation of the M-axis motor 42. If the brake 421 operates while the M-axis motor 42 is stopped and there is no abnormality in the brake 421, the holding arm 412 (and the tool T held by the holding arm 412) is surely stationary and does not shift in the rotation direction.

[0125] The Y-axis motor 131 has a brake 132 (second brake) for braking the rotation of the Y-axis motor 131. If the brake 132 operates while the Y-axis motor 131 is stopped and there is no abnormality in the brake 132, the spindle 22 (and the tool T held by the spindle 22) is surely stationary at least in the vertical direction without positional displacement in the vertical direction.

[0126] The A-axis motor 143 has a brake 144 (third brake) for braking the rotation of the A-axis motor 143. If the brake 144 operates while the A-axis motor 143 is stopped and there is no abnormality in the brake 144, the swing table 141 (and the processing table 142 and the workpiece W to which the swing table 141 is directly or indirectly fixed) is indeed stationary and does not shift in position in the swing direction.

[0127] The X-axis motor 112 , the Z-axis motor 123 , and the spindle motor 21 also have brakes respectively, and detailed description of these brakes will be omitted.

[0128] The motors and brakes may also be constructed separately.

[0129] The control unit 51 controls the operations of the X-axis motor 112 , the Z-axis motor 123 , the Y-axis motor 131 , the A-axis motor 143 , the spindle motor 21 , the M-axis motor 42 , and the brakes 132 , 144 , and 421 .

[0130] Since the M-axis of the tool magazine 41 extends in a non-vertical direction, the position of the holding arm 412 rotating about the M-axis changes in the vertical direction. In the event of an abnormality in the brake 421 of the M-axis motor 42, the holding arm 412 may be displaced downward in the circumferential direction of the tool magazine base 411 due to the deadweight of the holding arm 412 (or the holding arm 412 and the tool T).

[0131] In order to prevent the position of the holding arm 412 from being displaced due to an abnormality in the brake 421 , the control unit 51 performs a first brake test to determine whether the brake 421 has an abnormality.

[0132] In the first brake test, the control unit 51 performs a first load application test to apply a prescribed load to the M-axis motor 42 in the working state of the brake 421. That is, the control unit 51 controls the M-axis motor 42 to rotate the M-axis motor 42 in the state where the brake 421 brakes the rotation of the M-axis motor 42. If the brake 421 is normal, the rotation amount of the M-axis motor 42 caused by the applied load is within the prescribed allowable range. If there is an abnormality in the brake 421, the rotation amount of the M-axis motor 42 caused by the applied load exceeds the allowable range, so that the position of the holding arm 412 is shifted. In the case where the position of the holding arm 412 is shifted as a result of the first load application test, the user returns the shifted holding arm 412 to its original position (the current position immediately before the start of the first load application test).

[0133] Likewise, when there is an abnormality in the brake 132 of the Y-axis motor 131 , the spindle 22 may be displaced downward due to the weight of the spindle 22 (or the spindle 22 and the tool T).

[0134] In order to prevent the position of the main shaft 22 from being displaced due to an abnormality in the brake 132 , the control unit 51 performs a second brake test to determine whether the brake 132 has an abnormality.

[0135] In the second brake test, the control unit 51 performs a second load application test to apply a prescribed load to the Y-axis motor 131 in the working state of the brake 132. If the brake 132 is normal, the rotation amount of the Y-axis motor 131 caused by the applied load is within the prescribed allowable range. If there is an abnormality in the brake 132, the rotation amount of the Y-axis motor 131 caused by the applied load exceeds the allowable range, so the position of the spindle 22 is offset. In the case where the position of the spindle 22 is offset as a result of the second load application test, the user returns the position-shifted spindle 22 to its original position (the current position immediately before the start of the second load application test).

[0136] It is preferable to perform the first load application test when the spindle 22 is located in the machining area AW. This is because even if the gripping arm 412 is displaced as a result of the first load application test, the gripping arm 412 (or the tool T held by the gripping arm 412) does not interfere with the spindle 22 (or the tool T held by the spindle 22) located in the machining area AW.

[0137] When the spindle 22 is located in the machining area AW, the opening and closing door 32 is closed. It is inefficient to open the opening and closing door 32 only for the first load application test, and therefore, it is preferable to perform the first load application test with the opening and closing door 32 closed. In this case, the load applied to the M-axis motor 42 is preferably such a load that the holding arm 412 (or the tool T held by the holding arm 412) does not interfere with the opening and closing door 32 even if the holding arm 412 is displaced as a result of the first load application test.

[0138] It is preferable to perform the second load application test when the spindle 22 is located in the machining area AW. This is because even if the spindle 22 is displaced as a result of the second load application test, when the user returns the displaced spindle 22 to its original position, the spindle 22 (or the tool T held by the spindle 22) does not interfere with the grip arm 412. In addition, since the spindle 22 moves in various paths when machining the workpiece W, a space margin is provided in the machining area AW.

[0139] However, in the case where the spindle 22 is displaced near the workpiece support device 14 as a result of the second load application test, the spindle 22 (or the tool T held by the spindle 22) may interfere with the swing table 141, the processing table 142, or the workpiece W fixed to the processing table 142. In addition, in the case where the spindle 22 is displaced near the base 10, the spindle 22 (or the tool T held by the spindle 22) may interfere with the base 10.

[0140] Therefore, the second load application test is preferably performed when the spindle 22 is located in the machining area AW and is sufficiently separated from the base 10 and the workpiece support device 14. The control unit 51 of the present embodiment performs the second load application test when the spindle 22 is located in the machining area AW and is located at a specified Z-axis implementation position and a Y-axis implementation position. The Z-axis implementation position is a position sufficiently separated backward from the workpiece support device 14. The Y-axis implementation position is, for example, a position sufficiently separated upward from the upper surface of the base 10. The Z-axis implementation position and the Y-axis implementation position can be set by the manufacturer, respectively, or by the user. In the following, for example, the Z-axis origin is used as the Z-axis implementation position. The Z-axis origin is, for example, the position of the tool change position in the front-to-back direction.

[0141] The A-axis of the swing table 141 extends in a non-vertical direction. Therefore, if the brake 144 of the A-axis motor 143 is abnormal, the swing table 141 may be displaced downward along the swing direction due to the weight of the swing table 141 and the processing table 142 (and the workpiece W fixed to the processing table 142).

[0142] In order to prevent the position of the swing table 141 from being shifted due to an abnormality in the brake 144 , the control unit 51 performs a third brake test to determine whether the brake 144 has an abnormality.

[0143] In the third brake test, the control unit 51 performs a third load application test to apply a prescribed load to the A-axis motor 143 in the working state of the brake 144. If the brake 144 is normal, the rotation amount of the A-axis motor 143 caused by the applied load is within the prescribed allowable range. If there is an abnormality in the brake 144, the rotation amount of the A-axis motor 143 caused by the applied load exceeds the prescribed allowable range, so the position of the swing table 141 is shifted. In the case where the swing table 141 is shifted as a result of the third load application test, the user returns the shifted swing table 141 to its original position.

[0144] Hereinafter, when the first brake test, the second brake test, and the third brake test are not distinguished, they are referred to as brake tests. In addition, the first load application test, the second load application test, and the third load application test are collectively referred to as first to third load application tests, and the first load application test and the second load application test are collectively referred to as first and second load application tests.

[0145] The control unit 51 starts the brake test at a predetermined time. The predetermined time is, for example, when the power of the machine tool 1 is turned on, or before the processing of the workpiece W is started. The brake test may be repeatedly performed at predetermined time intervals (for example, every 8 hours when the user works with the machine tool 1; every 48 hours when the robot works).

[0146] If there is a brake abnormality, gravity often causes positional displacement of the swing table 141, the spindle 22, and the gripping arm 412. In order to quickly complete the brake test, it is preferable to perform the first to third load application tests at once.

[0147] Even if the spindle 22 is located at the Z-axis origin and the Y-axis implementation position in the machining area AW, the workpiece W may interfere with the spindle 22 (or the tool T held by the spindle 22) during the third load application test, depending on the shape or size of the workpiece W. In this case, the spindle 22 needs to be moved (retracted) to a position where the components do not interfere with each other before the third load application test is started.

[0148] When the user performs the third load application test, he determines whether the components may interfere with each other. If it is determined that the components may interfere with each other, he inputs a movement command for instructing the spindle 22 to retreat (the spindle 22 moves to a specified position in the processing area AW) into the operation panel 6. The control unit 51 receives the movement command input by the user. At this time, the control unit 51 serves as a receiving unit in the embodiment. Hereinafter, the specified position in the processing area AW is referred to as the retreat position.

[0149] The workpiece support device 14 includes a clamping mechanism not shown in the figure, and the control unit 51 controls the operation of the clamping mechanism. For example, two components constituting the A axis of the swing table 141 are coaxially fixed one on each of the left and right sides of the swing table 141, and the clamping mechanism prevents the swing table 141 from swinging by clamping the A axis of the swing table 141. Only when the swing table 141 needs to swing, the clamping mechanism releases (loosens) the clamping of the A axis. Therefore, compared with the first and second load application tests, the third load application test is less important.

[0150] In summary, when the control unit 51 receives a movement command, it is preferred to first perform the first and second load application tests together and then perform the third load application test.

[0151] Figures 9 to 11 1 is a flowchart showing the process of the brake abnormality determination process performed by the machine tool 1. The brake abnormality determination method of the present invention can be realized by the control unit 51 performing the brake abnormality determination process according to the computer program 5a. The control unit 51 performing the brake abnormality determination process is used as a test unit in the embodiment.

[0152] like Fig. 9 As shown, the control unit 51 determines whether the spindle 22 is located in the machining area AW (S11). In S11, the control unit 51 obtains the current position of the spindle 22 in the vertical direction based on the detection value of an encoder (not shown) provided on the Y-axis motor 131, and determines whether the current position of the spindle 22 in the vertical direction is below a predetermined Y-axis origin. Here, the Y-axis origin is the position of the boundary between the machining area AW and the tool replacement area AT in the vertical direction.

[0153] When the spindle 22 is not in the machining area AW (S11: No), the spindle 22 is in the tool replacement area AT, so the control unit 51 reports an error to the user (S12). In S12, the control unit 51 displays a predetermined error message on the operation panel 6 and sounds a buzzer (not shown).

[0154] After the process of S12 is completed, the control unit 51 ends the brake abnormality determination process.

[0155] As a result of the process of S12 , the user visually checks the error message displayed on the operation panel 6 to find out the cause of the abnormality.

[0156] When the spindle 22 is located in the processing area AW (S11: Yes), the control unit 51 controls the operation of the Z-axis motor 123 so that the spindle 22 moves to the Z-axis origin (S13). Before performing the process of S13, the control unit 51 may also write the current position (original position) of the spindle 22 into the main storage unit 52. For this purpose, the control unit 51 obtains the current position of the spindle 22 in the Z-axis direction based on the detection value of an encoder (not shown in the figure) provided on the Z-axis motor 123, for example. Similarly, the control unit 51 obtains the current positions of the spindle 22 in the X-axis direction and the Y-axis direction, for example, based on the detection values ​​of encoders (not shown in the figure) provided on the X-axis motor 112 and the Y-axis motor 131, respectively.

[0157] The control unit 51 determines whether a movement command has been received (S14). The user may input the movement command to the operation panel 6 before or after the brake abnormality determination process starts.

[0158] In the case where the movement command is received (S14: Yes), the control unit 51 performs the processing of S21 and thereafter to perform the third load application test after performing the first and second load application tests together. In the case where the movement command is not received (S14: No), the control unit 51 performs the processing of S15 and thereafter to perform the first to third load application tests together. That is, the execution order of the first to third load application tests is different between the case where the movement command is received and the case where the movement command is not received.

[0159] When the movement command is not received ( S14 : No), the control unit 51 controls the operation of the Y-axis motor 131 to move the spindle 22 to the Y-axis implementation position and releases the A-axis of the swing table 141 ( S15 ).

[0160] After the A-axis is released, the control unit 51 controls the operation of the A-axis motor 143 so that the swing table 141 swings to the A-axis implementation angle (S16). The A-axis implementation angle is, for example, an angle at which the fixed surface 14a becomes horizontal. Before performing the process of S16, the control unit 51 may also write the original angle of the swing table 141 into the main storage unit 52. The control unit 51, for example, uses the rotation angle of the A-axis as the angle of the swing table 141, and obtains the original rotation angle of the A-axis based on the detection value of an encoder (not shown in the figure) provided on the A-axis motor 143.

[0161] Next, the control unit 51 controls the brake 421 of the M-axis motor 42, the brake 132 of the Y-axis motor 131, and the brake 144 of the A-axis motor 143 to operate (S17). In the figure, the brakes 421, 132, and 144 are referred to as "M-axis brake", "Y-axis brake", and "A-axis brake".

[0162] Next, the control unit 51 applies a load to the M-axis motor 42, the Y-axis motor 131, and the A-axis motor 143 (S18), and detects the rotation amount of each motor. In S18, the control unit 51 detects the rotation amount of the M-axis motor 42 based on, for example, the detection amount of an encoder (not shown) provided on the M-axis motor 42. Similarly, the control unit 51 detects the rotation amount of each motor based on the detection amount of the encoders provided on the Y-axis motor 131 and the A-axis motor 143, respectively.

[0163] In S17 and S18 , the control unit 51 simultaneously turns on the brakes 421 , 132 , and 144 to simultaneously apply loads to the M-axis motor 42 , the Y-axis motor 131 , and the A-axis motor 143 , thereby performing the first to third load application tests at once.

[0164] When receiving a movement command (S14: Yes), the control unit 51 Fig.10As shown, the operation of the Y-axis motor 131 is controlled so that the spindle 22 moves to the Y-axis implementation position (S21). The control unit 51 controls so that the brake 421 of the M-axis motor 42 and the brake 132 of the Y-axis motor 131 are operated (S22). Next, the control unit 51 applies a load to the M-axis motor 42 and the Y-axis motor 131 (S23) and detects the rotation amount of each motor.

[0165] After the processing of S23 is completed, the control unit 51 controls the operation of the X-axis motor 112 and the Y-axis motor 131 to move the spindle 22 to the retracted position, and releases the A axis of the swing table 141 (S24). The retraction of the spindle 22 is not limited to the movement in the up-down direction and the left-right direction. For example, the retraction of the spindle 22 may be moved in only one direction of the up-down direction and the left-right direction, or may be moved in the up-down direction, the front-back direction, and the left-right direction.

[0166] After the swing table 141 is released, the control unit 51 controls the operation of the A-axis motor 143 to swing the swing table 141 to the A-axis implementation angle ( S25 ).

[0167] Next, the control unit 51 determines whether the spindle 22 is at the retracted position (S26). The control unit 51 in S26 functions as a determination unit in the embodiment. If the spindle 22 is not at the retracted position (S26: No), the control unit 51 executes the process of S26 again.

[0168] When the spindle 22 is located at the retracted position ( S26 : YES), the control unit 51 controls the brake 144 of the A-axis motor 143 to operate ( S27 ), applies a load to the A-axis motor 143 ( S28 ), and detects the rotation amount of the A-axis motor 143 .

[0169] In S22 and S23, the control unit 51 performs the first and second load application tests together. In S26 to S28, the control unit 51 continues the retraction of the spindle 22 when it is determined that the spindle 22 is not in the retraction position, and performs the third load application test when it is determined that the spindle 22 is in the retraction position. The control unit 51 may also determine whether the spindle 22 is in the retraction position before starting the process of S24, and when the spindle 22 is in the retraction position at this time, the process of retracting the spindle 22 in S24 is omitted.

[0170] After the processing of S28 is completed, or Fig. 9 After the processing of S18 shown in FIG. 1 is completed, the control unit 51 Fig.11As shown, it is determined whether the rotation amount of each of the M-axis motor 42, the Y-axis motor 131, and the A-axis motor 143 is within the prescribed allowable range (S31). For example, the control unit 51 compares the rotation amount θ1 with the allowable value θ2 (θ2>0) of each motor. If |θ1|≤θ2, it is determined that the rotation amount is within the allowable range. If |θ1|>θ2, it is determined that the rotation amount exceeds the allowable range. The allowable range of each motor can be set by the manufacturer or by the user.

[0171] In S31, the control unit 51 determines whether there is any abnormality in the brakes 421, 132, and 144 of the M-axis motor 42, the Y-axis motor 131, and the A-axis motor 143. The control unit 51 may compare the rotation amount of each motor with the allowable amount in sequence, or a plurality of calculation units of the control unit 51 may compare the rotation amount of each of the plurality of motors with the allowable amount at the same time.

[0172] When at least one of the rotation amounts of the M-axis motor 42, the Y-axis motor 131, and the A-axis motor 143 exceeds the allowable range (S31: No), the control unit 51 reports an error to the user (S32) because a brake abnormality occurs. In S32, the control unit 51 displays a predetermined error message on the operation panel 6, for example, and sounds a buzzer (not shown).

[0173] After the process of S32 is completed, the control unit 51 ends the brake abnormality determination process.

[0174] As a result of the processing of S32, the user visually confirms the error message displayed on the operation panel 6, and arranges for repair or replacement of the motor with the brake abnormality. In addition, the user returns the swing table 141, the spindle 22 or the holding arm 412 that has been displaced due to the brake abnormality to a normal position.

[0175] When the rotation amounts of the M-axis motor 42, the Y-axis motor 131, and the A-axis motor 143 are all within the allowable range (S31: Yes), no brake abnormality occurs. The control unit 51 controls the operation of the A-axis motor 143 so that the swing table 141 swings to the original angle before the brake test starts (the A-axis returns to the original rotation angle) (S33). In addition, the control unit 51 controls the operation of the X-axis motor 112 and the Y-axis motor 131 so that the spindle 22 returns to the original position before the brake test starts in the X-axis direction and the Y-axis direction, and clamps the A-axis of the swing table 141 (S34). In addition, the control unit 51 controls the operation of the Z-axis motor 123 so that the spindle 22 moves in the front-to-back direction to the original position before the brake test starts (S35), and ends the brake abnormality judgment process.

[0176] When the brake abnormality determination process is executed before the machining of the workpiece W is started, the control unit 51 may automatically start the machining of the workpiece W when the brake abnormality determination process is completed through the process of S35 .

[0177] Through the processing of S34 and S35, the spindle 22 can also be moved to a specified position or a processing start position of the workpiece W, etc., instead of returning to the original position before the brake test starts. Through the processing of S33, the swing table 141 can also be swung to a specified angle or a processing start angle of the workpiece W, etc., instead of returning to the original angle before the brake test starts.

[0178] The load applied to each motor in the brake test may be set by the manufacturer of machine tool 1 or by the user.

[0179] According to the machine tool 1, the brake abnormality judgment method and the computer program 5a as described above, the control unit 51 performs at least the first load application test and the second load application test at the same time when the spindle 22 is located in the processing area AW. Since the spindle 22 located in the processing area AW does not need to be moved to the tool replacement area AT, the movement time of the spindle 22 can be shortened. In addition, the control unit 51 does not open and close the door 32 during the execution of the brake abnormality judgment process. Before the first load application test and the second load application test start, the spindle 22 moves to the Z-axis origin and the Y-axis implementation position. In this way, the brake test can be quickly ended.

[0180] The spindle 22 located in the processing area AW is located away from the holding arm 412. Therefore, the holding arm 412, the spindle 22 and the tool T do not interfere with each other. In addition, the space margin in the processing area AW is large compared to the tool replacement area AT. Therefore, even if the spindle 22 is displaced as a result of the second load application test, when the displaced spindle 22 is returned to its original position, the possibility of the spindle 22 or the tool T held by the spindle 22 interfering with other components (such as the workpiece support device 14 or the workpiece W) is low. Therefore, since it is easy to return the displaced spindle 22 to its original position, it is possible to simply restore it to its original state after the brake test.

[0181] When the spindle 22 is located in the tool replacement area AT, the control unit 51 reports an error. By reporting the error to the user, it is possible to prevent the brake test from being performed in an unintended situation.

[0182] The execution order of the first load application test, the second load application test and the third load application test changes when the control unit 51 receives a movement command and when it does not receive a movement command, thereby preventing the components from interfering with each other as a result of the third load application test.

[0183] Specifically, when the movement command is not received, the control unit 51 performs the first to third load application tests at once. Therefore, there is no need to move the spindle 22 to the retracted position, and the three load application tests are performed at once, so the brake test can be quickly completed.

[0184] When receiving the movement command, the control unit 51 performs the first and second load application tests at the same time. Since the third load application test is not performed during the execution of these tests, it is not necessary to move the spindle 22 to the retreat position. That is, the two load application tests related to the particularly important brake can be preferentially performed at the same time and quickly ended.

[0185] After the first and second load application tests are completed, if it is determined that the spindle 22 is not in the retreat position, the control unit 51 controls the operation of the X-axis motor 112 and the Y-axis motor 131 to move the spindle 22 to the retreat position. After the first and second load application tests are completed, if it is determined that the spindle 22 is in the retreat position, the control unit 51 performs the third load application test. Therefore, it is possible to effectively prevent the components from interfering with each other as a result of the third load application test.

[0186] Regardless of whether a movement command is received or not, the control unit 51 determines whether the brakes of the M-axis motor 42, the Y-axis motor 131, and the A-axis motor 143 are abnormal, thereby quickly completing the brake test.

[0187] In this embodiment, the control unit 51 simultaneously turns on multiple brakes and applies loads to multiple motors simultaneously, thereby performing multiple load application tests at once. After detecting the rotation amount of each motor, the control unit 51 preferably stops applying loads to multiple motors at the same time and turns off multiple brakes at the same time.

[0188] However, executing multiple load application tests simultaneously is not limited to executing the same control process (processing by which the control unit 51 controls the turning on / off of the brake, the application of load to the motor, etc.). To execute multiple load application tests simultaneously, at least a portion of the period from the start to the end of one load test is simultaneous with at least a portion of the period from the start to the end of another load test. For example, the control unit 51 may turn on multiple brakes in sequence.

[0189] In this embodiment, the control unit 51 performs the judgment of whether the multiple brakes have abnormalities at the same time after all the multiple load application tests are completed. However, the control unit 51 may also start the judgment of whether the brakes have abnormalities after detecting the rotation amount of the motor and before disconnecting the brake (that is, before the load application test is completed). Alternatively, the control unit 51 may also perform the judgment of whether the brakes 421 and 132 have abnormalities at the same time after all the first and second load application tests are completed and before the third load application test is started when the movement command is received in S14.

[0190] When the determination of the presence or absence of abnormality of a plurality of brakes is not performed at once, the control unit 51 detects the rotation amount of one motor at a time, for example, and starts the determination of the presence or absence of abnormality of the brakes before detecting the rotation amounts of other motors.

[0191] The tool holding part is not limited to the holding arm 412. The tool changing device 4 is not limited to a structure in which the tool holding part rotates along a circle centered on the M axis. For example, the tool changing device 4 may be a structure in which the tool holding part circulates along a continuous path different from the circle, or a structure in which the tool holding part reciprocates and moves linearly.

[0192] The control unit 51 may also perform a load application test on each of the X-axis motor 112 and the Z-axis motor 123 at the same time as the third load application test. The control unit 51 may also perform a load application test on other drive devices included in the machine tool 1 (e.g., a motor for driving the processing table 142, a cylinder for driving the door 32, or a motor for a device for carrying in and out the workpiece W) at the same time as the third load application test.

[0193] The execution order of the first to third load application tests is different between when a movement command is received and when a movement command is not received, but is not limited to the execution order of the present embodiment.

[0194] The machine tool 1 is a horizontal machine tool with an axial direction along the front-rear direction, but a vertical machine tool with an axial direction of the spindle 22 along the up-down direction can also implement the brake abnormality determination method of the present invention by performing at least the first load application test when the spindle 22 is located in the machining area AW.

[0195] The embodiments of the present invention are illustrative in all aspects and not restrictive. The scope of the present invention is not limited to the specific embodiments, but includes all modifications within the scope of the claims and their equivalents.

[0196] The independent claims and dependent claims in the claims may be combined in various ways, not limited to the reference form. In addition, multiple dependent claims in the claims may not reference other multiple dependent claims, but the present invention may also be in the form of multiple dependent claims that reference other multiple dependent claims.

[0197] Description of Reference Numerals

[0198] 1: Machine tools

[0199] 112: X-axis motor (fourth motor)

[0200] 123: Z-axis motor (fourth motor)

[0201] 131: Y-axis motor (second motor)

[0202] 132: Brake (second brake)

[0203] 141: Swinging table

[0204] 142: Processing table

[0205] 143: A-axis motor (third motor)

[0206] 144: Brake (third brake)

[0207] 22: Spindle

[0208] 31: Cover

[0209] 311: Opening

[0210] 32: Open and close doors

[0211] 4: Tool changing device

[0212] 412: Gripping arm (tool holding part)

[0213] 42: M-axis motor (first motor)

[0214] 421: Brake (first brake)

[0215] 5a: Computer Programs

[0216] 51: Control unit (test unit, receiving unit, judgment unit)

[0217] AT: Tool change area

[0218] AW: Processing area

[0219] T: Tool

[0220] W: Workpiece

Claims

1. A machine tool comprising: a spindle for holding a tool for machining a workpiece in a removable manner; a tool changing device provided with a tool holding portion capable of holding the tool mounted to the spindle; a first motor for driving the tool changing device to move the tool holding portion; a first brake, used to brake the rotation of the first motor; as well as The test unit performs a first load application test for applying a load to the first motor with the first brake in operation when the spindle is located in a machining area, in order to determine whether the first brake has an abnormality. The machining area is an area for machining the workpiece.

2. The machine tool according to claim 1, characterized in that: The test unit reports an error when the main spindle is located in a tool replacement area, which is an area for replacing the tool mounted on the main spindle with the tool holding unit.

3. The machine tool according to claim 1 or 2, characterized in that: Also includes: a cover, the cover covering the tool changing device and having an opening; as well as An opening and closing door for opening and closing the opening, The opening and closing door opens the opening when the tool is replaced, and closes the opening when the workpiece is processed. The test section performs the first load application test when the opening and closing door is closed.

4. The machine tool according to claim 1 or 2, characterized in that: Also includes: a second motor for moving the spindle; as well as a second brake, for braking the rotation of the second motor, The test unit performs a second load application test of applying a load to the second motor in a state where the second brake is activated when the spindle is located in the machining area in order to determine whether the second brake has an abnormality.

5. The machine tool according to claim 4, characterized in that: The test section performs the first load application test and the second load application test together.

6. The machine tool according to claim 5, characterized in that: The test unit determines whether or not there is an abnormality in the first brake and the second brake at the same time after the first load application test and the second load application test are completed.

7. The machine tool according to claim 4, characterized in that: Also includes: A swing table, used for mounting a processing table for fixing the workpiece; a third motor, used to make the swing platform swing; a third brake, used to brake the rotation of the third motor; as well as A receiving unit is used to receive a movement command for instructing the spindle to move to a predetermined position of the processing area. The test unit performs a third load application test for applying a load to the third motor in a state where the third brake is in operation in order to determine whether the third brake has an abnormality. The execution order of the first load application test, the second load application test, and the third load application test when the receiving unit receives the movement command is different from the execution order when the receiving unit does not receive the movement command.

8. The machine tool according to claim 7, characterized in that: When the receiving unit does not receive the movement command, the testing unit performs the first load application test, the second load application test, and the third load application test at a time.

9. The machine tool according to claim 8, characterized in that When the receiving unit does not receive the movement command, the testing unit determines whether the first brake, the second brake, and the third brake have abnormalities after the first load application test, the second load application test, and the third load application test are completed.

10. The machine tool according to claim 7, characterized in that: Also includes: a fourth motor, configured to move the spindle in a direction intersecting the up-down direction; as well as a judging unit, configured to judge whether the spindle is located at the specified position, The tool holding unit is driven by the first motor to rotate and move around a rotation axis extending in a direction intersecting the up-down direction, and the spindle is driven by the second motor to move in the up-down direction. When the receiving unit receives the movement command, the testing unit: The first load application test and the second load application test are performed together, After the first load application test and the second load application test are completed, when the determination unit determines that the spindle is not located at the predetermined position, the operation of the second motor or the fourth motor is controlled to move the spindle to the predetermined position. The third load application test is performed when the determination unit determines that the main shaft is located at the predetermined position after the first load application test and the second load application test are completed.

11. The machine tool according to claim 10, characterized in that When the receiving unit receives the movement command, the testing unit determines whether or not there is an abnormality in the first brake, the second brake, and the third brake at the same time after the third load application test is completed.

12. The machine tool according to claim 1 or 2, characterized in that: The axial direction of the main shaft is horizontal.

13. A method for judging a brake abnormality, wherein a load application test is performed on the motor with the brake in operation when the spindle is located in a processing area in order to judge whether a brake used to brake the rotation of a motor has an abnormality, wherein the motor is used to drive a tool changing device provided with a tool holding portion to move the tool holding portion, the tool holding portion being capable of holding a tool mounted to the spindle, the spindle being used to hold the tool for processing a workpiece in a removable manner, and the processing area being an area for processing the workpiece.

14. A computer-readable storage medium storing a computer program, wherein the computer program is used to cause a computer to perform the following processing: In order to determine whether there is any abnormality in the brake used to brake the rotation of the motor, a load application test is performed on the motor with the brake working when the spindle is located in a processing area. The motor is used to drive a tool changing device provided with a tool holding portion to move the tool holding portion. The tool holding portion can hold the tool mounted on the spindle. The spindle is used to hold the tool for processing a workpiece in a removable manner. The processing area is an area for processing the workpiece.