CN-122007516-A - Numerical control machining method, system and device for pipe threads based on macro program
Abstract
The invention relates to the technical field of numerical control machining and discloses a method, a system and a device for numerical control machining of pipe threads based on a macro program. The method is performed by a numerical control system and comprises the steps of obtaining machining parameters of a pipe to be machined, running a loading subprogram, executing a loading interaction action with a robot to load the pipe to be machined, running a measuring head subprogram, judging whether a numerical control measuring head is in contact with the pipe to be machined, if the numerical control measuring head is judged to be in contact with the pipe to be machined, performing position compensation on the pipe to be machined by the numerical control measuring head, calling a machining subprogram according to the machining parameters to perform pipe thread machining on the pipe to be machined, if the numerical control measuring head is judged not to be in contact with the pipe to be machined, skipping a pipe machining step, and running a blanking subprogram, executing a blanking interaction action with the robot to perform blanking interaction action on the current pipe to perform blanking of the current pipe. By means of the scheme, the pipe machining efficiency and precision can be improved.
Inventors
- CHEN ZILING
- CHEN HUANTAO
- ZHENG ZHISHENG
- PAN BING
- LIN JIE
- Hong yunfeng
- SHE JINGPENG
- LI LIHONG
- WU QINGZHI
Assignees
- 广东华兴换热设备有限公司
- 饶平粤兴铜加工有限公司
- 汕头华兴(饶平)铜业有限公司
- 深圳鹏兴新材料科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260403
Claims (10)
- 1. A macro-program-based numerical control machining method for a pipe thread, characterized by being executed by a numerical control system, the method comprising: Acquiring processing parameters of a pipe to be processed; Running a loading subprogram, and executing a loading interaction action with the robot so as to load the pipe to be processed; If the numerical control measuring head is judged to be in contact with the pipe to be processed, the numerical control measuring head is utilized to carry out position compensation on the pipe to be processed, and a processing macro program is called according to the processing parameters to carry out pipe thread processing on the pipe to be processed; and running a blanking subprogram, and executing a blanking interaction action with the robot so as to perform blanking of the current pipe.
- 2. The method of claim 1, wherein determining whether the numerically controlled probe contacts the tubular to be processed comprises: Controlling the numerical control measuring head to move to a preset edge searching position until the numerical control measuring head stops; reading a current absolute coordinate variable of the numerical control measuring head in a Z axis; judging whether the current absolute coordinate variable is equal to a preset target contact position value or not; if the current absolute coordinate variable is equal to the preset target contact position value, judging that the numerical control measuring head does not contact the pipe to be processed; and if the current absolute coordinate variable is not equal to the preset target contact position value, judging that the numerical control measuring head contacts the pipe to be processed.
- 3. The method of claim 2, wherein the skipping of the pipe thread machining step comprises: Setting the mark number of the workpiece clamping quality difference as an effective value; controlling the numerical control measuring head to move to a safe position; and skipping to execute the step of running the blanking subprogram.
- 4. The method of claim 2, wherein the performing the position compensation on the pipe to be processed using the numerically controlled probe comprises: Executing a machining coordinate system compensation instruction according to the difference between the current absolute coordinate variable and the target contact position value so as to correct a machining coordinate system origin; And controlling the numerical control measuring head to move to a safe position so as to carry out subsequent pipe thread machining.
- 5. The method of claim 1, wherein said invoking a machining macro program to thread the pipe to be machined according to the machining parameters comprises: Reading the processing parameters; judging a target machining program to be called by utilizing a conditional jump logic according to the machining parameters; And calling and running the target machining program, and carrying out corresponding pipe thread machining on the pipe to be machined.
- 6. The method of claim 1, wherein the process parameters include single-double ended process demand information; if the single-end and double-end machining requirement information is single-end machining, executing the unloading subprogram after the measuring head subprogram is operated on the pipe to be machined; And if the single-end and double-end machining requirement information is double-end machining, executing an intermediate processing step after running a measuring head subprogram at one end of the pipe to be machined so as to run the measuring head subprogram at the other end of the pipe to be machined.
- 7. The method of claim 6, wherein the performing an intermediate processing step comprises: running a blanking subprogram, and executing a blanking interaction action with the robot so as to perform blanking of the pipe to be processed; And controlling the robot to reverse the direction of the pipe to be processed, running a loading subprogram, and executing the loading interaction action with the robot so as to perform the reloading of the pipe to be processed.
- 8. The method according to claim 1, wherein the method further comprises: and after the blanking of the current pipe is carried out, returning to execute the step of acquiring the processing parameters of the pipe to be processed so as to carry out pipe thread processing on the next pipe to be processed until the pipe thread processing of the current batch is finished.
- 9. A macro-program-based numerical control machining system for pipe threads, comprising: the numerical control machine tool comprises a workbench for clamping the pipe, a cutting tool for processing the pipe and a numerical control measuring head for detecting the position of the pipe; The numerical control system is in signal connection with the numerical control machine tool and the numerical control measuring head respectively and is used for executing the macro-program-based pipe thread numerical control processing method according to any one of claims 1 to 7, controlling the numerical control measuring head to perform position compensation and controlling the cutting tool to perform pipe thread processing; And the robot is in signal connection with the numerical control system and is used for carrying the pipe to be processed to the workbench for feeding according to the control instruction of the numerical control system and carrying the processed pipe away from the workbench for discharging.
- 10. A macro-program-based numerical control machining device for pipe threads, which is applied to a numerical control system, the device comprising: the parameter acquisition module is used for acquiring the processing parameters of the pipe to be processed; the feeding module is used for running a feeding subprogram, executing a feeding interaction action with the robot so as to feed the pipe to be processed; The measuring head operating module is used for operating a measuring head subprogram to judge whether the numerical control measuring head contacts the pipe to be processed or not, if the numerical control measuring head contacts the pipe to be processed, the numerical control measuring head is used for carrying out position compensation on the pipe to be processed, and a processing macroprogram is called according to the processing parameters to carry out pipe thread processing on the pipe to be processed; And the blanking module is used for running a blanking subprogram, executing the blanking interaction action with the robot and blanking the current pipe.
Description
Numerical control machining method, system and device for pipe threads based on macro program Technical Field The invention relates to the technical field of numerical control machining, in particular to a method, a system and a device for numerical control machining of pipe threads based on a macro program. Background Numerical control machining is gradually valued by manufacturers because of the advantages of concentrated working procedures, automation, high flexibility, strong capability and the like. The numerical control machining is applied to pipe thread machining, so that the production efficiency and the precision can be improved. However, in the related art, when pipe threading is performed, loading and unloading are performed manually, and metal pipes such as copper pipes, steel pipes and the like with weights of tens to tens of kilograms are repeatedly conveyed to or from a numerical control machine, so that the production efficiency is greatly reduced along with the reduction of manual physical strength, and the loading and positioning are determined by manual experience, so that the accuracy is low. Therefore, there is a need for a pipe thread machining method that is efficient and accurate. Disclosure of Invention The invention provides a numerical control processing method, a numerical control processing system and a numerical control processing device for pipe threads based on a macro program, which are used for solving the problems of low efficiency and low precision of a pipe thread processing scheme in the related technology. In a first aspect, the present invention provides a macro-program-based numerical control machining method for a pipe thread, which is executed by a numerical control system, and the method includes: Acquiring processing parameters of a pipe to be processed; Running a loading subprogram, and executing a loading interaction action with the robot so as to load the pipe to be processed; If the numerical control measuring head is judged to be in contact with the pipe to be processed, the numerical control measuring head is utilized to carry out position compensation on the pipe to be processed, and a processing macro program is called according to the processing parameters to carry out pipe thread processing on the pipe to be processed; and running a blanking subprogram, and executing a blanking interaction action with the robot so as to perform blanking of the current pipe. In an alternative embodiment, the determining whether the numerical control gauge head contacts the pipe to be processed includes: Controlling the numerical control measuring head to move to a preset edge searching position until the numerical control measuring head stops; reading a current absolute coordinate variable of the numerical control measuring head in a Z axis; judging whether the current absolute coordinate variable is equal to a preset target contact position value or not; if the current absolute coordinate variable is equal to the preset target contact position value, judging that the numerical control measuring head does not contact the pipe to be processed; and if the current absolute coordinate variable is not equal to the preset target contact position value, judging that the numerical control measuring head contacts the pipe to be processed. In an alternative embodiment, the skipping of the pipe thread machining step comprises: Setting the mark number of the workpiece clamping quality difference as an effective value; controlling the numerical control measuring head to move to a safe position; and skipping to execute the step of running the blanking subprogram. In an alternative embodiment, the position compensation of the pipe to be processed by using the numerical control measuring head includes: Executing a machining coordinate system compensation instruction according to the difference between the current absolute coordinate variable and the target contact position value so as to correct a machining coordinate system origin; And controlling the numerical control measuring head to move to a safe position so as to carry out subsequent pipe thread machining. In an alternative embodiment, the calling a machining macro program according to the machining parameters to machine the pipe thread on the pipe to be machined includes: Reading the processing parameters; judging a target machining program to be called by utilizing a conditional jump logic according to the machining parameters; And calling and running the target machining program, and carrying out corresponding pipe thread machining on the pipe to be machined. In an alternative embodiment, the process parameters include single-double end process demand information; if the single-end and double-end machining requirement information is single-end machining, executing the unloading subprogram after the measuring head subprogram is operated on the pipe to be machined; And if the single-end and double-end machining requirement info