Program, program management device, program management system, and program management method
The program management device automates error identification and update processes in control programs, addressing inefficiencies in manual error resolution by selecting error-free revision sources for control devices, thus enhancing error resolution speed and factory reliability.
Patent Information
- Application Number
- PCT/JP2023/011946
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-10-03
AI Technical Summary
Existing program management systems require manual effort to identify and resolve execution errors in control programs, which is inefficient and time-consuming.
A program management device and method that automatically acquires error information, identifies the error-generating program, selects a revision source program with no error history, and updates the control device with a new program to prevent future errors, thereby streamlining error resolution.
This approach enables quick and efficient error resolution with minimal effort by automatically identifying and updating programs, reducing downtime and improving factory reliability.
Smart Images

Figure JP2023011946_03102024_PF_FP_ABST
Abstract
Description
Program, program management device, program management system, and program management method
[0001] The present disclosure relates to a program, a program management device, a program management device system, and a program management method.
[0002] A control device that controls an FA device controls the FA device based on a written control program. When developing a program for the control device, a developer may manage the program using a version control system. For example, Patent Document 1 discloses a system that associates and stores the device requirements of the device to be developed with the version of the control program developed for that device, thereby enabling the developer to check how the control program has been modified and which version was used in the development of which device.
[0003] Japanese Patent Application Laid-Open No. 2008-226005
[0004] When an execution error occurs in a control program at a manufacturing site, it is necessary to identify which program and which version the execution error occurred in and resolve the error. In the system of Patent Document 1, the version of the control program in which the execution error occurred must be manually identified and the error resolved, which leaves room for improvement in terms of quickly resolving errors with less effort.
[0005] The present disclosure has been made in consideration of the above-mentioned problems, and aims to propose a program, a program management device, a program management device system, and a program management method that can quickly resolve errors in managed devices with minimal effort.
[0006] In order to achieve the above-mentioned object, the program of the present disclosure causes a computer to function as: an acquisition means for acquiring error information indicating that an execution error has occurred in a control program executed by a control device that controls equipment; an error-occurring program identification means for identifying an error-occurring program, which is a control program in which an execution error has occurred, based on identification information of the control device included in the acquired error information and a write history indicating the respective records of when the control program was written to multiple control devices; an original revision identification means for identifying an original revision program of the error-occurring program based on association information that associates each control program with an original revision program, which is a control program used to develop the control program; an update program determination means for determining, from the identified original revision programs, an original revision program that has no record of an execution error, as an update program, which is a control program for updating, based on error history information indicating the record of when an execution error has occurred for each control program; and a writing means for executing a write process that writes the determined update program to a memory unit provided in the control device that executed the error-occurring program.
[0007] According to the present disclosure, a control program that is the original of a control program in which an execution error occurred is identified, and a control program that has not previously caused an execution error is selected as an update program from among the original control programs based on error history information. The selected update program is then written to a storage unit included in the control device that executed the program in which the error occurred. This allows for rapid resolution of the problem.
[0008] FIG. 1 is a block diagram showing a configuration of a program management device according to an embodiment of the present disclosure; FIG. 2 is a diagram showing an example of project management information stored in the data storage unit shown in FIG. 1; FIG. 3 is a diagram showing an example of version information managed by the revision history management unit shown in FIG. 1; FIG. 4 is a diagram showing an example of an operation status table generated by the schedule management unit shown in FIG. 1; FIG. 5 is a diagram showing an example of a schedule setting screen displayed by the schedule management unit shown in FIG. 1;
[0009] Hereinafter, a program, a program management device, a program management system, and a program management method according to embodiments of the present disclosure will be described with reference to the drawings. Note that the same or corresponding parts in the drawings are designated by the same reference numerals.
[0010] As shown in FIG. 1 , a program management device 100 according to this embodiment is installed in factories A-C, respectively, and is communicatively connected via a network 400 to a gateway 300 that collects data from a plurality of connected control devices 200. The control devices 200 include, for example, a programmable logic controller (PLC). The control devices 200 control target factory automation equipment by executing a control program, such as a ladder program. A project file containing a control program and configuration information for the control device 200 is stored in the memory of the control device 200. The project file stored in each control device 200 has a different version or revision depending on the function executed by the control program, the model number of the device, the control content, etc. Each control device 200 executes the control program included in the stored project file. If an execution error occurs in the control program, the control device 200 transmits error information indicating the execution error to the gateway 300. When the gateway 300 receives the error information, it assigns the device ID of the control device 200 in which the error occurred to the error information and transmits the error information to the program management device 100. In the illustrated example, if the control device 200 has a function for communicating with the program management device 100, the program management device 100 may communicate with the control device 200 without going through the gateway 300. The memory of the control device 200 is an example of a storage unit.
[0011] When the program management device 100 receives error information from the gateway 300, it identifies the control device 200 in which the error was detected and the project file containing the control program executed by the control device 200. The program management device 100 references the revision history and execution error occurrence history of each project file to identify a project file that has no history of error occurrence from among the project files included in the revision history. The program management device 100 can write a project file that has no history of error occurrence to the control device 200 in which the execution error was detected, at the user's option. Note that writing a project file to the control device 200 means storing the project file in the memory provided by the control device 200. The program management device 100 also identifies a derived project file developed by revising the project file containing the control program in which the execution error occurred. The project file revision includes updating the control program, updating the setting information for the control device 200, and updating both the control program and the setting information. The program management device 100 notifies the user of the identified derived project file as a project file in which an error may occur.
[0012] The program management device 100 comprises a program creation unit 110 that creates a project file including a control program, a data storage unit 120 that stores project management information that associates, for each project file, the write history to the memory of the control device 200 with the error occurrence history, a project management unit 130 that manages the revision history of the project file and resolves any execution errors that occur, an asset management unit 140 that monitors the occurrence of execution errors in the control program and writes the project file to the memory of the control device 200, and a schedule management unit 150 that manages the schedule for writing the project file.
[0013] The program creation unit 110 creates or edits a project file that includes a control program to be executed by the control device 200 and setting information for the control device 200. Specifically, the function of the program creation unit 110 is realized by a processor provided in the program management device 100 executing an engineering tool. The setting information includes the model name of the control device 200, connection information for the control device 200, various parameters set in the control device 200, etc. The program creation unit 110 stores the created project file in the data storage unit 120. The program creation unit 110 is an example of a program generation means.
[0014] The data storage unit 120 stores project files created by the program creation unit 110 and project management information that associates information on the write history and error occurrence history for each project file. As shown in FIG. 2 , the project management information includes a "revision number" that uniquely identifies each project file, a "project name" that indicates the name of the project file, a "write history" that indicates the history of which control device 200 each project file was written to, a "write date and time" that indicates the date and time each project file was written, and an "error occurrence history" that indicates the history of error occurrences. In the illustrated example, the project file with revision number "31" has the project name "Project A" and was written to the control device 200 identified by the device ID "620" installed in "Factory B" at 0:00 on February 1, 2023. Furthermore, "none" is entered in the "error occurrence history," indicating that this project file has no history of error occurrences. Note that the project management information is an example of write history and error history information.
[0015] Returning to FIG. 1, the project management unit 130 includes a revision history management unit 131 that manages the revision history of the project file created by the program creation unit 110, and an error resolution unit 132 that identifies a project file including a control program in which an execution error has occurred and identifies an update project file to resolve the error that has occurred.
[0016] The revision history management unit 131 generates version information indicating the revision history of the project file created by the program creation unit 110. As shown in FIG. 3 , the version information includes a "revision number" that uniquely identifies the project file, a "version" that identifies the version of each project file, a "project name" that indicates the name of each project file, and a "source project" that indicates the revision number of the source project file from which each project file was revised. In the illustrated example, the project file with revision number "32" has version "1.0.1 (released by Company A)," a project name "Project B," and is created by revising a project file with revision number "31." This version information makes it possible to determine which project file each project file was created by revising. Note that the version information is an example of association information or project association information.
[0017] Returning to FIG. 1 , the error resolution unit 132 identifies a project file including a control program in which an error has occurred based on the project management information stored in the data storage unit 120. Specifically, when the error resolution unit 132 receives error information from the gateway 300, it acquires the device ID included in the error information and identifies the control device 200 in which the execution error has occurred. Next, the error resolution unit 132 references the project management information shown in FIG. 2 to identify the project file currently written in the memory of the control device 200 corresponding to the acquired device ID. For example, if the error resolution unit 132 acquires the device ID "620" from the error information, it reads the "write history" information and identifies that the project files with a history of being written to the device ID "620" have revision numbers "31," "33," and "38." Next, the error resolution unit 132 reads the "write date and time" information for each of the project files. Since the project file with revision number "31" was written at 00:00 on February 1, 2023, the project file with revision number "33" was written at 00:00 on July 1, 2023, and the project file with revision number "38" was written at 00:00 on August 1, 2023, the error resolution unit 132 determines that an error has occurred in the project file with revision number "38", which has a later write date and time.
[0018] Returning to FIG. 1 , the error resolution unit 132 identifies an update project file for resolving the error that has occurred. Specifically, the error resolution unit 132 references the version information shown in FIG. 3 to acquire a revision history indicating which project file was revised to develop the project file in which the error occurred. Next, the error resolution unit 132 references the project management information shown in FIG. 2 to check the history of error occurrences included in the revision history, and determines a project file with no history of errors as the update project file. Details of the process by which the error resolution unit 132 identifies the update project file will be described later.
[0019] The error resolution unit 132 identifies a derived project file created by revising a project file including a control program in which an execution error has occurred, and notifies the user of the identified derived project file. This allows the user to know in advance which project files may experience the same error as the project file in which the execution error has occurred. Details of the process by which the error resolution unit 132 identifies a derived project file will be described later. The error resolution unit 132 is an example of an error-causing program identification means, a revision source identification means, an update program determination means, a derivative identification means, and a notification means, and the derived project file is an example of a derived program.
[0020] Returning to Figure 1, the asset management unit 140 includes a writing unit 141 that writes an update project file identified by the project management unit 130 to the memory of the control device 200, an error monitoring unit 142 that monitors the occurrence of execution errors in the control program included in the project file, and a communication unit 143 that communicates with the gateway 300.
[0021] The writing unit 141 writes an update project file that the project management unit 130 has identified as operating normally into the memory of the control device 200 in which the error occurred. Specifically, the writing unit 141 acquires, from the data storage unit 120, a project file with the revision number identified by the project management unit 130. Next, the writing unit 141 transmits the acquired project file to the control device 200 in which the error occurred and writes the transmitted project file into the memory of the control device 200. Note that the writing of the project file may be performed by the writing unit 141 transmitting the acquired project file and a message requesting the writing of this file to the control device 200, and the control device 200 writing the received project file into the memory of the control device 200 based on the received write request. Note that the writing unit 141 is an example of a writing means.
[0022] The error monitoring unit 142 monitors the occurrence of an execution error in the control program. Specifically, the error monitoring unit 142 waits for error information from the gateway 300. When the error monitoring unit 142 receives error information from the gateway 300, it transmits the received error information to the project management unit 130.
[0023] The communication unit 143 includes a network interface for communication between the program management device 100 and the gateway 300. The communication unit 143 transmits a write request from the writing unit 141 to the control device 200 and receives error information from the gateway 300. The communication unit 143 is an example of an acquisition unit.
[0024] The schedule management unit 150 sets the date and time for writing the update project file to the control device 200. Specifically, the schedule management unit 150 acquires operation data indicating the operation status of the control device 200 from the control device 200 and determines the time periods during which the control device 200 operated in the past. For example, the schedule management unit 150 generates an operation status table showing the time periods during which each control device 200 has operated, as shown in FIG. 4, based on operation data for a preset period, such as the past week or the past month, and stores the table in the data storage unit 120. When setting the date and time for writing the update project file, the user performs setting operations on the schedule setting screen shown in FIG. 5. The schedule management unit 150 displays the schedule setting screen on the display unit, in which the device ID of the control device 200 in which the execution error occurred, the factory name, and the scheduled start date and time of the write process are entered. For example, in the example of device ID "620" shown in the figure, the schedule management unit 150 acquires the current date "9 / 7" from the timer and enters the following date, "9 / 8," into the form as the scheduled start date. Next, the schedule management unit 150 refers to the operation status table shown in FIG. 4 and inputs the time "23:00," a time when there is no operation record for device ID "620," as the scheduled start time into the form. When the user presses the Set button, the schedule management unit 150 sets a transmission timer that transmits an instruction signal to the writing unit 141 to execute a write process at the date and time input into the scheduled start date and time form. The user may change the date and time input into the scheduled start date and time form. By inputting a new date and time into the form and pressing the Set button, the transmission timer is set based on the date and time changed by the user. Furthermore, if the user inputs a time when there is an operation record, the schedule management unit 150 may display an error message to notify the user that the time will be changed. Furthermore, the schedule management unit 150 may not display times when there is an operation record in the form. Furthermore, the schedule management unit 150 is an example of a schedule setting means, and the operation status table is an example of operation record information.
[0025] Next, the physical configuration of program management device 100 will be described with reference to Fig. 6. Program management device 100 includes a processor 11 that executes processing according to a program, a volatile memory such as RAM (Random Access Memory) 12, a non-volatile memory such as ROM (Read Only Memory) 13, a storage unit 14 that stores data, an input unit 15 that accepts input of information, a display unit 16 that visualizes and displays information, and a communication unit 17 that transmits and receives information, all of which are connected via an internal bus 99.
[0026] The processor 11 includes a CPU (Central Processing Unit). The processor 11 executes various processes by loading programs stored in the storage unit 14 into the RAM 12 and executing them. The processor 11 executes processes by a program creation unit 110, a project management unit 130, an asset management unit 140, and a schedule management unit 150 as main functions provided by the programs.
[0027] The RAM 12 is used as a work area for the CPU. The ROM 13 stores a control program executed by the CPU for the basic operation of the program management device 100, a BIOS (Basic Input Output System), and the like.
[0028] The storage unit 14 includes a hard disk drive, stores programs executed by the CPU, and stores various data used when the programs are executed. The storage unit 14 functions as a data saving unit 120.
[0029] The input unit 15 is a user interface including a keyboard, a mouse, etc. The display unit 16 is a display device such as a liquid crystal display or an organic EL (Electro Luminescence) display that visualizes and displays information.
[0030] The communication unit 17 is a network termination device or a wireless communication device that connects to the network, and a serial interface or a LAN interface that connects to them. The communication unit 17 receives signals from the outside and outputs data indicated by these signals to the processor 11. The communication unit 17 functions as the communication unit 143.
[0031] Next, the operation of the program management device 100 having the above configuration will be described with reference to FIG.
[0032] The data storage unit 120 of the program management device 100 stores in advance the project management information shown in FIG. 2, the version information shown in FIG. 3, and the operation status table shown in FIG.
[0033] When the writing unit 141 of the asset management unit 140 performs a process of writing a project file to the memory of the control device 200, it adds the revision number and project name of the written project file, the device ID and factory name of the target control device 200, and information on the date and time of the write process to the project management information shown in FIG. 2 and updates it. Furthermore, when the error resolution unit 132 receives error information and identifies the project file in which an error has occurred, it reads the project management information from the data storage unit 120 and updates the project management information by entering "Yes" in the "Error Occurrence History" column that is in the same column as the revision number of the identified project file. Furthermore, when the writing unit 141 outputs a write request message to the control device 200, it simply adds the date and time when the write request message was output to the project management information and updates it.
[0034] When a project file developer creates a new project file, or when an existing project file is revised to create a new version or a new revision of the project file, the developer reads the version information shown in FIG. 3 and adds information to the "revision number," "version," "project name," and "original project" items to update the version information.
[0035] The schedule management unit 150 acquires operation data indicating the operation status of the control device 200 from the control device 200, and generates an operation status table indicating time periods during which each control device 200 has operated. Specifically, the schedule management unit 150 determines time periods during which the control device 200 has operated, based on operation data from a preset period such as the past week or the past month. The schedule management unit 150 generates an operation status table every certain period, such as every week or every month, and stores the table in the data storage unit 120.
[0036] Returning to FIG. 7, when the user operates the input unit 15 to request the start of the error resolution process, the program management device 100 starts the process.
[0037] The error monitoring unit 142 of the asset management unit 140 waits for error information indicating that an execution error has occurred in the control program (step S11). When the error monitoring unit 142 receives the error information from the gateway 300 via the communication unit 143 (step S12; Yes), the error monitoring unit 142 transmits the received error information to the project management unit 130 and proceeds to the processing of step S13. On the other hand, when the error monitoring unit 142 has not received the error information (step S12; No), the error monitoring unit 142 waits for the error information until it is received (step S11).
[0038] When the error resolution unit 132 of the project management unit 130 receives the error information from the error monitoring unit 142, it identifies the project file including the control program in which the error occurred (step S13). Specifically, the error resolution unit 132 acquires the device ID of the control device 200 included in the error information and identifies the control device 200 in which the execution error occurred. Next, the error resolution unit 132 refers to the project management information shown in FIG. 2 and identifies the project file currently written in the memory of the control device 200 corresponding to the acquired device ID.
[0039] For example, if the error resolution unit 132 acquires the device ID "620" from the error information, it reads the "write history" information and determines that the project files with the history written to the device ID "620" have revision numbers "31," "33," and "38." Next, the error resolution unit 132 reads the "write date and time" information for each of these. Since the project file with revision number "31" was written at 0:00 on February 1, 2023, the project file with revision number "33" was written at 0:00 on July 1, 2023, and the project file with revision number "38" was written at 0:00 on August 1, 2023, the error resolution unit 132 determines that the project file with revision number "38," which has the latest write date and time, is the project file currently written in the memory of the control device 200 with the device ID 620 and is the project file in which the error occurred. The error resolution unit 132 updates the "Error Occurrence History" of the project management information for revision number "38" by adding "Yes" to indicate that an execution error has occurred. The project file with revision number "38" is an example of an error-causing program.
[0040] Returning to FIG. 7 , the error resolution unit 132 then identifies a project file to be updated to resolve the error (step S14). Specifically, the error resolution unit 132 references the version information shown in FIG. 3 to acquire a revision history indicating which project file was revised to develop the project file containing the control program in which the error occurred. For example, in the case of the project file with revision number "38" identified in step S13, the error resolution unit 132 reads the "original project" field in the version information and identifies the project file with revision number "38" as a project file whose original revision was revision number "33." Next, the error resolution unit 132 performs a similar process to identify the project file with revision number "33" as a project file whose original revision was revision number "31." Through these processes, the error resolution unit 132 acquires the project files with revision number "31" and revision number "33" as the revision history of the project file with revision number "38." The project files with revision number "31" and revision number "33" are examples of the pre-revision program.
[0041] Returning to FIG. 7 , the error resolution unit 132 next refers to the project management information shown in FIG. 2 , checks the error occurrence history of the project files included in the revision history, and determines the project file without an error history as the project file to be updated. Specifically, the error resolution unit 132 reads the "error occurrence history" in the project management information and obtains the error occurrence history of the project files with revision numbers "31" and "33." In the illustrated example, the project file with revision number "33," which has a more recent write date and time, has an error occurrence history, while the project file with revision number "31," which has an older write date and time, has no error occurrence history. The error resolution unit 132 determines the project file with revision number "31," which has no error occurrence history, as the project file to be updated. The error resolution unit 132 notifies the writing unit 141 that the project file with revision number "31" has been determined as the project file to be updated. Note that the project file with revision number "31" is an example of an update program.
[0042] FIG. 8 shows an example of a display screen displaying the result of the error resolution unit 132 determining the project file to be updated. The vertical axis of this display screen displays version information indicating the version of the project file, and the horizontal axis displays the revision number of the project file. The cell where the version "1.0.3" of the project file in which the execution error occurred intersects with the revision number "38" and the cell where the version "1.0.0" of the project file determined as the project file to be updated in step S14 intersects with the revision number "31" are highlighted. The dotted lines connecting the cells visualize the revision history of the project file with revision number "38" and the project file created by revising the project file with revision number "38." The user confirms the content displayed on the display screen and clicks the "Yes" icon to proceed to step S15.
[0043] Returning to FIG. 7 , the schedule management unit 150 then sets a schedule for writing the update project file identified in step S14 into the memory of the control device 200 (step S15). Specifically, the schedule management unit 150 displays a schedule setting screen, such as the one shown in FIG. 5 , on the display unit 16 and accepts user input operations. On the schedule setting screen, the schedule management unit 150 inputs the device ID and factory name of the target control device 200 into the respective forms. Next, the schedule management unit 150 references the operation status table shown in FIG. 4 stored in the data storage unit 120 to identify time periods with no operating history and inputs the time periods into the scheduled start date and time form. For example, if the target control device 200 has device ID "620," the schedule management unit 150 obtains the current date, "9 / 7," from the timer and inputs the following date, "9 / 8," into the form as the scheduled start date. Next, the schedule management unit 150 refers to the operation status table and inputs "23:00," a time when there is no operation record for device ID "620," into the form as the scheduled start time. When the user presses the set button, the schedule management unit 150 sets a transmission timer to send an instruction signal to the writing unit 141 to execute the write process at the date and time input into the start date and time form.
[0044] Returning to FIG. 7 , the error resolution unit 132 determines whether there is a derived project file created by revising the project file containing the control program in which the execution error occurred (step S16). Specifically, the error resolution unit 132 identifies the derived project file by referencing the version information shown in FIG. 3 . The error resolution unit 132 searches for a project file containing the revision number "38" of the project file in which the execution error occurred in the "pre-revision project" of the version information. In the illustrated example, since the "pre-revision project" contains a project file with revision number "41" that contains revision number "38," the error resolution unit 132 determines that there is a derived project file (step S16; Yes) and identifies the project file with revision number "41" as the derived project file. Next, the error resolution unit 132 references the project management information shown in FIG. 2 and identifies the device 200 in which the project file with revision number "41" was written as having device ID "630." Next, the error resolution unit 132 performs a similar process to determine whether there is a derived project file created by revising the project file with revision number "41." In the example shown in the figure, since there is no project file containing revision number "41" in the "source project," the error resolution unit 132 determines that there is no derived project file based on the project file with revision number "41."
[0045] Next, the error resolution unit 132 notifies the user of the derived project file identified in step S16 (step S17). Specifically, the error resolution unit 132 generates a notification screen shown in FIG. 9 and displays information indicating that the derived project file has been identified on the display unit. This allows the user to know in advance which project files contain control programs that may cause the same error. If the error resolution unit 132 determines that a derived project file with revision number "41" exists, it identifies the revision number of this derived project file and repeats the process until it determines that no derived project file exists.
[0046] 7 , next, the error resolution unit 132 identifies an update project file for the derived project file identified in step S16 (step S18). Specifically, the error resolution unit 132 obtains the revision history of the derived project file by the same process as in step S14, checks the history of error occurrences of the project file included in the revision history, and determines the project file with no error history as the update project file.
[0047] Next, the schedule management unit 150 sets a schedule for writing the update project file identified in step S18 into the memory of the control device 200 in which the derived project file is written (step S19). Specifically, similar to step S15, the schedule management unit 150 displays the schedule setting screen shown in Fig. 5 on the display unit 16 and sets the schedule in accordance with the user's input operation.
[0048] Returning to FIG. 7, in step S16, if the error correction unit 132 determines that there is no derived project file (step S16; No), the process proceeds to step S20.
[0049] Next, when the schedule management unit 150 detects that the scheduled date and time set in step S15 or step S19 has arrived and the transmission timer has expired, it transmits an instruction signal to the writing unit 141 to execute a write process. Upon receiving the instruction signal, the writing unit 141 executes a process of writing the update project file determined in step S14 or step S18 to the memory of the control device 200 (step S20). Specifically, when executing the write set in step S15, the writing unit 141 acquires the project file with revision number "31" determined by the project management unit 130 from the data storage unit 120. Next, the writing unit 141 transmits the acquired project file to the control device 200 in which the error has occurred and writes the transmitted project file to the memory of the error control device 200.
[0050] 2 (step S21). Specifically, the writing unit 141 reads the project management information, adds "Factory B - Device ID: 620" indicating the device ID and factory name of the control device 200 to which the data was written to the "Writing History" of the revision number "31" of the project file written in step S20, adds the date and time of writing to the "Writing Date and Time," updates the project management information, and terminates the process. Note that the project management information is also updated in the same way when writing an update project file to the derived project file identified in step S18.
[0051] As described above, when an execution error occurs in a control program executed by the control device 200, the program management device 100 refers to the revision history and error occurrence history of the project file containing the control program in which the execution error occurred, and identifies a project file that has not previously experienced an error. The program management device 100 writes the identified project file to the memory of the control device 200. This makes it possible to quickly resolve the error that occurred in the control device 200 with little effort.
[0052] Furthermore, the program management device 100 automatically identifies a derived project file created by revising a project file containing a control program in which an execution error occurred, and notifies the user of the identified derived project file. This allows the user to identify in advance project files that may encounter the same execution error as the one that occurred. This allows the user to write an updated project file to the memory of the control device 200 or begin revising the derived project file before the execution error occurs, thereby improving the reliability of the entire factory.
[0053] Furthermore, the program management device 100 automatically generates a schedule for writing the update project file. The user can change the schedule by checking the date and time of the generated schedule and changing the date and time as necessary. This eliminates the need to manually check the operating status of the target control device 200 and create a schedule, making it possible to update the project file with less effort.
[0054] As long as it does not deviate from the gist of the present disclosure, it is possible to select and discard the configurations given in the above embodiments, or to change them to other configurations as appropriate.
[0055] In the above embodiment, each control device 200 executes a control program included in a single project file. However, this is not limited to this. The control device 200 may include multiple CPUs, each of which executes a control program included in a different project file. In this case, the control device 200 may add information identifying the CPU to the error information and transmit it to the gateway 300. The writing unit 141 may add the device ID and CPU identification information to the "writing history" of the project management information shown in FIG. 2. In step S13 of FIG. 7, the error resolution unit 132 of the project management unit 130 may acquire the device ID and CPU identification information of the control device 200 included in the error information, refer to the project management information, and identify the project file currently written to the CPU of the control device 200 with the acquired device ID. In step S20 of FIG. 7, upon receiving an instruction signal from the schedule management unit 150, the writing unit 141 may execute a process of writing an updated project file to the memory area read by the CPU identified in step S13.
[0056] In the above embodiment, the program management device 100 is described as writing an update project file to the memory of the control device 200 where an execution error occurred. However, this is not limited to this. The program management device 100 may identify other control devices 200 in which the same project file as the control device 200 where the execution error occurred has been written and write the update project file to these other control devices. Specifically, if the project file identified in step S13 of FIG. 7 is written to the memory of multiple control devices 200 in the project management information shown in FIG. 2, the error resolution unit 132 obtains the device IDs of each control device 200 from the project management information. In step S15, the schedule management unit 150 references the operation status table to determine the time periods during which each control device 200 with the obtained device IDs has no operational history. The schedule management unit 150 displays the scheduled disclosure dates and times of the write process for each control device 200 on the schedule setting screen and sets the write schedule. In step S20, upon receiving the instruction signal transmitted according to the schedule set in step S15, the writing unit 141 writes the project file identified in step S14 into the memory of the control device 200.
[0057] In addition, in the above embodiment, the program management device 100 has been described as managing a project file including a control program, but this is not limited to this, and the program management device 100 may also manage a control program and write the control program to the memory of the control device 200 in which an error has occurred.
[0058] The information stored in data storage unit 120 may be managed collectively by a cloud server on the network, and program management device 100 may access the cloud server as needed to read and write information. In this case, program management device 100 does not need to include data storage unit 120.
[0059] In the above embodiment, the processing is performed by a single program management device 100, but the system configuration is arbitrary. For example, the functions of the program management device 100 may be realized by a system including multiple devices that realize any of the functions of the program creation unit 110, the project management unit 130, the asset management unit 140, and the schedule management unit 150.
[0060] Furthermore, program management device 100 can be realized using a normal computer system, rather than a dedicated device. For example, a program for realizing each function of program management device 100 may be stored and distributed on a computer-readable recording medium such as a CD-ROM (Compact Disc Read Only Memory) or a DVD-ROM (Digital Versatile Disc Read Only Memory), and this program may be written to a computer to configure a computer that can realize each of the above-mentioned functions.
[0061] Furthermore, when each function is realized by sharing the functions between an OS (Operating System) and an application, or by cooperation between the OS and the application, only the application may be stored on the recording medium.
[0062] Furthermore, various embodiments and modifications of the present disclosure are possible without departing from the broad spirit and scope of the present disclosure. Furthermore, the above-described embodiments are intended to explain the present disclosure and do not limit the scope of the present disclosure. That is, the scope of the present disclosure is defined by the claims, not the embodiments. Various modifications made within the scope of the claims and within the meaning of the disclosure equivalent thereto are considered to be within the scope of the present disclosure.
[0063] 100 Program management device, 110 Program creation unit, 120 Data storage unit, 130 Project management unit, 131 Revision history management unit, 132 Error resolution unit, 140 Asset management unit, 141 Writing unit, 142 Error monitoring unit, 143 Communication unit, 150 Schedule management unit, 11 Processor, 12 RAM, 13 ROM, 14 Storage unit, 15 Input unit, 16 Display unit, 17 Communication unit, 99 Internal bus, 200 Control device, 300 Gateway, 400 Network.
Claims
1. A program that causes a computer to function as: an acquisition means for acquiring error information indicating that an execution error has occurred in a control program executed by a control device that controls equipment; an error-occurring program identification means for identifying an error-occurring program, which is the control program in which an execution error has occurred, based on identification information of the control device included in the acquired error information and a write history indicating the respective records of when the control program was written to a plurality of the control devices; an original revision identification means for identifying the original revision program of the error-occurring program based on association information that associates each of the control programs with an original revision program, which is the control program used to develop the control program; an update program determination means for determining, from the identified original revision programs, an original revision program that has no history of execution errors, as an update program, which is the control program to be used for updating, based on error history information indicating the record of when an execution error has occurred for each of the control programs; and a write means for executing a write process that writes the determined update program to a memory unit provided in the control device that executed the error-occurring program.
2. The program described in claim 1, wherein the writing history includes a history of writing a project including the control program executed by the control device, the error-causing program identification means identifies a project including the error-causing program in which an execution error has occurred based on the identification information and the writing history, the original revision identification means identifies an original revision project of the project including the error-causing program based on project correspondence information including a correspondence between each project and an original revision project of the project, the update program determination means determines a project including the original revision program that has no history of an execution error as a project for update from among the original revision projects identified by the original revision identification means, and the writing means writes the determined project for update to a memory unit provided in the control device that executed the error-causing program.
3. The program according to claim 1 or 2, further causing the computer to function as: a derivation destination identification means for identifying a derived program, which is a control program created by revising the error-causing program identified by the error-causing program identification means, based on the correspondence information; and a notification means for notifying the derived program identified by the derivation destination identification means.
4. A program according to any one of claims 1 to 3, further causing the computer to function as a schedule setting means for setting a date and time at which the writing means will execute the writing process, based on actual operation information indicating the actual operating time of the control device.
5. The program according to any one of claims 1 to 4, further causing the computer to function as a program generating means for generating a control program executed by a control device that controls equipment.
6. A program management device comprising: an acquisition means for acquiring error information indicating that an execution error has occurred in a control program executed by a control device that controls equipment; an error-occurring program identification means for identifying an error-occurring program, which is the control program in which an execution error has occurred, based on identification information of the control device included in the error information acquired by the acquisition means and on the writing history of the control program; an original revision identification means for identifying the original revision program of the error-occurring program based on association information that associates each of the control programs with an original revision program, which is the control program used to develop the control program; an update program determination means for determining, from the identified original revision programs, an original revision program that has no history of execution errors, as an update program, which is the control program to be used for updating, based on error history information of each of the control programs; and a writing means for executing a write process to write the determined update program to a memory unit provided in the control device that executed the error-occurring program.
7. A program management system comprising: a program management device as claimed in claim 6; a control device which transmits error information indicating that an execution error has occurred in a control program executed by a control device which controls equipment; and a gateway which acquires the error information transmitted from the control device and transmits it to the program management device.
8. A program management method comprising the steps of: acquiring error information indicating that an execution error has occurred in a control program executed by a control device that controls equipment; identifying an error-occurring program, which is the control program in which an execution error has occurred, based on identification information of the control device included in the acquired error information and the writing history of the control program; identifying a pre-revision program of the error-occurring program based on association information that associates each of the control programs with a pre-revision program, which is a control program used to develop the control program; determining, from the identified pre-revision programs, a pre-revision program that has no history of execution errors, as an update program, which is the control program to be used for updating, based on error history information of each of the control programs; and writing the determined update program to a memory unit provided in the control device that executed the error-occurring program.
Citation Information
Patent Citations
Terminal device management system, terminal device management method, and computer program
JP2006243929A
Version management device
JP2008217168A
Distribution apparatus, program distribution system, distribution method, and program
JP2011238007A
Image forming system, server, and firmware update control method
JP2018200536A
