Numerical control system

Information

  • Patent Grant
  • 4591771
  • Patent Number
    4,591,771
  • Date Filed
    Friday, June 18, 1982
    42 years ago
  • Date Issued
    Tuesday, May 27, 1986
    38 years ago
Abstract
In order to permit manual operation under a condition where the axial direction of a tool and the direction of a hole to be machined in a workpiece are held in agreement, the tool of a radius .gamma. is rotated by .theta. in the vertical rotational direction and by .rho. in the horizontal rotational direction in a orthogonal coordinate system and in a spherical coordinate system the origins of which coincide with the center of rotation of the tool. Upon doing so, in the orthogonal coordinates, the position of the front end of the tool becomes X.sub.0 =.gamma. sin .theta..multidot.cos .rho., Y.sub.0 =.gamma. sin .theta..multidot.sin .rho. and Z.sub.0 =.gamma. cos .theta.. Therefore, a train of pulses (Hp) from a manual pulse generator are distributed as X-, Y- and Z-axial components in the proportion to the above values by a manual pulse distribution circuit, and motors for the respective axes are driven through servo circuits by the pulses.
Description

BACKGROUND OF THE INVENTION
The present invention relates to a numerical control system, and more particularly to a numerical control system in which a tool or a table can be manually moved as the tool axis direction of the tool relative to a workpiece is kept unchanged.
In a machine tool, for example, a machining center, a tool or a table is rotated in the directions of a B-axis (vertical rotational direction) and a C-axis (horizontal rotational direction) so as to control the axial direction of the tool relative to a workpiece (the axial direction being termed the "tool axis direction"), movement also occurs in the directions of the three X, Y and Z axes so as to subject the workpiece to a desired machining operation.
In forming a hole in the workpiece under such simultaneous 5-axis control, first of all, a tool holder is positioned by moving it in the X-, Y- and Z-axial directions unitarily with the tool, while the tool axis direction and the axial direction of the hole to be machined are brought into agreement by rotating the tool in the B-axial directions. Thereafter, while maintaining the tool axis direction, the tool holder is moved toward the workpiece by simultaneous 3-axis control of the X-, Y- and Z-axes. The machining of the hole is started, and the drilling operation is performed down to a predetermined depth. Lastly, the tool is drawn out in the direction opposite the machining to complete the drilling operation. This system has hitherto been proposed.
In the machine tool such as a machining center which conducts machining with the tool inclined relative to the tool holder, an operator may want .circle.1 to manually increase or decrease the depth of the cut in the course of the machining with the inclined tool, or .circle.2 to manually drill an inclined surface. Here, the expression "manual operation" signifies the function of moving the tool or the table by manually operating an ordinary manual pulse generator or jog button.
In the aforementioned cases .circle.1 and .circle.2 , the tool must be manually moved by the simultaneous 3-axis control of the X-, Y- and Z-axes as the tool axis direction of the tool is held in agreement with the direction of the hole.
In the manual operation of the prior art, however, the tool 12 (see FIG. 1), is moved in every axial direction by means of the manual pulse generator or the jog button, and the requirement in the cases .circle.1 and .circle.2 cannot be met.
SUMMARY OF THE INVENTION
An object of the present invention is to provide a novel numerical control system in which a tool can be moved by a manual operation as the tool axis direction and the direction of a hole to be machined in a workpiece are held in agreement, in other words, the tool axis direction relative to a table (or the workpiece) is maintained.
To accomplish the above and other objects, when a tool or a table is rotated in at least one of the vertical and horizontal directions so as to control the axial direction of the tool relative to a workpiece and when the tool is also moved in the directions of the X-, Y- and Z-axes so as to subject the workpiece to desired machining, the tool axis direction relative to the workpiece is calculated on the basis of the amount of rotation of the tool or the workpiece, and the control of manually moving the tool or the table in the calculated direction under the simultaneous control of at least two of the X-, Y- and Z-axes is achieved by numerical control.





BRIEF DESCRIPTION OF THE DRAWINGS
FIGS. 1 and 2 illustrate 5-axis control when a table and workpiece are fixed and when a tool is moved or rotated in the directions of the X-, Y- and Z-axes and the B- and C-axes;
FIGS. 3 and 4 are circuit block diagrams of embodiments for realizing the present invention;
FIG. 5 illustrates a situation where the depth of the cut is manually decreased at a predetermined point in the course of simultaneous 5-axis control; and
FIG. 6 is a circuit block diagram of the present invention for maintaining the tool axis orientation during manual pulse generation in the course of simultaneous 5-axis control.





DESCRIPTION OF THE PREFERRED EMBODIMENTS
The present invention will now be described with reference to the drawings in order to explain it in greater detail.
FIGS. 1 and 2 illustrate 5-axis control when a table and workpiece are fixed and when a tool is moved or rotated in the directions of the X, Y, and Z (orthogonal coordinate system) axes and also in the directions of the two B and C (spherical coordinate system) axes. It is also possible to rotate the table or the workpiece in the B- and C-axial directions or to rotate the workpiece in one axial direction and the tool in another axial direction. In the ensuing description, however, it is assumed that only the tool is rotated in the B- and C-axial directions.
In FIG. 1, numeral 11 designates a tool holder which supports a tool and which is driven in the three axial directions, X-, Y- and Z-axes by servomotors not shown. Numeral 12 designates the tool. The front end P, of the tool is rotated in the two axial directions, along the B- and C-axes with a fulcrum at the center of rotation Q. The B-axial directions are the vertical rotational direction and horizontal rotational direction, respectively (FIG. 2). In the spherical coordinate system movement is described by rotating the tool an angle .theta. along the B-axis, rotating the tool an angle .rho. along the C-axis and moving the tool a length .gamma.. Numeral 13 indicates a workpiece, and numeral 14 designates a table on which the workpiece 13 is placed.
By way of example, in forming a hole 13a in the workpiece 13 under 5-axis control, first of all, the tool holder 11 is positioned by moving it in the X-, Y- and Z-axial directions unitarily with the tool 12, while the tool axis direction (the direction A in FIG. 1) of the tool 12 and the direction of the hole 13a, to be machined are brought into agreement by rotating the tool 12 in the B-axial and C-axial directions (FIG. 1). Thereafter, while maintaining the tool axis direction, the tool holder 11 is moved toward the workpiece 13 by the simultaneous 3-axis control of the X-, Y- and Z-axes, whereupon the machining of the hole 13a is started and the drilling operation is performed down to a predetermined depth. Lastly, the tool is drawn out in the direction opposite the machining to complete the drilling operation.
FIG. 3 is a circuit block diagram of an embodiment of the present invention. In FIG. 3, numeral 101 indicates a command tape, numeral 102 designates a well-known interpolator which executes a pulse distribution computation on the basis of a movement command entered from the command type 101, and numeral 103 designates a manual pulse generator that, in accordance with the rotation of its handle over a predetermined angle generates a train of pulses HP that has a frequency proportional to the rotational speed of the handle and that has a number of pulses corresponding to the rotational angle. Numeral 104 indicates a manual pulse distribution circuit which generates manual pulses XHP, YHP and ZHP for the respective X-, Y- and Z-axial directions on the basis of the tool axis direction relative to the workpiece 13 and 14 (FIG. 1) and the number of pulses N of the pulse train HP from the manual pulse generator 103.
The following refers to an orthogonal coordinate system and a spherical coordinate system, the origins of which coincide with the center of rotation Q of the tool 12 as shown in FIG. 2. FIG. 2 schematically illustrates tool movement such that the tool 12 of radius .gamma. has been rotated by .theta. in the B-axial direction (the vertical rotational direction) and by .rho. in the C-axial direction (the horizontal rotation direction). At this time, the orthogonal coordinates of the position P of the front end of the tool are expressed by the following equations:
X.sub.O =.gamma. sin .theta..multidot.cos .rho. (1)
Y.sub.O =.gamma. sin .theta..multidot.sin .rho. (2)
Z.sub.O =.gamma. cos .theta. (3)
These equations are the equations for transformation from the spherical coordinate system into the orthogonal coordinate system.
Let .DELTA.X.sub.P, .DELTA.Y.sub.P and .DELTA.Z.sub.P denote the number of pulses which are distributed along the X-, Y- and Z-axes by the manual operation when the machine is positioned as illustrated in FIG. 2. If
X.sub.O :Y.sub.O :Z.sub.O =.DELTA.X.sub.P :.DELTA.Y.sub.P :.DELTA.Z.sub.P ( 4)
is statisfied, then the tool 12 can be moved while .theta. and .rho. are held constant. Accordingly, the manual pulse distribution circuit 104 determines .DELTA.X.sub.P, .DELTA.Y.sub.P and .DELTA.Z.sub.P so as to satisfy Equation (4). That is, the circuit 104 performs the computations:
.DELTA.X.sub.P =N.multidot.sin .theta. cos .rho. (1)'
.DELTA.Y.sub.P =N.multidot.sin .theta. sin .rho. (2)'
.DELTA.Z.sub.P =N.multidot.cos .theta. (3)'
and generates the manual pulses XHP, YHP, and ZHP in the X-, Y- and Z-axial directions. Numerals 105-107 indicate adders or mixers, which superimpose the manual pulses XHP, YHP and ZHP generated by the manual pulse distribution circuit 104 on distributed pulses X.sub.P, Y.sub.P and Z.sub.P generated by the interpolator 102, respectively. Numerals 108-112 indicate servo circuits for the respective axes, and numerals 113-117, designate driving motors for the respective axes.
Now, the operation of the present invention will be described.
Ordinarily, the interpolator 102 executes pulse distribution computations on the basis of the movement command from the command tape 101, and generates the respective distribution pulses X.sub.P, Y.sub.P, Z.sub.P, B.sub.P and C.sub.P for the X-, Y-, Z-, B- and C-axes and applies these pulses to the corresponding servo circuits 108-112. When supplied with the distributed pulses, the respective servo circuits drive the motors 113-117 of the corresponding axes using well-known servo control so as to machine the workpiece as programmed. The B-axial and C-axial distributed driving pulses B.sub.P and C.sub.P generated during such NC control are applied to the respective servo circuits 111 and 112 and are also applied to the reversible counters (corresponding to current position registers), not shown, of the manual pulse distribution circuit 104. One distributed pulse B.sub.P or C.sub.P, corresponds to a predetermined rotational angle of the tool 12 in the B-axial direction (the vertical rotational direction) or in the C-axial direction (the horizontal rotational direction), respectively. Therefore, when the distributed pulses B.sub.P and C.sub.P are counted by the reversible counters in accordance with the rotational direction of the tool, the current rotational angle positions .theta. and .rho. of the tool 12, in the B- and C-axial directions, are stored in the reversible counters.
Described next is the control operation for manually machining the hole 13a after the tool holder 11 and the tool 12 have been placed as illustrated in FIG. 1. In this case, an operator first turns the handle of the manual pulse generator 103 so as to generate a predetermined number of pulses H.sub.P. Upon the generation of the pulses H.sub.P, respective distribution circuits (not shown), contained in the manual pulse distribution circuit 104 perform their computations. Each of the distribution circuits can be constructed of a known DDA (Digital Differential Analyzer) as will be stated later. The quantities .DELTA.X.sub.P, .DELTA.Y.sub.P and .DELTA.Z.sub.P per equations (1)', (2)' and (3)' respectively are calculated and manual pulses XHP, YHP and ZHP are respectively generated in the X-, Y- and Z-axial directions in accordance with the distribution computations. The manual pulses are applied to the servo circuits 108-110 through the adders 105-107 so as to drive the motors 113-115. As a result, as described before, the tool 12 moves toward the workpiece 13 while keeping its tool axis direction in agreement with the direction of the hole 13a to be machined, whereupon the drilling operation is performed. In drawing out the tool 12, the handle of the manual pulse generator 103 may be turned in the direction opposite that initiating the machining.
Also in case of manually increasing or decreasing the quantity of cutting during the drilling operation, the handle of the manual pulse generator 103 may be similarly turned in the clockwise or counterclockwise direction in accordance with the desired amount of cutting.
FIG. 4 shows an embodiment of the manual pulse distribution circuit 104 shown in FIG. 3. In FIG. 4, numerals 201 and 202 designate the reversible counters which count the distributed pulses B.sub.P and C.sub.P in the B-axial and C-axial directions in accordance with the respective signs of the pulses, and which store the rotational angle positions .theta. and .rho. in the B-axial and C-axial directions, respectively. Numeral 203 designates an arithmetic circuit which executes the following computations on the basis of the rotational angle positions .theta. and .rho.:
sin .theta..multidot.cos .rho.; sin .theta..multidot.sin .rho.; cos .theta.(5)
Numerals 204, 205 and 206 indicate the DDAs, which include registers 204a, 205a and 206a; accumulators 204b, 205b and 206b, and adders 204c, 205c and 206c that add the contents of the registers to those of the accumulators and store the results into the accumulators each time a pulse Hp is generated by the manual pulse generator 103. The registers 204a, 205a and 206a respectively, store the results sin .theta..multidot.cos .rho., sin .theta..multidot.sin .rho. and cos .theta. computed by the arithmetic circuit 203. Now, when each of the accumulators 204b, 205b and 206b is constructed of n bits, its capacity is (2.sup.n -1). Accordingly, when the operations of performing the additions between the respective registers and the corresponding accumulators and storing the added results in the accumulators are repeated each time Hp is generated, overflow pulses are generated. These overflow pulses correspond to the manual pulses XHP, YHP and ZHP
N.multidot.sin .theta..multidot.cos .rho./(2.sup.n -1) (1)"
N.multidot.sin .theta..multidot.sin .rho./(2.sup.n -1) (2)"
N.multidot.cos .theta./(2.sup.n -1) (3)"
The number of manual pulses generated by the respective accumulators 204b, 205b and 206b is proportional to the generation of the N-number of pulses Hp. Accordingly, if the computed results (5) are multiplied by (2.sup.n -1) in the arithmetic circuit 203, before being stored in the respective registers, the manual pulses numbering:
N.multidot.sin .theta..multidot.cos .rho., N.multidot.sin .theta..multidot.sin .rho. and N.multidot.cos .theta.
are generated.
FIG. 5 illustrates a situation where the depth of cut is manually decreased from the predetermined point during the simultaneous 5-axis control.
In FIG. 5, numeral 12 denotes a tool, numeral 13 denotes a workpiece, numeral 14 denotes a table, letter P denotes the front end of the tool, and letter Q denotes the center of rotation of the tool.
Command data received from the command tape determines that the workpiece 13 is to be cut to a radius R, and that the tool axis may normally face the center 0 of a circular arc.
Therefore, the tool 12 traces the solid line positions of .circle.1 .fwdarw. .circle.2 .fwdarw. .circle.3 in FIG. 5 and performs the commanded cutting of the workpiece. Then, if it is desired to decrease the cutting amount, Wd, at the position .circle.3 , the operator causes manual pulses to be generated by operating the manual pulse generator or jog button, and the tool retracts in the tool axis direction. Thenceforth, the workpiece is cut to a radius of (R+Wd).
FIG. 6 is a circuit block diagram for the tool axis direction when manual pulses are generated during the simultaneous 5-axis control. The same parts as in FIG. 3 are assigned the same symbols, and the detailed description thereof will be omitted. FIG. 6 differs from FIG. 3 in that the main parts of the manual pulse distribution circuit 104 as illustrated.
The manual pulse distribution circuit 104, includes registers RB and RC count the distributed pulses Bp and Cp in the B-axial and C-axial directions in accordance with the direction of movement, and which store the integrated values of the distributed pulses on the B-axis and C-axis at a time t.sub.n, in other words, current rotational angle positions .theta.(t.sub.n) and .rho.(t.sub.n), respectively. A register RHP counts the manual pulses Hp generated by the manual pulse generator 103 in accordance with the direction that the handle of the manual pulse generator is turned. The register RHP also stores the integrated value Hp(t.sub.n) of the manual pulses Hp at the time t.sub.n. An operation circuit OPC executes predetermined computations (explained below), at fixed time intervals when the manual pulses Hp are generated. The operation circuit also generates the manual compensation pulses XHP, YHP and ZHP in the X-, Y- and Z-axial directions. The operation circuit OPC contains registers which store the integrated values HPX(t.sub.n-1), HPY(t.sub.n-1) and HPZ(t.sub.n-1) for the respective manual compensations pulses XHP, YHP and ZHP in the respective axial directions. The integrated values correspond to the time t.sub.n-1 which preceeds the time t.sub.n by a certain time interval.
The operation circuit OPC performs, at fixed time periods, the computations for the following equations, and generates the compensation pulses XHP, YHP and ZHP. In equations (6)-(8), HPX(t.sub.n), HPY(t.sub.n) and HPZ(t.sub.n) denote the integrated values of the compensation pulses XHP, YHP and ZHP at the time t.sub.n, respectively.
HPX(t.sub.n)=HP(t.sub.n).multidot.sin .theta.(t.sub.n).multidot.cos .rho.(t.sub.n) (6)
HPY(t.sub.n)=HP(t.sub.n).multidot.sin .theta.(t.sub.n).multidot.sin .rho.(t.sub.n) (7)
HPZ(t.sub.n)=HP(t.sub.n).multidot.cos .theta.(t.sub.n) (8)
On the other hand, before Equations (6)-(8) are computed, the integrated values HPX(t.sub.n-1), HPY(t.sub.n-1) and XPZ(t.sub.n-1) of the respective compensation pulses XHP, YHP and ZHP at the time t.sub.n-1 are stored in the registers contained in the operation circuit OPC. Therefore, the number of compensation pulses .DELTA.HPX(t.sub.n), .DELTA.HPY(t.sub.n) and .DELTA.HPZ(t.sub.n) for the respective axes at the time t.sub.n are obtained in accordance with the following equations:
.DELTA.HPX(t.sub.n)=HPX(t.sub.n)-HPX(t.sub.n-1) (9)
.DELTA.HPY(t.sub.n)=HPY(t.sub.n)-HPY(t.sub.n-1) (10)
.DELTA.HPZ(t.sub.n)=HPZ(t.sub.n)-HPZ(t.sub.n-1) (11)
Accordingly, when the compensation pulses ZHP, YHP and ZHP are obtained in accordance with equations (9)-(11) and are respectively applied to the servo circuits 108-110 through the adders 105-107, the tool advances or retreats in the tool axis direction.
In the above, the present invention has been described in detail in conjunction with the preferred embodiments but, is not restricted to these embodiments. By way of example, the table may be rotated as well, and the table and the tool also may be respectively rotated. Further, while the discussion has been directed the tool being rotated in the axial directions of the B- and C-axes, the rotation is not restricted to that relative to the two axes but, may well be relative to only one axis, and the turning is not restricted to that relative the B- and C-axes but may well be relative to another axis.
According to the present invention, the simultaneous 3-axis movement control of the tool can be achieved by a manual operation. Moreover, the tool can be moved in its axis direction by manual operation while the tool axis direction and the direction of a hole to be machined in a workpiece are held in agreement; in other words, as the inclination of the tool relative to the workpiece is held constant. As a result, the depth of a cut can be manually controlled, even during the course of machining with the tool inclined with respect to the workpiece. Further, the inclined surface of the workpiece can be manually drilled so that a numerical control device having good operability and being capable of wide control can be provided.
Claims
  • 1. A numerical control system having a tool with a tool axis and a table movable with respect to each other wherein the tool or the table is rotated in at least one of a vertical and horizontal direction so as to align the tool axis direction relative to a workpiece mounted on the table, and is moved in the orthogonal directions of X-, Y-, and Z-axes so as to subject the workpiece to desired machining, said numerical control system including:
  • means for receiving a commanded amount of movement of said tool or of said table and for providing a command signal varying in accordance with said commanded amount of movement;
  • manual command generating means for generating a manual command signal in response to a manual input;
  • distribution means for receiving said command signal and said manual command signal for moving said tool or said table and for maintaining the tool axis direction of said tool relative to said workpiece on the basis of the position of said tool or of said table, as said tool or said table is manually moved in accordance with said manual command signal with respect to said workpiece under simultaneous control of at least two of the X-, Y- and Z-axes.
  • 2. A numerical control system as defined in claim 1, wherein .theta. and .rho. denote the positions of said tool in the vertical and horizontal directions respectively, and said system further including a manual pulse generator means, operatively connected to said distribution means, for generating N pulses, wherein said distribution means includes means for generating control pulses for each of said orthogonal axes such that the numbers of pulses .DELTA.X.sub.P, .DELTA.Y.sub.P and .DELTA.Z.sub.P for the respective axes are obtained in accordance with
  • .DELTA.Xp=N.multidot.sin .theta..multidot.cos .rho.
  • .DELTA.Yp=N.multidot.sin .theta..multidot.sin
  • .DELTA.Zp=N.multidot.cos .theta..
  • 3. A machine tool having a tool with a tool axis, the tool capable of being moved with respect to 5 axes corresponding to an X, Y, Z orthogonal coordinate system and a .theta.,.rho. spherical coordinate system oriented with respect to said orthogonal system, said machine tool also having a table and a workpiece with a workpiece axis aligned with said tool axis, said machine tool comprising:
  • receiving means for receiving command machine tool movement;
  • conversion means for converting said command machine tool movement into distributed command pulses corresponding to movement with respect to said 5 axes;
  • manual command pulse generating means for generating manual command pulses corresponding to movement of said tool along said tool axis;
  • manual distribution means for converting said manual command pulses into distributed manual command pulses corresponding to movement in at least two of said orthogonal axes, so that said tool axis and said workpiece axis remain aligned;
  • adder means for combining said distributed command pulses and said distributed manual command pulses, and for providing a servo control signal varying in accordance with said combined signals;
  • a motor; and
  • servo means for converting said servo control signal into a motor control signal, and for controlling said motor in accordance with said servo control signal.
  • 4. A numerical control system according to claim 3, wherein said tool has a length L and point on said tool has a position defined by X.sub.0 =L sin .theta..multidot.cos .rho.; Y.sub.0 =L sin .theta..multidot.sin .rho.; Z.sub.0 =L cos .theta., and wherein said manual distribution means comprises:
  • spherical position counting means for counting said distributed command pulses corresponding to movement in said .theta. and .rho. axial directions, respectively, and for providing counting outputs responsive to said counting position in said .theta. and .rho. axial directions;
  • arithmetic means, operatively connected to said spherical position counting means, for calculating the orthogonal coordinates of the point on said tool in accordance with said counting outputs, and for providing respective coordinate outputs responsive to said calculated orthogonal coordinates;
  • adder means for adding said coordinates outputs of said arithmetic means and manual command pulses, and for providing said distributed manual command pulses.
  • 5. A numerical machine tool according to claim 4, wherein said adder means comprises;
  • register means for storing respective outputs of said arithmetic means;
  • summation means, for summing said manual command pulses and the respective contents of said register means; and
  • modulo N accumulator means for storing the respective summations of the summation means, and for providing overflow outputs corresponding to said distributed manual command pulses.
Priority Claims (1)
Number Date Country Kind
55-148758 Oct 1980 JPX
PCT Information
Filing Document Filing Date Country Kind 102e Date 371c Date
PCT/JP81/00295 10/23/1982 6/18/1982 6/18/1982
Publishing Document Publishing Date Country Kind
WO82/01602 5/13/1982
US Referenced Citations (9)
Number Name Date Kind
3551656 Wohlfeil Dec 1970
3611102 Leenhouts Oct 1971
3633011 Bederman Jan 1972
3818290 Harper Jun 1974
3866027 Cutler Feb 1975
3967176 Wagener Jun 1976
4250551 Paveglio Feb 1981
4296364 Fukuyama Oct 1981
4330831 Schwefel May 1982
Foreign Referenced Citations (3)
Number Date Country
2349004 Apr 1975 DEX
4927787 Jul 1972 JPX
4932076 Jul 1972 JPX
Non-Patent Literature Citations (2)
Entry
International Search Report, Nov. 10, 1981.
Supplementary European Search Report, The Hague Date: 4/24/84 Examiner: Cornillie.