Numerical control equipment

Abstract: A numerical control equipment comprises a control unit (2) for applying to a drive motor (10) for driving a table (7) on which an object (8) under measurement is placed a movement instruction for moving said object (8) to a theoretical position, a position register (4) for receiving a detection signal outputted by a position sensor (11) adapted to detect the position of the table (7), a memory unit (3) for storing instruction data separately according to functions and uses, and a measuring head (16) for measuring the difference between the stop position of the object (8) and a reference position simultaneously with positioning of the object (8) to the theoretical position, wherein said control unit (2) operates a measurement value provided by the measuring 5 head (16) and a register value of the position register (4) and rewrites the contents of addresses provided separately according to functions and uses in the memory unit (3) with an operated value as a measurement result.

Description: BACKGROUND OF THE INVENTION This is invention relates to a numerical control equipment for a machine tool with a measuring devices such as a tool measuring device, tool presetting device, workpiece measuring device, three-dimensional measuring device and digitizer, and more particularly to a numerical control equipment which performs accurate measurement with a measuring head on the principle of electrical micro-measurement. Development of numerical control equipments depends greatly on automatic operation of machine tools or other industrial machines. The automatic operation is improved by the automation of a stage changing operation, a setting operation, a workpiece dimension measuring operation, and an error correcting operation. In this connection, a tool measuring operation, a tool presetting operation and a workpiece measuring operation have been automated earlier. The tool measuring operation and the work measuring operation are employed for automation of the workpiece dimension measuring operation and of the error correction operation. The tool presetting operation is employed for automation of the setting operation. The term "tool measuring operation or tool measurement" as used herein is intended to mean the operation in which the position of the edge of a tool preset and the actual position thereof are subjected to comparison measurement. For instance in a machining center, with respect to a preset value for the length of protrusion of a tool with machine origin of an end mill edge as reference position, a variation including the edge wear caused by the machining operation with the tool and the thermal displacement of the mechanical system is measured at the edge. The difference between the variation thus measured and the preset value is obtained so as to rewrite the tool wear correcting data of the numerical control equipment. Therefore, if the tool wear correcting data (in the case of the end mill, tool diameter correction in a radial direction X, and tool length correction in a lengthwise direction Z), is used, then the following workpiece can be machined by the end mill to initially set dimensions or configuration with the X-axis and Z-axis correction. The term "tool presetting operation" as used herein is intended to mean the operation in which a machine reference position is coincided with a tool position in a tool chamber or the like, the length of protrusion of the tool from the reference position to the edge is obtained in the X-Z coordinates with a tool microscope or the like, and is written as tool preset data for the numerical control equipment, or it is measured with a measuring device for the tool preset on the machine tool so as to be automatically written in memory. For instance in a machining center, the distance of the edge of a tool connected to a machine from a machine origin is measured in the X-Y-Z coordinates in such a manner that the tool is secured to the spindle head and the edge of the tool is held in contact with the measuring device, so that it is automatically written as tool presetting data for the numerical control equipment. Therefore, even if a machining program is formed with tools different in the X-Y-Z coordinates of the edges regarded as if they were equal in length, correction is automatically effected by using the preset data for every tool selected for a machining operation. Accordingly, ever when the tool length (Z) or the tool diameter (X or Y) changes, the workpiece can be finished to desired dimension with the same program. The term "workpiece measuring operation" as used herein is intended to mean the operation in which the dimensions of a workpiece machined are measured in the X-Y-Z coordinates, and, when necessary, errors in dimension and in configuration are calculated. In order to eliminate the difficulty that the dimensions or configuration of the workpiece machined deviate from those set initially because of the errors caused by the tool wear and/or the thermal displacement of the mechanical system, measurement is carried out for every machining operation or several machining operations to obtain the difference between the measured values and the initially set values, so that for instance the tool wear correcting data and the tool diameter correcting data are rewritten. Accordingly, before the following workpiece is machined, the correction is carried out so that workpiece is machined exactly to the initially set dimensions or configuration. The measured values and the errors in dimension or configuration may be printed out for preparation of a workpiece inspection result. The workpiece measuring operation is necessary for machining a workpiece to initially set dimensions or configuration. For this purpose, each machining point of a machined workpiece is measured in the X-Y-Z coordinates on the machining center, the differences between the measured values and initially set values are calculated so that a tool wear correcting value is determined to rewrite the tool wear correcting data. For instance when the diameter of an inner circular hole formed with an end mill is smaller, then the tool diameter correcting data inputted is reduced as much as the difference, and when the depth of the circular hole from the end face is smaller, then the tool length correcting data inputted is reduced as much as the difference. Thus, the workpiece to be secondly worked can be machined under the condition that the errors in dimension or configuration involved in the preceding machining operation have been eliminated. The tool measuring operation, the tool presetting operation and the work measuring operation are applicable to CNC lathes, CNC jig grinders, and CNC jig borers in the same manner. Fig. 3 outlines the arrangement of a conventional numerical control equipment with a measuring device in which an X-axis of coordinate axis of a vertical type machining center is exemplified. Especially, the equipment will be described with reference to the case where a workpiece measuring operation is given to a block-shaped object 8 on the machining center. In Fig. 3, reference numeral 1 designates a numerical control equipment body which comprises a control unit 2, a memory unit 3, a position register 4, an input interface 5, and an output interface 6. Reference numeral 7 designates a table on which the object 8 under measurement is placed. In the case where the object 8 is in the form of a block, the object 8 is fixedly secured to the table 7 with a clamp or the like in such a manner that it is in contact with a table reference block 7b. Reference numeral 9 designates a threaded bar engaged with a threaded hole formed in a protrusion 7a extended downwardly from the table 7; 10, a drive motor for rotating the threaded bar 9 to move the table 7; 11, a rotary sensor coupled to the drive motor 10, the output of the sensor 11 being supplied to the position register 4; and 12, a linear sensor provided on the table 7. The linear sensor 12 can be used in place of the rotary sensor 11 when necessary. Further in Fig. 3, reference numeral 13 designates a touch sensor mounted on the head of the machining center and fixed in position in the X-axis direction, the detection output of the touch sensor 13 being supplied through the input interface 5 to the control section 2; 14, a display unit connected to the output interface 6; and 15, a printer connected to the output interface 6. The operation of the conventional numerical control equipment will be described with reference to the case where workpiece measurement is given to a block-shaped object. The movement of the object to a theoretical position (or for a mathematical distance between a measuring point 100 and the figure origin 104 with the table reference block 7b as a reference, 50 mm in the case of Fig. 4) is controlled as follows: The control section 2 calculates the distance of 450 mm which is obtained by subtracting 50 mm from the distance 500 mm between origin 102 and the figure origin 104, and determines an instruction value according to the result of calculation. According to the instruction value thus determined, the motor 10 is driven to move the table 7 to the right in Fig. 4. While the table 7 is being moved, the output of the rotary sensor 11 is fed back to the position register 4. As a result, speed and position correcting instructions are supplied to the drive motor by the control section 2 until the moving speed and position meet the instruction values. That is , the object is moved to the theoretical position while the correction is repeatedly carried out so that the moving speed and position agree with the instruction value. In the movement of the table 7, the rapid traverse speed (24m/min in maximum at present) of the table 7 is decreased to an extremely low speed, for instance a measuring speed of 13.336 mm/min when the table reaches the position which is several millimeters (0.227 mm in this case) away from the theoretical position, thus providing a measuring gap, in order to ensure the accuracy of the workpiece measurement. On the other hand, when the contactor 13a of the touch sensor 13 fixed in place touches the block-shaped object 8 under measurement, the touch sensor 13 outputs a contact pulse signal, which is applied through the input interface 5, as an interrupt signal, to the control unit 2. The control unit 2 performes a variety of controls with interrupt signal intervals (time sharing system). Therefore, if the interrupt signal of workpiece measurement completion reaches the control unit 2 during an interrupt signal interval, it will not received until the end of the interrupt signal interval (2.2 msec). Therefore, the table 7, on which the block-shaped object 8 is placed, is moved on at a speed of 13.336 mm/min, and the content of the position register 4 is changed continuously. When the end of the interrupt signal interval occurs with the lapse of time, the interrupt signal from the touch sensor 13 is received, so that the counting operation of the position register 4 is suspended, and the movement of the table at the measuring speed is stopped. The measurement value of the position resister 4 is applied, as a present position, to the control unit 2, so that the mutual relation between the present position and the theoretical position(command position/target position) 450 mm is operated to obtain a workpiece measurement value, which is applied through the output interface to the display unit 14 so as to be displayed, and is printed out with the printer when necessary. The workpiece measurement value and errors are printed out when it is required to provide an inspection sheet with the errors displayed in the ranges of allowable values. In the case where it is necessary to machine the workpiece again with the errors out of the ranges of allowable values, the control unit 2 calculates a tool correction value according to the workpiece measurement errors so that the tool corrections stored in the memory unit 3 are automatically rewritten, and under this condition the machining of the workpiece is started again because a procedure of allowing the positional correction of the following workpiece with respect to the theoretical position has been accomplished. Thus, the configuration and dimensions of the object 8 can be placed in the ranges of allowable values. Disadvantages of the above-described conventional equipment will be described by using numerical data. for instance when the interrupt signal interval is 2.2 msec and the measuring speed is 13.336 mm/min (or 0.227 mm/sec), the positional dispersion is 0.5 µm. When the measuring gap is 0.227 mm, then the measuring movement time is one second. The workpiece measurement of the machining center has been described. However, also in the case of a tool presetting operation or tool edge measuring operation, or in the case of a CNC lathe, CNC jig grinder or CNC jig borer, the rapid traverse speed must be decreased to the extremely low speed for measurement. The conventional numerical control equipment is designed as described above. Therefore, because of the relation between the interrupt signal interval and the moving speed, the precision cannot be maintained without employing the extremely low speed or decreasing the interrupt signal interval. However, the interrupt signal interval cannot be changed with ease, being substantially determined by the hardware employed. Accordingly, it is necessary to change the moving speed to the extremely low speed in the measurement. This means an increase in the measuring time, especially in a multi-point measurement. The term "multi-point measurement" as used herein is intended to mean the following measurement: In the workpiece measurement of the object 8 in Fig. 3, the machined thickness 50 mm is measured at only one point; however, measurement of a plane at one point is low in reliability. In order to overcome this difficulty, a workpiece is measured at a number of pints arranged in matrix form or at random, so that the average, upper and lower values of the measurement values are obtained, and the data are rewritten in the same manner as the signle-point measurement. In the case of a free curved surface, the workpiece measurement may be achieved with the measuring point intervals being made constant. This measuring method is also called as the multi-point measurement. SUMMARY OF THE INVENTION An object of this invention is to eliminate the above-described difficulties accompanying a conventional numerical control equipment. More specifically, an object of the invention is to provide a numerical control equipment in which the measuring time is included in the positioning time, and the positional errors depend only on the accuracy and repreatablity of a measuring head employed. The object of the invention is solved by a numerical control equipment, comprising: a table for holding an object to be measured; drive means for driving said table; control means for providing movement instructions to said drive means in order to move said object on said table to a target position; a position sensor for detecting the position of said table; a position register for receiving a detection signal from said position sensor, measuring means including a measuring head fixed at a reference position for measuring the difference between a stop position of said object on said table and a reference position after said object is moved to said target position and for outputting a digital signal based thereon; memory means for storing the output of said measuring means as first data and other data relating to numerical control operations; an input interface having a writing instruction unit (MCU-2) and provided between said measuring means and said memory means, said digital signals being written in said memory means by means of said writing instruction unit (MCU-2) at all times; and said control means receiving said first data from said memory means and a digital output signal of said position register; calculating a positional error as the difference between the target position and the stop position calculated from the output of said measuring means stored in said memory means and the contents of the position register; and controlling said memory means to re-write the other data in said memory means in accordance with the positional error calculated. In an alternative embodiment, the measuring head is moved to the object on the table. In the numerical control equipment according to the invention, the difference from the theoretical position is calculated by using the measurement output of the measuring head, and the difference thus calculated and the stop position of the object are subjected to arithmetic operation, and with the result of the arithmetic operation as a measurement result, the contents of addresses provided separately according to functions are uses in memory units are rewritten, so that the measurement is achieved at high speed and with high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is an explanatory diagram, partly as a block diagram, showing one example of a numerical control equipment according to this invention, Fig. 2 is an explanatory diagram, partly as a block diagram, showing another example of the numerical control equipment according to the invention, Fig. 3 is also an explanatory diagram, partly as a block diagram, showing an example of a conventional numerical control equipment, Fig. 4 is a perspective view showing an example of an object or workpiece under measurement in Fig. 1,2 or 3, Fig. 5 is a block diagram showing the arrangement of an input interface shown in Fig. 1 or 2, Fig. 6 is a block diagram showing the numerical control equipment of Figs. 1 and 2 in more detail, Fig. 7 is a flow chart for a description of a measuring operation with the numerical control equipment of the invention, and Figs. 8(a) through 8(e) are explanatory diagrams showing applications of the measuring operation according to the invention. DETAILED DESCRIPTION OF THE INVENTION A first embodiment of this invention will be described with reference to Fig. 1, in which those components which have been already described with reference to Fig. 3 are therefore designated by the same reference numeral. In Fig. 1, reference numeral 16 designates a measuring head operating on the principle of an electrical micro-measurement; and 17, an analog-to-digital converter for converting an analog output of the measuring head 16 into a digital signal (hereinafter referred to as "an A/D converter 17", when applicable). The memory unit 3 in the numerical control equipment body 1, unlike the memory unit in Fig. 3, is provided between the control unit 2 and the input interface 5. The measuring head 16 is a conventional one (cf. Japanese Patent Application Laid Open No. 7509/1983 for instance). An analog voltage outputted by the measuring head 16 is converted into a binary digital value in units of 0.1µm by the A/D converter 17. (A period of time of from 10 µsec to 20 µsec is required for analog-to-digital conversion; however, for an error of 0.1µm, the period of time can be disregarded from the macroscopic view). Thus, the output of the measuring head is applied as a digital value to the input interface 5 at all times. In the input interface 5 (Fig. 5), the digital value is converted into a data format which independently of a main CPU, can be written in the memory unit 3 in response to an instruction from a CPU 2-2 in the input interface 5 so that refresh data from the A/D converter can be written. The memory divice in the input interface is a dual port RAM. The memory unit 3 in Fig. 1 (or 2) is made up of memory modules, namely, a CPU 1 (CNC main control), a CPU 2 (MCU), a CPU 3 (PC) and a CPU 4 (CRT) arranged in a system bus region and in a local bus region as shown in Fig. 6. In the system bus region, the memory elements using data in common are dual port RAM. The MCU region of the dual port RAM is used for feedback data from a servo system and measurement values provided by the measuring head. The measurement value outputted by the measuring head is always written in accordance with the change of the measuring value by means of a write instructing unit (CPU 2-2 (MCU-2) in this embodiment) built in the input interface 5. This part can be regarded as memory units operable as a reversible counter. The dual port RAM has two pairs of writing and reading ports. However, the dual port RAM is so controlled by means of softwear that the two writing or reading ports may not be used simultaneously. In this embodiment, the measurement data are always written for the measuring head (MCP-2), and are always read for the CPU 1 (CNC main control). In addition a method is available in which a reversible register is included in the memory unit, a process for writing the output of the measuring head is carried out at all times, and when necessary the register is clamped in response to an instruction from the CPU 1 so that the resultant data are transferred to another storage region so as to be used for data processing later. However, in this case, it is necessary to improve the hardware. In the memory unit shown in Fig. 3, the writing and reading operation is carried out by means of the main CPU and sub CPU, and the data are sampled, written and read according to the interruption signals which occur at predetermined time intervals; that is, the data are not always refreshed. Because of the above-described reason, the memory unit is arranged between the input interface and the CPU 1 (CNC main control) in order to write the input of the dual port RAM independently of control instructions from the CPU 1. Now, the operation of the numerical control equipment will be described with reference to the case where the machine tool is a machining center, and an object under measurement is a block-shaped object 8, and a dimension of 50 mm from the figure origin is measured on one side (Fig. 4). First, the power switch of the CNC connected to the machine tool is turned on. After the operating preparation has been accomplished, the operator carries out a movable axes returning operation to return the movable axes to the origin. Thereupon, the initial value of the machine origin decoded by means of soft wear in the main memory of the CPU 1 is automatically preset to an origin offset value, the reference position of the measuring head, by the CPU 1. Upon completion of the machine origin presetting operation, the machine tool becomes operable in a selected operation mode. Under this condition, the operator selects an automatic operation mode, calls a measuring program stored in a machining data area in the memory unit 3, and operates a cycle start button to start the machining center. As a result, the machining center starts its measuring operation according to the measuring program. In this case, theoretical position data (500 mm minus 50 mm) of the measuring program are to move the block 8 to a position apart from the machine origin by 450 mm in the X-axis direction. The control unit 2 reads the theoretical position data. A drive instruction decoded by the software in the main memory of the CPU 1 is applied to a drive module in the control unit and is subjected to arithmetic operation by means of a software in the MCU memory of the CPU (MCU-1). The drive instruction is converted by a drive amplifier (Fig. 6) into a rotational angle and an electric current corresponding to a speed of rotation, which are applied to the drive motor 10. As a result, the motor 10 is rotated, and accordingly the threaded bar 9 is rotated, so that the table 7 is moved to move the block 8 to the theoretical position 450 mm away from the machine origin. The position of the block thus moved is detected with the rotary sensor 11 or the linear sensor 12. The result of detection is fed back to the position register 4, where it is compared with the theoretical position. The error between the two positions is subjected to feedback in the drive moduel for the purpose of rotational angle conversion, so that the drive motor 10 is rotated again, and the output of the sensor is supplied to the position register 4, where it is compared with the theoretical position. The above-described operations are repeatedly carried out until the error between the position measured and the theoretical position becomes zero. That is, X-axis is held at the theoretical position which is 450 mm away from the machine origin, when the error is zero. As the table 7 moves, the contactor 16a contacted with the block 8 is moved. As a result, the measuring head 16 fixed at the reference position outputs an analog voltage according to the difference from the reference position. The analog voltage is converted into a binary digital value in units of 0.1 µm by the A/D converter 17. The binary digital value is supplied through the input interface 5 to the memory unit 3. In the memory unit 3, the binary digital value is written in a measured-position memory unit employing a dual port RAM in which data can be written at all times. When, with the table 7 stopped at the theoretical position, the end of the interrupt signal interval occurs, according to the program stored in the main memory of the CPU 1, the measured position and the theoretical position, from the machine origin, of the block 8 are read out of the memory unit 3 and the position register 4, respectively, for calculation of the following equation: (error) = (theoretical position) - ((present position) + (measured position)) For instance when the measured position is - 0.010 mm, + 0.010 mm = 450.000 mm - (450.000 mm - 0.010 mm) This error is stored in a temporary data area in the main memory 3. A figure dimension 50.010 mm, error + 0.010 mm, present position 450.000 mm, theoretical position 450.000 mm, and measured value -0.010 mm are supplied through the output interface 6 to the display unit 14 so as to be displayed as measurement result thereon, and when necesary for inspection record, to the printer in response to an input instruction made by the operator. These operations can be carried out by reading position and the content of the position register simultaneously whenever the interruption signal interval comes to the end from the time instant when the analog output starts to occur due to the movement of the contactor 6a held in contact with the block 8. This will become more apparent from a flow chart shown in Fig. 7. As shown in Fig. 7, in step S₁, the program is read to set the number of measuring points ,and the machine tool is moved toward the first measuring point. In step S₂, the number of measured points is preset. In step S₃, it is determined whether or not the end of the position register interrupt signal interval (IT) of 2.2 msec occurs. In step s₄, the content of the position register and a measured position (A) are read simultaniously. In step S₅, the reference position (B) of the measuring head is read. In Step S₆, it is determined whether or not the contactor 16a contacts the block 8. In this connection, a method of using hardware to provide the contact signal may also be employed. In step S₉, the machine starts to move to a next program position. It is initially determined whether or not data are printed out in step S₁₂. When necessary operations have been achieved according to the flow chart of Fig. 7, the measurement can be carried out even before the movement of the table 7 is accomplished. In the case where the measurement stroke of the measuring device is of the order of 0,5 mm, then the theoretical measuring speed is: 227 mm/sec (because 0.5 mm/2.2 msec x 1000 msec/sec ≈ 227 mm/sec) This permits a high speed measuring operation, and allows arithmetic operations during the next movement. In the above-described embodiment, one point on the block is measured in the X-axis direction. This measuring operation can be developed into a variety of measuring operation as listed in the following Table: No. Measurement Usage Diagram 1 Tool diameter measurement Tool presetting Fig.8(a) Tool length measurement and tool correction Fig.8(b) 2 Machined configuration measurement Program correction Fig.8(c) 3 Workpiece-mounting table reference surface measurement Origin set Origin offset correction Fig.8(d) 4 Workpiece measurement Workpiece centering Fig.8(e) Fig. 8(a) is diagram showing a tool diameter measuring method. The measurement is carried out in the X-axis or Y-axis. In Fig. 8(a), the tool is turned in a direction opposite to the direction of its edges, to measure the redius R. The tool diameter is 2 x R. Fig. 8(b) is a diagram showing a tool length measuring method. The measurement is carried out in the Z-axis. As shown in Fig. 8(b), positions P₁ and p₂ are measured. The tool length (L) can be calculated according to the following equation: L = P₂ -P₁ The position p₁ is generally preset. Therefore, it is unnecessary to measure the position P₁ for every tool length measurement. Fig. 8(c) is a diagram for a description of a machined configuration measuring method. The measurement is performed in the X-axis and the Y-axis. In the case of Fig. 8(c), positions Q₁ through Q₄ and Q'₁ through Q'₄ are measured with the position of a reference to zero. The results of measurement are inserted in the following equations to obtain values Δx, ΔY, R' and ΔR: ΔR = R' - R₀ (Where R₀ is the specified radius) The program values are corrected by using these values ΔX, ΔY and ΔR. Fig. 8(d) is a diagram for a description of a method of measuring the reference surface of the table on which a workpiece is mounted. The measurement is carried out in the X-axis and the Y-axis. The origin is set with the measured values of a distance R₁ from the X-origin and a distance R₂ from the Y-origin. The offset of the origin is corrected by using the differences ( ΔX = R′₁ - R₁ , and ΔY = R′₂ - R₂ ) from the origin set values. Fig. 8(e) shows a workpiece measuring method. In the method, the measurement is carried out in the X-axis and the Y-axis. For instance in the case where a rectangular block is mounted on an X - Y planar table, the central x - coordinate and the central y - coordinate can be obtained from the following equations: According to the results of calculations performed by using the errors obtained by these measuring, data in addresses predetermined separately according to functions and uses such as (1) the tool presetting/correcting operation of the memory unit 3 in the case of the tool diameter/length measurement, (2) the program correcting operation of the memory unit 3 in the case of the machined configuration measurement, (3) the origin setting operation and the origin offset correcting operation in the case of the workpeice-mounting table reference surface measurement, (4) the workpiece centering operation in the case of the workpiece measurement, and (5) the workpiece inspection result in the case of the measurement, are rewritten. The resultant data are applied through the output interface 6 to the display unit 14. The data of paragraphs (1) through (4) are used as correcting values in machining the next workpiece in order to improve the machining precision of the workpiece, and are applied to the display unit 15 when necessary. The data of paragraph (5) is applied to the printer 15, so that an inspection result is prepared for the workpiece. Fig. 2 shows another embodiment of the invention. The arrangement of the numerical control equipment shown in Fig. 2 is different from that of the numerical control equipment shown in Fig. 1 only in that instead of the analog measuring head 16 and the A/D converter 17 in Fig. 1, a measuring head 16 outputting binary digital values is employed. The numerical control equipment of Fig. 2 is the same both in function and in operation as that of Fig. 1. The measuring head may be one named "MINIAX" (Tokyo Seimitsu Kabushiki Kaisha ( Co., Ltd.) Catalog No. 80C-10F). While the preferred embodiments of the invention have been described with reference to the case where, in the vertical machining center, the table 7 is movable and the X-axis measuring head 16 is fixed at the predetermined position, the measuring head may be a movable one in the case where, in a CNC lathe system, a tool and a measuring head are mounted on the X-axis and Z-axis movable members, or in the case where a three-dimensional measuring machine or a large machining center of column/cross/ram movement type is employed. Furthermore, in the tool measuring operation and in the tool presetting operation, the measuring head should be set at a predetermined position on the side of the spinle for a CNC lathe system, and should be set at a predetermined position on the table for a vertical machining center of X and Y axes movement type and for a large machining center of column/cross/ram movement type. In the embodiment of the invention shown in Fig. 1, the A/D converter 17 may be built in the numerical control equipment body 1. In the embodiments shown in Figs. 1 and 2, the measurement is carried out only in the X-axis. However,the measurements in two axes of X-axis and Y-axis, X-axis and Z-axis, or Y-axis and Z-axis, or three axes of X-,Y- and Z-axis, can be carried out simultanously by providing a plurality of processing means in the input interface 5. The measuring head may be a non-touch type measuring head such as a distance sensor utilizing electromagnetic induction as well as a contact type measuring head having a potentiometer in a dial indicator. As was described above, according to the invention, when an object under measurement is positioned at the theoretical position, simultaneously the difference between the stop position of the object and the reference position is measured with the result of arithemetic operation of the measured position and the stop position as a measurement result, the contents of the addresses provided separately according to functions and uses in the memory unit are changed. Therefore, with the numerical control equipment of the invention, the positioning operation and the measuring operation can be achieved within the same period of time and the arithmetic operation can be carried out immediately, and, if necessary, the arithmetic operation can be accomplished during the movement to the next measuring point. Therefore, in the numerical control equipment of the invention, unlike conventional one using the touch sensor, the extremely low speed feeding operation for measurement is eliminated. As a result, in the method of the invention, the measurement time per measuring point is shorter by at least one second than that in the conventional method using the touch sensor. Furthermore, in the system employed by the numerical control equipment of the invention, unlike the conventional system in which the interruption signal is produced and stored during the movement, the present position and the error are read directly after the positioning operation. Therefore, the numerical control equipment of the invention is completely free from the dispersion in measurement error caused by the movement which is due to the time delay. That is, since the 5 measurement error depends directly on the positioning accuracy and the measuring head accuracy, the use of a high accuracy positioning means and the high accuracy measuring head permits high-accuracy and high-speed measurements with errors of the order of 0.1 µm according to the invention.

Claims: A numerical control equipment, comprising: a table (7) for holding an object (8) to be measured; drive means (10) for driving said table (7); control means (2) for providing movement instructions to said drive means (10) in order to move said object (8) on said table (7) to a target position; a position sensor (11,12) for detecting the position of said table (7); a position register (4) for receiving a detection signal from said position sensor (11,12) measuring means (16,17) including a measuring head (16) fixed at a reference position for measuring the difference between a stop position of said object (8) on said table (7) and said reference position as said object (8) is moved to said target position and for outputting a digital signal based thereon; memory means (3) for storing the output of said measuring means (16,17) as first data and other data relating to numerical control operations; an input interface (5) having a writing instruction unit (MCU-2) and provided between said measuring means (16,17) and said memory means (3), said digital signals being written in said memory means (3) by means of said writing instruction unit (MCU-2) at all times; and said control means (2) receiving said first data from said memory means (3) and a digital output signal of said position register (4); calculating a positional error as the difference between the target position and the stop position calculated from the output of said measuring means (16,17) stored in said memory means (3) and the contents of the position register (4); and controlling said memory means (3) to re-write the other data in said memory means (3) in accordance with the positional error calculated. A numerical control equipment, comprising: a table (7) for holding an object (8) to be measured; measuring means (16,17) including a measuring head (16) for measuring the difference between a stop position of said measuring means (16,17) and said object (8) at a reference position on said table (7) as said measuring means (16,17) is moved to a target position and for outputting a digital signal based thereon; drive means (10) for driving said measuring means (16,17); control means (2) for providing movement instructions to said drive means (10) in order to move said measuring means (16,17) to said target position; a position sensor (11,12) for detecting the position of said measuring means (16,17); a position register (4) for receiving a detection signal from said position sensor (11,12) memory means (3) for storing the output of said measuring means (16,17) as first data and other data relating to numerical control operations; an input interface (5) having a writing instruction unit (MCU-2) and provided between said measuring means (16,17) and said memory means (3), said digital signals being written in said memory means (3) by means of said writing instruction unit (MCU-2) at all times; and said control means (2) receiving said first data from said memory means (3) and a digital output signal of said position register (4); calculating a positional error as the difference between the target position and the stop position calculated from the output of said measuring means (16,17) stored in said memory means (3) and the contents of the position register (4); and controlling said memory means (3) to re-write the other data in said memory means (3) in accordance with the positional error calculated. An equipment as claimed in claim 1 or 2, wherein said measurement result is applied to a display unit (14) and a printer (15). An equipment as claimed in claim 1 or 2, wherein said measuring means (16,17) includes an analog to digital converter (17) for converting analog outputs of said measuring head (16) to digital signals. An equipment as claimed in claim 1 or 2, wherein said measuring head (16) is a contact type measuring head comprising a potentiometer provided in a dial indicator. An equipment as claimed in claim 1 or 2, wherein said measuring head (16) is a non-touch type measuring head. An equipment as claimed in claim 6, wherein said non-touch measuring head is a distance sensor utilizing electromagnetic induction. An equipment as claimed in claim 1 or 2, wherein said memory means (3) is positioned between said control means (2) and said input interface (5). An equipment as claimed in any of the above claims wherein said measuring means (16,17) measures said difference within the detection stroke of the measuring head (16). An equipment in accordance with claim 9 wherein said measuring head (16) comes into contact with said object (8) at the beginning of the detection stroke. An equipment as claimed in claim 1 or 2, wherein said control means (2) outputs an interrupt signal and said measuring means (16,17) measures said difference when said interrupt signal ceases. An equipment as claimed in any of claims 1 to 11, wherein said other data relating to numerical control operations include a tool wear correction for a tool measurement; setting of tool preset data for a tool preset length measurement; tool wear correction, tool diameter correction, setting of the origin, offset of the origin and work centre alignment for a work measurement; and program correction for a work figure measurement.

Inventors: HIRAI HAYAO C O MITSUBISHI DEN, HIRAI, HAYAO C/O MITSUBISHI DENKI K.K.
Applicants: MITSUBISHI ELECTRIC CORP, MITSUBISHI DENKI KABUSHIKI KAISHA
Application year: 1987
Main classification: G05B19
IPC codes: G05B19