METHOD OF INITIALIZING PARAMETERS IN A PROGRAMMABLE MACHINE CONTROLLER

Abstract: A system consists of a numerical controller CNC (1) with a BAC (5) and a shared RAM (6), a programmable machine controller (PMC) (2) with a PMC-RAM plate (8), a RAM 9(0 and an interface (10), a man-machine controller MMC (3) with an interface (11) and a manual data input device (CRT/MDi) (12), and a ROM cassette (13). The initial values of PMC parameters are stored in the PMC-RAM plate (8) together with a debugged program, and then transferred to the ROM cassette (13), which takes the place of the PMC-RAM plate when the system is in use. When an initialisation command is given from the CRT/MDi (12), the initial values stored in the ROM cassette (13) are instantly transferred onto the RAM (9) and the shared RAM (6).

Description: The present invention relates to a method of initializing parameters in a programmable machine controller (hereinafter referred to as PMC) of a numerical control unit (hereinafter referred to as NC unit). Conventionally known is an NC unit which includes a PMC adapted for sequence control of various control sections, such as counters, timers, keep relays, etc. For some reason or other, in the NC unit of this type, it may happen to become necessary to initialize the values of various parameters during the operation of the PMC, or change these parameter values. Conventionally, however, this process of initialization must be executed by manual operation, which entails some trouble. Generally, in the NC unit of this type, the PMC is furnished with a programmable machine controller-random access memory board (hereinafter referred to as PMC-RAM board) for debugging. After a debugging process using a memory unit carried by the RAM board, the PMC is loaded with a read-only memory cassette (hereinafter referred to as ROM cassette), so that memory contents, including PMC parameter values and stored in the memory unit of the RAM board, are transferred to and stored in a memory unit built in the cassette. In this state, the NC unit is shipped to be delivered to a user. Thus, the NC unit is operated with the ROM cassette therein and by utilizing the memory contents stored in the cassette. In initializing the PMC parameter values, moreover, the initial values of the various parameters, which are set by means of a manual setting section of the NC unit, are generally transferred to and stored in a separate RAM of the PMC through a predetermined transfer path. While the PMC is mounted with the PMC-RAM board, that is, during the debugging process, the parameters can be initialized with use of a parameter cassette or an initialization program based on the PASCAL language or the like. As described above, the PMC parameters usually must be initialised by manual operation, and the capacity to cover all the parameter values is normally as large as 2 K bits. Thus, the initialization requires a long time. Moreover, the conventional method, based on the manual operation as mentioned above, lacks in high-speed performance, whereas the initialization is often a matter of urgency. Accordingly, the object of the present invention is to provide a method of PMC parameter initialization, whereby PMC parameters can be easily initialized even when a PMC is loaded with a ROM cassette. According to the present invention there is provided a parameter initializing method for a programmable machine controller which performs control operations using predetermined memory contents transferred to and stored in a read-only memory cassette after debugging by means of a random access memory for debugging, said method comprising: (a) storing the initial values of various control parameters of said programmable machine controller in a random access memory for initial-value setting, said random access memory for initial-value setting forming part of said programmable machine controller; (b) transferring said initial values from said random access memory for initial-value setting to a blank memory region of said random access memory for debugging; (c) transferring said predetermined memory contents and said initial values of said various control parameters from said random access memory for debugging to said read-only memory cassette; and (d) subsequently, in response to a command for parameter initialization, when said controller is loaded with said cassette, initializing the values of said various control parameters by transferring said initial values stored in said read-only memory cassette to said random access memory for initial-value setting. According to the present invention, as described above, the initial values of the PMC parameters are stored in the ROM cassette, so that the PMC parameters can be initialized instantly by inputting the command for parameter initialization. Thus, the parameter initialization does not require such a long time as is needed in the conventional case. Brief Description of the Drawings Fig. 1 is a block diagram showing the principal part of an NC unit according to an embodiment of the present invention; Fig. 2 is a diagram showing a format according to which the contents of a PMC-RAM board are written in a ROM cassette; Fig. 3 is a flow chart of a control program for writing the contents of a memory unit, carried by the PMC-RAM board, in the ROM cassette of Fig. 1; Fig. 4 is a diagram for illustrating the operation for writing the initial values of PMC parameters in the memory unit of the PMC-RAM board; and Fig. 5 is a flow chart of an initialization program. Fig. 1 shows the principal part of an NC unit according to an embodiment of the present invention. The NC unit comprises a CNC 1 of a numerical control section, a PMC 2, and a man-machine controller (hereinafter referred to as MMC) 3. The PMC 2 is bus-connected to a bus-arbiter controller (hereinafter referred to as BAC) 5, while MMC3 is serial-connected to the BAC 5. Numeral 4 denotes a central processing unit (hereinafter referred to as CPU), and numeral 6 denotes a common RAM which is bus-connected to the BAC 5. Part of the RAM 6 is composed of a nonvolatile RAM. Numeral 7 denotes a CPU of the PMC; 8, a PMC-RAM board; 9, a random access memory (hereinafter referred to as RAM); and 10, an interface. A ROM cassette 13 can be connected to the interface 10. Numeral 11 denotes an interface of the MMC 3, through which is connected a manual-data input device with a CRT display (hereinafter referred to as CRT/MDi) 12. Numeral 14 denotes buses. As shown in Fig. 2, a memory unit carried by the PMC-RAM board 8 includes a ROM region 8a for storing PMC control software and a RAM region 8b for storing various sequence programs and the like. During a debugging process in the NC unit, the board 8 is normally attached to the PMC 2, as shown in Fig. 1. Before the machine is delivered to a user or the like, after having undergone a debugging process and other processes, the memory contents of the PMC-RAM board 8 are transferred to and stored in a memory unit in the ROM cassette 13 through the interface 10. As a result, the memory contents of the memory unit of the PMC-RAM board 8 are copied into the ROM cassette 13 as they are, as shown in Fig. 2. The NC unit is shipped in a state such that the ROM cassette 13 storing the contents of the PMC-RAM board 8 is attached, in place of the PMC-RAM board 8, to the PMC 2. Thus, the NC unit is usually loaded with the ROM cassette 13 when it is used. Conventionally, in initializing the values of PMC parameters, i.e., various parameters of counters, timers, keep relays, etc., for some reason, with the ROM cassette 13 mounted in place of the PMC-RAM board 8, the various parameter values are set into a nonvolatile section of the common RAM 6 by means of a manual-data input section of the CRT/MDi 12, through the medium of the interface 11 and the BAC 5. Then, the initial values of the various parameters, set in the common RAM 6, are transferred to the RAM 9 by the CPU 7 of the PMC 2. This initialization system, however, is subject to a drawback such that if a large capacity is used to store the PMC parameters, in particular, the initialization by manual input requires too much time. Thereupon, the present invention is designed so that the initial values of the PMC parameters are written in the ROM cassette 13 while the contents of the memory unit of the PMC-RAM board 8 are written in the ROM cassette 13. Thus, the initialization is performed with use of the initial values of the PMC parameters stored in the ROM cassette 13. While the memory contents of the PMC-RAM board 8 are written in the ROM cassette 13 after the end of the debugging process, the CPU 7 of the PMC 2 performs the processing shown in Fig. 3. First, the initial values of the PMC parameters of the RAM 9 of the PMC 2 are stored in a memory region (A ∼ B) for setting the initial values of the PMC parameters. Thereafter, a write command is inputted through the CRT/MDi 12. When this command is inputted, the program of Fig. 3 is executed. First, the CPU 7 searches for a blank region of the PMC-RAM board 8 (Step S1). Then, the CPU 7 compares the memory size of the detected blank region with that of the PMC-parameter memory region (A ∼ B) of the RAM 9, and determines whether the size of the blank region is equal to or greater than the PMC parameter size (Step S2). If the PMC-parameter memory region (A ∼ B) of the RAM 9 is greater, then all the initial values of the PMC parameters cannot be written in the detected blank region, so that the storage in the ROM cassette 13 is held. Then, whether the final address of the PMC-RAM board 8 is reached is determined (Step S3), and the processes of Steps S1 to S3 are repeated. If a blank region of the PMC-RAM board 8 greater than or equal to the PMC-parameter memory region (A ∼ B) is found in the meantime, the initial values of the PMC parameters, stored in the RAM 9, are transferred to and written in the blank region (Step S4). For example, if there exists a blank region between A' and B' in the RAM region of the PMC-RAM board 8, as shown in Fig. 4, the size of the blank region (A' ∼ B') is compared with that of the PMC-parameter memory region (A ∼ B) of the RAM 9. If the blank region (A' ∼ B') of the PMC-RAM board 8 is greater or both these regions are equal in size, that is, if (A ∼ B) ≦ (A' ∼ B') holds, the initial values of the PMC parameters are written in the blank region. After the initial values of the PMC parameters are thus written in the blank region of the PMC-RAM board 8, the contents of the PMC-RAM board 8 are written in the ROM cassette 13 (Step S5) in the same conventional manner as aforesaid. If the size of the blank region of the PMC-RAM board 8 is smaller than that of each PMC-parameter memory region (A ∼ B) of each RAM 9, on the other hand, and if it is concluded in Step S3 that the final address of the PMC-RAM board 8 is reached, the CPU 7 causes an alarm indication to be displayed on a CRT screen of the CRT/MDi 12, through the medium of the BAC 5 and the interface 11, and makes a demand for the replacement of the PMC-RAM board 8 by one with a larger capacity. When the write command is inputted again through the CRT/MDi 12 after the replacement by the larger-capacity PMC-RAM board 8, the processes of Step S1 and the subsequent steps are executed, and the initial values of the PMC parameters are written in the ROM cassette 13. Then, the PMC 2 is loaded with the ROM cassette 13, with the required contents written therein, and the PMC-RAM board 8 is removed. Thereafter, the NC unit is submitted to use. If it is necessary to initialize the PMC parameters, an initialization command is inputted through the CRT/MDi 12 with the ROM cassette 13 mounted. The CPU 7 determines whether the initialization command is delivered (Step S11 of Fig. 5), and sets the initial values of the PMC parameters, stored in the ROM cassette 13, in the RAM 9 and the common RAM 6, thus initializing the PMC parameters instantly (Step S12).

Claims: A parameter initializing method for a programmable machine controller (2) which performs control operations using predetermined memory contents transferred to and stored in a read-only memory cassette (13) after debugging by means of a random access memory for debugging (8), said method comprising: (a) storing the initial values of various control parameters of said programmable machine controller (2) in a random access memory for initial-value setting (9), said random access memory for initial-value setting (9) forming part of said programmable machine controller (2); (b) transferring said initial values from said random access memory for initial-value setting (9) to a blank memory region of said random access memory for debugging (8); (c) transferring said predetermined memory contents and said initial values of said various control parameters from said random access memory for debugging (8) to said read-only memory cassette (13); and (d) subsequently, in response to a command for parameter initialization, when said controller (2) is loaded with said cassette (13), initializing the values of said various control parameters by transferring said initial values stored in said read-only memory cassette (13) to said random access memory for initial-value setting (9). A parameter initializing method for a programmable machine controller (2) according to claim 1, wherein said step (b) includes a step (b1) of searching for the blank memory region of the random access memory for debugging (8), and a step (b2) of determining whether the capacity of the blank memory region, searched-for in this manner, is or is not smaller than the capacity required for storing all the initial values of said various control parameters stored in said random access memory for initial value setting (9). A parameter initializing method for a programmable machine controller (2) according to claim 2, wherein said step (c) is executed when it is concluded in step (b2) that the capacity of the searched-for blank memory region is not smaller than the capacity required for storing all the initial values of said various control parameters. A parameter initializing method for a programmable machine controller according to claim 2 or 3, wherein an alarm is given when it is concluded in step (b2) that the capacity of each said blank memory region, searched-for in said step (b1), is smaller than the capacity required for storing all the initial values of said various control parameters.

Inventors: KIYA NOBUYUKI, SAIKI YOSHIHARU, TORIYAMA SHUJI, KIYA, NOBUYUKI, SAIKI, YOSHIHARU, TORIYAMA, SHUJI
Applicants: FANUC LTD, FANUC LTD.
Application year: 1987
Main classification: G05B19
IPC codes: G05B19