Soft controller, control method, and control system

The software controller system addresses the inefficiencies of full recompilation by using dynamic linking and local libraries to update object programs, ensuring stable and efficient control over industrial equipment.

JP2024150287AInactive Publication Date: 2024-10-23KK TOSHIBA +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023063633
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-10
Publication Date
2024-10-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing software controllers for industrial equipment require full recompilation and downtime during updates of object programs, leading to inefficiencies and instability in control processing.

Method used

A software controller system that utilizes dynamic linking and local object program libraries to generate execution programs, allowing for stable updates without recompiling execution programs, even when object programs are updated.

Benefits of technology

Enables stable and efficient updating of object programs, reducing memory capacity and compile time, and maintaining consistent control over industrial equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024150287000001_ABST
    Figure 2024150287000001_ABST
Patent Text Reader

Abstract

To provide a software controller, a control method, and a control system that can update an object program more stably.SOLUTION: According to the embodiment, a software controller includes an execution program generation unit and an equipment control unit. The execution program generation unit generates, on the basis of a dynamic link file that describes an execution program using the object program, an execution program using the object program stored in a library. The equipment control unit controls, on the basis of the execution program, a controlled object equipment.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] SUMMARY OF THE DISCLOSURE The present invention relates to a soft controller, a control method, and a control system. [Background technology]

[0002] When updating the execution program of a software controller that controls industrial equipment, the object program may be supplied via a network. In such a case, even if only a part of the object program is updated, the entire software, including the updated object program, is generally compiled. Also, it is common to stop the control process of the industrial equipment before updating. Therefore, when updating the object program, downtime occurs in the control process of the industrial equipment. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Special Publication No. 2007-538310 Summary of the Invention [Problem to be solved by the invention]

[0004] In order to solve such problems, an object of this embodiment is to provide a software controller, a control method, and a control system that enable more stable updating of object programs. [Means for solving the problem]

[0005] According to this embodiment, the software controller includes an execution program generating unit and a device control unit. The execution program generating unit generates an execution program using an object program stored in a library based on a dynamic link file that describes an execution program using an object program. The device control unit executes control of the controlled device based on the execution program. Effect of the Invention

[0006] This allows for more stable updating of object programs. [Brief description of the drawings]

[0007] [Figure 1] 1 is a block diagram showing an example of the configuration of a control system 1 according to the present embodiment. [Diagram 2] FIG. 2 is a block diagram showing a detailed configuration example of a program creation device and a software controller. [Diagram 3] FIG. 4 is a block diagram showing a detailed configuration example of a control unit. [Figure 4] 5 is a flowchart showing an example of control by a software controller according to the first embodiment. [Diagram 5] FIG. 4 is a diagram showing an example of a first management table. [Figure 6] FIG. 11 is a block diagram showing an example of a detailed configuration of a control unit according to a second embodiment. [Figure 7] FIG. 11 is a diagram showing an example of a second management table. [Figure 8] 10 is a flowchart showing an example of control by a software controller according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] A soft controller, a control method, and a control system according to an embodiment of the present invention will be described in detail below with reference to the drawings. Note that the embodiment described below is an example of an embodiment of the present invention, and the present invention is not limited to these embodiments. In addition, in the drawings referred to in this embodiment, the same parts or parts having similar functions are given the same or similar symbols, and repeated explanations may be omitted. Also, the dimensional ratios of the drawings may differ from the actual ratios for convenience of explanation, and some components may be omitted from the drawings.

[0009] (First embodiment) Fig. 1 is a block diagram showing a configuration example of a control system 1 according to the present embodiment. As shown in Fig. 1, the control system 1 is a system used to control, for example, industrial equipment. The control system 1 includes a program creation device 10, a plurality of development tools 20, a plurality of software controllers 30, a control target device 40, a plurality of display devices 50, and a plurality of input devices 60.

[0010] The program creation device 10 is, for example, a programming tool for development, which generates a source program that can be used in the control system 1 and stores it in a library. That is, the program creation device 10 is used by a developer to develop source programs for different processing functions that can be used in each soft controller 30. The program creation device 10 also compiles the source program into an object program and stores it in a library. Details of the program creation device 10 will be described later.

[0011] The development tool 20 is, for example, a programming tool for development, and generates an object program usable in the control system 1, a source program for the object program, and the like. That is, the development tool 20 has a function equivalent to that of the program creation device 10, and can store an object program obtained by compiling a developed source program in a library of the program creation device 10. In this way, the control system 1 according to the present embodiment can use the program creation device 10 and a plurality of development tools 20 to jointly develop a source program and an object program used for control, and the like, by a plurality of developers. Note that the source program may be referred to as a source code, and the object program may be referred to as an object file. In addition, the program creation device 10 and the development tool 20 may form a dynamic link file, which will be described later. In this case, the dynamic link file can be supplied to each software controller 30 via a network.

[0012] The multiple soft controllers 30 are, for example, programmable logic controllers (PLCs), which generate execution programs used to control the controlled devices 40 that are the subject of control, and execute the control of the controlled devices 40. The soft controllers 30 can generate execution programs using object programs stored in a library in the program creation device 10, for example, by dynamic linking.

[0013] In this embodiment, when compiling an execution program, not all of the entities of the object programs necessary for the execution program are included, and the method of calling the object programs required when the execution program starts and linking them to the execution program is called dynamic linking. For example, the object programs according to this embodiment are stored in a library in the program creation device 10.

[0014] The controlled device 40 is, for example, an industrial device. These soft controllers 30 execute control to drive the motor of the industrial device, for example, using information detected by a sensor. The controlled device 40 and the control environment that are the control targets of each soft controller 30 can be different from each other. Therefore, the execution program used by each soft controller 30 can also be different for each soft controller 30. Details of the soft controller 30 will be described later.

[0015] The display device 50 is, for example, a monitor, and displays the software under development and the control state of the controlled device 40. The input device 60 is, for example, a keyboard and a mouse, and inputs operation signals according to operations by the developer.

[0016] 2 is a block diagram showing a detailed configuration example of the program creation device 10 and the software controller 30. The program creation device 10 has a source program generation unit 100, a compiler unit 102, a library 104, and a communication interface 106.

[0017] The source program generating unit 100 generates a control source program in accordance with an operation signal from a developer. The compiler unit 102 compiles the source program generated by the source program generating unit 100 to generate an object program. The compiler unit 102 is also capable of compiling the source program generated by the development tool 20.

[0018] The library 104 stores object programs. That is, the library 104 can store object programs generated by the program creation device 10 and a plurality of development tools 20.

[0019] The communication interface 106 communicates with the development tool 20 and the multiple soft controllers 30 via a network. This allows the communication interface 106 to transmit and receive source programs and object programs between the development tool 20 and the multiple soft controllers 30. This network may be wired or wireless.

[0020] The software controller 30 has a communication interface 302, a control unit 304, a memory 306, and an input / output circuit 307. The communication interface 302 is capable of communicating with the program creation device 10 via a network. This allows the communication interface 302 to transmit and receive object programs and source programs to and from the program creation device 10. The communication interface 302 according to this embodiment corresponds to the communication unit.

[0021] The control unit 304 generates an execution program for controlling the control target device 40. The control unit 304 also executes control of the control target device 40. Details of the control unit 304 will be described later. The memory 306 stores various data, information, etc. required for the control of the control unit 304. The memory 306 according to this embodiment corresponds to a storage unit.

[0022] The input / output circuit 307 acquires control information from a sensor or the like of the control target device 40, and outputs the control information to the control unit 304. The input / output circuit 307 also outputs a control signal supplied from the control unit 304 to the control target device 40.

[0023] 3 is a block diagram showing a detailed configuration example of the control unit 304. As shown in FIG. 3, the control unit 304 has a dynamic link file generation unit 308, an execution program generation unit 310, and a device control unit 312.

[0024] The dynamic link file generating unit 308 can generate dynamic link files for a plurality of processing functions of the device control unit 312 according to an input signal from the input device 60. The dynamic link file generating unit 308 in this embodiment generates a dynamic link file that uses an object program in the library 104 (see FIG. 2) in the program creation device 10. For example, the dynamic link file generating unit 308 generates a first program file that reads out an object program in the library 104 (see FIG. 2) in the program creation device 10 with a call statement, and a second program file on the calling side that executes control using the object program read out by the first program, as separate files, and stores them in the memory 306.

[0025] The execution program generating unit 310 generates a plurality of execution programs 314 by compiling a first program file and a second program file for each processing function. That is, the execution program generating unit 310 generates the execution program 314 using an object program stored in the library 104 (see FIG. 2) in the program creation device 10. For example, the execution program generating unit 310 generates the execution program 314 that dynamically links, via a network, an object program stored in the library 104 (see FIG. 2) in the program creation device 10. The execution program 314 is used, for example, to control a motor of the controlled device 40.

[0026] In this embodiment, a plurality of execution programs 314 are generated, but this is not limiting. For example, a single execution program 314 may be used. In this embodiment, a first program file and a second program file are used, but this is not limiting. For example, a dynamic link file can be composed of one program file. Furthermore, an execution program may be referred to as an execution file.

[0027] These execution programs 314 can share the object program stored in the library 104 in the program creation device 10. This allows the capacity of the memory 306 to be reduced and the compilation time to be shortened. In addition, the multiple soft controllers 30 can share the object program stored in the library 104 in the program creation device 10. This reduces development costs and allows the operation of each soft controller 30 to be configured in a unified manner. In this case, the multiple soft controllers 30 can generate dynamic link files according to their control environments. This allows each soft controller 30 to share the object program and generate an execution program 314 according to the control environment. In addition, even if the object program stored in the library 104 is updated, it is not necessary to recompile the execution program 314, and by eliminating the time required for recompilation, it is possible to stabilize the control of the controlled device 40.

[0028] The device control unit 312 controls the control-target device 40 using a plurality of execution programs 314 generated by the execution program generation unit 310. For example, the device control unit 312 executes control of the control-target device 40 using information from a sensor that detects the operating state of the control-target device 40.

[0029] Fig. 4 is a flow chart showing an example of control of the software controller 30 according to the first embodiment. As shown in Fig. 4, first, the developer generates a dynamic link file using the dynamic link file generating unit 308 of the software controller 30 via the input device 60 (step S100). The dynamic link file can also be obtained via a network or the like.

[0030] Next, the execution program generation unit 310 generates the execution program 314 that uses the object program stored in the library 104 by dynamic linking based on the dynamic link file (step S102). Then, the device control unit 312 of the software controller 30 executes control of the device control unit 312 using the execution program 314 (step S104).

[0031] Next, the device control unit 312 determines whether or not to end the control (step S106), and if it determines not to end the control (N in step S106), it repeats the processes from step S104. On the other hand, if it determines to end the control (Y in step S106), it ends the entire control.

[0032] As described above, the execution program generating unit 310 of each software controller 30 according to this embodiment generates the execution program 314 by dynamically linking the object program stored in the library 104 (see FIG. 2) in the program creation device 10. This makes it possible to reduce the capacity of the memory 306 and shorten the compilation time. Furthermore, even if the object program stored in the library 104 is updated, it is not necessary to recompile the execution program 314, and eliminating the recompilation time makes it possible to stabilize the control of the controlled device 40. In this way, it becomes possible to more stably update the object program used by the execution program 314.

[0033] Second embodiment The control system 1 according to the second embodiment differs from the control system 1 according to the first embodiment in that a library of object programs is configured in the memory 306 of the soft controller 30. The differences from the control system 1 according to the first embodiment will be described below.

[0034] 5 is a diagram showing an example of a first management table T104 generated by the library 104 of the program creation device 10 according to the second embodiment. As shown in FIG. 5, the library 104 (see FIG. 2) stores an object program in association with the first management table T104. That is, when storing an object program, the library 104 according to the second embodiment records information such as an object name 104a as an indication name of the object program and update date and time 104b in the management table T104. The library 104 can also store a source program of the object program in association with the management table T104.

[0035] Fig. 6 is a block diagram showing a detailed configuration example of the control unit 304 according to the second embodiment. As shown in Fig. 6, the control unit 304 differs from the control system 1 according to the first embodiment in that it further includes a load unit 316 and a monitoring unit 318.

[0036] The load unit 316 executes so-called dynamic loading. The load unit 316 reads the object program linked by the first program file from the library 104 (see FIG. 2) in the program creation device 10, and stores it in memory. As a result, a dynamic library used by the soft controller 30 is configured in the memory 306.

[0037] 7 is a diagram showing an example of the second management table T306 generated by the load unit 316. As shown in FIG. 7, the load unit 316 stores an object program in association with the second management table T306. That is, when the load unit 316 stores the object program in the memory 306, the load unit 316 records information such as the object name 306a and the update date and time 306b in the management table. The object name 306a as the designation name of the object program corresponds to the object name 104a (see FIG. 5), and the update date and time 306b corresponds to the update date and time 104b (see FIG. 5). That is, the update date and time 306b is stored in the second management table T306 with the date and time when the object program of the object name 104a was generated as the update date and time.

[0038] For example, when the execution program generating unit 310 compiles the execution program, the load unit 316 can read the object program called by the first program file, associate it with the management table, and store it in the memory 306. As a result, a library is configured in the memory 306 with only the object programs used in the soft controller 30, and the capacity of the memory 306 can be reduced. In addition, the execution program generating unit 310 generates an execution program that uses the object programs stored in the library 104 configured in the memory 306 in the soft controller 30 by dynamic linking. As a result, for example, the execution program can be executed without going through a network between the program creation device 10 and the soft controller 30. On the other hand, it becomes difficult to update the object file updated by the program creation device 10 or the like on the soft controller 30 side.

[0039] Therefore, the monitoring unit 318 according to this embodiment compares the corresponding update dates and times 104b and 306b in the first management table T104 and the second management table T306 at predetermined time intervals. When the update dates and times 104b and 306b of the same object names 104a and 306a are different, an acquisition signal for the object programs of the object names 104a and 306a is output to the loading unit 316. This causes the loading unit 316 to reload the updated object program from the library 104 (see FIG. 2) of the program creation device 10 to the library in the memory 306. In this way, the loading unit 316 is able to update the updated object program.

[0040] As can be seen from these, each execution program 314 can share the object program stored in the library in memory 306. This makes it possible to reduce the capacity of memory 306 and shorten the compilation time. Furthermore, even if the object program stored in the library in memory 306 is updated, each execution program 314 does not need to be recompiled, and by eliminating the recompilation time, it becomes possible to stabilize the control of controlled device 40.

[0041] Fig. 8 is a flow chart showing an example of control of the software controller 30 according to the second embodiment. Here, an example of processing after the generation of an execution program is described. As shown in Fig. 8, the execution program generation unit 310 compiles the execution program to generate the execution program (step S102). At this time, the load unit 316 loads the object program called by the first program file from the library 104 of the program creation device 10, associates it with the second management table T306, and generates the library in the memory 306 (step S200).

[0042] Next, the device control unit 312 of the software controller 30 executes the control of the device control unit 312 using the execution program (step S104). Next, the monitoring unit 318 compares the corresponding update dates 104b and 306b in the first management table T104 and the second management table T306 at predetermined time intervals (step S202). The monitoring unit 318 determines whether the object recorded in the second management table T306 has been updated in the library 104 (step S204).

[0043] If the monitoring unit 318 determines that none of the object programs recorded in the second management table T306 have been updated (N in step S204), it repeats the processes from step S104. On the other hand, if the monitoring unit 318 determines that any of the object programs recorded in the second management table T306 have been updated (Y in step S204), it causes the loading unit 316 to reload the updated object program from the library 104 of the program creation device 10. The loading unit 316 updates the library in the memory 306 with the reloaded object program in association with the second management table T306 (step S206).

[0044] Next, the device control unit 312 determines whether or not to end the control (step S208), and if it determines not to end the control (N in step S208), it repeats the process from step S104. On the other hand, if it determines to end the control (Y in step S208), it ends the entire control.

[0045] As described above, the software controller 30 according to this embodiment configures a library that stores object programs in the memory 306. This makes it possible to execute the execution program without going through a network between the program creation device 10 and the software controller 30. In addition, the load unit 316 reloads the updated object program from the library 104 (see FIG. 2) of the program creation device 10 to the library in the memory 306. This makes it possible for the execution program 314 to use the object program updated by the program creation device 10 or the like without recompiling the execution program 314 of the software controller 30.

[0046] Although several embodiments have been described above, these embodiments are presented only as examples and are not intended to limit the scope of the invention. The novel device, method, and program described in this specification can be embodied in various other forms. In addition, various omissions, substitutions, and modifications can be made to the forms of the device, method, and program described in this specification without departing from the gist of the invention. [Explanation of symbols]

[0047] 1: control system, 10: program creation device, 30: software controller, 40: controlled device, 104: library, 302: communication interface, 304: control unit, 306: memory, 308: dynamic link file generation unit, 310: execution program generation unit, 312: device control unit, 316: load unit, 318: monitoring unit.

Claims

1. an execution program generating unit that generates an execution program using the object program stored in a library based on a dynamic link file that describes an execution program using the object program; a device control unit that controls a control target device based on the execution program; A soft controller comprising:

2. 2. The soft controller according to claim 1, wherein the execution program generating unit generates an execution program that dynamically links the object programs stored in the library via a network.

3. The soft controller according to claim 2 , further comprising a dynamic link file generator for generating the dynamic link file.

4. A storage unit; a load unit that acquires the object program via a network and configures the library in the storage unit; The soft controller of claim 1 further comprising:

5. 5. The software controller according to claim 4, wherein said load section loads the object program described in said dynamic link file into said storage section via a network when said execution program generation section generates an execution program.

6. a monitoring unit that monitors an update state of the object program via a network, The soft controller according to claim 4 , wherein the loader updates the object program in the library when the monitor determines that the object program has been updated.

7. The soft controller according to claim 4 , further comprising a communication unit that acquires information relating to the object program via the network.

8. The storage unit also stores the dynamic link file, The soft controller according to claim 4 , wherein the execution program generating unit generates the execution program by using the dynamic link file stored in the storage unit.

9. an execution program generating step of generating an execution program using the object program stored in the library based on a dynamic link file describing an execution program using the object program; a device control step of controlling a control target device based on the execution program; A control method comprising:

10. a program generating device that generates a plurality of object programs and stores them as a library; A control system comprising: The soft controller includes: an execution program generating unit that generates an execution program using the object program stored in the library based on a dynamic link file that describes an execution program using the object program; a device control unit that controls a control target device based on the execution program; A control system having

Citation Information

Patent Citations

  • Integrated configuration system for use in process plants

    JP2007538310A