PROGRAMMABLE CONTROLLER

Abstract: The programmable controller reinforces the function of a programmable machine controller (PMC) that contains a mini-computer. The PMC ladder program realizes auxiliary control function for machining inclusive of exchange of tools, controls the number of revolutions of the main spindle, and controls exchange of works. The programmable controller comprises an electrically rewritable programmable read-only memory (EEPR0M) (6), and a random access memory (RAM) (7) to which the program data are transferred from the EE-PROM (6). Prior to transferring the data, the contents in the EEPROM (6) are rewritten.

Description: This invention relates to a programmable controller in which sequence control of a machine tool is executed by ladder processing which employs a microprocessor or the like. More particularly, the invention makes it possible to modify a ladder program and makes high-speed ladder processing feasible. An ordinary programmable controller uses non-volatile memory means such as a ROM storing a specific ladder program in order to make possible sequence control conforming to a controlled system. If the controlled system of the programmable controller is a machine tool, it is required to create a ladder program in such a manner that it will not be necessary to change the existing ROM whenever there is a modification in the specifications of the machine tool. One method of achieving this is to make the portion of the ladder capable of being modified a subroutine, and storing the subroutine in a rewritable EROM (erasable read-only memory). In modifying a ladder or adding to a ladder, a plurality of ROM boards are prepared in advance and these are plugged into, say, a mother board of the programmable controller, thereby making it possible to modify or add to the contents of a ladder. In comparison with a case in which the ladder program is stored in temporary storage-type memory means such as a RAM and backing up the RAM using a separate power supply, the above method of storing the ladder program using only a conventional ROM is advantageous in that erasure of the program due to a power supply abnormality or the like can be prevented in reliable fashion. Conversely, however, the speed at which the program data can be read out of the ROM is lower than with the RAM, and therefore the operating speed of the machine tool is restricted by the ladder processing speed. Though a programmable controller has been considered in which joint use is made of an ultraviolet erasable-type EPROM (erasable and programmable ROM), all of the data stored in single units in such case is erased simultaneously when the data is rewritten, and therefore it is impossible to modify a portion of the ladder. Moreover, another disadvantage is that a ROM unit must be extracted from the mother board on account of this erasure. With conventional programmable controllers of this kind, many problems are encountered in terms of modifying the ladder program and operating an NC (numerical control unit) efficiently. WO 80/00383 discloses a programmable controller having a central processor unit and a memory, wherein the memory is in the form of a fast memory (suitably a RAM) and a slow memory (suitably an EAROM). The processor normally is controlled by program information in the slow memory. When it is desired to alter the control program, new program information is loaded into the fast memory, and then transferred to the slow memory which continues the control process. An object of the present invention is to provide a programmable controller in which a programmable ladder sequence is stored electrically in a rewritable programmable read-only memory, and by means of which an NC can be operated efficiently by making joint use of a random-access memory capable of high-speed processing. According to the present invention there is provided a programmable controller capable of storing a control program and of modifying and editing the contents thereof, comprising: a programmable read-only memory, which is capable of being electrically rewritten, for storing said control program; rewriting means for rewriting a control program stored in the programmable read-only memory, and a random-access memory to which program data can be transferred from said programmable read-only memory; characterised in that said programmable read-only memory stores a ladder program as said control program, said rewriting means is operable to edit and modify said ladder program while it is stored in said programmable read-only memory, and the programmable controller is operable to transfer the edited and modified ladder program from said programmable read-only memory to said random-access memory for execution of the edited and modified ladder program in the random-access memory. A preferred embodiment of programmable controller according to the present invention may be such that if a management program and ladder program are stored on an EEPROM board on the manufacturer's side at the time of shipment, editing and modification of the ladder in the ROM can be carried out on the user side whenever necessary without battery backup. 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: Fig. 1 is a block diagram illustrating an embodiment of the present invention; and Fig. 2 is a block diagram illustrating the basic construction of a programmable controller. An embodiment of the present invention will now be described in detail with reference to the drawings. Fig. 2 is a block diagram illustrating the basic construction of a sequence PC (programmable controller) used in conjunction with an NC unit which performs sequential control of a machine tool. An input signal from a machine control panel, various external input devices such as a push button, a relay contact or a limit switch, is supplied to a PC main body 20 via an input receiver 10. The PC main body 20 is constituted by an arithmetic unit and a memory unit. The latter stores a ladder processing program edited in advance, as well as input/output information. A fixed, repetitive operation is performed by the arithmetic unit in accordance with the processing program, and an output signal from the PC main body 20 is applied, as the decoded result of a sequence, to a machine tool and various external output devices such as an electromagnetic switch, solenoid valve or display lamp via an output driver 30. The signal is also outputted as the state setting signal of an internal controller relay, and the signal is held in memory. The input receiver 10, PC main body 20 and output driver 30 are connected to an NC unit 40 and are capable of executing cyclic program processing corresponding to an ordinary ladder. Fig. 1 is a block diagram illustrating an example of a programmable sequence controller according to the present invention. Numeral 1 denotes an NC tape on which the ladder program is recorded, and numeral 2 an input/output control unit for entering data read by a tape reader or the like. The input/output control unit 2 is connected to a bus of the CPU 3. Also connected to the bus is a manual data input (MDI). Numeral 4 denotes a working RAM, and numeral 5 memory means for storing other necessary NC software. Data read from the NC tape 1 is stored in a programmable read-only memory (EEPROM) 6 capable of being electrically rewritten. The EEPROM 6 is such that erasure of data in byte units is performed electrically. In other words, erasure is possible by applying a predetermined voltage to an erasure gate terminal to address the memory. Accordingly, editing, erasure and rewriting of a ladder program stored in the memory can be performed with facility. Since the speed at which the data is read is somewhat lower than that of an ordinary EPROM, NC operation is carried out upon transferring the data to a RAM 7. Thus, a specific ladder program which makes possible sequence control conforming to a controlled system is stored in an electrically rewritable EEPROM 6, and ladder editing and debugging are carried out internally of the NC. Accordingly, program modification can be simply performed on the user side whenever necessary, thus making it possible to deal with changes in the specifications of a machine tool. In addition, data can be preserved more reliably in comparison with the prior art in which editing/storage performed in a CMOS-type RAM requires a power supply backup. Furthermore, since NC operation is executed after the data is transferred to the RAM 7, the speed at which the program data is read no longer places a restriction upon the speed at which a machine tool operates. Though an embodiment of the present invention has been described, the invention is not limited to this embodiment but can be modified in various ways without departing from the scope of the claims. The illustrated and described programmable controller of the present invention is such that a management program and ladder program may be stored on an EEPROM board at the time of shipment, so that editing and modification of the ladder in the ROM can be carried out on the user side without battery backup. This makes high-speed processing of the ladder program possible.

Claims: A programmable controller capable of storing a control program and of modifying and editing the contents thereof, comprising: a programmable read-only memory (6), which is capable of being electrically rewritten, for storing said control program; rewriting means for rewriting a control program stored in the programmable read-only memory (6), and a random-access memory (7) to which program data can be transferred from said programmable read-only memory (6); characterised in that said programmable read-only memory (6) stores a ladder program as said control program, said rewriting means is operable to edit and modify said ladder program while it is stored in said programmable read-only memory (6), and the programmable controller is operable to transfer the edited and modified ladder program from said programmable read-only memory (6) to said random-access memory (7) for execution of the edited and modified ladder program in the random-access memory (7). A programmable controller according to claim 1, wherein the programmable read-only memory (6) is an EEPROM. A programmable controller according to claim 1 or 2, wherein said rewriting means comprises a manual data input connected by a bus line to a CPU (3) for ladder processing.

Inventors: IKEDA YOSHIAKI FANUC MANSION H, KUWASAWA MITSURU, IKEDA, YOSHIAKI,FANUC MANSION HARIMOMI 6-310, KUWASAWA, MITSURU
Applicants: FANUC LTD, FANUC LTD.
Application year: 1989
Main classification: G05B19
IPC codes: G05B19