NUMERICAL CONTROL DEVICE FOR TRANSFER MACHINE

Abstract: This invention relates to a numerical control device for transfer machines that control multiple transfer machines installed in a transfer line. The numerical control device is comprised of an NC part (13) that controls the spindles of the transfer machines, and a PMC part (14) that executes sequence control. The PMC part (14) reads the current position data from a current position register (16) through a window for comparison operation with a pre-set area data (19). A functional instruction (18a) executes the alteration control of the execution sequence using the operation result as an area signal, thereby setting of a highly accurate area signal is made possible.

Description: Technical Field The present invention relates to a numerical control device for transfer machines adapted to control transfer machines mounted on a transfer line, and more particularly, to a numerical control device for transfer machines having a zone signal output function. Background Art Numerical control devices for transfer machines mounted on a transfer line are now used as control devices for working machines, and assembling and inspecting machines, etc., for mass production lines in the automotive industry, for example. These numerical control devices require a sequence control function and an axis control function, and among these functions is a zone signal output function which is indispensable for the execution of the sequence control function, such as a synchronization between the machines which comprise the transfer line and a program selection at the restart of machining, etc. The zone signal output function will now be described with reference to the drawings. Figure 2 is a diagram illustrating the prior art, and shows a numerical control device (CNC) 1 which is used to control a machine tool and the rotation of a servomotor 2. The servomotor 2 rotates in response to a command from the numerical control device 1, and a ball screw 3 is connected directly to the servomotor 2 and rotates in synchronism with the rotation of the servomotor 2, and thus, as the servomotor 2 is rotated, a tool post 4 is moved along the ball screw 3. The tool post 4 is fitted with a tool 4a, by which a workpiece 5 is machined into a desired shape. After the machining is finished, the workpiece 5 is moved along the transfer line to a position at which the next machining process will be executed. During the machining of this workpiece moved along the transfer line, it is necessary to have precise knowledge of the position (absolute axis position) of the tool post 4 and to control the sequence of the machining processes accordingly. Conventionally, therefore, an overall stroke 6 for the movement of the tool post 4 is divided into N (integer) number of equal parts, and zone numbers 1, 2, 3, ... N are affixed individually to the N number of equal zones (Nis 128 or 256). The numerical control device 1 detects the zone whereat the tool post 4 exists, by a comparison made on the basis of current position data, to thereby determine the zone number concerned and deliver that number as a zone signal. A PMC (programmable machine controller) incorporated with the numerical control device reads the zone signal through a window, and determines the next process in the sequence to be controlled, and performs an axis control. When the overall stroke is lm and N is equal to 128, respectively, according to a conventional system, the zone detection unit is about 7.8mm. Namely, this detection unit is very imprecise, and thus it is difficult to set a machining origin for minimized machining cycles, or to optimize the start-stop timing for a loader and peripheral equipment. Also, this problem constitutes a restriction of the machine design. Namely, even if a certain zone number is decided, the detection unit is always subject to errors in a range specified by this zone number, and thus the zone cannot be perceived within a range smaller than that of the detection unit. The zone can be recognized with a greater accuracy by increasing the number N to increase the number of points in the zone, and making the detection unit smaller. In this case, however, the load on a CPU of the numerical control device becomes greater, and thus the capacity of the axis control function is reduced. US-A-4404505 discloses a multiple position programmable movement machine having means for producing signals indicating the actual position of movable transfer machines. DE-A-3501968 discloses apparatus, for controlling machine tool components, having plural structurally identical processors. An object of the present invention is to provide a numerical control device for transfer machines, capable of obtaining a zone signal output with a high accuracy without increasing the load on a CPU in the numerical control device. According to the present invention, there is provided a numerical control device for controlling a transfer machine mounted on a transfer line, the device comprising: NC control means for controlling axes of the transfer machine; PMC control means for executing a sequence control of the transfer machine; the PMC control means including function instruction means for reading current position data from a current position register in the NC control means, comparing the read data with previously set zone data previously set in a parameter storage section, determining whether the read data correspond to any individual zone, and outputting a result of the comparison as a selection signal, and, the NC control means including execution means for executing a control of a program in accordance with said selection signal. The PMC control means directly reads the current position data for the axis from the axis control means, and compares the read data with the previously set zone data, and therefore, the axis control means does not need to deliver a zone signal, and thus the capacity of the axis control means is not lowered. Moreover, since the read data is compared with the previously set zone data, the delivered selection signal can be made to correspond to the machine tool by setting a large number of zone data. Furthermore, since the current position data is read directly from the axis control means, the current position can be detected with a high accuracy. In the drawings: Fig. 1 is a block diagram of the hardware of a numerical control device for transfer machines, according to the present invention; and, Fig. 2 is a diagram illustrating the prior art. An embodiment of the present invention will now be described with reference to the drawings. Figure 1 is a block diagram of the hardware of a numerical control device for transfer machines, according to the present invention. The numerical control device 1, which serves to control a machine tool, comprises an NC section 13 for executing an axis control function and a PMC section 14 for executing a sequence control function. The NC section 13 includes an axis control section 15. The hardware (not shown) of the axis control section 15 is composed of a CPU for numerical control, a ROM for storing a system program, a RAM for storing various data, and a nonvolatile memory for storing parameters and the like. Further, the NC section 13 includes a current position register 16 for storing current position data from an absolute encoder 12, which is connected directly to a servomotor 2. A servo amplifier 11 receives an axis movement command from the axis control section 15, and controls the rotation of the servomotor 2. The absolute encoder 12, which is contained in the servomotor 2, is backed up by a battery, and can detect the absolute position of the servomotor 2 even after the main power supply is turned off. The hardware (not shown) of the PMC section 14 is composed of a CPU for sequence control, a ROM or RAM for storing a system program for sequence control, sequence programs for machine control, etc., a RAM for storing input/output signals and various data, and an interface for transferring input data (DI) and output data (DO) to and from the machine. These elements constitute the sequence program 18 and a parameter storage section 19 for the function of the PMC section 14. The parameter storage section 19 stores zone data at the start and end points of zones corresponding to zones A, B, and C, etc. The zones A, B, and C indicate ranges from 56.666 (start point) to 41.325 mm, from 78.976 (start point) to 58.678 mm, and from 98.025 (start point) to 82.333 mm, respectively. A plurality of such zone data are stored in the parameter storage section 19, and can be selected by setting optional numbers by using the parameters. A function instruction 18a in the sequence program 18 fetches the current position data from the current position register 16 through a window, and further, fetches the zone data A, B, and C, etc., held by the parameter storage section 19, and then compares the values of both data. Accordingly, the zone of the parameter storage section 19 to which the current position data for the servomotor 2 from the current position register 16 corresponds is determined, and in accordance with the result of this determination, the number of the program to be executed is assigned to the axis control section 15. External signals 17, which include a program start or stop signal and the like, are fetched into the function instruction 18a through the input (DI). The following is a description of the operation of the present embodiment performed before the axis control section 15 determines the program to be executed next in accordance with the current position of the servomotor 2. First, immediately after the power is turned on or at the time of start-up, such as a reset release, the current position data for the servomotor 2 is fetched from the absolute encoder 12 contained in the servomotor 2 into the current position register 16. The function instruction 18a fetches the current position data for the servomotor 2 from the current position register 16 through the window, and processes same to determine whether the fetched data corresponds to any of the individual zones of the parameter storage section 19. The function instruction 18a delivers the result of this process as a zone signal, and in accordance with the state of this zone signal, a selection signal for the number of the program to be executed next is delivered to the axis control section 15. The axis control section 15 then starts the execution of the control from the program which corresponds to the program number requested by the PMC section 14. By setting the zones of the parameter storage section 19 at optional values in this manner, the position of the servomotor 2 can be determined on the same level as the set value for the axis control section 15. Further, the numerical control device 1 can immediately execute the program corresponding to the current position of the servomotor 2 reached when the power is turned on, without the need to restore the servomotor 2 to a reference point when the power is turned on. Although the parameter storage section is provided on the side of the PMC section 14 in the present embodiment, alternatively it may be provided on the side of the NC section 13. In this case, the function instruction 18a reads out data in the parameter storage section through the window, in the same manner as when reading the current position data. Further, the function instruction 18a may be designed such that it determines whether the current position data in the current position register 16 corresponds to any of the individual regions of the parameter storage section 19, suitably processes each determination result, and assigns the number of the program to be executed to the axis control section 15 in accordance with that result. Namely, the respective ranges of the individual zones A, B, and C may be set to overlap one another and compared with the current position data, so that the number of the program to be executed by the axis control section 15 can be assigned depending on whether the current position data corresponds to the zone B only, the zones A and C, or the zones B and C, etc. According to the present invention, as described above, a user can easily obtain a zone signal output with a high detection accuracy, and can improve the degree of freedom of the machine tool and working tools on a transfer line. Also, a large number of zone detection points can be established, whereby a multipurpose numerical control device for transfer machines can be realized.

Claims: A numerical control device (1) for controlling a transfer machine mounted on a transfer line, the device comprising: NC control means (13) for controlling axes of the transfer machine; PMC control means (14) for executing a sequence control of the transfer machine; the PMC control means including function instruction means (18a) for reading current position data from a current position register (16) in the NC control means, comparing the read data with previously set zone data previously set in a parameter storage section (19), determining whether the read data correspond to any individual zone, and outputting a result of the comparison as a selection signal; and, the NC control means including execution means for executing a control of a program in accordance with said selection signal. A numerical control device according to claim 1, wherein said numerical control device previously stores said zone data as parameters. A numerical control device according to claim 2, wherein a plurality of said zone data are provided so that the data can be optionally selected by using numbers or symbols.

Inventors: IKEDA YOSHIAKI, KIYA NOBUYUKI, OTUKA SHOICHI, IKEDA, YOSHIAKI, KIYA, NOBUYUKI, OTUKA, SHOICHI, IKEDA, YOSHIAKI FANUC MANSION HARIMOMI 6-310, KIYA, NOBUYUKI YOKOKAWAMACHIJUTAKU 13-106, OTUKA, SHOICHI FANUC MANSION HARIMOMI 7-302
Applicants: FANUC LTD, FANUC LTD.
Application year: 1990
Main classification: G05B19
IPC codes: B23Q39, G05B19, B65G43