Control device for controlling machine by extension software
The control device addresses the challenge of processing changes in expansion software by using preprocessing programs to manage file names, program operations, and order, ensuring successful addition and deletion of extended functions and peripherals in robot and machine tool controllers.
Patent Information
- Application Number
- PCT/JP2023/019768
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-05-26
- Publication Date
- 2024-12-05
AI Technical Summary
There is a need for technology that can successfully process changes to expandable functions and expansion software used to control peripheral devices in robot controllers and numerical control devices, as existing methods often fail due to issues like file name conflicts, running programs, and improper order of software addition or deletion.
A control device with a pre-processing program storage unit and execution unit that executes preprocessing programs before modifying expansion software, allowing for smooth addition or deletion of extended functions by changing file names, stopping running programs, specifying addition or deletion orders, and managing peripheral device operations.
Enables normal and successful processing of adding or removing expansion software, preventing failures such as file name conflicts and improper order issues, ensuring seamless integration and removal of extended functions and peripherals.
Smart Images

Figure JP2023019768_05122024_PF_FP_ABST
Abstract
Description
A control device that controls the machine using extended software
[0001] The present disclosure relates to a control device that controls a machine using extended software.
[0002] Robots and machine tools (hereinafter sometimes simply referred to as "machines") are controlled by robot rollers and numerical control devices (hereinafter sometimes simply referred to as "controllers"), respectively, in accordance with "standard software" and "expansion software." The standard operation of the machine is controlled by the controller based on the standard software that is already installed (implemented) in the controller when the machine and its controller are shipped from the factory. On the other hand, the operation of optional functions and optional peripheral devices that can be added or removed later is controlled by the controller based on expansion software.
[0003] Robots and machine tools are highly flexible and can be used in a variety of applications, and optional functions and optional peripheral devices can be added to or removed from the control device as needed. For example, after a machine and its control device are shipped from a factory, a user (a customer who uses the machine and its control device) or a manufacturer (a manufacturer of the machine and its control device) may perform modification processing, such as adding expansion software to the control device or removing unnecessary expansion software from the control device, depending on the application or purpose.
[0004] Japanese Patent Application Laid-Open No. 06-309018 Japanese Patent Application Laid-Open No. 2015-069601
[0005] In robot controllers that control robots and numerical control devices that control machine tools, there is a demand for technology that can properly process changes to expandable functions and extension software used to control peripheral devices.
[0006] According to one aspect of the present disclosure, the control device includes a pre-processing program storage unit that stores a pre-processing program that is executed before a change process is performed on extension software for controlling an extension function of the machine, a pre-processing program execution unit that executes the pre-processing program stored in the pre-processing program storage unit, and a change processing unit that executes a change process on the extension software after execution of the pre-processing program by the pre-processing program execution unit, and the extension software is configured to include a pre-processing program corresponding to the extension software.
[0007] FIG. 1 is a block diagram showing a control device according to an embodiment of the present disclosure. FIG. 2 is a block diagram showing a control device according to a modified example of an embodiment of the present disclosure. FIG. 3 is a flowchart showing an operation flow of addition processing according to a first mode in the control device 1 according to the embodiment of the present disclosure and its modified example. FIG. 4 is a flowchart showing an operation flow of addition processing according to a second mode in the control device 1 according to the embodiment of the present disclosure and its modified example. FIG. 5 is a flowchart showing an operation flow of addition processing according to a third mode in the control device 1 according to the embodiment of the present disclosure and its modified example. FIG. 6 is a flowchart showing an operation flow of deletion processing according to a first mode in the control device 1 according to the embodiment of the present disclosure and its modified example. FIG. 7 is a flowchart showing an operation flow of deletion processing according to a second mode in the control device 1 according to the embodiment of the present disclosure and its modified example.
[0008] A control device that controls a machine using extension software according to an embodiment will be described below with reference to the drawings. In the following description, components having the same or similar functions will be assigned the same reference numerals. Duplicate descriptions of those components may be omitted. The scale of the drawings has been appropriately changed to facilitate understanding.
[0009] A control device according to an embodiment of the present disclosure is a robot controller that controls a robot or a numerical control device that controls a machine tool. Here, as an example, a case where the control device is a robot controller will be described, but the following description is also applicable to a case where the control device is a numerical control device.
[0010] <Overall Configuration of One Embodiment of the Present Disclosure> FIG. 1 is a block diagram showing a control device according to one embodiment of the present disclosure.
[0011] The functions of the control device 1 that controls a robot (not shown) are roughly divided into standard functions and extended functions. The control device 1 according to an embodiment of the present disclosure controls the robot using standard software for controlling the standard functions of the control device 1 and extended software for controlling the extended functions of the control device 1.
[0012] The "standard function" refers to a basic function that is pre-installed (implemented) in the control device 1 and a function that controls existing peripheral devices. The control device 1 controls the standard function of the control device 1 based on standard software.
[0013] "Expansion function" refers to an optional function that can be added to the control device 1 later or a function that controls optional peripheral devices. The control device 1 controls the expansion functions of the robot based on expansion software. The expansion functions of the control device 1 can be changed, such as added or deleted, after the robot and control device 1 are shipped from the factory. For example, if an expansion function needs to be added to the control device 1 after the robot and control device 1 are shipped from the factory, the user or manufacturer will add the expansion software corresponding to the expansion function. Furthermore, if there is an expansion function that is no longer needed in the control device 1 after the robot and control device 1 are shipped from the factory, the user or manufacturer will delete the expansion software corresponding to the expansion function.
[0014] Examples of extension software include extension software for controlling specific peripheral devices of the robot, extension software for making the arms of the robot perform special movements, and extension software for making the main body (base) of the robot perform special movements, but other extension software may also be included. Of these, examples of extension software for controlling specific peripheral devices of the robot include extension software for controlling specific hands attached to the robot, extension software for controlling specific tools attached to the robot, extension software for controlling specific cameras attached to the robot, and extension software for controlling specific sensors attached to the robot, but other extension software may also be included.
[0015] The extension software is defined for each extension function. In particular, in the embodiment of the present disclosure, the extension software is configured as an archive file that includes program information, screen information, setting information, and the like, as well as a pre-processing program, all packaged together.
[0016] The pre-processing program, which is one component of the extension software, is a program executed as a pre-processing step before executing the change processing for the extension software, in order to ensure that the "change processing for the extension software," such as the processing for adding the extension software to the control device 1 and the processing for deleting the extension software from the control device 1, can be performed smoothly and normally. In this sense, the pre-processing program may also be called a "pre-processing program" or a "preparation processing program."
[0017] Examples of pre-processing programs include a pre-processing program for changing the file name of program information, a pre-processing program that specifies the order in which expansion software is added, a pre-processing program for deleting a main program specified in the program information, a pre-processing program for stopping the execution of a main program specified in the program information, a pre-processing program for stopping the operation of a peripheral device controlled by expansion software, a pre-processing program for deleting a main program that is running by referencing the program information of other expansion software, a pre-processing program that specifies the order in which expansion software is deleted, and a pre-processing program that resets various variables of a main program specified in the program information to their initial values, but other pre-processing programs may also be included.
[0018] The program information, which is one of the components of the extension software, defines the main program that is directly or indirectly involved in controlling the extension function. For example, the program information includes a command file that describes commands to the control device 1 (processes that the control device 1 should execute for the extension function).
[0019] The screen information, which is one of the components of the extension software, includes screen files and image files used for displaying the screen of a teaching operation panel (not shown) or an external display device (not shown) connected to the control device 1.
[0020] The setting information, which is one component of the extension software, defines information about various settings of the extension functions controlled by the extension software, such as setting information about the supply voltage of peripheral devices, setting information about communication with peripheral devices, setting information about the robot's coordinate system, setting information about the load, and other setting information.
[0021] In one embodiment of the present disclosure, extension software is created in advance in an archive file format that packages the above-mentioned pre-processing program, program information, screen information, setting information, etc. When performing a change process (i.e., an addition process or a deletion process) on the extension software, the pre-processing program is executed before performing the change process on the extension software, and the change process on the extension software is performed after the pre-processing program is executed.
[0022] 1 , a control device 1 according to an embodiment of the present disclosure includes a candidate storage unit 10, a pre-processing program introduction unit 11, a pre-processing program storage unit 12, a pre-processing program execution unit 13, a change processing unit 14, an extension software storage unit 15, an addition reception unit 16, a deletion reception unit 17, and a control unit 20. Although not shown here, the control device 1 also includes a power supply, a measuring device, an input device, a display device, a cooling device, and other circuits.
[0023] The candidate storage unit 10 stores candidate extension software for addition. The extension software stored in the candidate storage unit 10 is not directly used for controlling the extended functions by the control device 1 simply by being stored in the candidate storage unit 10. By storing multiple extension software that a user who purchases the robot and its control device 1 may add as candidate extension software in advance in the candidate storage unit 10, the user can easily and quickly select and add the desired extension software. The candidate extension software for addition is stored in the candidate storage unit 10 by the manufacturer of the control device 1 when the control device 1 is manufactured.
[0024] The candidate storage unit 10 does not need to be a storage device capable of high-speed reading and writing; an inexpensive storage device capable of low-speed reading and writing can be used. Furthermore, the candidate storage unit 10 is preferably a large-capacity storage device so that it can store multiple extension software programs that are candidates for addition. Examples of the candidate storage unit 10 include a hard disk drive (HD), a solid-state drive (SSD), and a flash memory. The greater the number of extension software programs stored in the candidate storage unit 10, the greater the range of options for adding extension software programs to the control device 1. In the example shown in FIG. 1 , the candidate storage unit 10 stores extension software programs A and B, for example.
[0025] A pre-processing program that is executed before modification processing of the extension software is stored in the pre-processing program storage unit 12. The pre-processing program storage unit 12 may be a non-volatile memory such as an SRAM or an EEPROM, or a volatile memory such as a DRAM, as long as it is a rewritable memory.
[0026] The extension software storage unit 15 stores extension software added to the control device 1. Control of the extended functions in the control device 1 is realized by the control unit 20 executing the extension software stored in the extension software storage unit 15. In other words, the extension software stored in the extension software storage unit 15, rather than the extension software stored in the candidate storage unit 10, is directly used to control the extended functions by the control device 1. The extension software storage unit 15 may be a non-volatile memory such as an SRAM or an EEPROM, or a volatile memory such as a DRAM, as long as it is a rewritable memory.
[0027] The addition reception unit 16 receives an addition command for selecting extension software to be added from the extension software candidates for addition stored in the candidate storage unit 10. For example, a list of extension software candidates for addition is displayed on the screen of an output device of the control device 1 or a teaching operation panel (not shown) connected thereto, and the operator can refer to this list and use the input device to select one or more extension software programs to be added. In response to the operator's operation, the input device sends an addition command indicating the selected extension software programs to the addition reception unit 16. The addition reception unit 16 notifies the pre-processing program introduction unit 11 and the change processing unit 14 that the addition command has been received.
[0028] The deletion receiving unit 17 receives a deletion command for selecting extension software to be deleted from the extension software stored in the extension software storage unit 15. For example, a list of extension software already added to the control unit 1 is displayed on the screen of an output device of the control unit 1 or a teaching pendant (not shown) connected thereto, and the operator can refer to this list and select one or more pieces of extension software to be deleted using the input device. In response to the operator's operation, the input device sends a deletion command indicating the selected extension software to be deleted to the deletion receiving unit 17. The deletion receiving unit 17 notifies the pre-processing program execution unit 13 and the change processing unit 14 that the deletion command has been received.
[0029] When the addition receiving unit 16 receives an addition command, the pre-processing program introduction unit 11 reads a pre-processing program in the extension software to be added from the candidate storage unit 10 before executing a change process, which is an addition process for the extension software, and stores the pre-processing program in the pre-processing program storage unit 12. When the addition command received by the addition receiving unit 16 indicates the selection of multiple extension software to be added, the pre-processing program introduction unit 11 reads all pre-processing programs in the multiple extension software to be added from the candidate storage unit 10 and stores all of the pre-processing programs in the pre-processing program storage unit 12. In the example shown in FIG. 1 , the pre-processing program storage unit 12 stores, for example, pre-processing programs a1 and a2 for extension software A and pre-processing programs b1 and b2 for extension software B.
[0030] When the addition receiving unit 16 receives an addition command, the pre-processing program execution unit 13 executes a pre-processing program stored in the pre-processing program storage unit 12 that corresponds to the extension software to be added. When the deletion receiving unit 17 receives a deletion command, the pre-processing program execution unit 13 executes a pre-processing program stored in the pre-processing program storage unit 12 that corresponds to the extension software to be deleted. More details are as follows.
[0031] When the addition reception unit 16 receives an addition command, the pre-processing program execution unit 13 executes a pre-processing program stored in the pre-processing program storage unit 12 that corresponds to the extension software to be added before the change processing unit 14 executes the process of adding the extension software. When the addition command received by the addition reception unit 16 indicates the selection of multiple pieces of extension software to be added, the pre-processing program execution unit 13 executes at least one of all the pre-processing programs stored in the pre-processing program storage unit 12 that correspond to the extension software to be added.
[0032] When the deletion receiving unit 17 receives a deletion command, the pre-processing program execution unit 13 executes a pre-processing program stored in the pre-processing program storage unit 12 that corresponds to the extension software to be deleted before the change processing, which is a deletion processing of the extension software, is executed by the change processing unit 14. When the deletion command received by the deletion receiving unit 17 indicates the selection of multiple pieces of extension software to be deleted, the pre-processing program execution unit 13 executes at least one of the multiple pre-processing programs stored in the pre-processing program storage unit 12 that corresponds to the extension software to be deleted.
[0033] The change processing unit 14 executes a change process for the extension software after the pre-processing program execution unit executes the pre-processing program. More specifically, the process is as follows.
[0034] When the addition reception unit 16 receives an addition command, the change processing unit 14 executes an addition process in which the pre-processing program execution unit 13 executes a pre-processing program corresponding to the extension software to be added, and then the change processing unit 14 reads the extension software to be added from the candidate storage unit 10 and stores it in the extension software storage unit 15. When the addition command received by the addition reception unit 16 indicates the selection of multiple extension software to be added, the change processing unit 14 executes the addition process after the pre-processing program execution unit 13 executes at least one of all the pre-processing programs corresponding to the extension software to be added. In this way, the extension software to be added is added to the control device 1. In the example shown in FIG. 1 , as an example, extension software A, B, etc. are stored in the extension software storage unit 15.
[0035] When the deletion receiving unit 17 receives a deletion command, the change processing unit 14 executes a deletion process in which the pre-processing program execution unit 13 executes a pre-processing program corresponding to the extension software to be deleted, and then deletes the extension software to be deleted from the extension software storage unit 15. When the deletion command received by the deletion receiving unit indicates the selection of multiple pieces of extension software to be deleted, the change processing unit 14 executes the deletion process in which the pre-processing program execution unit 13 executes at least one of all the pre-processing programs corresponding to the extension software to be deleted. As a result, the extension software to be deleted is deleted from the control device 1.
[0036] Although the pre-processing program storage unit 12 and the extension software storage unit 15 are separate storage devices, the same storage device may be provided with separate storage areas for the pre-processing program storage unit 12 and the extension software storage unit 15. This allows for further reductions in the mounting area on the board and manufacturing costs.
[0037] The control device 1 includes at least one processor, which is an arithmetic processing device. Examples of the arithmetic processing device include an IC, an LSI, a CPU, an MPU, and a DSP. The arithmetic processing device includes a pre-processing program introduction unit 11, a pre-processing program execution unit 13, a change processing unit 14, an addition acceptance unit 16, a deletion acceptance unit 17, a control unit 20, and other processing units. Each of these units included in the arithmetic processing device is a functional module implemented by a program executed on the processor. For example, if the pre-processing program introduction unit 11, the pre-processing program execution unit 13, the change processing unit 14, the addition acceptance unit 16, the deletion acceptance unit 17, the control unit 20, and other processing units are implemented in the form of a program, the functions of each unit can be realized by operating the arithmetic processing device in accordance with the program. The programs for executing the processes in the pre-processing program introduction unit 11, the pre-processing program execution unit 13, the change processing unit 14, the addition acceptance unit 16, the deletion acceptance unit 17, the control unit 20, and other processing units may be provided in the form of a computer-readable recording medium, such as a semiconductor memory, a magnetic recording medium, or an optical recording medium. Alternatively, the pre-processing program introduction unit 11, the pre-processing program execution unit 13, the change processing unit 14, the addition reception unit 16, the deletion reception unit 17, the control unit 20, and other processing units may be realized as a semiconductor integrated circuit into which programs that realize the functions of each unit are written.
[0038] The control device 1 also includes at least one memory serving as a storage device. The memory includes a candidate storage unit 10, a pre-processing program storage unit 12, and an extended software storage unit 15. Examples of the memory include electrically erasable and recordable non-volatile memory such as EEPROM (registered trademark), or high-speed read / write random access memory such as DRAM or SRAM. The storage device may also include a hard disk drive (HDD) or a solid state drive (SSD). The memory may store programs for operating the pre-processing program introduction unit 11, the pre-processing program execution unit 13, the change processing unit 14, the addition acceptance unit 16, the deletion acceptance unit 17, the control unit 20, and other processing units. The memory may also store various programs and data related to the control device 1. The memory may also store various programs and data related to the robot controlled by the control device 1.
[0039] <Overall Configuration of Modified Example of One Embodiment of the Present Disclosure> FIG. 2 is a block diagram showing a control device according to a modified example of one embodiment of the present disclosure.
[0040] In the embodiment described with reference to FIG. 1, the candidate storage unit 10 is provided within the control device 1. However, as a variant, the candidate storage unit 10 may be provided in an external storage device 2 outside the control device 1.
[0041] 2, the control device 1 according to an embodiment of the present disclosure includes a pre-processing program introduction unit 11, a pre-processing program storage unit 12, a pre-processing program execution unit 13, a change processing unit 14, an extension software storage unit 15, an addition reception unit 16, a deletion reception unit 17, and a control unit 20. Although not shown here, the control device 1 also includes a power supply, a measuring device, an input device, a display device, a cooling device, and other circuits.
[0042] The pre-processing program introduction unit 11, pre-processing program storage unit 12, pre-processing program execution unit 13, change processing unit 14, extended software storage unit 15, addition reception unit 16, deletion reception unit 17, and control unit 20 within the control device 1 are as described with reference to Figure 1.
[0043] The external storage device 2 provided outside the control device 1 includes a candidate storage unit 10. The function and operation of the candidate storage unit 10 have been described with reference to FIG. 1 . When the addition receiving unit 16 receives an addition command, the pre-processing program introduction unit 11 reads a pre-processing program corresponding to the extension software to be added from the candidate storage unit 10 in the external storage device 2 and stores it in the pre-processing program storage unit 12 before the change processing unit 14 executes the addition process. When the addition receiving unit 16 receives an addition command, the change processing unit 14 executes an addition process in which the pre-processing program execution unit 13 executes the pre-processing program, and then the change processing unit 14 reads the extension software to be added from the candidate storage unit 10 in the external storage device 2 and stores it in the extension software storage unit 15.
[0044] Examples of the external storage device 2 include portable recording media such as a USB memory, an SD card, a micro SD card, a CD, a DVD, and an MO. By electrically, magnetically, or optically connecting the external storage device 2, which is a portable recording medium, to the control device 1, the candidate storage unit 10, the pre-processing program introduction unit 11, and the change processing unit 14 are connected.
[0045] Furthermore, for example, the external storage device 2 may be configured as a storage device connected to a network. In this case, the candidate storage unit 10 is connected to the pre-processing program introduction unit 11 and the change processing unit 14 by connecting the external storage device 2 on the network to the control device 1 via wireless or wired communication. The external storage device 2 on the network is provided, for example, in a factory, warehouse, or management office where the control device 1 is installed, or in a warehouse, sales office, or maintenance service center of the manufacturer of the control device 1 or the manufacturer of the robot.
[0046] The storage of candidate extension software for addition in the candidate storage unit 10 is performed by the manufacturer of the control device 1, for example, at the time of manufacturing the external storage device 2. Furthermore, for example, if the external storage device 2 is configured as a storage device connected to a network, the manufacturer of the control device 1 may store the candidate extension software for addition in the candidate storage unit 10 of the external storage device 2, for example, every time a new candidate extension software for addition is developed.
[0047] According to this modification, newly developed extension software that can be added can be easily provided to the user even after the control device 1 has been shipped.
[0048] <Adding Extension Software in the Embodiments and Modifications of the Present Disclosure> Several operational flows for adding extension software to the control device 1 according to the embodiments and modifications of the present disclosure will be listed below.
[0049] 3 is a flowchart showing an operation flow of the first mode of addition processing in the control device 1 according to the embodiment and its modified examples of the present disclosure. In the first mode of addition processing, before the addition processing of one piece of extension software is executed, all pre-processing programs corresponding to the extension software to be added are executed.
[0050] In step S101, the addition receiving unit 16 determines whether or not an addition command has been received.
[0051] If it is determined in step S101 that an addition command has been received, the addition receiving unit 16 notifies the pre-processing program introduction unit 11 and the change processing unit 14 that the addition command has been received. Then, in step S102, the pre-processing program introduction unit 11 reads out the pre-processing program in the extension software to be added, which is indicated in the addition command, from the candidate storage unit 10. If the extension software to be added includes multiple pre-processing programs, the pre-processing program introduction unit 11 reads out all of the pre-processing programs from the candidate storage unit 10.
[0052] In step S103, the pre-processing program introduction unit 11 stores the read pre-processing program in the pre-processing program storage unit 12. If there are multiple read pre-processing programs, the pre-processing program introduction unit 11 stores all of them in the pre-processing program storage unit 12.
[0053] In step S104, the pre-processing program execution unit 13 executes the pre-processing program corresponding to the extension software to be added from among the pre-processing programs stored in the pre-processing program storage unit 12. If multiple pre-processing programs are stored in the pre-processing program storage unit 12, the pre-processing program execution unit 13 executes all of the pre-processing programs stored in the pre-processing program storage unit 12 that correspond to the extension software to be added.
[0054] In step S105 , the change processing unit 14 reads the extension software to be added, which is indicated in the addition command, from the candidate storage unit 10 and stores it in the extension software storage unit 15 .
[0055] In the addition process according to the first embodiment described above, the processes of steps S101 to S105 are executed every time the addition receiving unit 16 receives an addition command.
[0056] 4 is a flowchart showing the operation flow of the second mode of addition processing in the control device 1 according to the embodiment and its modified examples of the present disclosure. In the second mode of addition processing, all pre-processing programs corresponding to the extension software to be added are executed before the addition processing of multiple extension software programs is executed consecutively.
[0057] In step S201, the addition receiving unit 16 determines whether an addition command for selecting a plurality of pieces of extension software to be added has been received.
[0058] If it is determined in step S201 that an addition command selecting multiple pieces of extension software to be added has been received, the addition receiving unit 16 notifies the pre-processing program introduction unit 11 and the change processing unit 14 that an addition command selecting multiple pieces of extension software to be added has been received. Then, in step S202, the pre-processing program introduction unit 11 reads out from the candidate storage unit 10 all pre-processing programs included in the multiple pieces of extension software to be added.
[0059] In step S203, the pre-processing program introduction unit 11 stores all the read pre-processing programs in the pre-processing program storage unit 12.
[0060] In step S204, the pre-processing program execution unit 13 executes one of the pre-processing programs stored in the pre-processing program storage unit 12 that corresponds to the extension software to be added.
[0061] In step S205, the pre-processing program execution unit 13 determines whether all pre-processing programs corresponding to the extension software to be added have been executed. If it is determined in step S205 that all pre-processing programs have not been executed, the process returns to step S204. If it is determined in step S205 that all pre-processing programs have been executed, the process proceeds to step S206. By repeatedly executing steps S204 and S205, all pre-processing programs stored in the pre-processing program storage unit 12 will be executed by the pre-processing program execution unit 13.
[0062] In step S206 , the change processing unit 14 reads the extension software to be added, which is indicated in the addition command, from the candidate storage unit 10 and stores it in the extension software storage unit 15 .
[0063] In step S207, the change processing unit 14 determines whether all of the extension software to be added has been added. If it is determined in step S207 that all of the extension software to be added has not been added, the process returns to step S206. If it is determined in step S207 that all of the extension software to be added has been added, the process ends. By repeatedly executing steps S206 and S207, all of the extension software to be added specified in the addition command will be stored in the extension software storage unit 15.
[0064] 5 is a flowchart showing the operation flow of the addition process according to a third mode in the control device 1 according to the embodiment and its modified examples of the present disclosure. In the addition process according to the third mode, when adding multiple pieces of extension software consecutively, some of the pre-processing programs corresponding to the extension software to be added are executed together, and the remaining pre-processing programs are executed individually before the addition process of each piece of extension software is executed. Which pre-processing programs are executed together or which pre-processing programs are executed individually may be specified in advance when the control device 1 is manufactured, or may be set appropriately by an operator using an input device.
[0065] In step S301, the addition receiving unit 16 determines whether an addition command for selecting a plurality of pieces of extension software to be added has been received.
[0066] If it is determined in step S301 that an addition command selecting multiple pieces of extension software to be added has been received, the addition receiving unit 16 notifies the pre-processing program introduction unit 11 and the change processing unit 14 that an addition command selecting multiple pieces of extension software to be added has been received. Then, in step S302, the pre-processing program introduction unit 11 reads out from the candidate storage unit 10 all pre-processing programs included in the multiple pieces of extension software to be added.
[0067] In step S303, the pre-processing program introduction unit 11 stores all the read pre-processing programs in the pre-processing program storage unit 12.
[0068] In step S304, the pre-processing program execution unit 13 executes the pre-processing program that should be executed first among the pre-processing programs stored in the pre-processing program storage unit 12 and that corresponds to the extension software to be added.
[0069] In step S305, the pre-processing program execution unit 13 determines whether all of the pre-processing programs that should be executed in advance and that correspond to the extension software to be added have been executed. If it is determined in step S305 that all of the pre-processing programs that should be executed in advance have not been executed, the process returns to step S304. If it is determined in step S305 that all of the pre-processing programs that should be executed in advance have been executed, the process proceeds to step S306. By repeatedly executing steps S304 and S305, all of the pre-processing programs that should be executed in advance and that are stored in the pre-processing program storage unit 12 are executed together by the pre-processing program execution unit 13.
[0070] In step S306, the pre-processing program execution unit 13 executes a pre-processing program to be executed individually that corresponds to the extension software to be added, from among the pre-processing programs stored in the pre-processing program storage unit 12. Note that the pre-processing program executed in step S306 corresponds to the extension software to be added in step S307 following step S306.
[0071] In step S307 , the change processing unit 14 reads the extension software to be added, which is indicated in the addition command, from the candidate storage unit 10 and stores it in the extension software storage unit 15 .
[0072] In step S308, the change processing unit 14 determines whether all of the extension software to be added has been added. If it is determined in step S308 that all of the extension software to be added has not been added, the process returns to step S306. If it is determined in step S308 that all of the extension software to be added has been added, the process ends. By repeatedly executing steps S306 to S308, the pre-processing programs that should be executed individually are executed, and all of the multiple extension software to be added that were specified in the addition command are stored in the extension software storage unit 15.
[0073] As described above, in the addition processes according to the first to third modes, the pre-processing program execution unit 13 executes at least one of all the pre-processing programs stored in the pre-processing program storage unit 12. Then, after the pre-processing program execution unit 13 has executed at least one of all the pre-processing programs, the change processing unit 14 executes an addition process to store the extension software in the extension software storage unit 15.
[0074] <Deletion of Extension Software in the Embodiments and Modifications of the Present Disclosure> Several operational flows for deleting extension software from the control device 1 according to the embodiments and modifications of the present disclosure will be listed below.
[0075] 6 is a flowchart showing the operation flow of a first mode of deletion processing in the control device 1 according to the embodiment and its modified examples of the present disclosure. In the deletion processing according to the first mode, before the deletion processing of one piece of extension software is executed, all pre-processing programs corresponding to the extension software to be deleted are executed.
[0076] In step S401, the deletion receiving unit 17 determines whether or not a deletion command has been received.
[0077] If it is determined in step S401 that a deletion command has been received, the deletion receiving unit 17 notifies the pre-processing program execution unit 13 and the change processing unit 14 that the deletion command has been received. Then, in step S402, the pre-processing program execution unit 13 executes the pre-processing program stored in the pre-processing program storage unit 12 that corresponds to the extension software to be deleted.
[0078] In step S403 , the change processing unit 14 executes a process of deleting the extension software to be deleted from the extension software storage unit 15 .
[0079] In the deletion process according to the first embodiment described above, steps S401 to S403 are executed every time the deletion receiving unit 17 receives a deletion command.
[0080] 7 is a flowchart showing the operation flow of the deletion process according to a second mode in the control device 1 according to the embodiment and its modified examples of the present disclosure. In the deletion process according to the second mode, all pre-processing programs corresponding to the extension software to be deleted are executed before the deletion processes for multiple extension software programs are executed consecutively.
[0081] In step S501, the deletion receiving unit 17 determines whether a deletion command for selecting a plurality of pieces of extension software to be deleted has been received.
[0082] If it is determined in step S501 that a deletion command selecting multiple pieces of extension software to be deleted has been received, the deletion receiving unit 17 notifies the pre-processing program execution unit 13 and the change processing unit 14 that a deletion command selecting multiple pieces of extension software to be added has been received. Then, in step S502, the pre-processing program execution unit 13 executes a pre-processing program stored in the pre-processing program storage unit 12 that corresponds to the extension software to be deleted.
[0083] In step S503, the pre-processing program execution unit 13 determines whether all pre-processing programs corresponding to the extension software to be deleted have been executed. If it is determined in step S503 that all pre-processing programs have not been executed, the process returns to step S502. If it is determined in step S503 that all pre-processing programs have been executed, the process proceeds to step S504. By repeatedly executing steps S502 and S503, all pre-processing programs stored in the pre-processing program storage unit 12 will be executed by the pre-processing program execution unit 13.
[0084] In step S504 , the change processing unit 14 executes a process of deleting the extension software to be deleted from the extension software storage unit 15 .
[0085] In step S505, the change processing unit 14 determines whether all of the extension software to be deleted has been deleted. If it is determined in step S505 that all of the extension software to be deleted has not been deleted, the process returns to step S504. If it is determined in step S505 that all of the extension software to be deleted has been deleted, the process ends. By repeatedly executing steps S504 and S505, all of the multiple extension software to be deleted specified in the deletion command will be deleted from the extension software storage unit 15.
[0086] 8 is a flowchart showing the operation flow of a deletion process according to a third mode in the control device 1 according to the embodiment and its modified examples of the present disclosure. In the deletion process according to the third mode, when the deletion process of multiple extension software programs is executed consecutively, some of the pre-processing programs corresponding to the extension software to be deleted are executed together, and the remaining pre-processing programs are executed individually before the addition process of each extension software program is executed. Which pre-processing programs are executed together or which pre-processing programs are executed individually may be specified in advance when the control device 1 is manufactured, or may be set appropriately by an operator using an input device.
[0087] In step S601, the deletion receiving unit 17 determines whether or not an addition command for selecting a plurality of pieces of extension software to be deleted has been received.
[0088] If it is determined in step S601 that a deletion command selecting multiple pieces of extension software to be deleted has been received, the deletion receiving unit 17 notifies the pre-processing program executing unit 13 and the change processing unit 14 that a deletion command selecting multiple pieces of extension software to be deleted has been received. Then, in step S602, the pre-processing program that should be executed first and that corresponds to the extension software to be deleted, among the pre-processing programs stored in the pre-processing program storage unit 12, is executed.
[0089] In step S603, the pre-processing program execution unit 13 determines whether all of the pre-processing programs that should be executed in advance and that correspond to the extension software to be deleted have been executed. If it is determined in step S603 that all of the pre-processing programs that should be executed in advance have not been executed, the process returns to step S602. If it is determined in step S603 that all of the pre-processing programs that should be executed in advance have been executed, the process proceeds to step S604. By repeatedly executing steps S602 and S603, all of the pre-processing programs that should be executed in advance and that correspond to the extension software to be deleted and that are stored in the pre-processing program storage unit 12 are executed together by the pre-processing program execution unit 13.
[0090] In step S604, the pre-processing program execution unit 13 executes a pre-processing program to be executed individually that corresponds to the extension software to be deleted from among the pre-processing programs stored in the pre-processing program storage unit 12. Note that the pre-processing program executed in step S604 corresponds to the extension software that is scheduled to be deleted in step S605 following step S604.
[0091] In step S605, the change processing unit 14 executes a process of deleting the extension software to be deleted from the extension software storage unit 15.
[0092] In step S606, the change processing unit 14 determines whether all of the extension software to be deleted has been deleted. If it is determined in step S606 that all of the extension software to be deleted has not been deleted, the process returns to step S604. If it is determined in step S606 that all of the extension software to be deleted has been deleted, the process ends. By repeatedly executing steps S604 to S606, all of the extension software to be deleted that was specified in the deletion command is deleted from the extension software storage unit 15 while the pre-processing programs that should be executed individually are executed.
[0093] Although the above description has been given of the case where the control device 1 is a robot controller that controls a robot, the above description can also be applied to a numerical control device that controls a machine tool.
[0094] As described above, according to the embodiments of the present disclosure, in a robot controller that controls a robot, a numerical control device that controls a machine tool, or the like, it is possible to successfully perform change processing such as addition processing and deletion processing on extension software used to control extensible functions and peripheral devices.
[0095] For example, in the past, when adding extension software to a control device, if the extension software contained a program with the same name as a program already installed in the control device, the addition of the extension software failed. To address this situation, in embodiments and variations of the present disclosure, the extension software is pre-configured to include, for example, a pre-processing program for changing the file name of the program information. When adding extension software to the control device, the pre-processing program for changing the file name of the program information is first executed, and then the process for adding the extension software is executed. This allows the extension software to be successfully added. Alternatively, the extension software may be pre-configured to include, for example, a pre-processing program for deleting a main program that is running by referencing the program information of other extension software. When adding extension software to the control device, the pre-processing program for deleting a main program that is running by referencing the program information of other extension software is first executed, and then the process for adding the extension software is executed. This allows the extension software to be successfully added.
[0096] For example, some expansion software programs assume that other expansion software programs have already been added. When adding multiple expansion software programs, they must be added in the appropriate order, and in the past, it was sometimes impossible to add multiple expansion software programs at once. To address this situation, in the embodiments and variations of the present disclosure, for example, a pre-processing program that defines the order in which the expansion software programs should be added is included in the expansion software program and configured in advance. When adding multiple expansion software programs to a control device, the pre-processing program that defines the order in which the expansion software programs should be added is first executed, and the expansion software addition process is then performed in the order defined in the pre-processing program. This allows the expansion software programs to be added correctly in the appropriate order, and allows multiple expansion software programs to be added at once.
[0097] For example, when deleting extension software from a control device, all programs included in the extension software must be stopped. Conventionally, if an attempt is made to delete the extension software while the programs included in the extension software are still running, the deletion of the extension software has failed. To address this situation, in an embodiment and its variations of the present disclosure, a pre-processing program for stopping the execution of a main program defined in the program information of the extension software is included in the extension software in advance. When deleting the extension software from a control device, the pre-processing program for stopping the execution of the main program defined in the program information is first executed to stop the main program, and then the deletion process for the extension software is executed. This allows the extension software to be successfully deleted.
[0098] For example, when deleting extension software from a control device, the peripheral devices controlled by the extension software must be stopped. Conventionally, when attempting to delete extension software while the peripheral devices controlled by the extension software are still in operation, the deletion of the extension software may fail or the peripheral devices may malfunction. To address such situations, in an embodiment and its variations of the present disclosure, the extension software may be configured in advance to include a pre-processing program for stopping the operation of the peripheral devices controlled by the extension software. When deleting the extension software from a control device, the pre-processing program for stopping the operation of the peripheral devices controlled by the extension software is first executed to properly stop the peripheral devices, and then the deletion process for the extension software is executed. This allows the extension software to be properly deleted.
[0099] For example, if the program information of a piece of expansion software is referenced by another piece of expansion software, the piece of expansion software cannot be deleted first. Therefore, when deleting multiple pieces of expansion software, the pieces of expansion software must be deleted in the appropriate order. Conventionally, it has sometimes been impossible to delete multiple pieces of expansion software together. To address this situation, in embodiments and variations of the present disclosure, the expansion software is configured to include a pre-processing program that deletes the main body program that is running by referencing the program information of the other pieces of expansion software. When deleting expansion software from a control device, the pre-processing program that deletes the main body program that is running by referencing the program information of the other pieces of expansion software is first executed, and then the deletion process for the expansion software is executed. This allows the expansion software to be deleted properly and multiple pieces of expansion software to be deleted together. Alternatively, the expansion software may be configured to include a pre-processing program that defines the order in which the pieces of expansion software should be deleted. When deleting expansion software from a control device, the pre-processing program that defines the order in which the pieces of expansion software should be deleted is first executed, and then the deletion process for the expansion software is executed in the order defined by the pre-processing program. This allows the expansion software to be deleted properly in the appropriate order and multiple pieces of expansion software to be deleted together.
[0100] Although the present disclosure has been described in detail above, the present disclosure is not limited to the individual embodiments and modifications described above. Various additions, substitutions, modifications, partial deletions, etc. are possible for these embodiments and modifications within the scope of the gist of the present disclosure, or within the scope of the gist of the present disclosure derived from the content of the claims and their equivalents. These embodiments and modifications can also be implemented in combination. For example, in the above-described embodiments and modifications, the order of each operation and the order of each process are shown as examples and are not limited to these. The same applies when numerical values or mathematical formulas are used in the description of the above-described embodiments and modifications.
[0101] <Supplementary Notes> The following supplementary notes are further disclosed regarding the above-described embodiment and modifications.
[0102] (Supplementary Note 1) A control device 1 comprising: a pre-processing program storage unit 12 that stores a pre-processing program that is executed before a change process is made to extension software for controlling an extension function of a machine; a pre-processing program execution unit 13 that executes the pre-processing program stored in the pre-processing program storage unit 12; and a change processing unit 14 that executes a change process to the extension software after the pre-processing program is executed by the pre-processing program execution unit 13, wherein the extension software is configured to include a pre-processing program corresponding to the extension software. (Supplementary Note 2) The control device 1 described in Supplementary Note 1 comprises: an addition reception unit 16 that receives an addition command to select extension software to be added from extension software candidates for addition; a pre-processing program introduction unit 11 that, when the addition reception unit 16 receives the addition command, reads out a pre-processing program in the extension software to be added and stores it in a pre-processing program storage unit 12 before executing a change process that is an addition process for the extension software; and an extension software storage unit 15 that stores the added extension software, wherein, when the addition reception unit 16 receives the addition command, the change processing unit 14 executes a process to store the extension software to be added in the extension software storage unit 15 as an addition process after the pre-processing program execution unit 13 executes the pre-processing program. (Supplementary Note 3) When an addition command received by the addition receiving unit 16 indicates the selection of multiple extension software to be added, the pre-processing program introduction unit 11 reads out all pre-processing programs in the multiple extension software to be added and stores them in the pre-processing program storage unit 12; the pre-processing program execution unit 13 executes at least one of all the pre-processing programs stored in the pre-processing program storage unit 12; and the change processing unit 14 executes the addition process after the pre-processing program execution unit 13 executes at least one of all the pre-processing programs. This is the control device 1 described in Supplementary Note 2.(Supplementary Note 4) The control device 1 according to Supplementary Note 2, further comprising a candidate storage unit 10 that stores extension software that is a candidate for addition, and wherein the pre-processing program introduction unit 11, when the addition reception unit 16 receives an addition command, reads out a pre-processing program corresponding to the extension software to be added from the candidate storage unit 10 and stores it in the pre-processing program storage unit 12 before the addition processing is executed by the change processing unit 14. (Supplementary Note 5) The control device 1 according to Supplementary Note 2, further comprising: the candidate storage unit 10 provided in an external storage device outside the control device 1, and wherein the pre-processing program introduction unit 11, when the addition reception unit 16 receives an addition command, reads out a pre-processing program corresponding to the extension software to be added from the candidate storage unit 10 and stores it in the pre-processing program storage unit 12 before the addition processing is executed by the change processing unit 14. (Supplementary Note 6) The control device 1 according to Supplementary Note 2, further comprising: a deletion receiving unit 17 that receives a deletion command to select extension software to be deleted from among the extension software stored in the extension software storage unit 15; when the deletion receiving unit 17 receives the deletion command, the pre-processing program execution unit 13 executes a pre-processing program stored in the pre-processing program storage unit 12 that corresponds to the extension software to be deleted before executing a change process that is a process for deleting the extension software; and after the pre-processing program execution unit 13 executes the pre-processing program, the change processing unit 14 executes a process to delete the extension software to be deleted from the extension software storage unit 15 as a deletion process. (Supplementary Note 7) The control device 1 according to Supplementary Note 6, further comprising: a deletion receiving unit 17 that receives a deletion command to select extension software to be deleted from among the extension software stored in the extension software storage unit 15; when the deletion command received by the deletion receiving unit 17 indicates the selection of multiple extension software to be deleted, the pre-processing program execution unit 13 executes at least one of the multiple pre-processing programs stored in the pre-processing program storage unit 12 that corresponds to the extension software to be deleted; and the change processing unit 14 executes the deletion process after the pre-processing program execution unit 13 executes at least one of the multiple pre-processing programs. (Supplementary Note 8) The control device 1 according to Supplementary Note 2, wherein the pre-processing program storage unit 12 and the extension software storage unit 15 are provided in the same storage device.(Supplementary Note 9) The control device 1 according to any one of Supplements 1 to 8, wherein the extension software includes at least one pre-processing program corresponding to the extension software. (Supplementary Note 10) The control device 1 according to Supplementary Note 9, wherein the pre-processing program storage unit 12 stores at least one pre-processing program. (Supplementary Note 11) The control device 1 according to any one of Supplements 1 to 10, which is a numerical control device that controls a machine tool, which is a machine. (Supplementary Note 12) The control device 1 according to any one of Supplements 1 to 10, which is a robot controller that controls a robot, which is a machine.
[0103] REFERENCE SIGNS LIST 1 control device 2 external storage device 10 candidate storage unit 11 pre-processing program introduction unit 12 pre-processing program storage unit 13 pre-processing program execution unit 14 change processing unit 15 extension software storage unit 16 addition reception unit 17 deletion reception unit 20 control unit
Claims
1. A control device comprising: a pre-processing program storage unit that stores a pre-processing program that is executed before change processing is performed on extension software for controlling an extension function of a machine; a pre-processing program execution unit that executes the pre-processing program stored in the pre-processing program storage unit; and a change processing unit that executes the change processing on the extension software after execution of the pre-processing program by the pre-processing program execution unit, wherein the extension software includes the pre-processing program corresponding to the extension software.
2. A control device as described in claim 1, comprising: an addition reception unit that receives an addition command to select extension software to be added from the extension software that are candidates for addition; a pre-processing program introduction unit that, when the addition reception unit receives the addition command, reads out the pre-processing program in the extension software to be added and stores it in the pre-processing program storage unit before the change process, which is an addition process of the extension software, is executed; and an extension software storage unit that stores the added extension software, wherein, when the addition reception unit receives the addition command, the change processing unit executes a process of storing the extension software to be added in the extension software storage unit as the addition process after the pre-processing program execution unit executes the pre-processing program corresponding to the extension software to be added.
3. The control device according to claim 2, wherein when the addition command received by the addition receiving unit indicates the selection of multiple extension software to be added, the pre-processing program introduction unit reads out all pre-processing programs in the multiple extension software to be added and stores them in the pre-processing program memory unit; the pre-processing program execution unit executes at least one of all the pre-processing programs corresponding to the multiple extension software to be added that were stored in the pre-processing program memory unit; and the change processing unit executes the addition processing after the pre-processing program execution unit executes at least one of all the pre-processing programs.
4. The control device according to claim 2, further comprising a candidate storage unit which stores the extension software that is a candidate for addition, and wherein when the addition reception unit receives the addition command, the pre-processing program introduction unit reads out a pre-processing program corresponding to the extension software to be added from the candidate storage unit and stores it in the pre-processing program storage unit before the addition process is executed by the change processing unit.
5. The control device according to claim 2, wherein the extension software candidates for addition are stored in a candidate memory unit provided in an external storage device outside the control device, and when the addition reception unit receives the addition command, the pre-processing program introduction unit reads out the pre-processing program corresponding to the extension software to be added from the candidate memory unit and stores it in the pre-processing program memory unit before the addition processing is executed by the change processing unit.
6. A control device as described in claim 2, further comprising a deletion receiving unit that receives a deletion command to select extension software to be deleted from the extension software stored in the extension software storage unit, wherein when the deletion receiving unit receives the deletion command, the pre-processing program execution unit executes a pre-processing program corresponding to the extension software to be deleted from among the pre-processing programs stored in the pre-processing program storage unit before the change process, which is a deletion process of the extension software, is executed, and the change processing unit executes a process to delete the extension software to be deleted from the extension software storage unit as the deletion process after the pre-processing program execution unit executes the pre-processing program.
7. The control device according to claim 6, wherein when the deletion command received by the deletion receiving unit indicates the selection of multiple extension software to be deleted, the pre-processing program execution unit executes at least one of the multiple pre-processing programs stored in the pre-processing program storage unit that correspond to the extension software to be deleted, and the change processing unit executes the deletion process after the pre-processing program execution unit executes at least one of the multiple pre-processing programs.
8. The control device according to claim 2, wherein the pre-processing program storage unit and the extended software storage unit are provided in the same storage device.
9. The control device according to any one of claims 1 to 8, wherein the extension software includes at least one pre-processing program corresponding to the extension software.
10. The control device according to claim 9, wherein the pre-processing program storage unit stores at least one of the pre-processing programs.
11. The control device according to any one of claims 1 to 10, which is a numerical control device for controlling the machine tool, which is the machine.
12. The control device according to any one of claims 1 to 10, which is a robot controller for controlling a robot that is the machine.
Citation Information
Patent Citations
Image processor, transmitting method for firmware, and management system for image processor
JP2003196186A
Information processor, display screen customizing method, and display screen customizing program
JP2009054027A
Electronic equipment, method and program for processing information
JP2011018134A
Method for rewriting program data and equipment control system
JP2011145810A
Program, update control method, and update control device
JP2016197326A
