CN107234485B - The control method of lathe and lathe - Google Patents

The control method of lathe and lathe Download PDF

Info

Publication number
CN107234485B
CN107234485B CN201710192876.4A CN201710192876A CN107234485B CN 107234485 B CN107234485 B CN 107234485B CN 201710192876 A CN201710192876 A CN 201710192876A CN 107234485 B CN107234485 B CN 107234485B
Authority
CN
China
Prior art keywords
main shaft
processing
tapping
threshold value
difference
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710192876.4A
Other languages
Chinese (zh)
Other versions
CN107234485A (en
Inventor
堀冈大士
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Publication of CN107234485A publication Critical patent/CN107234485A/en
Application granted granted Critical
Publication of CN107234485B publication Critical patent/CN107234485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q15/00Automatic control or regulation of feed movement, cutting velocity or position of tool or work
    • B23Q15/007Automatic control or regulation of feed movement, cutting velocity or position of tool or work while the tool acts upon the workpiece
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23GTHREAD CUTTING; WORKING OF SCREWS, BOLT HEADS, OR NUTS, IN CONJUNCTION THEREWITH
    • B23G1/00Thread cutting; Automatic machines specially designed therefor
    • B23G1/16Thread cutting; Automatic machines specially designed therefor in holes of workpieces by taps
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23GTHREAD CUTTING; WORKING OF SCREWS, BOLT HEADS, OR NUTS, IN CONJUNCTION THEREWITH
    • B23G1/00Thread cutting; Automatic machines specially designed therefor
    • B23G1/44Equipment or accessories specially designed for machines or devices for thread cutting

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Numerical Control (AREA)
  • Turning (AREA)

Abstract

The control method of the present invention offer lathe and lathe.The lathe includes mobile mechanism, moves main shaft in the axial direction;Motor rotates about the axis main shaft;Control device is successively read the multiple orders for constituting processing program, controls the driving of mobile mechanism and motor;First test section detects the axis direction position of main shaft;Second test section detects the circumferential position of main shaft.Control device includes judging part, when the order read includes tapping instruction, judge whether the difference of the position of the up and down direction obtained according to the circumferential position and tapping ordering calculation that are detected by the second test section and the position of the up and down direction detected by the first test section has been more than preset threshold value;End portion, when judging part is judged as that difference has been more than threshold value, executing, which terminates to execute after having executed tapping instruction the first of processing program, ends processing and stops execution tapping and instruct and terminate the second of execution processing program any one of to end processing.

Description

The control method of lathe and lathe
Technical field
The present invention relates to the controls of the lathe and lathe of the circumferential position of the axis direction position and main shaft that can control main shaft Method processed, wherein can be by tool assembly in the main shaft.
Background technique
Japanese Patent Publication the 2013-206330th discloses a kind of lathe, and lathe has main shaft, for making main shaft Mobile mechanism, the motor for rotating about the axis main shaft and the driving to mobile mechanism and motor moved in the axial direction The control device controlled, wherein can be by tool assembly in the main shaft.Control device controls the rotation speed of main shaft, with Make the rotation speed of main shaft consistent with target rotational speed at the specified position of axis direction.
When lathe carries out tapping thread processing, when the difference of the amount of moving up and down of the rotation amount of main shaft and main shaft is larger, Sometimes cutter causes cutter or main shaft damaged engaging in workpiece.
Summary of the invention
Even if the purpose of the present invention is to provide the difference of the up and down direction position of main shaft and target up and down direction position compared with Greatly, the control method of the damaged lathe and lathe of main shaft can also be prevented.
The lathe of technical solution 1 includes main shaft, and cutter can be assemblied in the main shaft;Mobile mechanism is used to make main shaft edge Axis direction is mobile;Motor is used to that main shaft to be made to rotate about the axis;Control device is successively read and constitutes the more of processing program A order controls the driving of mobile mechanism and motor;First test section is used to detect the axis direction position of main shaft It sets;And second test section, it is used to detect the circumferential position of main shaft, in the lathe, control device includes judging part, When the order read is instructed including the use of tapping of the cutter to workpiece tapping, which examines according to by the second test section The circumferential position of the main shaft measured is simultaneously instructed based on the tapping come the position of the up and down direction of main shaft described in operation, and is judged The position of the up and down direction of the position of the up and down direction for the main shaft that the operation obtains and the main shaft detected by the first test section Whether the difference set has been more than preset threshold value;And end portion should when judging part is judged as that difference has been more than threshold value End portion executes first and ends processing any one of to be ended processing with second, and first to end processing be to execute tapping for this After instruction terminate execute processing program processing, this second end processing be stop execute tapping instruct and terminate to execute processing The processing of program.
The present invention is instructed according to the circumferential position and tapping of the main shaft detected by the second test section come operation main shaft The position of up and down direction, in the master that the position of the current up and down direction of the main shaft detected by the first test section and operation obtain When the difference of the position of the up and down direction of axis has been more than threshold value, the of the end processing program after having executed tapping instruction is executed One ends processing, or executes second of the end processing program before having executed tapping instruction and end processing.
The control device of the lathe of technical solution 2 has configuration part, which for setting executed at the first end Reason or execute second ends processing, end portion executed according to the setting of configuration part first end processing or the second end at Reason.
Operator can be set execution first using configuration part and end processing any one of to be ended processing with second, energy It is enough to execute appropriate end processing corresponding with the characteristic of cutter and workpiece.
The order of the lathe of technical solution 3 includes the exit instruction that cutter is exited from the threaded hole for being formed in workpiece, threshold value Including first threshold and second threshold, judging part includes: the first judging part, when executing tapping instruction, first judging part Judge whether difference has been more than first threshold;And second judging part, when executing exit instruction, second judging part judgement is poor Whether divide has been more than second threshold.
In the position of the current up and down direction for the main shaft for carrying out tapping to workpiece and being detected by the first test section In the case that the difference of the position of the up and down direction of the main shaft obtained with operation has been more than threshold value, during executing tapping When stopping the rotation of main shaft, workpiece enters in the slot of cutter, and cutter is easy mutually locking with workpiece.Cutter is being exited simultaneously from threaded hole It is de- from main shaft engaging in the cutter of workpiece when main shaft moves in the axial direction and in the case that the difference has been more than threshold value It falls, main shaft is easy to cause to be damaged.Whether the present invention judges the difference when carrying out tapping and when exiting respectively It has been more than the threshold value, even if cutter engaging in workpiece, is also able to carry out the movement of main shaft appropriate corresponding with each situation, has prevented The only breakage of cutter or main shaft.
The threshold value of the lathe of technical solution 4 includes third threshold value and fourth threshold value bigger than third threshold value, and judging part includes: Third judging part is used to judge whether difference to be more than third threshold value;And the 4th judging part, it is used to whether judge difference It has been more than the 4th threshold value, has been judged as that difference has been more than third threshold value and the 4th judging part is judged as that difference does not have in third judging part When more than four threshold values, end portion executes first and ends processing, when the 4th judging part is judged as that difference has been more than four threshold values, End portion executes second and ends processing.
The present invention is when the difference is more than third threshold value but is the 4th threshold value or less, it is contemplated that cutter is locking to workpiece Degree is lower, therefore, executes first and ends processing, and completes to execute tapping instruction.When the difference has been more than four threshold values, It in view of cutter is higher to the locking degree of workpiece, therefore, executes second and ends processing, stop to execute tapping instruction immediately. Even if there is a situation where cutters engaging in workpiece, it is also able to carry out the movement of main shaft appropriate corresponding with situation, prevents cutter Or the breakage of main shaft.
Technical solution 5 is the control method of lathe, which includes main shaft, and cutter can be assemblied in the main shaft;Moving machine Structure is used to that the main shaft to be made to move in the axial direction;Motor is used to that the main shaft to be made to rotate about the axis;Control device, according to It is secondary to read the multiple orders for constituting processing program, the driving of the mobile mechanism and the motor is controlled;First detection Portion is used to detect the axis direction position of the main shaft;And second test section, it is used to detect the circumferential position of the main shaft It sets, in the control method of the lathe, refers in the order read including the use of tapping of the cutter to workpiece tapping When enabling, according to the circumferential position of the main shaft detected by second test section and tapping instruction come described in operation The position of the up and down direction of main shaft, and judge the position of the up and down direction for the main shaft that the operation obtains and examined by described first Whether the difference of the position of the up and down direction for the main shaft that survey portion detects has been more than preset threshold value, being judged as It when stating difference and being more than the threshold value, executes first and ends processing and any one of ended processing with second, at first end Reason is the processing for terminating to execute the processing program after having executed tapping instruction, and second to end processing be to stop to hold for this The row tapping instructs and terminates to execute the processing of the processing program.
The present invention is instructed according to the circumferential position and tapping of the main shaft detected by the second test section come operation main shaft The position of up and down direction, in the master that the position of the current up and down direction of the main shaft detected by the first test section and operation obtain When the difference of the position of the up and down direction of axis has been more than threshold value, the of the end processing program after having executed tapping instruction is executed One ends processing, or executes second of the end processing program before having executed tapping instruction and end processing.
Detailed description of the invention
Fig. 1 is the perspective view for indicating the lathe of embodiment 1.
Fig. 2 is the block diagram for indicating control device.
Fig. 3 is the schematic diagram for indicating an example of processing program.
Fig. 4 is the explanatory diagram for illustrating the movement of main shaft.
Fig. 5 is the flow chart for illustrating tapping thread processing processing.
Fig. 6 is the flow chart for illustrating tapping thread processing processing.
Fig. 7 is the flow chart handled for illustrating the tapping thread processing of embodiment 2.
Specific embodiment
Embodiment 1
It is illustrated based on the drawings the lathe of embodiment 1.In the following description content, using shown in the arrow in attached drawing Top to bottom, left and right, front and rear.
As shown in Figure 1, lathe 100 has the pedestal 1 of the rectangle extended along the longitudinal direction.Work holding portion thereof 3 is set to pedestal 1 Top the position by front side.Work holding portion thereof 3 can be around the A axis rotation extended in left-right direction, and work holding portion thereof 3 can Around the C axis rotation vertically extended.Supporting station 2 is set to the position by rear side on the top of pedestal 1, supporting upright post 4.
Y direction mobile mechanism 10 is set to the top of supporting station 2, and movable plate 16 can be made to move along the longitudinal direction.Y-axis side There are Y-axis screw rod 12, Y-axis motor 13, bearing 14 and two tracks 11 extended along the longitudinal direction to mobile mechanism 10.Track 11 are set to the position and position on the right side by left side on the top of supporting station 2.Y-axis screw rod 12 extends along the longitudinal direction, and sets Between two tracks 11.Bearing 14 is set to front end and the middle part (illustration omitted) of Y-axis screw rod 12.Y-axis motor 13 and Y-axis The rear end of screw rod 12 is connected.Nut (illustration omitted) is threadedly engaged across rolling element (illustration omitted) with Y-axis screw rod 12.Rolling Kinetoplast is, for example, ball.Multiple sliding parts 15 are set to each track 11 in a manner of it can slide.Movable plate 16 prolongs in the horizontal direction It stretches, is connected with the top of nut and sliding part 15.Y-axis screw rod 12 is rotated with the rotation of Y-axis motor 13, to make spiral shell Mother moves along the longitudinal direction, moves movable plate 16 along the longitudinal direction.
X-direction mobile mechanism 20 is set to the upper surface of movable plate 16, and column 4 can be made to move in left-right direction.X-axis side There are X-axis screw rod 22, X-axis motor 23 (referring to Fig. 2), bearing 24 and two rails extended in left-right direction to mobile mechanism 20 Road 21.The position by front side and the position by rear side that track 21 is set to the upper surface of movable plate 16.X-axis screw rod 22 is along right and left To extension, and it is set between two tracks 21.Bearing 24 is set to left part and the middle part (illustration omitted) of X-axis screw rod 22.X-axis Motor 23 and the right part of X-axis screw rod 22 are connected.Nut (illustration omitted) is across rolling element (illustration omitted) and X-axis screw rod 22 It is threadedly engaged.Multiple sliding parts 26 are set to each track 21 in a manner of it can slide.The top of column 4 and nut and sliding part 26 It is connected.X-axis screw rod 22 is rotated with the rotation of X-axis motor 23, so that nut be made to move in left-right direction, makes column 4 It moves in left-right direction.
Z-direction mobile mechanism 30 is set to the front surface of column 4, and main tapping 5 can be made to move along the vertical direction.Z axis side There are Z axis screw rod 32, Z axis motor 33, bearing 34 and two tracks 31 vertically extended to mobile mechanism 30.Track 31 are set to the position and position on the right side by left side of the front surface of column 4.Z axis screw rod 32 vertically extends, and sets Between two tracks 31.Bearing 34 is set to lower end and the middle part (illustration omitted) of Z axis screw rod 32.Z axis motor 33 and Z axis The upper end of screw rod 32 is connected.Nut (illustration omitted) is threadedly engaged across rolling element (illustration omitted) with Z axis screw rod 32.It is more A sliding part 35 is set to each track 31 in a manner of it can slide.Main tapping 5 and the front of nut and sliding part 35 are connected.Z Axis screw rod 32 is rotated with the rotation of Z axis motor 33, so that nut be made to move along the vertical direction, makes main tapping 5 vertically Direction is mobile.
The main shaft 51 vertically extended is set in main tapping 5.Main shaft 51 can rotate about the axis.6 (horse of spindle motor Up to) it is set to the upper end of main tapping 5.It can be by tool assembly in the lower end of main shaft 51.Main shaft 51 with spindle motor 6 rotation Capable rotation is rotated into, so that cutter be made to be rotated.The cutter of rotation processes the workpiece kept by work holding portion thereof 3.
Lathe 100 has the tool changing device (illustration omitted) that can exchange cutter.Tool changing device can exchange and be accommodated in knife The cutter in library (illustration omitted) and the cutter being assemblied on main shaft 51.
Lathe 100 has the drive to motor 6, motor 13, motor 23, motor 33, work holding portion thereof 3 and tool changing device etc. The dynamic control device 60 controlled.As shown in Fig. 2, control device 60 has CPU61, ROM62, RAM63, EEPROM etc. non-easily Storage device 64, input interface 65, the output interface 66 etc. for the property lost.The control program read (CP read) for being stored in ROM62 is gone out to arrive by CPU61 RAM63 controls the driving of motor 6, motor 23, motor 13, motor 33, work holding portion thereof 3 and tool changing device etc..
Storage device 64 stores first threshold C1, second threshold C2, cuts rank, exit rank, indicate processing program Variable n and the processing program of workpieces processing of line number etc..Cutting rank has low level and high-level, and exiting rank has low level With it is high-level.Operator to cutting rank and exits grade setting low level or high-level by operation receiving portion 67.
Low level indicates after having executed Machining Instruction, terminates to execute processing program.High-level expression, which does not wait to have executed, to be added Work instruction just stops to execute Machining Instruction, terminates to execute processing program.
Lathe 100 has receiving portion 67 (configuration part), Z axis sensor 68 (the first test section) and main shaft sensor 69 (the second test section).Receiving portion 67 has such as keyboard, touch tablet, display picture, can receive the operation of user.It uses Person ends processing by receiving portion 67 in the setting of storage device 64 execution for example aftermentioned first or second ends processing.Z axis passes Sensor 68 is able to detect the position of the up and down direction of main shaft 51, is in other words able to detect the axis direction position of main shaft 51.Main shaft Sensor 69 is able to detect the circumferential position of main shaft 51.Control device 60 refers to by input interface 65 from the input of receiving portion 67 It enables, from 68 input axis direction position of Z axis sensor, from the circumferential position of 69 entering spindle 51 of main shaft sensor.Control dress 60 are set by output interface 66 to spindle motor 6, X-axis motor 23, Y-axis motor 13,33 output drive signal of Z axis motor.
As shown in figure 3, " number " column indicates line number, " order " column indicates the processing executed.The storage of storage device 64 is used for The processing program of workpieces processing.Processing program has multiple rows (order).CPU61 is successively read out row, executes order.The The G100 of N1 row indicates tool changing order, and T1 indicates the number that be next assemblied in the cutter of main shaft 51.After X-60 indicates tool changing Main shaft 51 left and right directions position of readiness, Y-20 indicate tool changing after main shaft 51 front-rear direction position of readiness, Z20 indicate The up and down direction position of readiness of main shaft 51 after tool changing.X, the subsequent numerical value of Y, Z indicate for working origin to be set as main shaft 51 when 0 Position, unit is mm.In addition, movement towards a direction is indicated by "+", the movement towards other direction is indicated by "-".N2 Capable G84 indicates tapping thread processing order, and M03 indicates that main shaft 51 rotates forward, and S25000 indicates that the target rotational speed of main shaft 51 is 25000rmp, Z-5 indicate the up and down direction in-position in tapping thread processing.I2 indicates that tapping screw pitch is 2.M04 indicates master Axis 51 inverts, and S15000 indicates that the target rotational speed of main shaft 51 is 15000rmp, and Z10 indicates to exit main shaft 51 from threaded hole Up and down direction in-position in movement.Main shaft 51 rotates forward, and the up and down direction in tapping thread processing is moved to from position of readiness In-position forms threaded hole to workpiece tapping on workpiece.After forming threaded hole, main shaft 51 is inverted, and is moved to and moves back Up and down direction in-position under acting out.The M30 of Nn row indicates the end order of processing program.In addition, for cutting grade Not and rank is exited, receiving portion 67 is operated by operator in advance, by low level or high-level is stored in storage device 64.
As shown in Figure 5, Figure 6, variable n is set as 1 (step S1) by CPU61, reads the Nn row (step of processing program S2).CPU61 judges whether to read end order (M30) (step S3).When reading terminates order (step S3: yes), CPU61 terminates to execute processing program.When not reading terminates order (step S3: no), CPU61, which judges whether to read, to be attacked Screw thread process order (step S4).When not reading tapping thread processing order (step S4: no), CPU61 execution is read Order (step S5), on variable n plus 1 (step S6), and return process to step S2.
When reading tapping thread processing order (step S4: yes), CPU61 reference object rotation speed (such as in Fig. 3 S25000), main shaft 51 is rotated forward, and declines main shaft 51 towards workpiece.Before main shaft 51 rotates and declines, sensed from main shaft Device 69 obtains the current circumferential position of main shaft 51, and the current up and down direction position of main shaft 51 is obtained from Z axis sensor 68 Set (step S7).CPU61 obtains the circumferential position of main shaft 51 from main shaft sensor 69, by the circumferential position of the main shaft got 51 It sets and adds up to be added with the circumferential position of the main shaft 51 got in step 7.CPU61 obtains main shaft from Z axis sensor 68 simultaneously 51 up and down direction position, the up and down direction got by the up and down direction position of the main shaft got 51 and in step 7 Position is accumulative to be added (the current up and down direction position of main shaft 51).According to the circumferential position of the accumulative main shaft 51 for being added and obtaining and attack The up and down direction position (the target up and down direction position of main shaft 51) of thread pitch operation main shaft 51, and to the master that the operation obtains The up and down direction position (the target up and down direction position of main shaft 51) of axis 51 and the accumulative up and down direction position (main shaft being added 51 current up and down direction position) difference (the first difference) carry out operation (step S8).CPU61 judges whether the first difference surpasses First threshold C1 (step S9) is crossed.When the first difference has been more than first threshold C1 (step S9: yes), CPU61 is set in 1 First mark (step S10) of storage device 64, judges to cut whether rank is low level (step S11).It is super in the first difference When having crossed first threshold C1, cutter is easy engaging in workpiece.
When cutting rank and being low level (step S11: yes), CPU61 judges whether main shaft 51 arrived up and down direction and arrive Up to position (step S12).Specifically, CPU61 obtains the up and down direction position of main shaft 51 from Z axis sensor 68, main shaft is judged Whether 51 be located at position represented by Z-5 (referring to Fig. 3).(the step when main shaft 51 does not reach up and down direction in-position S12: no), i.e., for cutter also when to workpiece tapping, CPU61 returns process to step S8.It arrived upper and lower in main shaft 51 When to in-position (step S12: yes), the current circumferential position of main shaft 51 is obtained from main shaft sensor 69, and pass from Z axis The current up and down direction position (step S13) of the acquisition main shaft 51 of sensor 68.CPU61 reference object rotation speed (such as in Fig. 3 S15000), make main shaft 51 invert and rise (step S14).CPU61 obtains the circumferential position of main shaft 51 from main shaft sensor 69 It sets, the circumferential position of the main shaft got 51 is added up to be added with the circumferential position of the main shaft 51 got in step 13. CPU61 obtains the up and down direction position of main shaft 51 from Z axis sensor 68 simultaneously, by the up and down direction position of the main shaft got 51 It sets and adds up to be added (the up and down direction position of main shaft 51) with the up and down direction position got in step 13.According to accumulative addition The circumferential position of obtained main shaft 51 and up and down direction position (the target upper and lower of main shaft 51 of tapping screw pitch operation main shaft 51 To position), and the up and down direction position (the target up and down direction position of main shaft 51) for the main shaft 51 that the operation is obtained and accumulative The difference (the second difference) for being added obtained up and down direction position (the current up and down direction position of main shaft 51) carries out operation (step S15).CPU61 judges whether the second difference has been more than second threshold C2 (step S16).It has been more than second threshold in the second difference When C2 (step S16: yes), CPU61 is set in the second of storage device 64 for 1 and indicates (step S17).It is more than in the second difference When second threshold C2, cutter is easy engaging in workpiece.Then, CPU61 judgement exits whether rank is low level (step S18). When exiting rank and being low level (step S18: yes), CPU61 judgement exits whether movement has terminated (step S19).It is specific and Speech, CPU61 obtain the up and down direction position of main shaft 51 from Z axis sensor 68, judge whether main shaft 51 is located at position represented by Z10 It sets (referring to Fig. 3).When exiting movement and being not over (step S19: no), CPU61 returns process to step S15.
At the end of exiting movement (step S19: yes), CPU61 judge whether for the value other than 0 to be set in the first mark or Second mark (step S20).When the first mark and the second mark are 0 (step S20: no), CPU61 adds 1 on variable n (step S23), and return process to step S2.
When the first mark and the second mark are 0, a possibility that cutter is engaging in workpiece, is lower.Therefore, CPU61 is successively The row for reading processing program, until continuing to execute processing program terminates order until reading.CPU61 is reading end order When, terminate to execute processing program.Since a possibility that cutter is engaging in workpiece, is lower, CPU61 executes common tapping Processing, also executes subsequent processing.
In step S20, when any one of the first mark and the second mark are not 0 (step S20: yes), CPU61 terminates Processing program (step S21), and terminate tapping thread processing processing.
When being judged as that the first difference is not above first threshold C1 in step s 9 (step S9: no), before CPU61 makes processing Enter step S12.When the first difference is not above first threshold C1, a possibility that cutter is engaging in workpiece, is lower.In step When being judged as that the second difference is not above second threshold C2 in S16 (step S16: no), CPU61 makes processing proceed to step S19. When the second difference is not above second threshold C2, a possibility that cutter is engaging in workpiece, is lower.
It is judged as when cutting rank is not low level (step S11: no) in step s 11, that is, is judged as that cutting rank is When high-level, CPU61 stops tapping thread processing (step S22), and processing is made to proceed to step S20.Due in step slo by 1 It is set in the first mark (step S20: yes), therefore CPU61 terminates to execute processing program (step S21).
When being judged as that exiting rank not is low level in step S18 (step S18: no), that is, it is judged as that exiting rank is When high-level, movement (step S22) is exited in CPU61 suspension, and processing is made to proceed to step S20.Since 1 being set in step S17 Indicate (step S20: yes) due to second, therefore CPU61 terminates to execute processing program (step S21).Execute the CPU61 of S9, S16 It is equivalent to judging part.
It is judged as NO in S11 and S18, is equivalent to second via the processing of S22, S20, S21 and ends processing, in S11 and S18 It is judged as YES, is equivalent to first via the processing of S20, S21 and ends processing.This is executed first to end processing and end processing with second CPU61 be equivalent to end portion.
The CPU61 for executing S9 is equivalent to the first judging part, and the CPU61 for executing S16 is equivalent to the second judging part.
The lathe 100 of embodiment 1 is in the current up and down direction position of main shaft 51 and the target up and down direction position of main shaft 51 When the difference set has been more than first threshold C1 or second threshold C2, i.e., according to the judgement in step S11 or step S18, executing After complete tapping thread processing instruction or exit instruction, terminates processing program (executing first to end processing), attack spiral shell alternatively, stopping to execute Line Machining Instruction or exit instruction terminate processing program (executing second to end processing).Therefore, even if cutter occurs engaging in work The case where part, main shaft 51 also can be acted suitably, prevent the breakage of cutter or main shaft 51.
Operator can be set first using receiving portion 67 and end processing any one of to be ended processing with second, can Execute appropriate end processing corresponding with the characteristic of cutter and workpiece.
During to workpiece tapping, in the current up and down direction position of main shaft 51 and the target upper and lower of main shaft 51 When being more than first threshold C1 and stop the rotation of main shaft 51 to the difference of position, cutter is easy engaging in workpiece.By cutter Difference during exiting from threaded hole, in the target up and down direction position of the current up and down direction position and main shaft 51 of main shaft 51 Point be more than second threshold C2 and when main shaft 51 moves in the axial direction, be detached from engaging in the cutter of workpiece from main shaft 51, it is easy Main shaft 51 is caused to be damaged.When in the present embodiment, for carrying out tapping and exiting, whether the difference is judged It has been more than first threshold C1 or second threshold C2, even if there is a situation where cutters engaging in workpiece, has also been able to carry out master appropriate The movement of axis 51 prevents the breakage of cutter or main shaft 51.
It is low level by the way that grade setting will be cut such as when carrying out tapping thread processing, so that even if the difference is super First threshold C1 is crossed, lathe will not stop processing in the action process of tapping.Stop when in tapping action process When processing, cutter needs operator to exit the operation of cutter from workpiece engaging in workpiece.Although the difference is more than first threshold C1, as becoming substandard products for workpiece, but by that will cut grade setting as low level, lathe can save aforesaid operations person Operation.
When carrying out exiting from threaded hole the movement of cutter, will move out grade setting be it is high-level, movement is exited in suspension, knot Beam processing program prevents cutter from causing main shaft 51 to be damaged from the disengaging of main shaft 51.
Embodiment 2
It is illustrated based on the drawings the lathe of embodiment 2.Storage device 64 is stored with third threshold value C3 and than third threshold value The 4th C3 big threshold value C4.As shown in fig. 7, variable n is set as 1 (step S31) by CPU61, the Nn row of processing program is read (step S32).CPU61 judges whether to read end order (M30) (step S33).(the step when reading terminates order S33: yes), CPU61 terminates to execute processing program.When not reading terminates order (step S33: no), CPU61 judgement is It is no to read tapping thread processing order (step S34).When not reading tapping thread processing order (step S34: no), CPU61 executes the order (step S35) read, 1 (step S36) is added on variable n, and return process to step S32.? When reading tapping thread processing order (step S34: yes), CPU61 obtains the current circumferential direction of main shaft 51 from main shaft sensor 69 Position, and from Z axis sensor 68 obtain main shaft 51 current up and down direction position (step S37).The rotation of CPU61 reference object Rotary speed (such as S25000 in Fig. 3) rotates forward main shaft 51, and main shaft 51 is made to decline (step S38) towards workpiece.CPU61 After the rotating forward and lowering action for completing main shaft 51, the reversion and rising of main shaft 51 are automatically carried out, that is, exits movement. CPU61 obtains the circumferential position of main shaft 51 from main shaft sensor 69, by the circumferential position of the main shaft got 51 and in S37 The circumferential position of the main shaft 51 got is accumulative to be added.CPU61 obtains the up and down direction position of main shaft 51 from Z axis sensor 68 simultaneously It sets, the up and down direction position of the main shaft got 51 is added up to be added (main shaft with the up and down direction position got in S37 51 current up and down direction position).According to the circumferential position and tapping screw pitch operation main shaft of the accumulative main shaft 51 for being added and obtaining 51 up and down direction position (the target up and down direction position of main shaft 51), and the up and down direction position for the main shaft 51 that the operation is obtained Set (the target up and down direction position of main shaft 51) and accumulative up and down direction position (the current up and down direction of main shaft 51 being added Position) difference (the first difference) carry out operation (step S39).CPU61 judges whether the difference has been more than third threshold value C3 (step S40).When the difference has been more than third threshold value C3 (step S40: yes), CPU61 is set in storage device 64 for 1 Indicate (step S41), CPU61 judges whether the difference has been more than the 4th threshold value C4 (step S42).Do not surpass in the difference When crossing the 4th threshold value C4 (step S42: no), i.e., when the described difference is more than third threshold value C3 but is less than or equal to the 4th threshold value C4, CPU61 judgement exits whether movement has terminated (step S43).When exiting movement and being not over (step S43: no), CPU61 will Processing returns to arrive step S39.At the end of exiting movement (step S43: yes), CPU61 judges whether to be set in storage dress for 1 Set 64 mark (step S44).When being set in mark for 1 (step S44: yes), CPU61 terminates processing program (step S45), And it ends processing.That is, not reading other rows after completing tapping thread processing and exiting movement, terminate processing program.Described It is locking even if there is a situation where cutters engaging in workpiece when difference is more than third threshold value C3 but is less than or equal to the 4th threshold value C4 Degree is also little.Therefore, after completing tapping thread processing and exiting movement, other rows are not read, terminate processing program.In step When being judged as that the difference is not above third threshold value C3 in rapid S40 (step S40: no), CPU61 makes processing proceed to step S43, step S44.Due to being not carried out step S41, the mark (step that CPU61 is not set in storage device 64 for 1 S44: no).CPU61 adds 1 (step S47) on variable n, and returns process to step S32.CPU61 is successively read processing journey The row of sequence, continues to execute processing program.In the end order for reading processing program (step S33: yes), CPU61 terminates to hold Row processing program.When not being set in mark for 1, i.e., when the described difference is not above third threshold value C3, cutter will not be locking In workpiece.Therefore, CPU61 is successively read the row of processing program, until continuing to execute processing program terminates order until reading. When being judged as that the difference has been more than the 4th threshold value C4 in step S42 (step S42: yes), CPU61 stop tapping thread processing or Movement (step S46) is exited, processing is made to proceed to step S44.Due to step S40 by 1 be set in mark (step S44: It is), therefore CPU61 terminates to execute processing program (step S45).When the difference has been more than the 4th threshold value C4, cutter is locking In workpiece.Therefore, stop tapping thread processing immediately or exit movement, do not read other rows of processing program, terminate execution and add Engineering sequence.When the difference is more than third threshold value but is the 4th threshold value or less, cutter is lower engaging in the degree of workpiece, because This, the lathe 100 of embodiment 2 is completed to execute tapping thread processing and exits movement.Then, not equal readings terminate order, just tie Beam processing program.When the difference has been more than four threshold values, cutter is higher engaging in the degree of workpiece, and therefore, lathe 100 is vertical Stop to execute tapping thread processing and exit movement, terminates processing program.Even if cutter engaging in workpiece, is also able to carry out suitably Main shaft movement, prevent the breakage of cutter or main shaft.When the difference is third threshold value or less, cutter is engaging in workpiece Possibility is lower, therefore, executes common tapping thread processing, until continuing to execute processing program terminates order until reading.
The CPU61 for executing S40 is equivalent to third judging part.The CPU61 for executing S42 is equivalent to the 4th judging part.Sentence in S40 Break to be and being judged as NO in S42, is equivalent to first via the processing of S43~S45 and ends processing, be judged as YES in S42, via The processing of S46, S44, S45 are equivalent to second and end processing.It executes this and first ends processing the CPU61 phase ended processing with second When in end portion.

Claims (5)

1. a kind of lathe, which includes main shaft, and cutter can be assemblied in the main shaft;Mobile mechanism is used to make the main shaft It moves in the axial direction;Motor is used to that the main shaft to be made to rotate about the axis;Control device is successively read composition processing journey Multiple orders of sequence, control the driving of the mobile mechanism and motor;First test section is used to detect the main shaft Axis direction position;And second test section, it is used to detect the circumferential position of the main shaft, which is characterized in that,
The control device includes
Judging part, when the order read is instructed including the use of tapping of the cutter to workpiece tapping, the judging part It uses, read according to the circumferential position of the main shaft detected by second test section and when executing tapping instruction The tapping screw pitch for including in the order got comes the position of the up and down direction of main shaft described in operation, and judges that the operation obtains To the main shaft up and down direction position and the main shaft detected by first test section up and down direction position Whether the difference set has been more than preset threshold value;And
End portion, when the judging part is judged as that the difference has been more than the threshold value, this terminates portion and executes at the first end Reason and second any one of ends processing, and first to end processing be to have terminated execution institute after having executed the tapping instruction for this The processing of processing program is stated, second to end processing be to stop to execute the tapping to instruct and terminate to execute the processing program for this Processing.
2. lathe according to claim 1, which is characterized in that
The control device has configuration part, which is to execute described first to end processing or execute second for setting It ends processing,
The end portion executes described first according to the setting of the configuration part and ends processing or second ends processing.
3. lathe according to claim 1 or 2, which is characterized in that
The order includes the exit instruction that cutter is exited from the threaded hole for being formed in workpiece,
The threshold value includes first threshold and second threshold,
The judging part includes:
First judging part, when executing tapping instruction, which judges whether the difference has been more than described First threshold;And
Second judging part, when executing the exit instruction, which judges whether the difference has been more than described Two threshold values.
4. lathe according to claim 1, which is characterized in that
The threshold value includes third threshold value and fourth threshold value bigger than third threshold value,
The judging part includes:
Third judging part is used to judge whether the difference to be more than the third threshold value;And
4th judging part is used to judge whether the difference to be more than the 4th threshold value,
It is judged as that the difference has been more than the third threshold value and the 4th judging part is judged as institute in the third judging part It states in the case that difference is not above the 4th threshold value, the end portion executes described first and ends processing, the described 4th In the case that judging part is judged as that the difference has been more than the 4th threshold value, the end portion is executed at second end Reason.
5. a kind of control method of lathe, which includes main shaft, and cutter can be assemblied in the main shaft;Mobile mechanism is used for Move the main shaft in the axial direction;Motor is used to that the main shaft to be made to rotate about the axis;Control device is successively read structure At multiple orders of processing program, the driving of the mobile mechanism and the motor is controlled;First test section, is used for Detect the axis direction position of the main shaft;And second test section, it is used to detect the circumferential position of the main shaft, the lathe Control method be characterized in that,
When the order read is instructed including the use of tapping of the cutter to workpiece tapping, examined according to by described second The circumferential position for the main shaft that survey portion detects and when executing tapping instruction using in, the order that reads The tapping screw pitch for including comes the position of the up and down direction of main shaft described in operation, and judges the upper of the main shaft that the operation obtains The difference of the position of the up and down direction of the position in lower direction and the main shaft detected by first test section whether be more than Preset threshold value,
When being judged as that the difference has been more than the threshold value, execute first end processing with second end processing in any Person, first to end processing be the processing for terminating to execute the processing program after having executed tapping instruction for this, this second End processing is to stop the execution tapping to instruct and terminate to execute the processing of the processing program.
CN201710192876.4A 2016-03-28 2017-03-28 The control method of lathe and lathe Active CN107234485B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016-064178 2016-03-28
JP2016064178 2016-03-28

Publications (2)

Publication Number Publication Date
CN107234485A CN107234485A (en) 2017-10-10
CN107234485B true CN107234485B (en) 2019-06-28

Family

ID=59983436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710192876.4A Active CN107234485B (en) 2016-03-28 2017-03-28 The control method of lathe and lathe

Country Status (2)

Country Link
JP (1) JP6801552B2 (en)
CN (1) CN107234485B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7019396B2 (en) * 2017-11-30 2022-02-15 日本電産マシンツール株式会社 Machine tool control method, machine tool control device, machine tool setting support device, machine tool control system and program
JP2020154956A (en) * 2019-03-22 2020-09-24 ブラザー工業株式会社 Numerical control device and machine tool
CN112548235B (en) * 2020-12-10 2021-12-07 博峰汽配科技(芜湖)有限公司 Plate processing tapping machining bed capable of being fixed in multi-directional positioning mode

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05318227A (en) * 1992-05-18 1993-12-03 Yaskawa Electric Corp Nc thread cutting device
JP2002283184A (en) * 2001-03-27 2002-10-03 Toyoda Mach Works Ltd Machining control method, its recording medium and its device
CN102785125A (en) * 2011-05-18 2012-11-21 发那科株式会社 Controller for a machine tool for executing tapping
CN102922059A (en) * 2011-08-08 2013-02-13 发那科株式会社 Tapping machine
CN104380218A (en) * 2012-06-05 2015-02-25 三菱电机株式会社 Numeric control device
CN104440386A (en) * 2013-09-25 2015-03-25 兄弟工业株式会社 Machine tool

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3433967B2 (en) * 1993-04-22 2003-08-04 ファナック株式会社 Rigid tap control device
JP3483636B2 (en) * 1994-12-21 2004-01-06 ファナック株式会社 Tool breakage / wear detection device
JP3787481B2 (en) * 2000-03-30 2006-06-21 株式会社ジェイテクト Method and apparatus for detecting load of cutting tool in machine tool
JP2016033705A (en) * 2014-07-31 2016-03-10 ブラザー工業株式会社 Numerical control unit, control method, storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05318227A (en) * 1992-05-18 1993-12-03 Yaskawa Electric Corp Nc thread cutting device
JP2002283184A (en) * 2001-03-27 2002-10-03 Toyoda Mach Works Ltd Machining control method, its recording medium and its device
CN102785125A (en) * 2011-05-18 2012-11-21 发那科株式会社 Controller for a machine tool for executing tapping
CN102922059A (en) * 2011-08-08 2013-02-13 发那科株式会社 Tapping machine
CN104380218A (en) * 2012-06-05 2015-02-25 三菱电机株式会社 Numeric control device
CN104440386A (en) * 2013-09-25 2015-03-25 兄弟工业株式会社 Machine tool

Also Published As

Publication number Publication date
CN107234485A (en) 2017-10-10
JP6801552B2 (en) 2020-12-16
JP2017177323A (en) 2017-10-05

Similar Documents

Publication Publication Date Title
CN107234485B (en) The control method of lathe and lathe
CN106475833B (en) Numerical control device and control method
CN105382412B (en) Laser processing device with high speed positioning function
US11977363B2 (en) Machine tool and control device
CN102667650B (en) Numerical control machine tool
CN108176897A (en) Burr removal device
CN106094725B (en) Track display device
CN100546741C (en) The Work piece processing method of numerically controlled lathe
DE112013000138B4 (en) Numerical control device
CN109308052A (en) Numerical control device and numerical control method
EP2915626B1 (en) Processing program generation method and device
CN107077118A (en) The control device and lathe of lathe
US10088824B2 (en) Toolpath evaluation method, toolpath generation method, and toolpath generation device
CN104460497B (en) Numerical control device
DE102007048578A1 (en) Machine tool control
US10684606B2 (en) Selection apparatus
JP2015102339A (en) Surface shape measuring apparatus, and machine tool
CN105765473A (en) Device for controlling machine tool
DE102007048587A1 (en) Machine tool control
JP6538345B2 (en) Work measuring device of machine tool
CN109475993A (en) Processing program generating device and processing method
CN106020123A (en) Control device, machine tool and control method
CN113574481A (en) Method and apparatus for cycle-based programming of control programs for numerically controlled machine tools
US20190202017A1 (en) Selecting device, selecting method, and program
JP4947534B2 (en) Machine tool and method of operating machine tool

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant