BACKGROUND OF THE INVENTION
This invention relates to machine tools and, more particularly, to computer controlled machine tool contouring systems.
The use of digital computers to direct and control machine tools in the production of non-round contours is well known in the art, particularly for machine tools utilizing a generally cylindrical cutting element and wherein the workpiece support table is positioned in relation to the cutting element in response to computer generated control signals. Non-round contours which may be produced by such contouring systems particularly include the interior surfaces of rotary engine chambers (e.g. the epitrochoid-shaped contours of Wankel engine chambers), and also the inner and outer surface of various cams. The end uses for such contoured workpieces often require precision of contour within 0.001 inches. To obtain contours with this precision, the control portion of the contouring system must accommodate continuing wear of the cutting element. In addition, the relative velocity of the point of contact of the grinding wheel with respect to the work surface must be substantially constant.
Generally, contouring systems for non-round contour generation use a complex cam-following apparatus for guiding the cutting element against the workpiece. In such systems, the cam-following apparatus provides a controlled movement of the workpiece relative to the cutting element along a suitable path to accommodate changes in radius of the grinding tool and the desired feedrate. However, in the grinding of complex non-round contours, it is difficult and correspondingly expensive to produce a mechanism (such as a tapered cam follower) for achieving the desired cutting element wear compensation. Further, in view of the substantial dynamic forces on the tracking and drive cams during high speed grinding operations, such contouring systems are subject to severe grinding speed limitations resulting from the deleterious effects of those forces on the cam surfaces. Further, although the cam-following contouring systems often do provide for a nominally constant surface velocity of the workpiece with reference to the contour of the cutting element by providing a separate surface velocity control cam, the surface velocity may vary substantially from the nominal value. Consequently, localized regions of heating occur on the workpiece during low speed portions of the cutting cycle and result in damage to the workpiece surface. In addition, the localized heating causes thermal expansion of the workpiece which must be compensated for in the generation of the cam tracks in order to provide precision contouring. It will be noted that the latter effect is difficult to effectively offset for complex non-round contours.
A further limitation on cam-following contouring systems is the relative inflexibility of such systems in that only a specific contour (designed into the system by the cam) may be produced without requiring system modification.
It is further known in the art to utilize digital computers for the control of machine tools wherein the computer generates control signals for directing the relative movement of the cutting element with respect to the workpiece so that the central axis of the cutting element is positioned to pass through a predetermined series of spatial points. The computer in such systems may be used to first calculate the coordinates of these predetermined spatial points in a manner accommodating a current radius of the cutting element, a required offset for achieving a desired feedrate, and a desired surface velocity, and then to generate appropriate signals to the associated positioning systems. However, the workpiece positioning systems are generally limited in the speed to which they can respond to the computer generated control signals. The limitation restrains this type of contouring system to surface velocities of less than 20 feet per minute or rotational velocities of less than 10 RPM.
SUMMARY OF THE INVENTION
Accordingly, it is an object of this invention to provide a computer controlled, high speed machine tool contouring system for producing a workpiece contour passing through a sequence of predetermined points on the workpiece.
A further object is to provide a computer controlled high speed, machine tool contouring system having a cutting element which is positioned relative to a workpiece support table where the workpiece table synchronously rotates and slides in response to computer generated control signals.
Another object is to provide a computer controlled, high speed machine tool contouring system which controls the movement of the contact point of the cutting element relative to a point on the workpiece contour at a predetermined surface velocity.
The computer controlled, high speed machine tool contouring system of the present invention includes a fast response actuating means for controlling the position of the workpiece in relation to the cutting element in response to a series of signals generated by a control means. In this manner, the cutting element may be controlled to have a point of contact with and be tangent to the workpiece on a contour defined by line segments connecting a series of predetermined spatial points.
More particularly, the actuating means includes a plurality of servo controlled positioning systems which are directed by the control means to synchronously drive a workpiece support table in a rotational motion about a first or C axis (C axis servo system) and in a translational motion along a second or X axis (X axis servo system), and further drive a cutting element in a translational motion along a third or Z axis (Z axis servo system). The X axis is perpendicular to both the C and Z axes. A fourth or P axis, parallel to the X axis, may further be provided along which a dressing means for the cutting element may travel.
The actuating means includes means for generating signals which are representative of the angular position of the support table about the C axis, the transverse position of the support table along the X axis, the velocity of the support table along the X axis, the vertical position of the cutting element along the Z axis, and the transverse position of the dressing element along the P axis. As input driving signals, the X axis servo system requires an X position error signal, and X acceleration signal, and an X velocity signal. The rotational or C axis servo system requires an angular velocity error signal.
The control means comprises a programmed mini-computer for establishing overall system control in response to an externally generated sequence of process instructions and workpiece description data (defining the desired workpiece contour). The mini-computer includes means for transforming the workpiece description data to an intermediate form for subsequent processing. The control means further comprises a high speed computation network for generating digital control signals for driving the servo positioning systems for the several axes. The control means still further comprises an interface unit for converting the X, C and Z axis signals to analog form, and for transferring those and other control signals between the computer and computation network and the servo systems and an operator station.
The desired workpiece contour is defined for the control means by input data in polar coordinate form. These input data together with a data signal representative of a desired surface velocity, are transformed by the control means to axes control data for subsequent use in generating servo drive signals for the X and C axis servo systems. In determining these control signals for the servo systems, the control means also utilizes a stored value representative of the current radius of the cutting element. This value is obtained during wheel dressing operations which are automatically performed under the control of the control means.
In accomplishing the positional control of the workpiece support table, the control means in effect directs the cutting element to start toward a next desired workpiece contour point from a current point. To do so, the control means first compares the actual cutting element relative position to a calculated desired cutting element relative position at uniformly spaced interrogation times. At each interrogation time, the control means then determines appropriate workpiece angular and translational control signals for application to the C and X axis servo amplifiers, respectively, during the next interrogation interval. These control signals are generated based on the relationship of the "then current" position and a corresponding point on the desired workpiece contour, and, further, on the desired surface velocity and feedrate for the machine operation. By this comparison process, the control means determines appropriate control signals which direct the corresponding positional changes of the cutting elements during each interrogation interval in order to achieve the desired surface velocity and workpiece contour.
Thus, the control means provides control signals on a real time basis for positioning the workpiece relative to the cutting element in a manner to substantially minimize the positional errors between the actual cutting element relative path and the cutting element relative path as defined by a predetermined set of desired workpiece contour points.
Briefly, in operation, the operator initially enters two sets of input data signals in the computer memory. These two sets include a process description and a part description for the workpiece. The first set, the process description, may describe the steps to be performed under the direction of the control means and includes data representative of the desired surface velocity, desired feedrate, and desired cutting element motion along the Z axis (e.g. an oscillatory motion between predetermined limits, at a predetermined rate). The second set, the part description, may provide a sequence of data words representative of the desired contour points and pressure angles associated therewith for the finished contour.
As the next step in operation, the operator controls the relative position of the cutting element with respect to a cutting element dressing means in order to dress the cutting element to a diameter lying within a predetermined range, thereby establishing an initial cutting element radius. Using this radius, the computer then transforms the polar coordinate data associated with the desired contour (as previously entered by the part description) together with the surface velocity data (as previously entered by the process description) to a corresponding set of axis control data. From blocks of desired contour point data in the part description (each block defining a single contour point), a table of axis control data is generated. Following the operator-directed dressing operation and axis control data transformation, the operator directs the control means to enter an automatic cycle mode and to subsequently perform the instructions in the process description repeatedly until commanded to stop.
It will be understood that the process description may include instructions for directing the automatic redressing of the cutting element to a new "current" radius which is a predetermined increment less than the previous "current" radius. During the re-dressing operation, the computer determines a new set of axis control data in the same manner as noted above except that the new "current" cutting element radius is used. Thereafter the computer directs machining operations with the remaining process description instructions. In this manner, the effects of cutting element wear are substantially reduced.
In order to generate the appropriate X axis positioning control signals, the control means in effect interrogates the machine tool at uniformly spaced interrogation times to determine a set of values corresponding to the actual rotational position and translational position of the support table with respect to the various axes. In association with each interrogation interval (i.e. between successive interrogations), the control means determines an estimate of the actual rotational position of the support table to be achieved by the end of the "current" interrogation interval. The control means further performs an interpolation algorithm in order to determine a set of values corresponding to desired translational position, velocity and acceleration for the current interval based on the estimated rotational position. In addition, the control means compares the "current" actual translational position value with the desired translational position value from the immediately preceding interval, and utilizes the resultant difference value to generate an X position error signal. The X position error, X velocity and X acceleration signals are applied to the X axis servo amplifiers during the next interval. This operation is performed during each successive interrogation interval.
In this manner, the control means may generate corrective positioning signals to the servo system at interrogation intervals smaller than 500 microseconds. By basing these corrective signals on the actual workpiece support table position and through the utilization of high response servo systems, the surface velocity of the cutting element may be accurately controlled at surface velocities as high as 120 feet per minute. Further, a contouring system in accordance with the present invention provides an inherent flexibility in that any desired shape (except as limited by servo system response and the cutting element radius) may be produced by substituting an appropriate set of defining coordinates in the part description set of input data.
BRIEF DESCRIPTION OF THE DRAWINGS
The foregoing and other objects of this invention, the various features thereof, as well as the invention itself, may be more fully understood from the following description, when read together with the accompanying drawings, in which:
FIG. 1 shows in block diagram form an embodiment of the present invention;
FIG. 2 shows the geometric relationships between the workpiece, cutting element and support table for the embodiment of FIG. 1;
FIG. 3 shows a plan view of the workpiece support table and associated servo elements for the embodiment of FIG. 1;
FIGS. 4A and 4B show in block diagram form the X axis servo positioning system for the embodiment of FIG. 1;
FIG. 5 shows in schematic form an exemplary circuit configuration for the current amplifier in the X axis servo positioning system of FIG. 4A;
FIG. 6 shows in schematic form an exemplary circuit configuration for the lead filter in the X axis servo positioning system of FIG. 4A;
FIG. 7 shows in schematic form an exemplary circuit configuration for the summing amplifier-differentiator in the X axis servo positioning system of FIG. 4A;
FIG. 8 shows in schematic form an exemplary circuit configuration for the integrator-inverter in the X axis servo positioning system of FIG. 4A;
FIG. 9 shows in schematic form an alternative configuration for the circuit of FIG. 5;
FIG. 10 shows in schematic form an alternative circuit configuration for the circuit of FIG. 6;
FIG. 11 shows in schematic form an alternative configuration for the circuit of FIG. 7;
FIG. 12 shows in schematic form an alternative configuration for the circuit of FIG. 8;
FIG. 13 shows in block diagram form the C, Z and P axes servo positioning systems for the embodiment of FIG. 1;
FIG. 14 shows in schematic form an exemplary circuit configuration for the amplifiers in FIG. 13;
FIG. 15 shows in detailed block diagram form the control means, programming station, and operator station of the embodiment of FIG. 1;
FIG. 16 shows in block diagram form the interconnection between the computation network and computer in the configuration of FIG. 15;
FIG. 17 shows in detailed block diagram form the interconnection between the operator station and control means in the configuraton of FIG. 15;
FIGS. 18A-C show in flow chart form, the algorithm followed by the computation network in the control means of FIG. 15;
FIG. 19 shows a plan view of the control panel for use with the operator station of FIG. 15; and
FIG. 20 shows a plan view of the control panel of the manual data input terminal in the configuration of FIG. 15.
DESCRIPTION OF THE PREFERRED EMBODIMENT
The following sections describe an embodiment of a computer controlled contouring system wherein a single computer may control as many as six asynchronous machine tools, with each tool being capable of producing a different desired contour on an associated workpiece. It will be understood that this exemplary system is illustrative of a system embodying the present invention but is not to be considered as a limitation thereof.
For example, the particular configuration of the machine tool, the specific configuration of the actuating means and elements thereof, and the sequence and content of the computer programs may all be reconfigured of differing elements and in differing formats to provide the functional relationships in keeping with the present invention.
Table I provides a summary in outline form of the following sections which describe the preferred embodiment.
Table I
I description of System
Ii description of System Operation
Iii detailed Description of System
A. machine Tool
1. Actuating Means
B. control Means
1. Computer
2. Computation Network
C. operator Station
D. programming Station
E. part Program
I DESCRIPTION OF THE SYSTEM
A computer controlled machine tool contouring system is shown in FIG. 1 to include a machine tool 10, a control means 12, an operator station 14 and a programming station 16.
The control means 12 includes the interface unit 38, computation network 40, memory system 42, and computer 44. The computation network 40 and computer 44 are both interconnected to the interface unit 38 and to the memory system 42. In addition, the interface unit 38 is interconnected with the operator station 14. Computer 44 is interconnected with the programming station 16. It will be understood that FIG. 1 shows a configuration where the computer 44 controls a single machine tool 10. However, in the present embodiment, as many as six machine tools similar to tool 10 may be independently controlled by computer 44, provided that each tool 10 is interconnected (with an associated computation network, interface unit and operator station) to computer 44, programmer station 16 and memory station 42. The following discussion describes the configuration of FIG. 1, utilizing a single machine tool configuration.
The machine tool 10 comprises a vertical spindle, hydraulically operated, internal-external grinding machine with the actuating means including a plurality of associated servo-controlled positioning system. The grinding machine includes a cutting element 20 which is arranged to permit translation of that element along a vertical Z axis 22 in response to machine tool Z axis position drive data applied to an associated Z axis servo positioning system.
The grinding machine further includes a workpiece support table 24 which is arranged to permit rotation of that table about a vertical C axis 28 (extending from a reference point on the surface of table 24) in response to machine tool C axis drive data applied to an associated C axis servo positioning system. The workpiece support table 24 is further arranged to permit translation of that table along a horizontal X axis 30 in response to machine tool X axis drive data applied to an associated X axis servo positioning system. The grinding machine still further includes a cutting element dresser 32 which is arranged to permit translation of that dresser along a horizontal P axis 34 in response to machine tool P axis drive data applied to an associated P axis servo positioning system. It will be understood that the associated drive motors for each of the elements 20, 24 and 32 about and along their respective axes are included in the servo positioning systems described below. The machine tool also includes a means for controlling the rotation of the cutting element 20 about the Z axis.
In addition, the machine tool 10 also includes a hydraulic power unit (not shown in FIG. 1) for the actuating means and the various coolant valves associated with the workpiece coolant flow system.
The servo positioning systems each include a drive means (not shown in FIG. 1) and a position sensor and encoder associated with each of the Z, C, X and P axes. The servo systems further include additional loop elements associated with the servo systems for the respective drive means. The encoders and additional loop elements are indicated by the block 36 in FIG. 1, and are described more fully below. Block 36 of machine tool 10 is shown havng interconnections with the interface unit 38 of the control means 12.
The signal lines 36a --d are representative of the flow of control signals used in driving the elements associated with the various axes, and also of the flow of sensor data from the position encoding means associated with each of the axes. Signal lines 36e and f are representative of the flow of control signals used by the computer as discrete signals for control of tool 10.
FIG. 2 shows the geometry of the workpiece and cutting element in relation to the workpiece support table 24. In this figure, a workpiece 54 is shown affixed to the surface of the table 24. It will be understood that the desired workpiece center may be approximately specified by a set of spatial points defined in a reference coordinate system, where each spatial point has an associated tangent line segment passing therethrough and where each tangent line segment forms a predetermined angle with respect to an axis of the coordinate system. The contact point n and the associated tangent line segment in FIG. 2 are representative of a spatial point on the desired workpiece and associated relative slope contour at point n. The large dot 28a is representative of the center of rotation of table 24 (i.e. the intersection of the top surface of table 24 with the C axis). The line segment 55 representative of the C axis angular zero reference and, together with X axis 30 and C axis 28, forms a cylindrical coordinate system which may be used to define the location of the spatial points on the desired workpiece contour. The circular area of FIG. 2 denoted with reference numeral 20 is representative of a projection of the cross section of the cutting element 20 upon the top surface of table 24. The large dot 22a in the center of area 20 is representative of the intersection of the Z axis 22 with the top surface of table 24. The radius of the cutting element 20 is represented by the line segment denoted Wr. The distance denoted Xn is representative of the displacement of the center of rotation of the support table 24 (i.e. the dot 28a) from the central axis of the rotating cutting element 20 (i.e. the Z axis) along the X axis. The angle .gamma..sub.n is representative of the angulr displacement of the support table 24 from the reference position (and is measured by the angle formed by the X axis 30 and the C axis angular zero line segment 55).
As shown in FIG. 2, the support table 24 is positioned relative to the cutting element 20 so that there is a contact point between the cutting element 20 and the workpiece contour 54 at the point n, and further that the cutting element 20 is tangent to the workpiece contour 54 at the contact point n. The line segment R.sub.n extends between the contact point n on the contour 54 and the C axis intersection point 28a. The line segment R.sub.n connecting point n with point 28a forms an angle .theta..sub.n with the C axis angular zero 55. Consequently, the point n may be expressed in terms of the polar coordinates R.sub.n and .theta..sub.n as measured with respect to the C axis angular zero 55. Thus when the support table 24 is translated a distance X.sub.n along the X axis and is angularly displaced .gamma..sub.n about the C axis 28, the cutting element 20 is positioned with respect to the workpiece contour 54 to be tangent to the contour 54 at contact point n. The cutting element radial line segment, W.sub.r, (which is perpendicular to the tangent line at point n and which extends from point n to the point 22a i.e. the Z axis intersection point), forms an angle .alpha..sub.n with respect to the line segment connecting point n with the C axis intersection point 28a. This angle .alpha..sub.n is defined as the pressure angle of the cutting element 20 with the workpiece contour 54 at point n.
It will be understood that the positioning system associated with the workpiece support table 24 is effective to synchronously position the workpiece support table 24 in rotational and translational motions about and along the C and X axes respectively, in order to control the cutting element to be successively repositioned relative to the workpiece contour 54 at a sequence of desired spatial points. It will be further understood that the cutting element contact point approaches the ultimate desired workpiece contour points over a time period encompassing successive revolutions of the support table 24, with the contact point first passing through a set of intermediate points which are offset from the corresponding ultimate desired points by a predetermined (and monotonically decreasing with time according to the feedrate) distance in the X axis direction. In addition, the cutting element contact point passes through each intermediate point so that at each intermediate point the cutting element is tangent to an associated line segment passing therethrough which is parallel to tangent line segment associated with the corresponding ultimate contact point. The control signals for achieving this positioning of support table 24 are generated by the control means 12 in combination with the servo loop elements in block 36 and the drive means associated with the various axes of machine 18.
II DESCRIPTION OF SYSTEM OPERATION
Operator-entered data signals define a succession of spatial points which lie on the desired contour of a finished workpiece. The control means, in effect, controls the relative position of the cutting element (by way of synchronously rotating and translating the workpiece support table relative to the cutting element) so that a contact point is maintained between the cutting element and the desired workpiece contour (modified by a predetermined offset value) at a succession of spatial points. In most applications, machining operation requires a plurality of full revolutions of the support table, with the cutting element removing an incremental amount of material from the workpiece contour during each pass. To accomplish this, the relative corrdinates of the cutting element include an X axis offset component from the nominal X axis component which would otherwise control the contact point to lie on the desired workpiece contour. Generally, this X axis offset component is a monotonically decreasing function of time with the functional relationship being defined by the desired feedrate, i.e. the rate at which material on the workpiece is to be removed.
As the initial step in the contouring of a workpiece, the operator stores two sets of input data signals in the memory system. The first set, denoted as the process description, includes a sequence of coded instruction blocks for identifying machining operations to be performed by the machine tool together with predetermined parameters for defining the limits and rates associated with each step of the operation.
Typically, the initial process description blocks may specify initial manual cutting element dressing dimensions. Subsequent blocks may specify the following exemplary sequence of operations:
1. dressing of the cutting element to the predetermined initial wheel dimensions,
2. commencing the cutting element rotation at a predetermined rate,
3. commencing operation of the coolant system,
4. commencing translation and rotation of the support table along the X axis and about the C axis, respectively, in a manner so that the workpiece position is controlled in accordance with the part description data described below (but further having a predetermined X axis offset component added to the nominal X coordinate specified by the part description data),
5. controlling the cutting element to follow an oscillatory motion between predetermined Z axis limits at a predetermined rate,
6. during the continued translation and rotation of the support table, reducing the X offset component of the support table X axis position so that the cutting element contact point approaches the nominal X position on the desired workpiece contour (from an offset X position) at a predetermined feedrate,
7. translating and rotating the support table so that the contact point follows the desired nominal contour for a predetermined period.
8. backing off the positioning table to an offset X position,
9. shutting down the coolant system, and
10. withdrawing the cutting element to a reference Z position.
It will be understood that in an alternative sequence of operations, the cutting element may be redressed (to decrease its radius by predetermined increments) at predetermined times, followed by the resumption of operation and according to steps 4--7 after each redressing. It will be understood that the determination of the coordinates of the nominal X position of the support table, cited in step 4 above, is dependent on the second set of input data signals as described below. This latter determination provides the synchronism between the C axis rotation, an X axis translation of the support table, and permits computer controlled relative positioning of the cutting element along the desired workpiece contour, at the desired surface velocity. It will be noted at this point that the above described sequence of operations is exemplary and not a limitation on the particular order or of the nature of the specific operations themselves.
The second set of input data signals, denoted as the part description, comprises a sequence of data blocks, wherein the first block specified (1) the radial coordinate R of a reference point on the desired contour on the workpiece, measured along the line connecting that first reference point and the point about which the workpiece will be rotated by the support table, and (2) a desired pressure angle .alpha. associated therewith, i.e. the angle formed by the line segment passing through the first reference point and normal to the tangent line at that desired contour point, and the line segment connecting the contour reference point and the center of rotation of the support table.
The subsequent blocks in the part description each identify a further point on the desired workpiece contour in terms of the incremental change from the point associated with the next previous data block in the part description.
More particularly, each of these latter blocks comprise three words, the first being representative of .DELTA.R, the change in magnitude between the line segment connecting the contour point associated with the particular block and the second reference point, and the line segment connecting the contour point associated with the next previous block and the second reference point. The second word is representative of .DELTA..theta., the change in angular position between the two line segments noted immediately above. The third word is similary representative of .DELTA..alpha., the difference in the magnitude of the pressure angle associated with the contour point defined by the particular block and that of the next previous block.
Following the entry of the process and part description data signals into the system memory, a workpiece is affixed to the support table in a manner having the second reference point on the workpiece positioned at the rotational axis of the support table, i.e. positioned so that the workpiece rotates about an axis through the second reference point as the support table rotates about the C axis.
In response to an operator directive, the computer controls the system to operate in accordance with the stored process description. During the initial cutting element dressing operation (and each subsequent cutting element dressing operation), the part description data (which defines the desired workpiece contour) is transformed to provide a set of X-C axis control data which will be subsequently utilized to generate control signals for appropriately positioning the workpiece with respect to the cutting element so that machining may be performed at the specified contour point, with the specified pressure angle and at the specified surface velocity.
In this step, the previously stored data blocks each comprising .DELTA.R, .DELTA..theta., and .DELTA..alpha. part description words are transformed together with a signal V.sub.s, representative of the surface velocity (as specified by the process description) to form a corresponding sequence of axis control data blocks, each comprising three data words. This sequence of axis control data blocks is stored in the memory forming the .gamma.-C-V Table. The first word of each axis control data block C axis position (of .gamma.) data, is representative of the magnitude of the angle formed by the line segment connecting the first and second reference points on the workpiece, and a line segment connecting the second reference point and the center of the cutting element when that element is positioned in a manner (1) having a lateral surface point in contact with the contour point associated with the particular .DELTA.R-.DELTA..theta.-.DELTA..alpha. block, and (2) having the cutting element aligned at the specified pressure angle. The second word, X axis position change (or C) data, of each axis control block is representative of the ratio .DELTA.X/.DELTA..gamma.,
wherein .DELTA.X and .DELTA..gamma. are representative of the change in position of the support table along the X axis and about the C axis, respectively, required to position the contact point of the cutting element from the contour point associated with the next previous .DELTA.R-.DELTA..theta.-.DELTA..gamma. block and the contour point associated with the particular .DELTA.R-.DELTA..theta.-.DELTA..gamma. block. It will be understood that .DELTA.X and .DELTA..gamma. are determined by transforming the .DELTA.R, .DELTA..theta. and .DELTA..alpha. data together with the "next" radius, W.sub.r, of the cutting element (noting at this point that the cutting element is concurrently being dressed to the "next" radius during the .DELTA.R-.DELTA..theta.-.DELTA..alpha. data to .gamma.-C-V (axis control) data transformation). This third word, C axis angular velocity (or V) data, of each intermediate data block is representative of the angular velocity of the support table (about the C axis) which is required to ensure that the point of contact passes the contour point associated with the particular .DELTA.R-.DELTA..theta.-.DELTA..alpha. block at the specified velocity V.sub.s. It will be understood that this surface velocity constraint is in addition to the X axis and C axis positional changes which are described above for ensuring that there is a point of contact with the workpiece and cutting element at or approaching the specified contour points.
Following the completion of the each concurrently performed cutting element dressing operation and .gamma.-C-V table generation, the computer directs the sequential performance of the instructions of the process description. The process through which the axis control data and sensor data is transformed to machine tool drive data by which the computer controls the translational and rotational motion of the workpiece support table will now be briefly described.
Initially, it will be noted that the actuators controlling motion of table 24 along the X axis and about the C axis include sensor means (or transducers) for producing encoded position sensor data X.sub.PW and .gamma..sub.W which are representative of the instantaneous (or actual) relative position of the table with respect to the Z axis 22 and the C axis angular zero 55, respectively. The sensor means are, in effect, repetitively interrogated by the computation network with a predetermined repetition period having duration .DELTA.t. It will be further noted that one of the entries in the .gamma.-C-V table is at all times denoted as "current" by the computation network and the .gamma. value associated therewith is assigned to a current entry identifier .gamma..sub.N. Following each interrogation, the computation network effectively compares the current .gamma..sub.W with the corresponding value .gamma..sub.H, as stored from the next previous interrogation time, and a difference signal is generated to be representative of .gamma..sub.W -.gamma..sub.H, i.e., the actual rotation of the support table since the last interrogation. An intermediate signal .gamma..sub.1 (in accordance with the formula: ##EQU1## is generated for use in determining a "best estimate" of the appropriate entry in the .gamma.-C-V Table to be denoted as the current entry (associated with identifier .gamma..sub.N) during the current interrogation interval. This signal, .gamma..sub.1 is then compared with the .gamma. value associated with .gamma..sub.N. If .gamma..sub.1 >.gamma..sub.N, then the next entry in the .gamma.-C-V table is designated as the "current" entry and .gamma..sub.N accordingly is assigned the .gamma.-value associated with the new "current" entry. This comparison process is repetitively performed by the computation network until .gamma..sub.1 <.gamma..sub.N. At that time, the C and V values associated with the then current table entry are retrieved from the memory for use in the next step during the current interrogation interval. In this manner, a "best estimate" is made as to the proper C value ##EQU2## to be used during the current interrogation interval.
In addition, a value representative of the estimated angular position .gamma..sub.E of the support table 24 following the next interrogation interval, is generated according to the formula: .gamma..sub.E = .gamma..sub.W + (.gamma..sub.W - .gamma..sub.H).
In effect, the computation network then directs the multiplication of the current C value ##EQU3## with the difference between .gamma..sub.E and .gamma..sub.EH (where .gamma..sub.EH corresponds to .gamma..sub.E determined in and stored from the immediately preceding interval) to form a correction .DELTA.X.sub.d, to the desired position X.sub.dH associated with the previous interrogation interval. The sum X.sub.dH + .DELTA.X.sub.d is representative of the nominal desired position X.sub.d to which the support table is to be moved during the current interrogation interval.
As described above, the true desired position of the support table X.sub.D is dependent on the desired offset and offset reducing feedrate along the X-axis. Consequently, to obtain X.sub.D, the current desired position signal X.sub.d is modified by an offset signal U and feedrate signal F (in accordance with the relations defined by the process description) to have the form
The computation network then generates an X position error signal X.sub.E which is representative of the difference between the actual position signal X.sub.PW (provided by the X axis transducer) and the true desired position, X.sub.D.
Since the interrogation intervals have a uniform duration, the .DELTA.X.sub.d signal from the current interval is representative of the desired X axis velocity, X.sub.V, of the positioning table. In addition, the difference between the .DELTA.X.sub.D signal from the current interval and the corresponding signal .DELTA.X.sub.DH from the previous interval is representative of the desired X axis acceleration X.sub.A, of the positioning table. The X position error signal, X.sub.E , the X axis velocity signal, X.sub.V, and the X axis acceleration signal, X.sub.A , are applied by the computation network through the interface unit (where those signals are converted to analog form) to the servo system associated with the X axis actuator in order to control the X axis translation of the support table 24.
In addition, the computation network provides a velocity error signal V.sub.C for the C axis servo system. For a current .gamma. -C-V Table entry, the recalled V value is representative of the desired angular change .DELTA..gamma..sub.D or V.sub.s required to be accomplished during the interrogation interval .DELTA.t in order to achieve the specified surface velocity. During the next previous interrogation interval, the computation network, in effect, forms the sum of the angular position error from the then current interval, V.sub.CH, with the desired change, .DELTA..gamma..sub.D. In the current interval, this sum is reduced by the actual angular position change, .gamma..sub.W - .gamma..sub.H achieved during the next previous interval. The resultant value, V.sub.C, thus is representative of the difference between the desired and actual angular position of the support table. Subsequently, V.sub.C is applied as the integrated velocity error signal to the servo system associated with the C axis actuator.
DETAILED DESCRIPTION OF THE SYSTEM
A. Machine Tool
The exemplary machine 18 has four steel weldments comprising the base 61, column 62 and wings 63 and 64. Base 61 provides a support for the cross-slide 66 upon which the workpiece support table 24 translates (along the X axis 30). The column 62 provides support for the cutting element slide (allowing translation of the cutting element 20 along the Z axis 22). Wings 63 and 64 provide a stiffening function for the base and column assembly and, further, enclose the work area to provide reduction of noise and coolant splash. It will be understood that a coolant flow system is provided having ducts in the top surfact 70 of the base 61 for directing coolant away from the machining area and toward a collection point.
A top view of the rotary support table and cross-slide unit is shown in FIG. 3. The support table 24 is affixed to a cross slide 66 for translation along the X axis 30. The cross slide 66 is mounted on hydrostatic bearings to permit translation along the round bar ways 68 and 69. The front way 68 is elastically supported to permit the round ways to accommodate thermal deformations of the cross slide. The rear way 69 is rigidly supported to provide a reference position for the cross slide 66. Also shown in FIG. 3 are the following X axis servo system elements (which are described more fully below): the hydraulic cylinder 82, servo valve 84, X axis velocity transducer 86 and X axis position transducer and encoder 88. The encoder 88 provides data signals representative of the position of cross-slide 66 along the X axis. In the exemplary system, encoder 88 produces these signals with 50 micro-inch resolution and 50 micro-inch per foot accuracy.
The workpiece support table 24 is supported by hydrostatic journal and thrust bearings which are mounted on the cross slide 66. The bearings permit rotary motion of the table 24 about the C axis 28. A hydraulic motor affixed to the underside of table 24 (not shown in FIG. 3) controls the speed and direction of the rotary motion of table 24 about the C axis 28 in response to hydraulic signals applied by a two stage servo valve which is mounted on that motor. Also included in the C axis servo system is a rotary position transducer and encoder. The C axis encoder provides data signals representative of the rotational position of table 24 about the C axis. In the exemplary system the C axis encoder produces these signals with 0.01.degree. angular resolution and .+-.0.006.degree. accuracy.
A vertically oriented cutting element slide 72 is provided for translating the cutting element 20 along the Z axis 22. The cutting element slide 72 is coupled to the column 62 by non-metallic bearings and two vertically oriented round bar ways 73 and 74. The motion of the vertical slide 72 is controlled by the Z axis servo system and more particulary by a hydraulic cylinder which is responsive to a two stage servo valve. In addition, a precision rack-and-pinion coupled rotary encoder is provided to generate Z axis position data. The Z axis encoder provides data signals representative of the position of cutting element 20 along the Z axis. The Z axis encoder produces these signals with 0.001 inch resolution and accuracy of .+-. 0.0005 inches.
The cutting element 20 on the vertical slide 72 is driven to rotate about the Z axis 22 (on grease-packed ball-bearing) by a coaxially mounted hydraulic motor.
The cutting element dresser 32 is driven along P axis 34 on a single, splined round way. It will be understood that the dresser 32 is driven by a stepping motor and gear train configuration for positioning.
As indicated in FIG. 1, the control system 12 receives position data signals via line 36d from the various encoders of the machine tool 10 and, in response thereto, provides driving signals via line 36c to the actuating means associated the various axis servo systems. An encoder on the stepping motor shaft provides position data to the control means 12.
It will be understood that the above described particular orientation of the rotating and translating workpiece support table (and the mechanical linkage therefor) is only an exemplary configuration and that other embodiments of the present invention may utilize an alternative configuration.
1. Actuating Means
a. X Axis Servo System
The X axis servo system for the machine tool 10 of the contouring system of FIG. 1 accommodates a total moving load mas on the order of 400 pounds (including the workpiece support table 24, C axis actuating means and a 100 pound workpiece). The presently described embodiment permits the generation of complex workpiece contours (including parabolic or constant acceleration contours) requiring X axis forces as high as 5400 pounds on the load mass. The accuracy is dependent on the resultant acceleration and velocity of the load mass. The rotary velocity (about C axis 28) for the workpiece is limited to be such that a maximum surface speed of 120 surface feet per minute may be achieved along the workpiece contour.
To provide this performance, the X axis servo system comprises a linear hydraulic actuator, a servo valve and a linear velocity transducer, a position encoder, servo electronics, and control means 12, which together provide means for positioning the support table 24 to any point in a two inch range of motion for the cross slide 66, in response to control signals applied by the control means 12.
An exemplary X axis servo system is shown in block diagram form in FIGS. 4A-B. In that figure, the various blocks are shown with the associated gain constant, including the related dimensions. The elements shown in block 36 of FIGS. 4A-B comprise the X axis portion of the block 36 in FIG. 1. It will be understood that the output signals, e.sub.1, e.sub.3 and e.sub.4 of the control means 12 are considered here to be applied directly between the computation network 40 and block 36 and to have the indicated analog form, although those signals are actually applied by network 40 in digital form by way of the interface unit 38 to the X axis servo system. The interface unit 38 includes digital-to-analog convertors which transform the signals to analog form.
It will be further understood that the servo valve, hydraulic actuator, load velocity transducer, load position transducer (shown within blocks 84, 82, 86 and 88) of FIGS. 4A-B provide effective characterizations of the servo valve 84, hydraulic cylinder 82, velocity sensor 86 and position encoder 88, respectively, as described above in conjunction with FIG. 3. Similarly, the load mass 66 of FIGS. 4A-B corresponds to the assembly of FIG. 3, including cross-slide 66, table 24, the associated C axis actuating means and further includes the workpiece.
In the system of FIGS. 4A-B, the X axis loop gain required to produce the desired position accuracy is obtained through the use of load velocity and load acceleration feedback to stabilize the X axis position feedback loop. In order to eliminate resultant large position errors proportional to these functions, the velocity and acceleration characteristics of the contour are fed forward via signals e.sub.3 and e.sub.4. Table II shows the various loop and command gain expressions for the exemplary system of FIGS. 4A-B. The exemplary system will now be described in detail.
The load mass is coupled to the actuator 82 through a spring rate of 4 .times. 10.sup.6 lbs/inch, with there being no backlash between the actuator and the load.
The hydraulic actuator 82 has a stroke of .+-. 1 inch and an effective area of 3 square inches. Actuator 82 is a balanced area actuator having a lapped fit to the cylinder bore (or alternatively a double seal on the piston with the area between the seals vented to return pressure). The friction level may be as high as 40 pounds. The actuator housing is fastened to the machine base 61 with a spring rate of 4 .times. 10.sup.6 lbs/inch. The total volume of oil under compression is assumed to be 7.5 cubic inches, with 6.0 cubic inches of this being in the actuator. The remaining 1.5 cubic inches is in the servo valve and the manifold between the valve and actuator.
The servo valve 84 is a four-way, flow control type, with the output flow proportional to input current. The associated frequency response is characterized by a second order lag with a break frequency of 160 cps and a damping ratio of 0.5 when measured at 75% rated input current. The valve has peak flow of 15 gpm (57.7 cubic inches per second) at 1800 psi. An electrical feedback valve is used to substantially reduce the hysteresis and improve the frequency response particularly at higher amplitude signals. Alternatively, a Moag series 76-104 valve, manufactured by Moag, Inc., East Aurora, N.Y., may be used in lieu of the above described valve.
The current amplifier 92 is shown in schematic form in FIG. 5. That configuration may be characterized by the following expressions: ##EQU4## Amplifier 92 forces current into the servo valve in response to a command voltage. This configuration is used to eliminate the effect of the L/R time constant of the valve coils. The capacitor C.sub.1 stabalizes the overall amplifier by rolling off the operational amplifier gain at high frequencies. The rated servo valve current through resistor R. produces an approximate 0.4-0.5 voltage drop. Consequently, the diodes D.sub.1 and D.sub.2 limit the maximum output current to about 125-150% of rated current. The voltage V is selected so that the current amplifier has sufficient output voltage to force rated current through the valve coils at 250 cps.
The 2nd order lead filter 94 is shown in FIG. 6 that configuration may be characterized by the following expressions: ##EQU5## The filter 94 increases the apparent frequency response of the servo valve, thereby yielding a faster, more accurate X axis servo system. The filter has a response that is inverse to that of the servo valve 84, .omega..sub.m and .xi. have been selected to by 1000 rad/sec and 0.5, respectively, in order to match the servo valve 84. .omega..sub.3 and .omega..sub.4 are have been selected to be 10,000 rad/sec and 12,000 rad/sec, i.e. approximately equal and 10 to 12 times larger than .omega..sub.m. K.sub.4 equals 1 and yields the desired low frequency gain (.times. =1) through the circuit. For R.sub.4 = 27,000 ohms then the remaining elements are determined from the following expressions:
The summing amplifier-differentiator 96 is shown in FIG. 7. That configuration may be characterized by the following expressions which relate to the gain expressions of FIG. 4A. ##EQU6## This circuit provides a weighted sum of the signals e.sub.1, e.sub.3, e.sub.4 and e.sub.5 and the time derivative of signal e.sub.5. In the differentiator portion, the inductor L.sub.6 causes the differentiator gain to drop off at frequencies beyond 10,000 rad/sec, in order to reduce noise. .omega..sub.m is selected to be 10,000 rad/sec and .xi. = 0.4. It will be noted that R.sub.6 includes the resistance of the inductor L.sub.6. Using the above noted values, the remaining elements are determined from the following expressions: ##EQU7##
The load position error integrator 98 is shown in FIG. 8. This circuit may be characterized by the following expressions which relate the gain expressions of FIG. 4A. ##EQU8## This circuit provides correction for relatively slow valve null wander and amplifier bias shifts. In addition, this circuit substantially reduces the errors due to valve nonlinearity and hydraulic supply pressure changes. The inverter portion allows the integrator output to be added back into the system with the proper signal phase relation.
The load velocity transducer 86 is a type LMV 879/25, manufactured by G. L. Collins Corporation, Long Beach, California. The transducer 86 is rigidly and stiffly mounted to the machine base 61. The load position transducer 88 is an optical incremental type LMS 50, manufactured by Dynamics Research Company, Wilmington, Mass.
FIGS. 9-12 show an alternative circuit configuration for blocks 92, 94, 96 and 98, respectively of FIGS. 4A-B. In this alternative configuration, it is assumed that the Moog series 76-104 valve is utilized in block 84.
b. C Axis Servo System
The C axis servo system for the machine tool 10 is shown in FIG. 13 to include the computation network 40, digital-to-analog interface 104 and encoder interface 102 (all in control means 12), amplifier 142 (of servo loop element block 36), and the C axis servo valve 144, drive motor 146, support table 24 and encoder 148 (all in machine tool 10). The broken lines 146a and 148a indicate the mechanical coupling between both motor 146 and encoder 148 to the support table 24. For the presently described embodiment, the amplifier 142 is shown in schematic form in FIG. 14. The valve 144 is a Moog series 76-104 valve, and the motor 146 is a type SN-110, manufactured by Scanomatic, Racine, Wisconsin. The encoder 148 provides one pulse for each 0.01 revolution of the support table 24, and is a model 35-2X13-9000, manufactured by Dynamics Research Corporation, Wilmington, Mass. In operation, the C axis servo system drives the support table in response to follow the C axis drive signal as applied by the control means 12.
c. Z Axis Servo System
The Z axis servo system is also shown in FIG. 13, and has the same block diagram format as the C axis servo system, including computation network 40, interfaces 104 and 102, amplifier 150, servo valve 151, actuator 152, vertical slide 72, and encoder 154. The broken lines 152a and 154c indicate the mechanical coupling between both actuator 152 and encoder 154 with the vertical slide 72. Amplifier 150 is identical to the C axis amplifier 142 shown in FIG. 14, and valve 151 is a Moog series 76- 104. Actuator 152 is a 12 inch stroke, 3 inch bore hydraulic cylinder manufactured by Parker-Hannifin, Des Plaines, Illinois. The encoder 154 is a model 29-10-BO3-750, manufactured by Dynamics Research Corporation, Wilmington, Mass., which is coupled to slide 72 via a rack and pinion to provide one pulse for every 0.001 inch movement of vertical slide 72. In operation, the Z axis servo system drives the vertical slide 72 in response to the Z position signals as applied by the control means 12.
d. P Axis Servo System
The P axis servo system is also shown in FIG. 13 in block diagram form. This system utilizes the computer 40 and the P axis interface 106 (in control means 12) and stepper drive module 155, stepping motor 157, dresser 32 and encoder 159 (all in machine tool 10). The broken lines 157a and 159a indicate the mechanical coupling between both the motor 157 and the encoder 159 to the dresser 32. In this embodiment, the stepper drive module 155 is a series 29-B-02 drive module manufactured by Sigma Instruments Incorporated, Braintree, Massachusetts. The stepping motor 157 is a series 20-3437-D200-FO-3A, also manufactured by Sigma Instruments. The encoder 159 is a model 29-10-BO3-200, manufactured by Dynamics Research Corporation, Wilmington, Mass., coupled by a rack and pinion to the dresser 32. In operation, the P axis servo system drives the dresser 32 in response to the P position signals applied by the control means 12.
B. Control Means
The control means 12 is shown in FIG. 15 in detailed block diagram form, together with the operator station 14 and programming station 16. The computer 44 comprises a programmed PDP-11/20 system and a type KE-11A Extended Arithmetic Element, both manufactured by Digital Equipment Corporation (DEC), Maynard, Massachusetts. The computation network 40 comprises a PDP-16 computer with a hard-wired program also manufactured by DEC. The memory system 42 comprises a core storage system having 16,384 words .times. 16 bits associated with the PDP-11. It will be understood that the indicated connection of network 40 and memory 42 (in FIG. 1) is accomplished by a connection from the data bus of computation network 40 via a unibus inter-face in network 40 and then by way of the computer 44 data bus (PDP-11 unibus). In this manner, the computation network 40 may access the memory 42. The unibus interface comprises standard DEC modules, configured as shown in block diagram form in FIG. 16, and described in the DEC "Unibus Interface Manual" and Part II of the DEC "Peripherals and Interfacing Handbook".
The interface unit 38 comprises an X, C, Z encoder interface 102 for transferring the position indicating data signals from the X, C, and Z axis position encoders to the computation network 40. The X axis portion of the encoder Interface 102 comprises a clocked quadrature decoder connected to an up-down counter (DEC M 236 modules).
Alternatively, a type 6019-6400 unit, manufactured by Dynamics Research Corporation, Wilmington, Mass., may be utilized to transform the X axis position encoder data to a form suitable for use by computer 44.
In addition, interface 38 includes the digital-to-analog servo interface 104 which transforms digital servo system command signals (applied from the data bus of the computation network 40) to analog form for the following signals: Z axis position, X axis position error, X axis velocity, X axis acceleration, and C axis integrated velocity error. These signals are subsequently applied to the servo systems (block 36 of FIG. 1) for the respective axis. The D-to-A converters of interface 104 are configured from DEC A 613 analog modules. The analog signals vary between plus or minus 5 volts and have a settling time less than 50 microseconds with a maximum output current of 10 milliamps.
Input and output discrete interfaces 110 and 108 (shown in FIG. 17 in block diagram form) couple the PDP-11 to the operator control panel 160 of operator station 14. These interfaces utilize standard DEC modules configured in accordance with the DEC "Peripherals and Interface Handbook". The output discrete interface 108 transfers 24 output discrete signals from the DDP-11 unibus to associated a.c. switches 162 (type K 615 manufactured by DEC) at the operator station 14. The input discrete interface 110 transfers 48 input discrete signals from voltage convertors 164 (type K 579, manufactured by DEC) at operator station 14 to the PDP 11 unibus. Table III identifies the various input and output discrete signals for the present embodiment.
The P axis interface 106 (FIG. 15) provides a network for transferring dresser position signals from the P axis encoder to the PDP-11 unibus and also for transferring dresser command signals from the PDP-11 unibus to the P axis stepper drive motor.
In addition, the computer 44 is coupled to a manual data input terminal (MDI) 114 and a tape reader 116, both included in the programming station 16. The computer 44 includes parallel/serial interface networks between the MDI 114 and the PDP-11, and a tape interface between the tape reader 116 and the PDP-11.
The MDI 114 is a RTO1 terminal manufactured by Digital Equipment Corporation. The tape reader 116 is a Model RRSO305RX1/660/FRX/5000 (with PDP-11 interface), manufactured by Remex, Santa Ana, Calif.
The interface unit 38 further includes a time base generator/data synchronizer. Generator/synchronizer 130 includes a counter driven by a crystal controlled oscillator to provide a 5MHZ a clock pulse signal and an associated count down network to provide a signal making time periods of 2-11 seconds. It will be understood that both clock pulse signals are utilized throughout the control means 12.
In addition, generator/synchronizer 130 provides a data synchronizing function in control means 12 to accommodate the independent time bases associated with the various system elements. Data transfer from the PDP-11 unibus is synchronized through use of Master Sync and Slave Sync signals. The unibus master control (in the unibus interface) provides a master sync signal (MSYN) when data is awaiting transfer from the PDP-11 data bus. The receiving system detects the MSYN and generates a slave sync signal (SSYN) when synchronization is attained to transfer the data. Upon completion of the data transfer, the MSYN is discontinued by the unibus master control and, in response thereto, the SSYN is discontinued by the receiving system. The generator/synchronizer 130 synchronizes each of the encoder interfaces with the PDP-11 unibus by inhabiting the clock signal associated with the respective encoders until synchronism is attained.
1. Computer 44
The computer 44 comprises a PDP-11/20 computer with an Extended Arithmetic Element. The computer 44 is programmed with a main Program which includes an Executive Program and the following six sub-programs: Part Program Loader, .gamma.-C-V Table Generator, Manual Data Input, Axis Motion Control, Discrete Processor, and Part Program Executer. The Executive Program allows interlocks between and scheduling of the several tasks to be performed by each of the sub-programs. The sub-programs direct the specific functions necessary for the tasks which control the machine tool operations. A listing for the Main Program is shown below in Appendix I. A Table of Contents for that listing (which indexes the various sub-programs and the Executive Program to the line numbers of the Main Program listing) is shown in Table III.
a. Executive Program
The Executive Program provides an interface between the hardware and the software and provides scheduling, processes interrupts, provides interlocks, and provides time delays as requested by the tasks. The Executive Program is a multiuse routine and is logically separable from the sub-programs.
b. Part Program Loader Subprogram
The Part Program Loader Sub-program is activated in response to an operator generated signal produced at the Manual Data Input terminal (MDI) 114. In response thereto, the computer 44 activates the tape reader 116 and effectively reads the eight-level paper tape encoded EIA characters that represent the Part Program (i.e. the Part Process and Part Description) for a particular part-to-be-machined (i.e. workpiece) on a machine tool 10. The present embodiment utilizes EIA standard RS244A for character code with EIA standard RS274 format. The Part Program as applied by the tape reader 116 includes three portions: the Header, the Body (comprising the Part Process) and the Part Description. The Header portion of the tape data (with code numbers, part numbers and limiting parameters) is stored in table form in the memory 42 and denoted as the Machine Status Block. Similarly, the Body data (with the Part Process) and the Part Description data are also stored in table form in the memory 42. The Head, Body and Part Description will be more fully described together with an exemplary Part Program in a separate section below.
c. .gamma.-C-V Table Generator Sub-Program
The .gamma.-C-V Table Generator Sub-program is effective to transform the .DELTA.R-.DELTA..theta.-.DELTA..alpha. data (as stored in the Part Description Table in the memory 42) to .gamma.-C-V data, and to store that .gamma.-C-V data in table form in the memory 42 for subsequent use by the computation network 40. As noted above in the Description of System Operation, each block of Part Description (.DELTA.R-.DELTA..theta.-.DELTA..alpha.) data is transformed to a corresponding block of .gamma.-C-V data. Accordingly, for the n.sup.th contour point defined for the desired workpiece contour, the .gamma.-C-V Table Sub-program generates and stores three words, .gamma..sub.n, C.sub.n, and V.sub.n.
The first word, .gamma..sub.n, is representative of the angle of the support table 24 about the C axis relative to the C axis angular zero 55 when the cutting element 20 has a lateral surface point in contact with the n.sup.th contour point defined by the associated .DELTA.R-.DELTA..theta.-.DELTA..alpha. data block, with the cutting element 20 being aligned with the workpiece at the associated pressure angle, .alpha.n. This first word is determined by the computer 44, as programmed by the .DELTA.-C-V Table Generator Sub-program, in accordance with the following expressions:
where .theta..sub.n is defined as ##EQU9## with each .DELTA..theta..sub.i being equal to the same constant (e.g. 0.1.degree.) and being representative of the angular displacement between successive desired workpiece contour points and where .phi..sub.n (as defined in FIG. 2) is determined from:
The second word, C.sub.n, is representative of the ratio of the change in X to the change in ##EQU10## where the values .DELTA.X.sub.n and .DELTA..gamma..sub.n correspond to the required changes in support table 24 position to move the contact point from the contour point associated with the n.sup.th .DELTA.R-.DELTA..theta.-.DELTA..alpha. data block to the contour point associated with n+1.sup.th .DELTA.R-.DELTA..theta.-.DELTA..alpha. data block. The second word is determined in accordance with the expressions: where, for internal parts, ##EQU11## and, for external parts, ##EQU12##
The third word, V.sub.n, is representative of the angular velocity of the support table 24 about the C axis which is required to achieve the surface velocity V.sub.s which is specified for the contact point along the workpiece contour. The third word is determined from: ##EQU13##
In addition, to calculating the .gamma., C, and V for each contour point represented in the Part Description Table, the .gamma.-C-V Table Generator sub-program may add or delete .gamma.-C-V data blocks. Such blocks are added if the difference in slope between two intervals specified by the Part Description is likely to cause a significant error in the generated X command. Points are deleted if the table rotational velocity is great enough that the data point is likely to be skipped entirely.
Generally, the jigging of the workpiece on support table 24 is accomplished in a manner having .theta.=0 of the workpiece (in the part description) out of alignment with the C axis angular zero (i.e. .gamma.=0 of the support table 24). This misalignment is corrected by the computer 40 following the calculation of the .gamma.-C-V table by "rotating" (in core memory 42) the .gamma.-C-V Table so that the first entry in that table is .gamma.=0. In alternative embodiments, a "pointer" notation may be utilized to effectively align the workpiece with the support table.
d. Manual Data Input Sub-program
In response to a change in status of the key board at MDI 114, the Manual Data Input Sub-program, computer 44 receives data from MDI 114. By proper sequencing of the keyboard operation, data transferred to the computer 44 via the MDI 114 may be stored as the Override Table in memory 42. Access to this table by the Part Program Executer (described below) is available only when the "override mode" signal is applied to control means 12 from the operator station 14. The MDI-introduced data does not change the Part Program loaded through the tape reader 116 and thus reversion to the "normal" mode (from "override") directs computer 44 to follow the original Part Program.
e. Axis Motion Control Sub-program
Although the computation network 40 provides the actual control signals to the X, C and Z axis servo systems, the computer 44 influences these signals in accordance with the Axis Motion Control Sub-program comprising five control routines. There is an axis motion control routine for the X-C axis combination and for each of the X, C, Z and P axes. There are also two drivers (oscillate Z and home axis drivers) which are the axis motion routines to perform a combination of functions.
The C-X axis motion routine has four separate functions. The contents of a register (denoted R3) in computer 44 determines which of these functions is performed. The first function, indicated by 0 stored in register R3, directs the computation network 40 to generate X and C axis control signals which first move support table 24 along and about the X and C axes in accordance with a dummy .gamma.-C-V Table to a specified .gamma. value. The routine then directs "stop" and indicates "done". The dummy .gamma.-C-V table includes entries from which network 40 directs the table 24 to rotate at a constant rate.
In response to a 1 in register R3, network 40 indicates "done" when set up on the dummy .gamma.-C-V Table. In this case, the computation network 40 directs motion according to a dummy table .gamma.-C-V dummy table until a further directive is received. Such a directive may be generated by the Discrete Processor to effect operator-directed manual motions.
In response to a value of 2 in register R3, the C-X axis motion routine starts the "hardware algorithm" operation (as described below) on the Part Description Table. The routine indicates "done" when the contour points associated with the entire Part Description Table (and .gamma.-C-V Table) have been reached by cutting element 20. The coordinated rotational and translational motion of the table 24 is accomplished according to the Part Description and utilizing the stored feedrate.
A -1 in register R3 instructs the network 40 to direct the rotation support table 24 for specified number of full revolutions in accordance with the Part Description table and the hardware algorithm and then indicate "done". This function is used by the Part Program Executor for dwelling, as described below.
The X axis motion routine controls the U (offset) variable in the X position data block. The desired X position comprises the sum of the X value (controlled by the Part Description Table) and the U (offset) value controlled by this routine. A 0 in R3 directs motion of support table 24 along the X axis at the specified feedrate to a specified U value and stop and then indicate "done". The sign of the feedrate is adjusted to direct motion in the proper direction to achieve the desired U value.
In response to a 1 in the register R3, the routine establishes the desired feedrate and indicates "done". This operation may be activated by the Discrete Processor for manually directed motion of support table 24.
If the register R3 contains a -1, the routine direct motion of table 24 along the X axis and indicates "done" upon reaching a U value. However, the routine does not set the feedrate to zero so as to stop further motion.
When the register R3 contains a 2 the routine will stop at the U value. This function is utilized by the Part Program Executor in conjunction with a special command sequence. The stop value and the feed rate are stored for this motion routine.
The Z axis motion routine performs the same functions as the X axis motion routines for values of 0, 1 and -1 in control register R3. However, a 2 in control register R3 directs an operation similar to that directed by a 0, wherein the cutting element 20 is directed along the Z axis to a stop value. However, after reaching that stop value, the cutting element remains stationary until the Z axis error signal is reduced to a predetermined tolerance. Thereafter, cutting element 20 remains stationary for a specified dwell time before the sub-program indicates done. This operation is utilized in conjunction with the Z Oscillate Driver to prevent effective oscillation limits from being a function of the Z feedrate and to achieve good cutout at the top and bottom of the part.
A control value of 3 in register R3 directs the Z axis motion to stop when an upper limit signal is received. This control value directs the cutting element 20 to translate along the Z axis to the home position.
In a manner similar to the X axis motion routine, the feedrate, stop, and dwell time value, are stored in memory 42.
The P axis motion routine always operates in the same manner, wherein the register R1 contains a desired change in dressing element 32 position. The P axis motion routine will indicate "done" when the change has been achieved. This routine determines, based on the amount of change specified, whether to run in one of three modes. The first mode is for changes of less than 20 pulses (with each pule representing a predetermined incremental distance). In this case, the computer 44 applies a pulse the P axis stepper motor drive every 10 milliseconds until the desired change is achieved. In this case, the encoder of the P axis is only used to check for achieving the desired position.
If the change requested is between 20 pulses and 3,200 pulses, the normal speed control is used. In this mode the encoder is used to generate further pulses to a stepper motor until the desired change is achieved. Normally the stepper will overshoot about 7 pulses, but the routine is pre-compensated to avoid this overshoot.
For larger changes the feed scheme for normal speed is used, but after the stepper motor is running, a pulse is added. This causes the stepper to run at a rate greater than 5,000 pulses per second. In the third mode, the overshoot is large but is precompensated. The remaining move is achieved by one of the slow speed modes of operation.
The oscillate Z driver uses the Z axis motion routine to oscillate between two values that are transferred in registers when called by the Part Program Executer. This oscillation will continue until the stop oscillation flag is set. When this flag is set, the Z axis returns to the lower limit and indicates done.
The Home axis driver uses the motion routines to drive all axes home. This routine is used by the discrete Processor.
f. Discrete Processor Sub-Program
The Discrete Processor sub-program directs computer 44 to evaluate discrete conditions. Discretes are "off-on" type functions such as reset actions, start-stop coolant, wheel spindles, workpiece clamps. This sub-program monitors the status of all discretes every 0.08 seconds to determine if a change has taken place in a discrete condition between successive monitoring periods or a different discrete has been set, or a routine scheduled to move an axis.
There are two types of discretes: Output or Input. Output discretes are conditions set by the computer 44. Input discretes are conditions indicated to the computer 44 by automatic or manual means (from operator station 14 or tool 10).
The Discrete Processor sub-program also directs condition monitoring of the general condition of the machine tool 10 every 0.08 seconds and upon detection of predetermined conditions corrective steps may be initiated or the system may be shut down. Such monitoring operations include checks of panel switches and the following:
1. monitoring the support table 24 zeroing action which ensures correct angular relationship of the workpiece with respect to C axis angular zero.
2. monitoring the translating slide 66 zeroing action.
3. monitoring the Dresser zeroing action to ensure correct cutting element diameters.
4. monitoring hydrostatic bearings to warn of illegal motion without pressure that could result in damaged bearings,
5. monitoring the cross-slide (X axis) position to ensure that the X axis error signal is below a preset value,
6. monitoring the cutting element power consumption, and
7. monitoring the wheel diameter via the dresser position.
g. Part Program Executer Sub-program
The Part Program Executer steps through any part program Body tables stored in memory 42 and directs the performance of functions specified for as many as six machine tools (similar to tool 10) that are connected to control means 12. In response to the sub-program, computer 44 sets discretes as required by the associated Body table, indicates the need for the Axis Motion Program to function, calls for P axis dressing motions and activates the X-C Table Generator subprogram to calculate new .gamma.-C-V Table values.
2. Computation Network
The computation network 40 comprises a PDP-16 minicomputer. Network 40 is hard-wired to perform a series of high speed calculations in accordance with the "hardward algorithm" whereby the actual position of the support table 24 along and about the X and C axes is monitored approximately every 0.5 milliseconds and appropriate corrective control signals generated for application to the various servo systems during the next interrogation interval. These corrective signals are determined according to an interpolative process, as described above in the Description of System Operation, in order to maintain the contact point between the cutting element 20 and the workpiece along the desired workpiece contour (i.e. defined by the piecewise linear path connecting the contour specified by the Part Description, as modified by the offset and feedrate parameters). Appendix II includes a wire list for the point-to-point hardwiring of the PDP-16 in the present embodiment.
The effect of the operation of computation network 40 is to provide the computational speed required for the contouring operation, and also reduce the computational load on the computer 44 so that the computer may control as many as six machine tools at the same time, with each machine tool having an associated computation network (and interface) interconnected with the single computer 44.
It will be understood that each computation network may access the memory 42 by way of the unibus interface portion of network 40 and the data bus of computer 44 (PDP-11 unibus). There are two levels of interface between each computation network and computer 44. On the first level, the computation network 40 includes flip-flop storage locations for three control words, the discrete algorithm control word and the discrete P axis control and data words. The computer 44 treats these locations as part of its own memory, although these flip-flops can be set or reset by either the computer 44 or network 40. The network 40 further includes three output discrete word registers and two input discrete word registers, all of which are also referenced as computer 44 memory.
The second level of interface is a direct memory access arrangement. At this level, the network 40 controls access to the memory 42 and may draw constants from locations in that memory. Such constants may be required for calculations by network 40. In addition, network 40 may also store data requested by computer 44 in the memory 42. Table V shows memory addresses utilized by network 40 for as many as six computation networks.
Table VI-A shows the hardware algorithm of the computation network 40 as written in the ALGOL language and Table VI-B includes symbol definitions used in the algorithm. FIGS. 18A-C shows the algorithm in flowchart form.
It will be understood that for each desired contour point set forth in the Part Description, a .gamma. value and associated C and V values are stored in the .gamma.-C-V table in memory 42, (except for points added and deleted, as described above in conjunction with the .gamma.-C-V Table Generator Sub-program). As noted above, X is the X axis position of support table 24 and .gamma. is the angular displacement of the support table 24 about the C axis. Accordingly, C.sub.n equals ##EQU14## and is representative of the ratio of the change in X to the change in .gamma. required to reposition the contact point from the n.sup.th contour point. Similarly, V.sub.n equals ##EQU15## required to achieve this repositioning at the desired surface velocity. The primary function of the hardward algorithm is to perform the operations described above in the section entitled Description of System operation. This includes the determination of the appropriate .gamma.-C-V Table entry to be used in the calculation and the calculation of the X axis position error signal X.sub.E, X axis velocity signal X.sub.V, X axis acceleration signal X.sub.A, and the C axis velocity error signal V.sub.C. The algorithm further determines the Z axis position error signal. In addition, the algorithm directs reset operation each time the C axis passes through the C axis angular zero 55 in order to remove accumulated error. Referring to the hardware algorithm flowchart (FIGS. 18A-C), the operation of the algorithm will now be briefly described.
Starting from the label L2, the set up table initialization is accomplished by transferring the contents of the indicated memory locations to the set up table locations. This portion of the algorithm is used only when power is brought up. The values drawn from the computer memory are such that no motion occurs at the machine tool 10 if the machine was left properly in home position.
The L0 label indicates the normal return point for the algorithm. The first decision point is used to establish the basic timing of the algorithm. At the start of each interrogation interval and thereafter. Once every 2.sup..sup.-11 seconds (approximately 0.5 milliseconds), the time base generator 130 sets PULSE location equal to "true". Until this occurs, the algorithm merely checks for that condition. When the algorithm finds PULSE equal to true, the PULSE location is reset and the algorithm reads the X axis position encoder. Consequently, the X axis encoder signal is transferred into the computer even when the hardware algorithm is not enabled by the Axis Motion Sub-Program of Computer 44.
At this point, in time, if the algorithm has not been enabled, control is transferred around the servo loop calculations and only timing interrupts and data transfers are performed. Normally, the encoders are read and monitored for excessive X axis error. Then, the C axis reading is evaluated to determine if the C axis encoder has passed through the transition from 360.degree. to 0.degree.. If so, control is transferred to label L6 where the .gamma.-C-V table pointer is returned to the first table entry and the value of X for .gamma. equal to 0 is restored in the hardware algorithm memory (from the memory 42). If the C axis has not been reset, a search is made in the .gamma.-C-V Table for the correct C and V values to use in determining the X.sub.E, X.sub.V, X.sub.A and V.sub.C machine tool drive data for application to the X and C axis servo systems during the next interrogation interval.
Thereafter, control goes to label L4. This portion of the algorithm is the merging point for the two paths determined by whether the C axis has been reset or not. The desired positions for support Table 24 are calculated and stored for the next entry into the algorithm.
Determination is now made as to whether the algorithm is either in the "maintenance mode" or in the tenth pass through the algorithm during an interrogation interval. If neither of these is true, data transfer is not considered. Normally, the algorithm is not run in maintenance mode and consequently, data requested by the computer 44 is only transferred once every 2.sup..sup.-11 .times. 10 seconds (approximately 5 milliseconds). At these points in time, the Z axis feedrate and the X axis tolerance values are read again from the memory 42.
Subsequently, if data is requested by computer 44, that data is transferred thereto whereby the computer 44 is interrupted if requested. If the algorithm is in the tenth pass during an interrogation interval, the computer 44 is interrupted with a time interrupt. If an initialization is requested by computer 44, control is transferred back to label L2; otherwise, control is transferred back to label L0 and the algorithm awaits the start at the next interrogation interval.
C. Operator Station
The operator station 14 is shown in FIG. 15 to include an operator control panel 160, a.c. switches 162 and voltage convertors 164. Station 14 provides means for the operator to generate and receive the input and output discrete signals respectively as required for the operation of the machine tool 10. The various input and output discrete signals are described above in conjunction with Table III. It will be understood that when a single control means 12 is controlling more than one machine tool, each machine tool has an operator station associated therewith.
The operator panel 160 is shown in FIG. 19. In that figure, the rectangular areas represent indicator lights and the circular areas represent operator controlled switches. As shown in FIG. 19, the switches are grouped in four areas:
Power Control 202, Set-up control 204, automatic operation control 206 and manual operation control 208. In addition, most of the indicators are grouped as Condition Indicators 210. It will be noted below that four additional indicators are grouped with the associated control switches.
Power control 210 includes the following switches:
1. Power on 212 - for turning power on in the control panel 160;
2. Power off 214 - for removing power from console 160;
3. Hydraulic pump start 216 - for initiating the hydraulic system operation and;
4. Hydraulic pump stop 218 - for shutting down the hydraulic system operation.
In addition, power control 202 includes power indicator 220, which is illuminated when control panel 160 is in a "power on" state, and hydraulic pressure indicator 222 which indicates that the hydraulic system is operating and pressure is in a normal operative state.
The set-up control 204 includes the following switches:
1. Table zero reset 224 -directs the loading of a reference value for C axis alignment;
2. Slide reference zero reset 228 - directs the loading of a reference value for X-axis slide alignment;
3. Floating zero reset 226 - directs the loading of a reference value for the X-axis to permit X-axis slide alignment which may vary with each workpiece operation;
4. Dresser rest 230 - directs the loading of a reference value for the P-axis dresser with respect to the cutting element center line;
5. Axis selector switch 232 - for selecting axis to be moved manually during set-up operation;
6. Axis speed control 234 - for selecting a speed for the manual motion to be performed;
7. Axis direction control 236 - for selecting a direction for the manual motion;
8. Axis motion control 237 - for producing a selected axis motion in jog or run form;
9. Axis stop pushbutton 238 - for stopping an axis motion started by the axis motion pushbutton 237;
10. Dresser speed control 242 - for selecting a desired speed for the dresser motion;
11. Dresser jog pushbutton 244 - for selecting dresser motion in jog form;
12. Manual dress pushbutton 246 - for directing motion of the vertical slide between two programmed points at a programmed rate for dressing the cutting element;
13. Table drive switch 248 - for selectively disengaging the support table 24 to permit manual rotation of the table by the operator during fixturing of the workpiece and operating table zero reset 226; and
14. MDI access switch 250 - for controlling the entry of new data to control means 12 by the MDI terminal 114.
The manual operation control 208 includes the following controls:
1. Mode selector 252 - for selecting from the following modes: Manual, automatic, override.
2. Program read mode switch 254 - for enabling the program to be read continuously or in single block form.
3. Coolant controls 256-258 - for controlling coolant flow;
4. Grind spindle controls 260, 261 - for starting and stopping the cutting element, and
5. Guard switch 264 for selecting either manual (operator controlled) guard opening or automatic (machine controlled) guard opening.
Coolant lockout indicator 266 is illuminated when the switch 258 is in the "on" position.
The automatic operation control 206 includes the following controls:
1. Cycle start pushbutton 268 - for initiating an automatic cycle (either in automatic or override mode);
2. Cycle hold pushbutton 270 - for interrupting the cycle mode of operation (permitting continuation of operation in the cyle mode upon subsequent depression of cycle start pushbutton 268);
3. Cycle stop pushbutton 272 - for interrupting a cycle mode of operation and directing the controlled retraction of the slides to the "home" position in the same manner as at the end of a completed cycle of operation (and from which the cycle mode can only be reinitiated from the starting point);
4. Open and close clamp pushbuttons 274 and 276 - for directing part clamps to release and to secure the workpiece, respectively;
5. Guard open pushbutton 278 - for opening the guards when guard switch 254 is in the "manual" position;
6. Table slide offset thumb wheel set switches 280 for providing an X-axis offset to modify actual base diameter of workpiece (and correcting minor errors in setup of X-axis and wheel diameter); and
7. Emergency stop switch 284 - for interrupting machine tool 10 operation.
The cycle indicator 282 is illuminated when the machine tool 10 is in the cycle mode.
The condition indicators 210 include the following:
1. Override indicator 286 - for advising the operator that a modified program is currently being utilized.
2. Slide setup indicators 288 and 289 - indicate that the "home" position of the X-axis was correctly set in accordance with the data on the header portion of the program (if both indicators are illuminated) or incorrectly set (if only one indicator is illuminated);
3. Wheel size indicators 290 and 291 - indicate that the cutting element, (as dressed during the initial manual dressing operation), is outside the limits specified in the header portion of the Part Program;
4. Wheel not dressed indicator 294 -indicates that cycle mode has been initiated prior to initial dressing operation;
5. Slide error indicator 296 - indicates that machine tool 10 motion is producing position errors on X-axis beyond preset limits (and that for this reason, the cycle mode has been interrupted);
6. Table motion indicator 298 - indicates that motion of support table 24 was attempted without normal hydraulic pressure conditions (potentially damaging to hydrostatic bearings); and
7. Incorrect reset indicator 299 - indicates setup procedure error in the operation of the reset pushbuttons.
D. Programming Station
The programming station 16 includes the manual data input terminal 114 and tape reader 116, as shown in FIG. 15. The control panel and keyboard for terminal 114 are shown in FIG. 20. The MDI terminal 114 may be utilized to display store data associated with a Part Program currently being performed by any of the six machine tools which may be connected to control means 12. In addition, terminal 114 may display and enter new data to supercede the already programmed data. The precise format of the Part Program is described in the next section. Using terminal 114, revisions of the stored data may include changes in the speed, feed, or offset data along any axis. Terminal 114 may not be used to revise any data contained in the Part Description. That data may only be changed via a new tape as entered by the tape reader 116.
The machine operator can change the following data through use of the MDI terminal 114:
Z dimension word - Z axis position limit
U dimension word - X-axis offset
R dimension word - Z-axis oscillation limit
P dimension word - dresser position
F dimension word - feed rate, X or Z-axis
E dimension word - feed rate, C-axis
S dimension word - rotational speed of cutting element
Q dimension word - revolution of C-axis count
In addition to these data, the operator may access all other stored data excepting that stored in the part description tables.
E. Part Program
As described above, the Part Program comprises a sequence of data blocks which are grouped as follows: the Header, Body and Part Description. Table VII shows the format for the Part Program data blocks. The three groups will now be briefly described, followed by an exemplary Part Program (Table VIII).
The Header comprises four data blocks denoted N1-N4. These blocks made up of all data in blocks 1 through 4 have the form:
N1: "x.sub.1 x.sub.2 x.sub.3 x.sub.4 x.sub.5 x.sub.6 x.sub.7 x.sub.8 x.sub.9 " - nine symbol program identifier
N2: "d.sub.1 d.sub.2 d.sub.3 d.sub.4 d.sub.5 d.sub.6 d.sub.7 d.sub.8 d.sub.9 " - nine symbol part identifier
N3: g37 t[14] t[14] x[+15 ] - the maximum and minimum wheel radius and the X axis home position, R.sub.H (wherein R.sub.H is defined as a reference or "Home" distance between the Z and C axes)
N4: G36 Z[23] R[23] F[3] - the minimum and maximum Z coordinates for manual dress and the manual transverse rate.
The format of all data blocks on the input tape is:
"d.sub.1 d.sub.2. ." - Any symbol sequence surrounded by quotes is defined as a character string wherein:
d = digit (a number 0 through 9)
X = alphanumeric (a through z or 0 through 9)
N1 or G36 - the specific characters used (i.e. N followed by 1 or G followed by 36,)
[14] or [+15] - format information [14] means up to five characters, one to the left of the decimal, four to the right, with leading zero suppress. Thus, 138 under format [14] means 0.0138. A plus indicates a sign is also accepted. Each input tape begins and ends with an End of Block (EOB) character. Also, each input tape ends with an End of Record (EOR) character. Neither of these characters are shown in the examples in this section.
The body comprises the main section of the Part Process and includes data blocks 5 through 99 (or the final block if there are fewer than 99 blocks). The Body identifies the offsets, feedrates, speeds, and miscellaneous functions to be performed. The ordering of the sequences of the Body is the order in which the functions are to be performed. There are five types of functions which may be specified by the Body:
i. Establish axis speeds: Through E and S codes, the operator specifies the desired angular speed of the workpiece support table 24 about the rotary (C) axis and of cutting element 20 about the Z axis, respectively. These values represent desired speed and it will be understood that the actual speed is not changed to the specified value until a miscellaneous function code (M03, M04, M05, M13, M14, M20, and/or M21) is encountered in a subsequent block. The C axis speed will also change if a P axis motion occurs, indicating a wheel dress operation has initiated a .gamma.-C-V Table generation.
EXAMPLE:
N5 G27 U-280 F0 E150 S110 M20 M14 - set the values to 150 fpm and 11000 rpm, start the C axis (M20), counter-clockwise (G27), start the cutting element 20 counterclockwise (M14) (the meaning of block N5 will be further discussed further under below).
ii. Set axis position and feed rates: The values of the X axis offset, Z axis position, and P axis position, and the feed rates for these axes are set or modified in response to data blocks having codes of the following form:
The G91 code means that the axis value will be incremental - that is, added to or subtracted from the previous value.
The G90 code always means that the axis value will be absolute, i.e. the axis value will replace the previous value.
The X axis offset is specified by U, and must be accompanied by the X axis feed rate, specified by F. The general form of this type data block is then either N[4] G90[+04] F[4] or N[4] G91 U[+04] F[4]
EXAMPLE:
N7 G90 U-20 F3 means set the new X axis offset value to -.0020 inches. Set the feed rate to .0003 inches per minute.
N8 G91 U-20 F3 - means set the new X axis offset value to the previous value minus .0020 inches. Set the X axis feed rate to .0003 inches per minute.
The Z axis position is specified by Z, and must be accompanied by the Z axis feed rate, specified by F. The general form of this block is then N[4] G90 Z[23] F[3] or N[4] G91 Z[23] F[3]
EXAMPLE:
N6 G90 Z625 F150 - means move the Z axis to position 1625 at a rate of 150 inches per minute N7 G91 Z625 F150 - means move the Z axis .625 inches from the current position at a rate of 150 inches per minute.
The P axis position is specified by P. The P axis always moves at a maximum rate which is not controlled by the Part Program. The position is always incremental and direction dependent on sign. A rapid traverse motion to and from the specified position is commanded by the M code. M 22 means move the P axis to the commanded position from the previous position. M23 means move the P axis from the previous position to the home position. The form of the M22 command is: N[4] G91 P[+14] M[2]
EXAMPLE:
N12 G91 P10 M22 - means move the P axis +.0010 inches from the current position.
It will be understood that the P axis position is direction-dependent on sign. Thus, the 0.0010 is from the last P position. The M23 command does not have the form of the M22 command and may be considered a miscellaneous function. M23 means retract to home. The Z axis and P axis is always moving in synchronization with the X axis. Thus, the X axis command U specifies a new offset value while the Z and P commands specify actual desired position.
iii. Oscillate the Z axis: There are two types of Z axis oscillation: cylinder drive and ball screw drive. The forms of the command to perform this are: N[4] G25 Z[23] R[23] F[3] - cylinder drive N[4] G26 Z[23] R[23] F[3] - ball screw drive
EXAMPLE:
N7 G25 Z685 R1185 F40 - means to oscillate the Z axis between absolute positions .685 inches and 1.185 inches at a rate of 40 inches per minute using the cylinder drive.
In the context of program execution, if the Z current position does not match the Z position specified in the data block, an implied Z move will take place at the previous non-zero Z feed rate until the specified position is reached. At that time the Z oscillation will start at the specified rate. Thus,
Ng G90 Z625 F150 will move the Z axis to .625 at a rate of 150 inches per minute
N7 G25 Z685 R1185 F40 will first move the Z axis to .685 at a rate of 150 inches per minute, then oscillate the Z axis between .685 and 1.185 at a rate of 40 inches per minute.
iv. Dwell: This command allows the system to dwell (operate in the same manner as just before the dwell) for some number of revolutions of the C axis. The form is:
where the number of revolutions is given as the argument of Q.
EXAMPLE:
N9 G04 Q8 means dwell for 8 revolutions
v. Miscellaneous Functions: One Step action blocks specified by the form M[2]
Such blocks are scattered throughout the Body, usually contained as part of the other blocks set forth above. The miscellaneous functions may be combined with the other data blocks as desired.
EXAMPLE:
N5 G27 U-280 FOE150 S110 M20 M14 - means set offset the X axis to the left by U diameter, the C axis velocity to 150 feet per minute CCW, the spindle speed to 11,000 rpm, start the spindle CCW, start the C axis.
The Part Description follows the Body and starts with block number 100 and can go as high as block number 9999. The Part Description includes the data which describes the desired workpiece contour (which data is subsequently transformed to signals for controlling the X and C axes movement). The data blocks may have one of the following four formats:
i. N100 G27 X [+ 15] or N100 G28 X[+ 15] These forms are for the block number 100 on y, i.e. at the beginning of a Subroutine. The G27 or G28 specifies direction of rotation and whether the part-to-be-machined is an external or internal part. The X portion specifies the initial point on the workpiece contour by identifying the X position at .theta. = zero with the constraint that the pressure angle is zero at .theta. = 0.
Thus,
N100 G27 X515000 - means counter clockwise rotation and internal part with R=5.15000 inches (where R is the distance between the C axis and the initial contour point, as defined in FIG. 2)
ii. N[4] G90 Z[+15] C[+32] This form gives a range for .theta. over which the pressure angle, .alpha., is zero and the radius, R, is constant at the value given in X. The range of .theta. is specified by C. It is assumed that at N101, the initial values of .theta. and .alpha. are all zero. Thus,
N101 G90 X515000 C200 means that there is a range of 20.0.degree. over which R = 5.15000 inches.
iii. N[4] G91 X[+15] C[+32] D[+24] This form gives increments for R and .theta., and specifies an increment for .alpha., the pressure angle. .DELTA.R is specified by X, .DELTA..theta. by C, and .DELTA..alpha. by D. Thus, following the example above with
N102 G91 X200 C10 D1000 - means set .DELTA.R = .00200, .DELTA..theta. = .1.degree., and .DELTA..alpha. = .1.degree. so the result would be a point at (5.15200,20.1) with a pressure angle of .1.degree.
iv. N[4] G29 N[4] N[4] This form repeats the statements between the second N[4] value and the third N[4] value inclusive. Thus,
N326 G29 N114 N125 - means to repeat steps 114 through 125. Note that the second and third values of N must be less than the first or a logical inconsistency occurs.
The data blocks are specified in ascending sequence of absolute values of .theta.. In a G27 program, the data blocks use positive angles for .theta. measured in a counterclockwise direction; and in a G28 program, the data blocks use positive angles for .theta. measured in a clockwise direction.
An exemplary Part Program is shown in Table VIII. Using this Part Program, the hereindescribed embodiment of the present invention will generate a contour connecting 720 spatial points on a workpiece, a 0.5.degree. angular separation of the adjacent radii connecting the various points. The resultant contour is a 4-inch circle having 0.5 inch eccentricity to the center of rotation (i.e., the C axis).