Information
-
Patent Grant
-
4549271
-
Patent Number
4,549,271
-
Date Filed
Thursday, January 27, 198341 years ago
-
Date Issued
Tuesday, October 22, 198539 years ago
-
Inventors
-
Original Assignees
-
Examiners
- Smith; Jerry
- MacDonald; Allen
Agents
-
CPC
-
US Classifications
Field of Search
US
- 364 167-171
- 364 174
- 364 474
- 364 513
- 364 561
- 364 562
- 318 601
- 318 602
- 318 603
- 033 125 L
- 033 125 M
- 033 142
- 033 1 M
- 377 17
- 377 24
-
International Classifications
-
Abstract
Disclosed is a measurement method performed by a numerical control device measurement apparatus having a device for computing and storing the difference between a number of feedback pulses, each of which is generated whenever a movable element moves by a predetermined amount, and a number of command pulses (P.sub.s) generated by a pulse distributor, a motor being controlled in such a manner that said difference approaches zero. Specifically, the measurement method includes counting, by the storage and computing means sensor pulses (MP) generated by a sensor, reading the counted value in the storage and computing device and applying the same to the pulse distributor as a command, computing and storing, by the storage and computing device, the difference between the number of sensor pulses (MP) and the number of distributed pulses (P.sub.s) generated by the pulse distributor, reading the content of the storage and computing device each time distributed pulses of a number equivalent to the counted value are generated and applying the read value to the pulse distributor as a command, and measuring the total number of sensor pulses by computing the total sum of the counted values read from the storage and computing device.
Description
BACKGROUND OF THE INVENTION
This invention relates to a measurement method performed by a numerical control device and, more particularly, to a measurement method through which, e.g., the amount of travel of an object can be measured by finding the total number of measurement pulses generated by a sensor.
A numerical control device generates distributed pulses (command pulses) by performing a pulse distribution operation based on the magnitude of a move command input from an NC tape or the like, and drives a motor on the basis of these pulses. The motor is controlled in such a manner that the difference between the number of distributed pulses and a number of feedback pulses, each of which is generated whenever a movable element such as the motor or a table rotates or travels by a predetermined amount, approaches zero, whereby positioning control or continuous cutting control is performed.
FIG. 1 is a block diagram of such a numerical control system. In FIG. 1, numeral 101 denotes a paper tape in which NC command data is punched. Numeral 102 denotes a control unit which causes a tape reader (not shown) to read in the NC data from the paper tape 101, and which decodes the read NC data, delivering, e.g., M, S and T function commands to the machine side through a heavy current switchboard and a move command X.sub.c to a pulse distributor, which is in a succeeding stage. Numeral 103 denotes the pulse distributor (PD), which executes well-known pulse distribution computations on the basis of the move command X.sub.c, and generates distributed pulses P.sub.s at a frequency corresponding to a commanded speed. Numeral 104 designates a known accelerator/decelerator circuit (ACC/DEC) which generates a train of pulses P.sub.i by rectilinearly accelerating the pulse rate of the train of distributed pulses P.sub.s at the beginning of a pulse train and by rectilinearly decelerating the same at the end thereof. Numeral 105 indicates a D.C. motor (M) by which a table TB or tool is driven. Numeral 106 denotes a pulse coder (PC) which generates one feedback pulse FP each time the DC motor 105 rotates by a predetermined amount. Numeral 107 denotes an error calculating and storing unit (ERR) which is constructed of, for example, a reversible counter, and which stores the difference E.sub.r between the number of the input pulses P.sub.i received from the accelerator/decelerator circuit 104 and that of the feedback pulses FP. This error calculating and storing unit may be constructed, as shown in the Figure, of an arithmetic circuit 107a for calculating the difference E.sub.r between the numbers of the pulses P.sub.i and FP, and an error register (REG) 107b for storing the error E.sub.r. More specifically, assuming that the DC motor 105 is rotating in the + direction, the error calculating and storing unit 107 operates in such a manner that each time the input pulse P.sub.i is generated, the content is counted up, while each time the feedback pulse FP is generated, the content is counted down, and that the difference E.sub.r between the number of input pulses and the feedback pulses is stored in the error register 107b. Numeral 108 denotes a digital-to-analog (DA) converter for generating an analog voltage proportional to the content of the error register 107b, and numeral 109 a speed control circuit (SC).
When the control unit 102 produces the move comman X.sub.c, the pulse distributor 103 executes the pulse distribution computation and provides the distributed pulses P.sub.s. Upon receiving the pulses P.sub.s, the accelerator/decelerator circuit 104 accelerates and decelerates the pulse rate thereof and applies the train of command pulses P.sub.i to the error calculating and storing circuit 107. Thus, the content of the error register 107b becomes non-zero, so that the DA converter 108 provides a voltage and the motor 105 is driven by the speed control circuit 109 so as to move the table TB. When the motor 105 has rotated by a predetermined amount, the feedback pulse FP is generated by the pulse coder 106 and is applied to the error calculating and storing unit 107. The difference Er between the number of commanded pulses Pi and the number of feedback pulses FP is stored in the error register 107b. Thenceforth, the table TB is servo-controlled so as to make the difference Er approach zero, whereby the table TB is moved toward a target position or along a commanded path and then brought to a stop.
There are instances where a user may wish to employ the above-described numerical control device as a measuring device. For example, a user may wish to measure the travelling distance of an object, length, bore depth, or the number of pulses generated by a sensing element. Heretofore, however, numerical control devices have not been applied to the measurement of physical quantities.
Accordingly, an object of the present invention is to provide a novel measurement method through which a numerical control device having the construction shown in FIG. 1 can be utilized as a measuring device.
SUMMARY OF THE INVENTION
Disclosed is a measurement method performed by a numerical control device having a device for computing and storing the difference between a number of feedback pulses each of which is generated whenever a movable element moves by a predetermined amount, and a number of command pulses generated by a pulse distributor, a motor being controlled in such a manner that said difference approaches zero. Specifically, the measurement method includes the steps of counting sensor pulses generated by a sensor, applying the counted value to a pulse distributor as a command, computing and storing the difference between a number of distributed pulses generated by the pulse distributor and the number of sensor pulses, and reading the difference between the number of distributed pulses and the number of sensor pulses each time the commanded number of distributed pulses is generated and reapplying the difference to the pulse distributor as a command, the total number of sensor pulses being measured by repeating the above-mentioned steps and computing the total sum of the read differences.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of a numerical control system; and
FIGS. 2 and 3 are block diagrams of embodiments of the present invention.
DESCRIPTION OF THE PREFERRED EMBODIMENTS
Embodiments of the present invention will now be described in detail with reference to the drawings.
FIG. 2 is a block diagram for practicing a measurement method in accordance with the present invention, in which portions similar to those shown in FIG. 1 are designated by like reference characters and are not described in detail again. In FIG. 2, reference numeral 201 denotes a measuring device or sensor which, it will be assumed, generates one measurement pulse MP each time an object (not shown) moves by a predetermined amount or unit distance. A case where the travelling distance of the object is measured will be described next.
When the object moves, the sensor 201 generates one measurement pulse MP each time the object travels the predetermined distance. The content of the error register 107b is updated by being decremented by -1 each time the measurement pulse MP is generated. Accordingly, if we assume that the content of the error register 107b initially is zero, then its content will be decremented to -m.sub.1 by the generation of m.sub.1 -number of measurement pulses. The -m.sub.1 content is read by the control unit 102, which then performs the operation:
M+m.sub.1 .fwdarw.M (1)
where the initial value of M is zero. In addition, the content of error register 107b is applied to the pulse distributor 103 after its sign is changed. When m.sub.1 is commanded, the pulse distributor 103 immediately performs a pulse distribution operation to produce the distributed pulses P.sub.s. The distributed pulses P.sub.s are converted into the command pulses Pi via the accelerator/decelerator circuit 104. These pulses are applied to the error computing and storing unit 107, the content of the error register 107b being updated by one in the positive direction each time a pulse P.sub.i arrives. The error computing and storing unit 107 concurrently receives the measurement pulses MP. These pulses update the error register 107b by one in the negative direction each time one of them arrives. Accordingly, if we assume that the time at which the content -m.sub.1 is read out of error register 107b is t.sub.1, that the time at which the m.sub.1 -number of distributed pulses P.sub.s is generated is t.sub.2, and that m.sub.2 -number of measurement pulses MP are generated between times t.sub.1 and t.sub.2, then the content of error register 107b at time t.sub.2 will be -m.sub.2.
The pulse distributor 103, upon producing the number of distributed pulses P.sub.s commensurate with the magnitude of the command, issues a signal DEN indicative of the end of the pulse distribution operation. The control unit 102 responds to the pulse distribution end signal DEN by once again reading the content (-m.sub.2) of the error register 107b, whereupon the control unit performs the addition:
M+m.sub.2 .fwdarw.M (1')
In addition, m.sub.2 is applied to the pulse distributor 103. Owing to the operation (1') above, M becomes (m.sub.1 +m.sub.2). Thenceforth, each time the pulse distribution end signal DEN is generated, the positional control unit 102 reads the content -m.sub.i (i=1,2,3...) of the error register 107b, the following addition is performed:
M+m.sub.i .fwdarw.M (=.SIGMA.m.sub.i) (1")
and the numerical value M.sub.i is applied to the pulse distributor 103. When the measurement pulses MP stop arriving from the measuring device 201, that is, when the object reaches the target position and the content of the error register 107b becomes zero, M will be equal to the total number of measurement pulses MP.
The foregoing is summarized by the following table:
______________________________________Time t1 t2 t3 -- ti -- tj tj + 1______________________________________Number of m.sub.1 m.sub.2 m.sub.3 . . m.sub.i . . m.sub.j 0pulses MPgeneratedNumber of 0 m.sub.1 m.sub.2 . . m.sub.i+1 . . m.sub.j+1 m.sub.jpulses PsgeneratedContent of -m.sub.1 -m.sub.2 -m.sub.3 . . -m.sub.i . . -m.sub.j 0error register______________________________________
It should be noted that t1 is the time at which the content of error register 107b is initially read, ti (i=2,3...) is the time at which the pulse distribution end signal is generated, and m.sub.i represents the number of measurement pulses produced between time ti-1 and time ti. It will be appreciated from the table that the total number M of measurement pulses MP may be expressed by the following: ##EQU1## which is precisely in agreement with the sum total exhibited by the error register 107b. It is apparent that the total sum of the commanded values applied to the pulse distributor 103 may be taken as M.
FIG. 3 is a block diagram of the present invention for a case where changeover means such as a switch is provided so that the invention may be employed as either an NC device or measuring device. Portions similar to those shown in FIGS. 1 and 2 are designated by like reference characters. In FIG. 3, numerals 301, 302 denote interlocked changeover switches, the manipulation whereof permits the arrangement to be used selectively as an NC device or measuring device.
It should be noted that the data in the error register 107b is read into the control unit 102 in response to a so-called user macro instruction.
In accordance with the present invention as described above, a numerical control device can be used as a measuring device for measuring travelling distance or the like, without modifying the hardware of the device. By providing switching means such as a switch or the like, the arrangement of the invention can be used as a numerical control device or as a measuring device. Further, according to the present invention, by employing a user macro instruction in the arrangement of the NC device, the travelling distance of a movable element such as a motor or table can be sensed even when the movable element is moved without a command from the NC program. Thus the present position of a machine and the content of a present position register can be made to agree (referred to as follow-up).
The present invention is well-suited for use in measuring the travelling distance of an object, length, bore depth or the number of pulses generated by a sensing element.
Claims
- 1. A measurement method performed by a numerical control device having difference means for counting, computing and storing the difference between a number of sensor pulses each of which is generated by a sensor whenever a movable element moves by a predetermined amount, and a number of command pulses generated by a pulse distributor, a motor being controlled in such a manner that said difference approaches zero, comprising the steps of:
- (1) counting the sensor pulses generated by the sensor;
- (2) applying the counted values to the pulse distributor as a command;
- (3) computing, by said difference means, the difference between the number of command pulses generated by the pulse distributor and the number of sensor pulses;
- (4) applying said difference to the pulse distributor as a command after the generation of the number of command pulses equivalent to said counted value;
- (5) executing a pulse distribution operation to said motor based on said difference and repeating steps (3) and (4); and
- (6) computing the total sum of said difference, the total sum of said difference serving as the total number of generated sensor pulses.
- 2. A measurement method performed by the numerical control device according to claim 1, wherein said numerical control device further includes means for generating feedback pulses and switching means for selectively delivering to said difference means the sensor pulses generated by said sensor or said feedback pulses.
- 3. A numerical control measurement apparatus for measuring the movement of a movable element, comprising:
- a sensor generating a movement signal for each unit distance of movement by the movable element;
- error calculating and storing means, operatively connected to said sensor, for generating a movement difference signal; and
- computing means, operatively connected to said error calculating and storing means, for summing the difference signals and applying an inverted difference signal to said error calculating and storing means, said error calculating and storing means generating as the movement difference signal the difference between the inverted difference signal and the movement signal.
Priority Claims (1)
Number |
Date |
Country |
Kind |
56-082895 |
May 1981 |
JPX |
|
PCT Information
Filing Document |
Filing Date |
Country |
Kind |
102e Date |
371c Date |
PCT/JP82/00200 |
5/27/1982 |
|
|
1/27/1983 |
1/27/1983 |
Publishing Document |
Publishing Date |
Country |
Kind |
WO82/04312 |
12/9/1982 |
|
|
US Referenced Citations (3)
Number |
Name |
Date |
Kind |
3828238 |
Kobayashi et al. |
Aug 1974 |
|
4374351 |
Fishman et al. |
Feb 1983 |
|
4376970 |
Ilseman et al. |
Mar 1983 |
|
Foreign Referenced Citations (1)
Number |
Date |
Country |
49-31058 |
Mar 1974 |
JPX |