ACCELERATING/DECELERATING SYSTEM FOR NUMERICALLY CONTROLLED APPARATUS

Abstract: In a numerical controller of the type in which accelera­ tion or deceleration processing is performed by an accelera­ tion/deceleration circuit (7) prior to an interpolation by an automatic mode distributor (1), the present invention is intended to ultimately carry out a smooth acceleration or deceleration when a distribution pulse from a manual mode distributor (2) is superimposed by an adder 3 on a distribu­ tion pulse from an automatic mode distributor (1). To this end, the command pulse to be superimposed is also subjected to independent acceleration or deceleration pro­ cessing by an acceleration/deceleration circuit (10).

Description: The present invention relates to an acceleration/deceleration system for a numerical controller. A jog feed, a rapid traverse, a manual handle feed, a step feed and like manual operations are known as means for an operator to move a machine tool to a desired position as by a push-button manipulation during automatic running of a numerical controller which controls movements of the machine tool in the X-, Y- and Z-axis directions through commands from a tape. Also when the machine tool is driven in the same axis superimposing two or more kinds of pulse distribution commands as in the case of effecting such a manual intervention in the automatic running of the numerical controller, it is necessary that the commands be subjected to acceleration or deceleration processing prior to their application to a servo control circuit. To meet this requirement, it is general practice in the prior art as shown in Fig.1 to employ an arrangement in which pulses distributed separately by automatic and manual mode distributors 1 and 2 are added together by an adder 3 and the adder output is subjected to exponential type acceleration or deceleration processing by an acceleration/deceleration circuit 4, thereafter being provided to a servo control circuit 5 to drive, for example, an X-axis motor 6, as shown in Figs. 1 and 2. Figs. 2A, 2B, and the broken line and the full line in Fig. 2C respectively show time vs. pulse frequency characteristics of the outputs from the automatic mode distributor 1, the manual mode distributor 2, the adder 3 and the acceleration/deceleration circuit 4. In recent years, however, there has come into general use a system which effects the acceleration or deceleration along a commanded path in the hope of moving the tool with a minimal deviation therefrom. With this system, a tangential-direction velocity is subjected to acceleration or deceleration processing by an acceleration/deceleration circuit 7 prior to a linear or circular-arc interpolation by the automatic mode distributor 1, as depicted in Figs. 3 and 4. Consequently, in the case of a manual intervention, the distribution pulses from the manual mode and automatic mode distributors 2 and 1 are added together by the adder 3, as shown in Fig. 3, and the superimposed distribution pulses can no more be subjected to the acceleration or deceleration processing. The reason for this is that if the output pulses from the automatic mode distributor, already subjected to acceleration or deceleration processing, were further subjected to acceleration or deceleration processing, then the path of the tool would deviate from a commanded one. Therefore, assuming that the time vs. pulse frequency characteristics of the outputs from the acceleration/deceleration circuit 7, the automatic mode distributor 1 and the manual mode distributor 2 are such as shown in Figs. 4A to 4C, respectively, the characteristic of the input pulse to the servo control circuit 5 will be such as depicted in Fig. 4D, making it impossible to achieve a smooth acceleration or deceleration. According to the present invention there is provided an acceleration/deceleration system for a numerical controller, comprising an acceleration/deceleration circuit for subjecting a tangential component command velocity to acceleration/deceleration processing, an automatic mode distributor following the acceleration/deceleration circuit for generating by interpolation automatic command pulses in an automatic running mode of the numerical controller, a manual mode distributor for generating manual command pulses, in dependence upon a manual operator, which are to be superimposed on the automatic command pulses by an adder which is fed by the outputs of the automatic and manual mode distributors, and a servo control circuit which is to be controlled in dependence upon the pulses output by the adder, characterised in that an acceleration/deceleration circuit is coupled between the manual mode distributor and the adder for subjecting the command pulses from the manual mode distributor to acceleration/deceleration processing, a clamp circuit is coupled between the adder and the servo control circuit in order to prevent the combined frequency of the automatic and manual control pulses from exceeding a predetermined value, and the clamp circuit is coupled to the acceleration/ deceleration circuit for the manual pulses in such manner that excess pulses blocked by the clamp circuit are fed back to this acceleration/deceleration circuit so that all the pulses provided from the manual mode distributor are ultimately superimposed by the adder on the pulses from the automatic mode distributor. An embodiment of the present invention may permit a smooth acceleration or deceleration even if an automatic command pulse for a certain axis, subjected to acceleration or deceleration processing prior to an interpolation, is superimposed on a distribution pulse for another operating mode along the same axis. For a better understanding of the present invention and to show how it may be put into effect reference will now be made, by way of example, to the accompanying drawings in which: Figs. 1 to 4 are diagrams for explaining conventional systems; Fig. 5 is a diagram for explaining an embodiment of the present invention; Figs. 6 and 7 are diagrams for explaining the operation of the embodiment shown in Fig. 5; Fig. 8 is a block diagram illustrating a numerical controller incorporating the embodiment of Fig. 5; and Fig. 9 is an example of an operation flowchart of an embodiment of the present invention. Fig. 5 is a diagram showing an embodiment of the present invention. The parts corresponding to those in Fig. 3 are identified by the same reference numerals. In addition, reference numeral 10 indicates an acceleration/deceleration circuit and 11 a clamp circuit. The present invention differs from the prior art example of Fig. 3 in that when the distribution pulse from the manual mode distributor 2 is superimposed on the command pulse subjected to the acceleration or deceleration processing by the acceleration/deceleration circuit prior to an interpolation, the command pulse from the manual mode distributor is also subjected to acceleration or deceleration processing by the acceleration/deceleration circuit 10 and then added by the adder 3 to the distribution pulse from the automatic mode distributor 1. With such an arrangement, even if the command pulse subjected to acceleration or deceleration processing prior to an interpolation is added with another distribution pulse, a smooth acceleration or deceleration can be achieved. Figs. 6A, 6B, 6C, 6D and 6E show time vs. pulse frequency characteristics of the outputs from the acceleration/deceleration circuit 7, the automatic mode distributor 1, the manual mode distributor 2, the acceleration/deceleration circuit 10 and the input to the servo control circuit 5, respectively. As will be seen from Fig. 6, a smooth acceleration or deceleration can be attained at the input of the servo control circuit 5. The clamp circuit 11 in Fig. 5 is to clamp the output of the adder 3 to an allowed value of the pulse frequency when the adder output exceeds the allowed limit because of the superimposition of the distribution pulse from the manual mode distributor 2 on the distribution pulse from the automatic mode distributor, and the clamp circuit feeds back to the input side of the acceleration/deceleration circuit 10 the adder output exceeding the allowed limit. For example, if a distribution pulse of a high frequency, as shown in Fig. 7C, is created by the manual mode distributor 2, then the acceleration/deceleration circuit 11 will produce such an output as depicted in Fig. 7D. If the clamp circuit 11 is not provided, then an output shown in Fig. 7D is superimposed on the output of the automatic mode distributor 1, shown in Fig. 7B, supplied with the acceleration/deceleration circuit output of Fig. 7A, and the resulting distribution pulse of such a characteristic as indicated by the broken line in Fig. 7E is applied to the servo control circuit 5. As a result of this, the servo control circuit 5 and the X-axis motor 6 are driven by a signal exceeding the allowed limit indicated by the one-dot chain line in Fig. 7E. With the provision of the clamp circuit 11, since the maximum pulse frequency is clamped to the allowed value, as indicated by the full line in Fig. 7E, a bad influence on the X-axis motor is eliminated, and since the distribution pulse exceeding the allowed value is returned to the acceleration/deceleration circuit 10, all the distribution pulses provided from the manual mode distributor 2 are ultimately superimposed on the distribution pulses from the automatic mode distributor 1. In Fig. 5 the automatic mode distributor 1 is shown to produce an output for the X-axis alone, but in practice it provides distribution pulses for another axis and in order to effect the manual operation for this axis, the manual mode distributor 2, the acceleration/deceleration circuit 10, the adder 3 and the clamp circuit 11 are provided for that axis also. Fig. 8 illustrates in block form the principal part of a numerical controller incorporating an embodiment of the present invention. Reference numeral 20 indicates a microprocessor, 21 its bus, 22 a ROM for storing a control program or the like, 23 a RAM, 24 a data output device for sending a signal to a machine tool, 25 a data input device for receiving a signal from the machine tool, 26 a tape reader, 27 a command tape, 28 a keyboard, 29 some of switches mounted on a control panel, 29a a -X jog feed button, 29b a +X jog feed button, 29c an override dial for determining the jog feed rate and 29d a dial for overriding a commanded velocity. In the case of a jog feed in the X-axis direction, it is necessary only to set the jog feed rate by the dial 29c and push either one of the buttons 29a and 29b according to the direction of the jog feed. Only while the button is pressed, the jog feed takes place. Reference numerals 30 and 31 identify X- and Y-axis control circuits, 32 and 33 servo control circuits, 34 and 35 X- and Y-axis motors and 36 and 37 position sensors. An NC command program is read out by the tape reader 26 from the command tape 27 and stored in the RAM 23. Moreover, the contents of the NC command program are interpreted by the microprocessor 20 and required running information is prepared. A parameter for the jog feed is entered by the NC command program or from the keyboard 28 and stored in a parameter setting area of the RAM 23. Fig. 9 is an example of a flowchart for implementing the acceleration/deceleration system of the present invention, showing acceleration/deceleration processing in the X-axis direction alone. Reference character A indicates processing concerning the automatic mode (running based on a command from the tape or memory) and B processing concerning the manual mode. The microprocessor 20 executes steps S1 to S10 for each predetermined sampling time. That is, a velocity calculation A expressed by the following expression is conducted on the basis of a velocity command Fi as by a feed rate F of the command tape 27 and a set value OVRa of the override dial 29d, calculating the current velocity δFa (S1). δFa = Fi X OVRa (1) Next, the tangential component of the current velocity is subjected to linear or exponential type acceleration or deceleration processing A to compute an accelerated or decelerated command velocity δFa' (S2). Then a pulse distributing calculation A for a linear or circular-arc movement is conducted based on the accelerated or decelerated command velocity δFa' and a command on the amount of movement, obtaining an interpolation pulse Pa in the X-axis direction in the automatic mode (S3). Next, a velocity calculation B expressed by the following expression is conducted on the basis of a command velocity Fm for the X-axis jog feed, given by a parameter, and a set value OVRb of the override dial 29c, computing the current velocity δFb of the X-axis jog feed (S4). δFb = Fm x OVRb (2) Next, a pulse distributing calculation B for the current velocity δFb is performed (S5), and the tangential component of the resulting interpolation pulse Pb is subjected to linear or exponential type acceleration or deceleration processing B, obtaining an interpolation pulse Pb accelerated or decelerated by the manual mode (S6). Next, the interpolation pulse Pa by the automatic mode and the interpolation pulse Pb' by the manual mode are added together to obtain a composite distribution pulse P₀ (S7). Next, it is checked whether the sum P₀ exceeds an allowed maximum value MAX, and if not, the sum P₀ is provided. When the sum is in excess of the allowed limit, the maximum value MAX is provided and, at the same time, the exceeding signal is added to a so-called error in the acceleration/deceleration processing of step S6 (S8). Step S9 is to apply the output of step S8 to the X-axis control circuit 30. As described above, according to the present invention, when an automatic mode distribution pulse for a certain axis subjected to acceleration or deceleration processing prior to an interpolation is superimposed on a manual mode distribution pulse for that same axis, the latter is also subjected to independent acceleration or deceleration processing and then superimposed, so that a smooth acceleration or deceleration can be achieved. Furthermore, since the distribution pulses are separately subjected to the acceleration or deceleration processing, an acceleration or deceleration time constant and a deceleration curve of an optimum pattern can also be obtained for each of them. Besides, since clamp means is provided by which an output of a pulse frequency exceeding an allowed value, resulting from superimposition of a distribution pulse from a manual mode distributor on a distribution pulse from an automatic mode distributor, is clamped to the allowed value and the signal exceeding the allowed value is fed back to the side on which the distribution pulse is subjected to acceleration or deceleration processing, it is possible to prevent that a command exceeding an allowed maximum value is provided to the servo control circuit and it is also possible to provide that the distribution pulses from the manual mode distributor are all ultimately applied to the servo control circuit.

Claims: An acceleration/deceleration system for a numerical controller, comprising an acceleration/deceleration circuit (7) for subjecting a tangential component command velocity to acceleration/deceleration processing, an automatic mode distributor (1) following the acceleration/deceleration circuit (7) for generating by interpolation automatic command pulses in an automatic running mode of the numerical controller, a manual mode distributor (2) for generating manual command pulses, in dependence upon a manual operator, which are to be superimposed on the automatic command pulses by an adder (3) which is fed by the outputs of the automatic and manual mode distributors (1,2), and a servo control circuit (5) which is to be controlled in dependence upon the pulses output by the adder (3), characterised in that an acceleration/deceleration circuit (10) is coupled between the manual mode distributor (2) and the adder (3) for subjecting the command pulses from the manual mode distributor (2) to acceleration/deceleration processing, a clamp circuit (11) is coupled between the adder (3) and the servo control circuit (5) in order to prevent the combined frequency of the automatic and manual control pulses from exceeding a predetermined value, and the clamp circuit (11) is coupled to the acceleration/deceleration circuit (10) for the manual pulses in such manner that excess pulses blocked by the clamp circuit (11) are fed back to this acceleration/deceleration circuit (10) so that all the pulses provided from the manual mode distributor (2) are ultimately superimposed by the adder (3) on the pulses from the automatic mode distributor (1).

Inventors: FUJIBAYASHI, KENTARO, KAWAMURA, HIDEAKI, MIYATA, MITSUTO
Applicants: FANUC LTD.
Application year: 1985
Main classification: G05B19
IPC codes: G05B19