Method for machining workpiece through numerical control lathe
By setting up measuring equipment and three-dimensional software on the CNC lathe for workpiece detection and programming, combined with the automated tool changing system, the existing problems of low workpiece processing accuracy and efficiency are solved, and high-precision, automated workpiece processing is achieved, which is suitable for mass production. , and reduce production costs.
Patent Information
- Application Number
- CN202410603427.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-09-20
AI Technical Summary
Existing workpiece processing methods are labor-intensive, low-precision, and low-efficiency, and the economical CNC lathe tool holder can only support one tool, affecting mass production efficiency. It is expensive to purchase new CNC machine tools with multi-axis or automatic tool change.
Set up measuring equipment on the CNC lathe to detect the geometric dimensions of the workpiece, use computer three-dimensional software to draw three-dimensional graphics, write processing programs, control the tool through the CNC system for primary and secondary processing, automatically compensate for errors, realize automated processing, and perform three-axis horizontal processing. A cutterhead, motor, driver and controller are added to the CNC lathe to realize automatic tool changing of multiple tools.
It improves the processing accuracy and efficiency of workpieces, reduces labor intensity, is suitable for mass production, and reduces production costs through equipment modification.
Smart Images

Figure CN118664403A
Abstract
Description
Technical Field
[0001] The invention relates to a numerical control machining method, in particular to a method for machining a workpiece using a numerical control lathe. Background Art
[0002] The existing workpiece processing method generally uses a lathe to process the workpiece. After the workpiece is processed, the technician removes the workpiece and then measures the actual size of the workpiece. After obtaining the actual size, the worker compares it with the standard size of the workpiece. If the actual size is larger than the standard size, the technician places the workpiece on the CNC lathe again for manual processing and adjustment. If the actual size is smaller than the standard size, the workpiece cannot be repaired at this time, and the technician scraps the workpiece. Obviously, the existing processing method has high labor intensity, low processing accuracy, and low processing efficiency, which is not conducive to the mass production of workpieces. In addition, there are some methods of using CNC machine tools for automatic processing, such as using a horizontal CNC lathe to process workpieces, which is a fully automated equipment that can automatically feed and automatically process parts. The worker only needs to install the tool on the tool holder, and the fully automated processing can be performed by setting the processing program of the CNC system. However, the tool holder of the existing economical CNC lathe usually only supports one tool. When the workpiece has a variety of different processing processes and needs to use different tools, the worker needs to manually change the tool, which takes a long time, which affects the production efficiency for the mass production of workpieces. However, the high cost of purchasing a new CNC machine tool with multiple axes or automatic tool change often makes many users reluctant to buy one.
[0003] Based on the above shortcomings, a method for machining a workpiece using a CNC lathe is needed to solve at least one of the above problems. Summary of the invention
[0004] The object of the present invention is to provide a method for machining a workpiece using a CNC lathe, which can detect the size of the workpiece on the machine and perform secondary machining of the workpiece, thereby improving machining accuracy and machining efficiency.
[0005] In order to achieve the above object, the method for machining a workpiece using a CNC lathe provided by the present invention comprises the following steps:
[0006] Providing a measuring device, and connecting the measuring device to the numerical control system of the numerical control lathe;
[0007] Using computer 3D software to draw a 3D figure of the workpiece according to the actual standard geometric dimensions of the workpiece, and extracting the standard values of the geometric dimensions of the workpiece;
[0008] Using computer software to compile the geometric information and process information of the workpiece into a primary processing program of a CNC lathe;
[0009] Installing the blank on the spindle box of the CNC lathe;
[0010] Transmitting the primary machining program to the numerical control system of the numerical control lathe;
[0011] Starting the CNC lathe, starting the spindle box of the CNC lathe according to the primary processing program through the CNC system, so that the blank rotates at a certain speed, and controlling the tool feed according to the primary processing program to obtain a processed workpiece;
[0012] Measuring the workpiece on-machine using the measuring device to obtain the measured value of the geometric size of the workpiece;
[0013] Comparing the standard value with the measured value to obtain an error value, compensating the error value into an algorithm for controlling tool movement of the CNC lathe to obtain a secondary processing program;
[0014] If the error is repairable, the CNC lathe is restarted, and the CNC system controls the tool feed according to the secondary processing program to reprocess the workpiece and finally obtain a finished workpiece; if the error is unrepairable, the CNC system alarms.
[0015] Compared with the prior art, the present invention provides a measuring device for measuring the geometric dimensions of a workpiece on a CNC machine tool, so that the measuring device can measure the geometric dimensions of the workpiece after processing on the machine, and then compares the measured value obtained by the measuring device when measuring the workpiece with the standard value when the workpiece is drawn by three-dimensional software, and obtains an error value. Therefore, the error value can be compensated into the algorithm of the CNC lathe for controlling the tool movement, thereby obtaining a secondary processing program, and then the processed workpiece can be processed again through the secondary processing program, thereby greatly improving the processing accuracy of the workpiece, and realizing automated processing by using the measuring device for on-machine detection and using the CNC lathe for automatic compensation, effectively reducing labor intensity, improving processing efficiency, and facilitating mass production of workpieces.
[0016] Preferably, before processing the workpiece, the following steps are also included: providing a three-axis horizontal CNC lathe, arranging a cutter disc, a motor, a driver and a controller on the tool holder of the three-axis horizontal CNC lathe, so that the cutter disc is connected to the motor, the driver is electrically connected to the motor and the controller respectively, and the controller is communicatively connected to the CNC system of the three-axis horizontal CNC lathe. By adding a cutter disc, a motor, a driver and a controller to an ordinary three-axis horizontal CNC lathe, the cutter disc can be installed with multiple tools at the same time, and then the driver connected to the three-axis horizontal CNC lathe is used to control the forward and reverse rotation angle of the motor, thereby adding an axis to the three-axis horizontal CNC lathe, realizing automatic tool change, without manual tool change in the middle, further improving the degree of production automation, and improving the utilization rate of equipment by using existing equipment for transformation and upgrading, and effectively reducing production costs.
[0017] Specifically, before processing the workpiece, the following steps are also included: determining a plurality of cutting tools according to the geometric information and process information of the workpiece, and sequentially installing the plurality of cutting tools on the cutter head along a certain direction.
[0018] Specifically, in the step of using computer software to compile the geometric information and process information of the workpiece into a primary processing program of a CNC lathe, specifically: the order of using each of the tools, the relative motion trajectory of each of the tools and the workpiece, the spindle rotation speed of the spindle box and the feed speed of the tool holder are compiled into the primary processing program of the CNC lathe according to the specified code and format.
[0019] Specifically, in the step of controlling the feed of each tool in sequence according to the one-time processing program, the following specific steps are included: controlling the motor through the CNC system to drive the tool disc to rotate, so that the first tool rotates to the tool station where it is located during processing; controlling the feed speed of the tool holder so that the first tool cuts the workpiece and completes the processing program of the first tool; controlling the motor through the CNC system to drive the tool disc to rotate a tool spacing, so that the second tool rotates to the tool station where it is located during processing; controlling the feed speed of the tool holder so that the second tool cuts the workpiece and completes the processing program of the second tool; and so on, completing the processing programs of all tools.
[0020] Specifically, when the cutter disc is installed on the tool holder, the following steps are included: measuring the position difference between the tool position when the cutter disc is used for machining and the original tool position of the tool holder; compensating the position difference into the algorithm for controlling the movement of the tool holder of the three-axis horizontal CNC lathe. Since there is a certain deviation between the original tool position of the tool holder and the tool position after the cutter disc is installed, by measuring this position difference and compensating it into the machining program, the machining error can be greatly reduced and the machining accuracy of the workpiece can be guaranteed.
[0021] Specifically, the position difference can be compensated after being written into a primary machining program of a CNC lathe, or after the primary machining program is transmitted to a CNC system of the three-axis horizontal CNC lathe.
[0022] Specifically, the position difference is an axial length difference of the main axis, a length difference in the feeding direction and / or a height difference in the height direction.
[0023] Specifically, the method for measuring the position difference includes: establishing an XYZ space coordinate system; setting the original tool position of the tool holder as the origin of the coordinate system; measuring the distance from the tool position of the tool disc to the origin in the X-axis direction during processing; measuring the distance from the tool position of the tool disc to the origin in the Y-axis direction during processing; measuring the distance from the tool position of the tool disc to the origin in the Z-axis direction during processing.
[0024] Preferably, after the motor is connected, the step of detecting the motor is further included: disconnecting the motor power supply; exchanging the connection positions of the two-phase power supply of the motor; reconnecting the motor power supply; starting the motor and observing the direction of the motor to confirm whether it is consistent with the required direction. By detecting the motor, the motor can be prevented from being misinstalled, which is beneficial to protecting the motor and ensuring the correct operation of the lathe. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a side view of a numerically controlled lathe of the present invention.
[0026] Figure 2 It is a front view of a numerically controlled lathe of the present invention.
[0027] Figure 3 It is a schematic diagram of the electrical connection between the tool changing assembly of the present invention and the numerical control system of a numerical control lathe.
[0028] Figure 4 The present invention is a flow chart of a method for machining a workpiece without tool change using a numerically controlled lathe. DETAILED DESCRIPTION
[0029] In order to explain the technical content, structural features and achieved effects of the present invention in detail, the following is a detailed description in conjunction with the implementation methods and the accompanying drawings.
[0030] like Figures 1 to 3As shown, the CNC lathe of the present invention includes a three-axis horizontal CNC lathe 100 and a tool changing assembly 200. The three-axis horizontal CNC lathe 100 includes a machine table 1, a spindle box 2, a tool holder 3, a CNC system 4 and a drive system 5; the spindle box 2 is arranged at one end of the machine table 1 to clamp a workpiece 400, and the workpiece is driven to rotate by the drive system 5. The tool holder 3 can be movably arranged on the machine table 1 along the axial direction of the spindle box 2, so that it can be close to or away from the spindle box 2. The drive system 5 can drive the tool holder 3 to move horizontally along the axial direction perpendicular to the spindle box 2, and the drive system 5 can also drive the tool holder 3 to rise or fall, so that the tool 300 on the tool holder 3 can be fed horizontally and adjusted in height. The CNC system 4 controls the rotation speed of the spindle box 2 and the action of the drive system 5. The tool changing assembly 200 includes a cutter disc 201, a motor 202, a driver 203 and a controller 204, and the cutter disc 201 is connected to the motor 202. The cutter disc 201 is circular, and has a plurality of tool stations for installing tools 300, wherein one tool station is directly opposite to the chuck of the spindle box 2 holding the workpiece 400. The motor 202 drives the cutter disc 201 to rotate in a stepwise manner. The driver 203 is electrically connected to the motor 202 and the controller 204 respectively, and the controller 204 is communicatively connected to the numerical control system 4 of the three-axis horizontal CNC lathe 100. The motor 202 is a stepping motor 202. By adopting a stepping motor 202 and using the driver 203 to drive the stepping motor 202 to rotate a certain angle, the cutter disc 201 can be accurately converted, the accuracy of the position is improved, and the control is convenient. In addition, the CNC lathe is also provided with a measuring device 500, which is located near one end of the spindle box 2 close to the workpiece. The measuring device 500 is connected to the CNC system 4. The measuring device 500 is a Renishaw probe or measuring instrument (two-dimensional / three-dimensional coordinate), which is used to measure the geometric dimensions of the workpiece.
[0031] See also Figure 4 As shown, the present invention discloses a method for machining a workpiece using a CNC lathe, comprising the following steps:
[0032] Step S11, providing a three-axis horizontal CNC lathe 100, arranging a tool tray 201, a motor 202, a driver 203 and a controller 204 on a tool holder 3 of the three-axis horizontal CNC lathe 100, so that the tool tray 201 is connected to the motor 202, the driver 203 is electrically connected to the motor 202 and the controller 204 respectively, and the controller 204 is communicatively connected to the CNC system 4 of the three-axis horizontal CNC lathe 100;
[0033] Step S12, providing a measuring device 500, and connecting the measuring device 500 to the numerical control system 4;
[0034] Step S13, using computer 3D software to draw a 3D graphic of the workpiece 400 according to the actual standard geometric dimensions of the workpiece 400, and extracting the standard values of the geometric dimensions of the workpiece 400; specifically, using solidworks software to draw the 3D graphic of the workpiece 400, and the standard values are transmitted to the CNC system 4 for storage.
[0035] Step S14, using computer software to compile the geometric information and process information of the workpiece into a primary processing program of the CNC lathe. The specific steps are: compiling the use sequence of each of the tools 300, the relative motion trajectory of each of the tools 300 and the workpiece 400, the spindle rotation speed of the spindle box 2 and the feed speed of the tool holder 3 into the primary processing program of the CNC lathe according to the specified code and format.
[0036] Step S15, determining a plurality of cutting tools 300 according to the geometric information and process information of the workpiece 400, and sequentially installing the plurality of cutting tools 300 on the cutting disc 201 along a certain direction;
[0037] Step S16, measuring the position difference between the tool position of the tool holder 3 when the tool disc 201 is processed with the tool 300; compensating the position difference into the algorithm of the three-axis horizontal CNC lathe 100 for controlling the movement of the tool holder 3. Specifically, the position difference is compensated after being written into the one-time processing program of the CNC lathe. Since there is a certain deviation between the original tool position of the tool holder 3 and the tool position after the tool disc 201 is installed, by measuring this position difference and compensating it to the one-time processing program, the processing error can be greatly reduced and the accuracy of workpiece processing can be ensured. The position difference in this embodiment is the axial length difference of the main shaft, the length difference in the feed direction, and the height difference in the height direction. More specifically, the method for measuring the position difference includes: establishing an XYZ space coordinate system; setting the original tool position of the tool holder 3 as the origin of the coordinate system; measuring the distance from the tool position of the tool disc 201 to the origin in the X-axis direction during processing; measuring the distance from the tool position of the tool disc 201 to the origin in the Y-axis direction during processing; measuring the distance from the tool position of the tool disc 201 to the origin in the Z-axis direction during processing.
[0038] Step S17, installing the blank on the spindle box 2 of the three-axis horizontal CNC lathe 100;
[0039] Step S18, transmitting the primary machining program to the CNC system 4 of the three-axis horizontal CNC lathe 100;
[0040] Step S19, start the CNC lathe, start the spindle box 2 according to the one-time processing program through the CNC system 4, so that the blank rotates at a certain speed, and controls the feeding of each tool 300 in sequence according to the one-time processing program to obtain a processed workpiece. Specifically, the feeding of the tool 300 includes the following specific steps: controlling the motor 202 through the CNC system 4 to drive the cutter head 201 to rotate, so that the first tool 300 rotates to the tool station where it is during processing; controlling the feeding speed of the tool holder 3, so that the first tool 300 cuts the workpiece and completes the processing program of the first tool 300; controlling the motor 202 through the CNC system 4 to drive the cutter head 201 to rotate the spacing of one tool 300, so that the second tool 300 rotates to the tool station where it is during processing; controlling the feeding speed of the tool holder 3, so that the second tool 300 cuts the workpiece and completes the one-time processing program of the second tool 300; and so on, completing the processing programs of all tools 300.
[0041] Step S20, using the measuring device 500 to measure the workpiece on the machine to obtain the measured value of the geometric size of the workpiece;
[0042] Step S21, comparing the standard value with the measured value to obtain an error value, compensating the error value into the algorithm of the CNC lathe for controlling the movement of each tool to obtain a secondary processing program;
[0043] Step S22, if the error is repairable, restart the CNC lathe, and control the feed of each tool according to the secondary processing program through the CNC system 4 to re-process the workpiece to obtain a finished workpiece; if the error is unrepairable, the CNC system 4 will alarm.
[0044] In this embodiment, after the motor 202 is connected, the steps of detecting the motor 202 are also included: disconnecting the power supply of the motor 202; exchanging the connection positions of the two-phase power supply of the motor 202; reconnecting the power supply of the motor 202; starting the motor 202 and observing the direction of the motor 202 to confirm whether it is consistent with the required direction. By detecting the motor 202, the motor 202 can be prevented from being misinstalled, which is beneficial to protecting the motor 202 and ensuring the correct operation of the lathe.
[0045] In the above steps, the position difference can be compensated after being written into a single machining program of the CNC lathe, or it can be compensated after the single machining program is transmitted to the CNC system 4 of the three-axis horizontal CNC lathe 100, that is, compensation is performed between step 18 and step 19. The purpose achieved is the same and will not be repeated here.
[0046] Compared with the prior art, the present invention provides a measuring device 500 for measuring the geometric dimensions of a workpiece on a CNC machine tool, so that the measuring device 500 can measure the geometric dimensions of the workpiece after processing on the machine. Then, the measurement value obtained by measuring the workpiece 400 by the measuring device 500 is compared with the standard value when the workpiece is drawn by the three-dimensional software, and an error value is obtained. Therefore, the error value can be compensated into the algorithm of the CNC lathe for controlling the tool movement, thereby obtaining a secondary processing program, and then the processed workpiece can be processed again by the secondary processing program, thereby greatly improving the processing accuracy of the workpiece, and realizing automated processing by using the measuring device for on-machine detection and using the CNC lathe for automatic compensation, effectively reducing labor intensity, improving processing efficiency, and facilitating mass production of workpieces. In addition, by adding a cutter head 201, a motor 202, a driver 203 and a controller 204 to the ordinary three-axis horizontal CNC lathe 100, the cutter head 201 can be installed with multiple tools 300 at the same time, and then the driver 203 connected to the three-axis horizontal CNC lathe 100 is used to control the forward and reverse rotation angles of the motor 202, so that the three-axis horizontal CNC lathe 100 adds one axis to realize automatic tool change. Therefore, it is only necessary to draw a three-dimensional figure of the workpiece through computer three-dimensional software, and use the geometric information and process information of the workpiece to determine the types of multiple tools 300 used, so that these tools 300 only need to be installed on the cutter head 201 in sequence, and the three-axis horizontal CNC lathe 100 can automatically control the rotation speed of the workpiece, the type of tool 300 used in each step, and the feed speed of each tool 300 through the processing program. There is no need for manual tool change in the middle, which further improves the degree of production automation, improves the utilization rate of equipment by using existing equipment for transformation and upgrading, and effectively reduces production costs.
[0047] The structure and control principle of the three-axis horizontal CNC lathe 100 involved in the method of machining a workpiece using a CNC lathe of the present invention are well known to ordinary technicians in the field and will not be described in detail here.
[0048] The above disclosure is only a preferred embodiment of the present invention, and certainly cannot be used to limit the scope of rights of the present invention. Therefore, equivalent changes made according to the scope of the patent application of the present invention still fall within the scope covered by the present invention.
Claims
1. A method for machining a workpiece using a CNC lathe, characterized in that: The following steps are involved: Providing a measuring device, and connecting the measuring device to the numerical control system of the numerical control lathe; Using computer 3D software to draw a 3D figure of the workpiece according to the actual standard geometric dimensions of the workpiece, and extracting the standard values of the geometric dimensions of the workpiece; Using computer software to compile the geometric information and process information of the workpiece into a primary processing program of a CNC lathe; Installing the blank on the spindle box of the CNC lathe; Transmitting the primary machining program to the numerical control system of the numerical control lathe; Starting the CNC lathe, starting the spindle box of the CNC lathe according to the primary processing program through the CNC system, so that the blank rotates at a certain speed, and controlling the tool feed according to the primary processing program to obtain a processed workpiece; Measuring the workpiece on-machine using the measuring device to obtain the measured value of the geometric size of the workpiece; Comparing the standard value with the measured value to obtain an error value, compensating the error value into an algorithm for controlling tool movement of the CNC lathe to obtain a secondary processing program; If the error is repairable, the CNC lathe is restarted, and the CNC system controls the tool feed according to the secondary processing program to reprocess the workpiece and finally obtain a finished workpiece; if the error is unrepairable, the CNC system alarms.
2. The method for machining a workpiece using a CNC lathe according to claim 1, characterized in that: Before processing the workpiece, the following steps are also included: providing a three-axis horizontal CNC lathe, arranging a tool disc, a motor, a driver and a controller on the tool holder of the three-axis horizontal CNC lathe, connecting the tool disc to the motor, and electrically connecting the driver to the motor and the controller respectively, and connecting the controller to the CNC system of the three-axis horizontal CNC lathe so that it can communicate.
3. The method for machining a workpiece using a CNC lathe according to claim 2, characterized in that: Before processing the workpiece, the following steps are also included: determining a plurality of cutting tools according to the geometric information and process information of the workpiece, and sequentially installing the plurality of cutting tools on the cutter head along a certain direction.
4. The method for machining a workpiece using a CNC lathe as claimed in claim 3, characterized in that: In the step of using computer software to compile the geometric information and process information of the workpiece into a primary processing program of a CNC lathe, specifically: the order of using each of the tools, the relative motion trajectory of each of the tools and the workpiece, the spindle rotation speed of the spindle box and the feed speed of the tool holder are compiled into the primary processing program according to the specified code and format.
5. The method for machining a workpiece using a CNC lathe according to claim 4, characterized in that: In the step of controlling the tool feeding according to the primary machining program, the following specific steps are included: The motor is controlled by the numerical control system to drive the cutter disc to rotate, so that the first cutter is rotated to the cutter station where it is located during processing; Controlling the feed speed of the tool rest so that the first tool cuts the workpiece to complete the processing program of the first tool; The motor is controlled by the numerical control system to drive the cutter disc to rotate by a distance of one cutter, so that the second cutter is rotated to the cutter station where it is located during processing; Controlling the feed speed of the tool rest so that the second tool cuts the workpiece to complete the processing program of the second tool; And so on, completing the processing procedures for all tools.
6. The method for machining a workpiece using a CNC lathe according to claim 2, wherein: When the cutter disc is mounted on the cutter holder, the following steps are included: Measuring the position difference between the tool position of the tool disc when the tool is used for machining and the original tool position of the tool holder; The position difference is compensated into the algorithm for controlling the movement of the tool holder of the three-axis horizontal CNC lathe.
7. The method for machining a workpiece using a CNC lathe according to claim 6, characterized in that: The position difference can be compensated after being written into a primary machining program of a CNC lathe, or after the primary machining program is transmitted to the CNC system of the three-axis horizontal CNC lathe.
8. The method for machining a workpiece using a CNC lathe according to claim 6, wherein: The position difference is a length difference in the axial direction of the main axis, a length difference in the feeding direction and / or a height difference in the height direction.
9. The method for machining a workpiece using a CNC lathe according to claim 6, characterized in that: The method for measuring the position difference includes: establishing an XYZ space coordinate system; setting the original tool position of the tool holder as the origin of the coordinate system; measuring the distance from the tool position of the tool disc to the origin in the X-axis direction when the tool disc is processing; measuring the distance from the tool position of the tool disc to the origin in the Y-axis direction when the tool disc is processing; measuring the distance from the tool position of the tool disc to the origin in the Z-axis direction when the tool disc is processing.
10. The method for machining a workpiece using a CNC lathe according to claim 1, wherein: After connecting the motor, the method further includes the step of detecting the motor: Disconnecting the motor power supply; Exchanging the connection positions of the two-phase power supply of the motor; reconnecting the motor power supply; Start the motor and observe the direction of rotation of the motor to confirm whether it is consistent with the required direction of rotation.
Citation Information
Patent Citations
Precision roll turning lathe
CN101062543A
Precise tool-setting device and method for numerically controlled lathe
CN108044403A
Crankshaft machining machine tool
CN109352384A
Method for on-machine detecting of product size on numerical control machine tool
CN110625441A
Heavy numerical control horizontal lathe integrated with multifunctional protective cover
CN115673853A
Cited By
Automatic machining detection method for mold
CN120170548A
