Background of the Invention
The present invention relates to a numerical control device for processing machines, such as machine tools, for example, which control device includes a computer, a memory unit and an input unit for programming machine functions.
In conventional numerically controlled machine tools it is common practice according to Deutche Normen DIN 66025 to code additional machine functions, such as "Coolant on/off", or "Spindle Turning Direction left/right" by means of the address letter M and a two-digit number. Feed rates are generally coded by means of the address letter F followed by a two-digit number. Frequently, feed rates are encoded as the address letter F and the feed rate in millimeters per minute. When such control codes are used the operator may often be called on to retain a very large number of code symbols in his memory, which may lead to operational errors.
In West German unexamined patent specification OS. No. 1,928,996 a numerical control for machine tools is described in which such operating information is entered by means of coded keys of a hand input device which simultaneously stores the selected code on punched strips. After the processing of a first workpiece, the punched strip is then fed into a reading or control apparatus in order to control the machine tool and produce further workpieces of the same type. In this device the operator must have programming experience in order to properly use the input device.
Summary of the Invention
The present invention is directed to an improved input device for a numerically controlled processing machine that does not burden the operator with numerical codes in the input of additional machine functions.
According to this invention an input unit is provided which includes a plurality of manually controlled digital and analog inputs such as switching elements and adjusting elements. The input unit also has a plurality of outputs which are connected to control various machine functions. A computer such as a microprocessor and associated memory is coupled to the input unit such that the computer can read data placed on the inputs and can control the various machine functions by placing data on appropriate outputs. This input unit is provided with at least two modes of operation. In the first mode (a program entry mode which is generally used in processing the first workpiece of a series) the digital and analog inputs act to control the associated machine functions. Simultaneously, the computer stores the states of these inputs in computer memory. In the second mode (a program run mode which is generally used in processing further similar workpieces) the computer controls the associated machine functions in accordance with the stored data in computer memory, independently of the state of the input switching elements and adjusting elements.
One important advantage of the numerical control of this invention is that in the processing of a first workpiece the operator can switch in additional, auxiliary, machine functions such as, for example, "Coolant on/off" or "Spindle Turning Direction left/right" at the appropriate time in the processing by means of switching elements and adjusting elements which must be present in any case on the machine tool, and can easily be mounted on the input unit. The operator is not required to know or remember the specific codings for the individual additional functions, so that the machine tool can be readily operated by an operator who lacks programming experience. The computer automatically stores the positions of the switching and adjusting elements in computer memory so that in later runs additional machine functions are activated at the appropriate processing times by the computer which uses the stored input information instead of the positions of the switching and adjusting elements. At any time, however, despite the stored program for the additional functions it is possible to revert to manual operation of the switching and adjusting elements, so that both automatic and manual control of the additional functions is available at will.
The invention, together with further objects and attendant advantages, will be best understood by reference to the following detailed description taken in connection with the appended drawings.
Brief Description of the Drawings
FIG. 1 shows a portion of a processing machine including a preferred embodiment of the input unit of the invention.
FIG. 2 shows a block diagram of the electrical circuit for the input unit of FIG. 1.
Detailed Description of a Preferred Embodiment
Turning now to the drawings, FIG. 1 shows a processing machine such as a machine tool including a bed 1 and a slide piece 2 movable relative to the bed 1 in the direction shown by the arrow (the X axis). The relative movements of the slide piece 2 with respect to the bed 1 are measured by a length measuring device in which a scale (not shown) mounted on a scale carrier 3 is scanned by a scanning unit 4 in a known manner. The scanning unit 4 is connected to the slide piece 2 by means of an entrainment member 5 which is secured to the slide piece 2 by means of a screw connection 6.
For numerical control of the processing machine there is provided a numerical control apparatus 7, such as is described, for example, in the prospectus entitled "Heidenhain, Position and Linear Path Control (TNC 121, 67 d 5 4/78 1 E)." This control apparatus 7 includes a manual data input panel 8 for the input of path information for the X and Y axes, a memory unit 9 (FIG. 2) for storing this path information, and a computer 10 (FIG. 2) for calculating the sum or difference of one or more path information inputs. Path information is input by means of an input keyboard 11 and axis selector keys 12. A display 13 for the input values is also provided on the hand data input panel 8, along with an actual or measured value display 14 for the X and Y axes and a mode control switch 15 having the switching positions "Manual", "Program Entry", "Program Run" and "Off".
Several additional machine functions, such as, for example, "Coolant on/off", "Spindle turning direction left/right", and "Feed Rate for the X and Y Axes" are specified by means of conventional switching elements 16,16',16" in the form of on/off switches and adjusting elements 17,17',17" in the form of potentiometers. These switching and adjusting elements are mounted on a switchboard 18 of an input unit 19, which together with the numerical control apparatus 7 is secured by means of a swingable arm 20 to the bed 1 of the processing machine.
As shown in FIG. 2, the switching elements 16,16',16" are on/off switches which are connected to the inputs 21,21',21", respectively, of an input/output (I/O) unit 22, the corresponding outputs 22,23',23" of this I/O unit 22 are connected to corresponding operating elements 24,24',24" for the appropriate machine functions. The adjusting elements 17,17',17" are potentiometers which are connected by means of analog-to-digital converters 25,25',25" to inputs 26,26',26", respectively, of the I/O unit 22. Corresponding outputs 27,27',27" of this I/O unit 22 are connected by means of digital-to-analog converters 28,28'28" to corresponding operating elements 29,29',29" for the appropriate machine functions.
The inputs 21,21',21", 26,26',26" of the I/O unit 22 are connected by means of an input port 30 and an input bus 31 with the computer 10, which is in turn coupled to computer memory 9. The computer 10 is also connected by means of an output bus 32 and an output port 33 with the corresponding outputs 23,23',23", 27,27',27". As described in connection with FIG. 1, switching element 16' designates "Coolant on/off", switching element 16' designates "Spindle turning direction left", switching element 16" designates "Spindle turning direction right", adjusting element 17 designates "Spindle rotational rate", adjusting element 17' designates "Feed rate for the X-axis", and adjusting element 17" designates "Feed rate for the Y-axis".
For processing a first workpiece, the operator enters the path information by means of the hand data input panel 8 of the numerical control apparatus 7 into the memory 9, possibly with sum or difference formation by the computer 10. During the execution of this positioning program (mode switch 15 positioned to "Program Entry") the operator manually switches any additional machine functions required at the respective processing time by means of the switching elements 16,16',16" and the adjusting elements 17,17',17". These switching and adjusting elements act upon the appropriate operating elements 24,24',24", 29,29',29" and the states of these switching and adjusting elements are simultaneously stored in the memory unit 9. After the first workpiece has been processed, additional workpieces may be automatically processed (mode switch 15 positioned to "Program Run") and the operating elements 24,24',24", 29,29', 29" are actuated at the corresponding points in the processing by means of the computer 10 which uses the stored input information independently of the current positions of the switching elements 16,16',16" and adjusting elements 17,17',17". At any time, however, despite the stored program for the additional functions, it is possible to revert from automatic operation back to manual operation by positioning the mode switch 15 in switching position "Manual", whereupon the operating elements 24,24',24", 29,29',29" are controlled exclusively by the positions of the switching elements 16,16',16" and adjusting elements 17,17',17".
The analog-to-digital converters 25,25',25" and digital-to-analog converters 28,28',28" needed for the adjusting elements 17,17',17" preferably are characterized by a nonlinear characteristic curve, in order that maximum dynamic range may be obtained with as few bits as possible (in the preferred embodiment with six bits). In this way the selectable range of spindle turning rate and feed rate may be maximized. When linear analog-to-digital converters 25,25',25" and digital-to-analog converters 28,28',28" are used, a nonlinear characteristic curve can be generated, in a manner not represented, by interposing correspondingly programmed Programmable Read Only Memories.
One important advantage of this invention is that the operator of this numerically controlled processing machine does not have to have any kind of experience in programming in order to be able to input additional machine functions. Furthermore, either automatic or manual control of the additional machine functions can be easily and simply selected.
In other embodiments of the invention the adjusting elements 17,17',17" can be construed as step switches and the input port 30 and the output port 33 each incorporate at least one microprocessor. In addition, feed rates for the X and Y axes can be adjusted in a manner not shown by means of a single adjusting element in conjunction with the axis preselection keys 12 for the X and Y axes.
Of course, it should be understood that various changes and modifications to the preferred embodiment described herein will be apparent to those skilled in the art. For example, the invention can be used with other processing machines which have a greater or lesser number of controllable axes. Such changes and modifications can be made without departing from the spirit and scope of the present invention, and without diminishing its attendant advantages. It is, therefore, intended that such changes and modifications be covered by the following claims.