Method of screwing a pipe having threads with a different pitch on its outside and inside into an object

Abstract: A screwing method by which an operation for screwing a tube the outer and inner surfaces of which are threaded with different pitches into an object material and combining the same therewith is carried out by using a CNC machining tool. A male thread (700) provided on a main shaft (70) is fed quickly to an initial point I and a point R, and, from the point R, the male thread lowers at a predetermined feed speed and a predetermined number of revolutions per minute. During this time, the screwing of a tube (2) is done in accordance with the pitch of the outer thread of the tube (2), and the tube (2) is combined with a female thread of the object material. When the male thread (700) reaches a point Z to complete the combination of the tube (2) with the object material, the male thread moves up to the point R at a predetermined feed speed and a predetermined number of revolutions per minute. During this time, the removing of the male thread (700) from the tube (2) is done in accordance with the pitch of the inner thread of the tube (2). Owing to the action of this male thread (700), the male thread (700) alone is lifted with the tube (2) left engaged with the female thread, the combining of the tube (2) with the object material being completed.

Description: TECHNICAL FIELD The present invention relates to a screw method executed by a numerical control apparatus, and more specifically, to a screw method for screwing a pipe having threads with a different lead on the outside and inside thereof into an object and assembling the same thereto. BACKGROUND ART When a device is assembled, there is a case in which a pipe having threads with a different pitch on the outside and inside thereof must be assembled to an object. In this case, a method making use of a rigid tapping cycle and rigid reverse tapping cycle performed by a CNC machine tool may be employed. For example, the inside of the pipe is screwed into the male thread of the spindle of the CNC machine tool and first the outside of the pipe is screwed into the object by controlling the operation of the spindle and a feed axis by the rigid tapping cycle. After the completion of the screw operation, the spindle is relieved from the inside of the pipe by controlling the operation of the spindle and feed axis by the rigid reverse tapping cycle. Note, the rigid tapping cycle and rigid reverse tapping cycle refer to a tap machining control by which the rotation of the spindle is synchronized with the feed effected by the feed axis at all times by interpolating the spindle and feed axis. In the rigid tapping cycle and rigid reverse tapping cycle of the CNC machine tool, an amount of feed of the feed axis per one revolution of the spindle is set equal to the pitch (lead) of the screw of a tap. As a result, the feed speed in the rigid tapping cycle (in a screw operation) is equal to the feed speed in the rigid reverse tapping cycle (in a relief operation). Consequently, when a pipe is screwed into an object and assembled thereto, if the outside and inside of the pipe have the same thread pitch, the rigid tapping cycle and rigid reverse tapping cycle of a CNC machine tool can be effectively used. EP 0 025 652 A shows a control system for synchronising machine tool motors for tapping operations. Nevertheless, when the outside and inside of the pipe have a different thread pitch, a feed speed must be changed in accordance with the pitch in a screw operation and relief operation , and thus the rigid tapping cycle and rigid reverse tapping cycle with the same feed speed as described above cannot be used. Therefore, when a pipe having threads with a different pitch on the outside and inside thereof is screwed into an object and assembled thereto, a CNC machine tool cannot be used and a dedicated machine must be used. Consequently, an operation process cannot be automatically carried out and thus an operation efficiency is deteriorated. DISCLOSURE OF THE INVENTION Taking the above into consideration, an object of the present invention is to provide a screw method by which an operation can be executed to screw a pipe having threads with a different pitch on the outside and inside thereof to an object and assemble the same thereto by using a CNC machine tool. To attain the above object, according to the present invention, there is provided a method of screwing a pipe having threads with a different pitch on the outside and inside thereof to an object and assembling thereto, which comprises the steps of mounting the pipe to a spindle, screwing the pipe into the object in accordance with the pitch of the thread on the outside of the pipe and relieving the spindle from the pipe in accordance with the pitch of the thread on the inside of the pipe. First, the pipe is mounted to the spindle by screwing the inside of the pipe over the male thread of the spindle. Next, the outside of the pipe is screwed into the female thread of the object by rotating the spindle and feeding the spindle by a feed axis. This screw operation is executed in accordance with the pitch of the thread on the outside of the pipe. On the completion of the screw operation of the pipe, the spindle is relieved from the pipe. This relief operation is executed in accordance with the pitch of the thread on the inside of the pipe. As a result, the pipe is engaged with and assembled to the female thread of the object. As described above, a pipe having threads with a different pitch on the outside and inside thereof can be assembled to an object by using the spindle and feed axis of a CNC machine tool. Consequently, an operation process can be automatically carried out and an operation efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a diagram explaining a screw method of the present invention; Figure 2 is a diagram explaining an operation for screwing and assembling a pipe; Figure 3 is a first flowchart for executing the screw method of the present invention; Figure 4 is a second flowchart for executing the screw method of the present invention; and Figure 5 is a block diagram of a hardware of a numerical control apparatus (CNC) embodying the present invention. BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described below with reference to the drawings. Figure 2 is a diagram explaining an operation for screwing and assembling a pipe, wherein a pipe 2 has threads with a different pitch (lead) on the outside and inside thereof. Further, a CNC machine tool has a spindle 70 provided with a male thread 700 at the extreme end thereof and the male thread 700 has the same pitch as that of the thread on the inside of the pipe 2. On the other hand, an object 3 has a female thread 4 having the same pitch as that of the thread on the outside of the pipe 2. The pipe 2 is mounted and fixed to the male thread 700 of the spindle 70 and then screwed into the female thread 4 of the object 3 and assembled thereto by the rotation of the spindle 70 and the feed of a not shown feed axis (Z-axis). Figure 1 is a diagram explaining a screw method of the present invention, wherein the male thread 700 formed to the spindle 70 operates in accordance with a G code. The G code is made by adding a feed speed command when the Z-axis is relieved to a rigid tapping command G code. First, the male thread 700 is quickly traversed to an initial point I and then quickly traversed downward from the initial point I to a point R. The point R is set by considering to provide a clearance slightly above the object 3. The male thread 700 is moved downward from the point R at a given feed speed and RPM. More specifically, the pipe 2 is screwed into the object 3 in accordance with the pitch of the thread on the outside of the pipe 2 so that the pipe 2 is assembled to the female thread 4 of the object 3. At this time, the Z-axis as the feed axis for feeding the male thread 700 and the spindle 70 are interpolated by a CNC 10 (Figure 5) so that they are correctly synchronized and the screw operation is carried out to satisfy the relationship of the following formula (1). F1 = P1 S where, F1: feed speed of the Z-axis in the screw operation (mm/min) P1: pitch of the thread on the outside of the pipe 2 (mm) S : RPM of the spindle 70 (rpm) When the male thread 700 reaches a point Z and the pipe 2 is assembled to the female thread 4 of the object 3, the male thread 700 is moved upward to the point R at a given feed speed and RPM. More specifically, the male thread 700 is relieved from the pipe 2 in accordance with the pitch of the thread on the inside of the pipe 2. This relief (escape) operation is carried out to satisfy the relationship of the following formula (2) in the same way as the aforesaid screw operation. F2 = P2 S where, F2: feed speed of the Z-axis in the relief operation (mm/min) P2: pitch of the thread on the inside of the pipe 2 (mm) S: RPM of the spindle 70, with the rotational direction at this time opposite to that in the screw operation Only the male thread 700 is moved upward by the operation thereof and the pipe 2 remains engaged with the female thread 4, and thus the assembly of the pipe 2 to the object 3 is completed. Figure 3 is a first flowchart for executing the screw method of the present invention, wherein numerals prefixed with an "S" indicate the numbers of steps of the process. [S1] Data of a block is read in. [S2] It is determined whether or not the block is a rigid tapping command G code. If so, the flow goes to step 3, and if not so, the program is ended as it is. [S3] It is determined whether or not the G code is added with a feed speed command (E command) in the relief operation of the Z-axis. If it is added, the flow goes to step S4, and if it is not added, the flow skips to step S5. As described above, the feed speed command of the Z-axis in the relief operation thereof can be changed by the addition of this feed speed command with the conventional rigid tapping command G code. [S4] The feed speed command (E command) of the Z-axis in the relief operation thereof is stored. [S5] The moving data creation loop shown in Figure 4 is executed. [S6] It is determined whether the block is ended or not. If the block is finished, the program is finished as it is, and if the block is not finished, the flow returns to step S5. Figure 4 is a second flowchart for executing the screw method of the present invention. This flowchart is used for the moving data creation loop (step S5 of Figure 3). [S11] It is determined whether a screw operation is to be executed or not, and if so, the flow goes to step 12, and if not so, the flow goes to step 13, respectively. [S12] A feed speed F1 and an amount of movement (an amount of feed) in the screw operation are set. [S13] It is determined whether a relief operation is to be executed or not, and if so, the flow goes to step 14, and if not so, the flow goes to step 18, respectively. [S14] Whether or not there is the feed speed command (E command) in the relief operation of the Z-axis is determined, and if there is the feed speed command (E command), the flow goes to step 16, and if there is not the feed speed command, the flow goes to step 15, respectively. [S15] The same feed speed command as that in the screw operation is set as the feed speed command in the relief operation. [S16] A feed speed F2 in the relief operation is set in accordance with the feed speed command (E command) in the relief operation of the Z-axis. [S17] An amount of movement is set. [S18] A feed speed and an amount of movement of the quick traverse operation (positioning operation) from, for example, the initial point I to the point R are set. As described above, in the present embodiment, when the pipe 2 having the threads with the different pitch on the outside and inside thereof is screwed into the female thread 4 of the object 3, the spindle 70 is operated in accordance with the pitch of the thread on the outside of the pipe 2 in the screw operation so that the pipe 2 is screwed into the female thread 4, and further the spindle 70 is operated in accordance with the pitch of the thread on the inside of the pipe 2 in the relief operation so that the spindle 70 is moved upward. With the feed operation and relief operation of the spindle 70, the pipe 2 is engaged with the female thread 4 of the object 3 and assembled thereto. More specifically, the pipe 2 having the threads with the different pitch on the outside and inside thereof can be assembled to the object 3 by using a CNC machine tool. As a result, a screw and assembly operation conventionally carried out by using a dedicated machine can be executed by using the CNC machine tool, by which an operation process can be carried out automatically and further an operation efficiency can be improved. Although the aforesaid embodiment describes the arrangement in which the pipe 2 is screwed into the female thread 4 of the object 3, the following arrangement may be employed to the case in which the object 3 is provided with a male thread and the pipe 2 is screwed over the male thread. That is, first, the spindle 70 is provided at the extreme end thereof with a female thread having the same pitch as that of the thread on the outside of the pipe 2 and the pipe 2 is mounted and fixed to the spindle by screwing the female thread into the thread on the outside of the pipe 2. Next, the pipe 2 is screwed over the male thread of the object 3 in accordance with the pitch of the thread on the inside of the pipe 2 and fixed thereto. When the pipe 2 is assembled to the male thread of the object 3, the female thread of the spindle 70 is moved upward in accordance with the pitch on the outside of the pipe 2. As a result, the pipe 2 remains engaged with the male thread of the object 3 and thus the assembly of the pipe 2 to the object 3 is completed. As described above, a CNC machine tool also can be used when the pipe 2 is assembled to the male thread of the object 3. Figure 5 is a block diagram of the hardware of a computerized numerical control apparatus (CNC) embodying the present invention, wherein numeral 10 designates the computerized numerical control apparatus (CNC). A processor 11, which controls the computerized numerical control apparatus 10 as a whole, reads out a system program stored in a ROM 12 through a bus 21, and controls the CNC 10 as a whole according to the system program. A RAM 13 stores temporary calculation data, display data and the like and is composed of an SRAM. A CMOS 14 stores rigid tapping command data, feed speed command data when the Z-axis is relieved, and the like. Further, the CMOS 14 stores the program for the screw method of the present invention, other machining programs, various parameters and the like. These data are maintained as they are even after a power supply to the CNC 10 is cut off, because the CMOS 14 is a non-volatile memory supplied with power from a not shown battery. An interface 15 used for an external device is connected to an external device 31 such as a paper tape reader, paper tape puncher, paper tape reader/puncher and the like. A machining program is read in from the paper tape reader and a machining program edited in the CNC 10 can be output to the paper tape puncher. A programmable machine controller (PMC) 16 is incorporated in the CNC 10 and controls a machine tool according to a sequence program created in a ladder form. More specifically, the PMC 16 converts an M function, S function and T function commanded by a machining program into signals needed by the machine tool through the sequence program in accordance with the M function, S function and T function and outputs them to the machine tool from an I/O unit 17. The magnets and the like on the machine tool side are driven and further the hydraulic valves, pneumatic valves, electric actuators and the like are actuated in response to the signals. In addition, the PMC 16 receives signals from the limit switches and the switches on the machine control panel on the machine tool side, processes them as necessary and supplies the same to the processor 11. A graphic control circuit 18 converts the digital data such as a present position of each axis, alarm, parameters, image data and the like into an image signal and outputs the same. The image signal is supplied to a display unit 26 of a CRT/MDI unit 25 and displayed thereon. An interface 19 receives data from a keyboard 27 in the CRT/MDI unit 25 and supplies the same to the processor 11. An interface 20 is connected to a manual pulse generator 32 and receives a pulse therefrom. The manual pulse generator 32 is mounted to the machine control panel and used to accurately position the moving parts of the machine tool by hand. Axis control circuits 41 - 44 receive moving commands to the respective axes from the processor 11 and outputs them to servo amplifiers 51 - 54. On receiving the moving commands, the servo amplifiers 51 - 54 drive servo motors 61 - 64 of the respective axes. The servo motor 61 controls an X-axis, the servo motor 62 controls a Y-axis, the servo motor 63 controls the Z-axis, and the servo motor 64 controls a U-axis, respectively. Each of the servo motors 61 - 64 incorporates a position detecting pulse coder and a position signal is fed back from the pulse coder as a pulse train. A linear scale may be used as the position detector in some cases. Further, a speed signal can be created by subjecting the pulse train to an F/V (frequency/velocity) conversion. In the figure, a feedback line of the position signal and a feedback of speed are omitted. A spindle control circuit 71 receives commands such as a spindle rotation command, spindle orientation command and the like and outputs a spindle speed signal to a spindle amplifier 72. On receiving the spindle speed signal, the spindle amplifier 72 rotates a spindle motor 73 at a commanded rotational speed. Further, the spindle amplifier 72 positions the spindle at a given position in response to the orientation command. As described above, the spindle 70 of the spindle motor 73 is provided with the male thread 700. A position coder 82 is connected to the spindle motor 73 through a gear or belt. Therefore, the position coder 82 is rotated in synchronism with the spindle motor 73 and outputs a feedback pulse which is read by the processor 11 through an interface 81. The feedback pulse is used to move the other axes in synchronism with the spindle motor 73 and to carry out operations such as a threading operation and the like. Note, the position coder is used to feed back a position in a screw operation. As described above, in the present invention, when a pipe having threads with a different pitch on the outside and inside thereof is screwed into an object and assembled thereto, a spindle is operated and screwed in accordance with the pitch of the thread on the outside of the pipe in a screw operation and relieved by being operated in accordance with the pith of the thread on the inside of the pipe in a relief operation. With this feed operation and relief operation of the spindle, the pipe is engaged with the object and assembled thereto. More specifically, the pipe having the threads with the different pitch on the outside and inside thereof can be assembled to the object by using a CNC machine tool. As a result, a screw and assemble operation conventionally carried out by using a dedicated machine can be performed by the CNC machine tool by which an operation process can be automatically carried out. Further, an operation efficiency can be improved.

Claims: A method of screwing a pipe (2) having threads with a different pitch on the outside and inside thereof into an object (3) and assembling the same thereto, comprising the steps of: mounting said pipe to a spindle (70) of a CNC machine tool ; screwing said pipe into said object in accordance with the pitch of the thread on the outside of said pipe; and relieving said spindle from said pipe in accordance with the pitch of the thread on the inside of said pipe. A method of screwing a pipe (2) having threads with a different pitch on the outside and inside thereof over an object (3) and assembling the same thereto, comprising the steps of: mounting said pipe to a spindle (70) of a CNC machine tool ; screwing said pipe over said object in accordance with the pitch of the thread on the inside of said pipe; and relieving said spindle from said pipe in accordance with the pitch of the thread on the outside of said pipe.

Inventors: EGUCHI RYOUJI, OTSUKI TOSHIAKI, SASAKI TAKAO, EGUCHI, RYOUJI, OTSUKI, TOSHIAKI, SASAKI, TAKAO
Applicants: FANUC LTD, FANUC LTD.
Application year: 1993
Main classification: G05B19
IPC codes: G05B19, B23P21