SYMBOL DEFINITION METHOD FOR PROGRAMMABLE MACHINE CONTROLLER

Abstract: A system of defining symbols (signal names) in a sequence program of a PMC (programmable machine controller). Since the functions of the signals between the PMC and a numerical control device are fixed, a first symbol group (5b) is fed to a program preparation device (1) as system data. Therefore, when preparing a sequence program, there is no necessity to define the first symbol group (5b). Also, the first symbol group (5b) is transferred to the PMC (20) together with the sequence program (5a) and is used for editing and maintenance.

Description: The present invention relates to a symbol definition method for a programmable machine controller (PMC) for defining symbols of signal names in the sequence programs of the PMC, and more particularly to a symbol definition method for a PMC in the sequence program created by a ladder type of language. A sequence program for a PMC contained in a numerical control apparatus and controlling a machine tool is created by a program creation unit, referred to as an off-line programmer, and is transferred to the PMC and controls the machine tool together with the numerical control apparatus. The sequence program provides symbols (signal names) with signals for creating, debugging and maintaining the program, and usually, these symbols are defined by a machine tool builder at the same time as when creating the sequence program. These symbols are classified into two types: a first type composed of a first group of symbols for the interface signals between the PMC and the numerical control apparatus; and a second type composed of a second group of symbols for the signals between the PMC and the machine tool and for the signals in the PMC. These two types of the symbols are conventionally defined when a sequence program is created. The first group of the symbols, however, are fixed by a numerical control apparatus and the same symbols are generally used to create different sequence programs, because the function of these signals does not change even if a sequence program is changed, from the standpoint of the numerical control apparatus. Consequently, a problem arises in that the definition of the first group of the symbols carried out when a sequence program is created is labour-consuming and leads to problems during maintenance, because a different symbol may be given to a signal having a similar function. EP-A-0425688, a document according to EPC Article 54(3) discloses a method of editing a program for a program controller in which symbols of signals are sorted into groups so that editing can be carried out with a small memory in programmable controller. Taking the above into consideration, an object of the present invention is to provide a symbol definition method for a PMC by which the group of symbols for signals between a PMC and a numerical control apparatus is supplied as system data, thereby to reduce the labour needed for defining the symbols. According to the present invention, there is provided a symbol definition method for a programmable machine controller (PMC) for defining symbols of signal names in the sequence program of the PMC, the method comprising the steps of: supplying a first group of symbols, for the interface signals between a numerical control apparatus and the PMC, to a program creation unit as system reservation symbols; defining a second group of symbols, for the interface signals between the PMC and a machine tool and for the signals in the PMC, by said program creation unit; transferring said first group of symbols and said second group of symbols to the PMC together with said sequence program; and, executing the sequence program with said first group of symbols and said second group of symbols. Since the function of the signals between the PMC and the numerical control apparatus is fixed, the first group of the symbols is supplied to a program creation unit as system data, and therefore, when the sequence program is created, the first group of the symbols need not be defined. Further, the first group of the symbols is transferred to the PMC together with the sequence program, and used for editing and maintenance. In the drawings: Figure 1 is a conceptual view of a symbol definition system for a PMC according to the present invention; Figure 2 is a block diagram of a program creation unit embodying the present invention; and, Figure 3 is a partial block diagram of a numerical control apparatus containing a PMC embodying the present invention. An embodiment of the present invention will be described below with reference to the drawings. Figure 1 is a conceptual view of a symbol definition system for a PMC according to the present invention. A floppy disk 3b stores a first group of symbols for signals between a PMC 20 and a numerical control apparatus, as system reservation symbols which are read into a program creation unit 1 and stored in a RAM 5 as a first group of symbols 6b. Consequently, the first group of the symbols 5b between the PMC 20 and the numerical control apparatus need not be defined. The program creation unit 1 creates a sequence program 5a and defines the symbols for the signals between the PMC 20 and a machine tool and for the signals in the PMC 20, i.e., a second group of symbols 5c. When the program creation unit 1 has created and edited the sequence program 5a, the program creation unit 1 writes the sequence program 5a to the ROM 22b dismounted from the PMC 20 once and then mounts same to the PMC 20. Alternately, the sequence program 5a may be transferred to the RAM of the PMC 20, to be debugged on the PMC 20 side and then written to the ROM 22b. Nevertheless, only the symbols of the first group of the symbols 5b referred to by the sequence program 5a are transferred,and the symbols other than the above are not necessary because they are not used in the sequence program 5a, and thus the capacity of the ROM 22b of the PMC can be reduced accordingly. Therefore, the number of the second group of the symbols 5c in the ROM 22b is smaller than that of the first group of the symbols 5b in the RAM 5. Figure 2 is a block diagram of a program creation unit embodying the present invention. The program creation unit 1 comprises a processor 2 as a central component thereof, and a memory 4, in which a system program 4a is stored, and a RAM 5 are connected to the processor 2. The RAM 5 stores the sequence program 5a, and the first group of the symbols 5b which are read thereto from the floppy disk 3b through a floppy disk drive 3a. Further, the RAM 5 stores the second group of the symbols 5c for the signals between the PMC 20 and the machine tool and for the signals in the PMC 20. The sequence program 5a is input from a keyboard 6, displayed at a display unit 7 when necessary, and printed out by a printer 9b, through a printer interface 9a, if required. Although the sequence program 5a is created by a ladder language, another high level language such as a PASCAL or the like may be used. The sequence program 5a, the first group of the symbols 5b and the second group of the symbols 5c in the RAM 5 are transferred to the PMC 20; i.e., are written to the ROM 22b dismounted once from the PMC 20 and the ROM 22b is mounted thereon again, and further, may be transferred to the RAM of the PMC 20 through an interface 8 and written to the ROM 22b after having been debugged at the PMC 20. As described above, however, only the symbols of the first group of the symbols 5b referred to in the sequence program 5a are transferred. Figure 3 is a partial block diagram of a numerical control apparatus containing a PMC embodying the present invention. The programmable machine controller (PMC) 20 is contained in a numerical control apparatus (CNC) 10. A processor 11, which serves as a central component for controlling the numerical control apparatus (CNC) 10 as a whole, reads a system program stored in a ROM 13 through a bus 19 and controls the numerical control apparatus (CNC) 10 as a whole in accordance with the system program. A shared RAM 12 exchanges data between the CNC 10 and the PMC 20 and stores data which must be simultaneously accessed from both. A RAM 14 stores temporary calculation data, display data and the like. A CMOS 15 is composed of a non-volatile memory and stores amounts of tool correction and pitch error correction, machining programs, parameters and the like. The CMOS 15 must be maintained operative even after the power supply of the numerical control apparatus (CNC) 10 is cut off, a CMOS 15 is a non-volatile memory, and thus power is supplied thereto by a not shown back-up battery. The CMOS 15 also stores parameters and the like needed by the PMC 20. . A graphic control circuit 16 converts digital data of the present position of each axis, alarm, parameters, image data and the like into image signals, and outputs same, and the image signals are transferred to the display unit 31 of a CRT/MDI unit 30 and displayed thereat. An interface 17 receives data from a keyboard 32 in the CRT/MDI unit 30 and supplies same to the processor 11 An interface 18 is used for communication with external devices and is connected to an external device 40 such as a paper tape reader, a paper tape puncher, a paper tape reader/puncher, a printer and the like. A machining program is read from the paper tape reader, and further, a machining program edited in the numerical control apparatus (CNC) 10 is output to the paper tape puncher. The elements such as the shared RAM 12, ROM 13 and the like are interconnected to the processor 11 through a bus 19. An axes control circuit for controlling servo motors and the like, servo amplifiers, a spindle control circuit, spindle amplifiers, interface for a manual pulse generator and the like are not shown in the figure. The programmable machine controller (PMC) 20 is provided with a processor 21 for the PMC which is connected to the shared RAM 12 by a bus 25, and the shared RAM 12 is connected to the bus 19 of the CNC 10. Further, ROMs 22a and 22b are connected to the bus 25. The ROM 22a stores a management program for managing the execution of the sequence program and the ROM 22b stores the sequence program 5a, the first group of the symbols 5d and the second group of the symbols 5c transferred from the program creation unit 1. The sequence program 5a is generally created by a ladder language but may be created by a high level language such as a PASCAL or the like. Further, an interface for a ROM cassette may be provided instead of the ROM 22b and the ROM cassette may store the sequence program 5a which has been edited, the first group of the symbols 5d and the second group of the symbols 5c, and be connected to the interface for the ROM cassette. With this arrangement, the sequence program 5a can be simply improved and modified. Further, a RAM 23 is connected to the bus 25 and used as a working RAM necessary for the operation of the PMC 20. In addition, the sequence program 5a and the like from the program creation unit 1 may be transferred and edited in the PMC 20. The sequence program 5a is edited by using the display unit 31 of the CRT/MDI unit 30 and the keyboard 32. The RAM 23 also stores I/O signals. An I/O control circuit 24 is connected to the bus 25, converts output signals stored in the RAM 23 into serial signals, and supplies same to an I/O unit 26. Further, the I/O control circuit 24 converts serial input signals from the I/O unit 26 to parallel signals and supplies same to the bus 25. These-signals are stored in the RAM 23 by the processor 21. The processor 21 receives command signals such as an M function command, a T function command and the like from the CNC 10 through the shared RAM 12, temporarily stores these signals in the RAM 23, processes the commands in accordance with the sequence program 5a stored in the ROM 22b, and outputs same to the I/O unit 26 through the I/O control circuit 24. These output signals control hydraulic units, pneumatic units, and magnetic units of a machine tool. Further, the processor 21 receives input signals such as a limit switch signal of the machine tool, a signal of the operation switch on a machine control panel and the like supplied from the I/O unit 26, and temporarily stores these input signals in the RAM 23. Input signals not required to be processed by the PMC 20 are transferred to the processor 11 through the shared RAM 12; other signals are processed by the sequence program 5a and a part thereof is output to the numerical control apparatus, and the remaining signals are output as an output signal from the I/O unit 26 to the machine tool through the I/O control circuit 24. The sequence program 5a stored in the RAM 23 or ROM 22b can be displayed at the display unit 31 of the CRT/MDI unit S0 and corrected by the keyboard 32. As described above, according to the present invention, since the first group of symbols for the signals between the PMC and the numerieal control apparatus is prepared as the system data, it is necessary only to define the second group of the symbols for the signals between the PMC and the machine tool and for the signals in the PMC when the sequence program is created, whereby the definition of the symbols is simplified. Further, since the first group of symbols for the signals between the PMC and the numerical control apparatus is fixed, the numerical control apparatus can be more easily maintained.

Claims: A symbol definition method for a programmable machine controller (PMC, 20) for defining symbols of signal names in the sequence program (5a) of the PMC (20), the method comprising the steps of: supplying a first group (5b) of symbols, for the interface signals between a numerical control apparatus (10) and the PMC (20), to a program creation unit (1) as system reservation symbols; defining a second group (5c) of symbols, for the interface signals between the PMC (20) and a machine tool and for the signals in the PMC (20), by said program creation unit (1) ; transferring said first group (5b) of symbols and said second group (5c) of symbols to the PMC (20) together with said sequence program (5a); and, executing the sequence program with said first group of symbols and said second group of symbols. A method according to claim 1, wherein only the symbols of said group of symbols referred to by said sequence program are transferred to said PMC. A method according to claim 1 or claim 2, wherein said sequence program is created by a ladder type of language. A method according to any of claims 1 to 3, wherein said first group of symbols is supplied to said program creation unit through a floppy disk (3b).

Inventors: ONISHI YASUSHI FANUC MANSHION, TANAKA KUNIO - - TAMAGAWACHO, ONISHI, YASUSHI, FANUC MANSHION HARIMONI 8-304, TANAKA, KUNIO, 5-8-13, TAMAGAWACHO
Applicants: FANUC LTD, FANUC LTD.
Application year: 1991
Main classification: G05B19
IPC codes: G05B19