Relay device, control system, control function expansion method and program
The relay device enhances control response and reliability in FA systems by connecting a general-purpose computer to a hardware PLC, using dedicated data buses and execution engine programs to execute control programs, addressing limitations in computational performance and expandability.
Patent Information
- Application Number
- JP2024526903
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2024-01-23
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-01-23
Smart Images

Figure 0007551037000001 
Figure 0007551037000002 
Figure 0007551037000005
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a relay device, a control system, a control function expansion method, and a program. [Background technology]
[0002] In the field of FA (Factory Automation), there is a demand for controllers with even higher computing performance in order to improve productivity by shortening takt time, and to increase the speed and accuracy of axis control, as typified by Time-Sensitive Networking (TSN) technology and multi-axis motion control.However, for hardware PLCs (Programmable Logic Controllers), which are a type of controller, there are restrictions on power consumption and heat generation because they are installed in small spaces such as control panels, making it difficult to install high-performance IC (Integrated Circuit) chip devices, and improvements in computing performance are limited.
[0003] A software PLC is also known as the above-mentioned controller. A software PLC is a controller that controls controlled devices connected to a network such as Ethernet (registered trademark) by installing dedicated software on a general-purpose personal computer. It is easy to use a personal computer processor with a higher computing performance than a hardware PLC. However, since the controlled device needs to have a network connection function, the devices that can be connected are limited. For this reason, the expandability of a software PLC is low compared to a hardware PLC, which has a wide lineup of units as components and a high degree of freedom in combining control methods and interfaces.
[0004] Therefore, it is conceivable to ensure scalability by using a technology that uses both software PLC and hardware PLC (see, for example, Patent Document 1). The technology described in Patent Document 1 relates to a message routing method between a software PLC and a hardware PLC, in which the software PLC has an interface that can be connected to a backplane bus dedicated to the hardware PLC, and performs message communication using a protocol equivalent to that of the backplane bus. With this technology, it is possible to build a highly scalable system by mixing software PLC and hardware PLC. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2007-249562 A Summary of the Invention [Problem to be solved by the invention]
[0006] The backplane bus described in Patent Document 1 is a general-purpose bus that has the characteristics of a network. Specifically, the backplane bus uses a message communication protocol that requires the registration of port information, and all communication devices are connected to the same communication path for communication. When a message is not addressed to the communication device, the communication device forwards the message to the destination device.
[0007] This type of control may have lower control response performance and reliability than control that does not involve a network. Specifically, the control response of the controlled device decreases due to an increase in the number of connected communication devices, an increase in the physical transmission distance, and an excess of packets in the same network. In addition, when a control command such as resetting all device values is transmitted according to the network protocol, the reliability is lower than that of a hardware PLC in which commands are transmitted via a dedicated data bus.
[0008] Therefore, there is room to improve the control response performance and reliability while ensuring the calculation performance of the controller.
[0009] The present disclosure has been made in light of the above-mentioned circumstances, and aims to improve control response performance and reliability while ensuring the calculation performance of a controller. [Means for solving the problem]
[0010] In order to achieve the above-mentioned object, the relay device disclosed herein is a relay device that is connected to a base unit on which functional units for constituting a programmable logic controller are mounted and a computer, and causes the computer to execute control processing using the functional units, and is equipped with a first connection interface connected to a first data bus inside the base unit, a second connection interface connected to a second data bus inside the computer, and a providing means for providing the computer with an execution engine program that executes a control program that causes the programmable logic controller to execute control processing in a device other than the programmable logic controller, and when the computer executes the control program using the execution engine program, signals are transmitted between the computer and the functional units via the first connection interface and the second connection interface. Effect of the Invention
[0011] According to the present disclosure, it is possible to improve the control response performance and reliability while ensuring the calculation performance of the controller. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a diagram showing a configuration of a control system according to a first embodiment. [Diagram 2] FIG. 1 is a diagram showing a hardware configuration of an FA device according to a first embodiment. [Diagram 3] Flowchart showing control function expansion processing according to the first embodiment [Figure 4] FIG. 13 is a diagram showing a configuration of a control system according to a modified example. [Diagram 5] FIG. 13 is a diagram showing a configuration of a control system according to a second embodiment. [Figure 6] FIG. 13 is a diagram showing an example in which an execution unit of a computer according to a second embodiment accesses a memory of a relay device. [Figure 7] FIG. 11 is a diagram showing an example in which an execution unit of a relay device according to a second embodiment accesses a memory of a computer; [Figure 8] FIG. 13 shows the configuration of a computer and a relay device according to a third embodiment. [Figure 9] FIG. 13 is a diagram showing an example of division programs and priorities according to the third embodiment. [Figure 10] Flowchart showing control function extension processing according to the third embodiment [Figure 11] FIG. 13 is a diagram showing an example of allocation of devices that execute division programs according to the third embodiment. [Figure 12] FIG. 13 is a diagram showing an example of execution time of a divided program according to the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, a control system according to an embodiment of the present disclosure will be described in detail with reference to the drawings.
[0014] Embodiment 1 The control system 1000 according to the present embodiment is constructed in a facility such as a factory or a plant. The control system 1000 controls a large number of devices to cooperate with each other to operate lines that perform various processes such as a production line, a machining line, and an inspection line. However, while it is common for either a hardware PLC or a software PLC to be used as a controller that is the main controller, or for both to be used in combination, in the control system 1000 according to the present embodiment, the control function is realized by combining a general-purpose personal computer with a part of the hardware PLC.
[0015] 1, the control system 1000 includes a computer 20 which is a general-purpose personal computer, a PLC function system 40 which is equivalent to a hardware PLC configuration without a CPU (Central Processing Unit) unit which handles arithmetic processing, and devices 53 and 54 which are to be controlled. The computer 20 also includes a relay device 10 which relays signals between the computer 20 and the PLC function system 40.
[0016] The computer 20 may be a general-purpose personal computer for general consumers or an industrial personal computer. Hereinafter, a personal computer is referred to as a PC (Personal Computer). Herein, a PC can be said to be personal in that it has a user interface function and the number of users who use the user interface function at the same time is expected to be limited to one. In addition, a general-purpose PC can be said to be general-purpose in that it can be used for various purposes such as information processing, document creation, and computer graphics by using application software due to its configuration. Such a general-purpose PC can be used as the computer 20 to configure the control system 1000 shown in FIG. 1, and the computer 20 may be used by multiple users solely for controlling the devices 53 and 54. The computer 20 is an entity that executes control processing for the devices 53 and 54, and therefore operates on a real-time operating system.
[0017] The relay device 10 is an add-in card or an expansion card for a general-purpose PC. The relay device 10 has a terminal 12a conforming to the PCI (Peripheral Component Interconnect) standard or the PCIe (PCI express) standard, and is inserted and mounted in an expansion slot in the computer 20. The relay device 10 also has a terminal 11a, and is connected to a terminal 11b of a base unit 41 constituting a PLC function system 40 via a cable 11c.
[0018] The PLC function system 40 is constructed by mounting functional units designed for each purpose on a base unit, similar to a building block type hardware PLC. Since a hardware PLC needs to be housed in a general control panel, the housing size of the functional units is standardized. In a hardware PLC, a CPU unit that executes arithmetic processing controls each functional unit via a bus for communicating with each functional unit individually using a predetermined protocol, and a dedicated bus including a signal line, a power line, and a GND (ground) dedicated to the hardware PLC. However, in the PLC function system 40, the computer 20 executes arithmetic processing instead of the CPU unit. A hardware PLC corresponds to an example of a programmable logic controller.
[0019] The PLC function system 40 has a base unit 41 and a plurality of function units attached to the base unit 41. In the example of Fig. 1, the functional units shown are a power supply unit 42 that supplies power to each unit, an input unit 43 that receives a signal input from a device 53, an output unit 44 that outputs a signal to a device 54, an intelligent function unit 45 that performs a function other than the input and output of signals, and a network function unit 46 that performs a function of connecting to a network NW. The intelligent function unit 45 performs functions such as A / D conversion, D / A conversion, or execution of a program written in C language.
[0020] The base unit 41 has a data bus 410 therein, and when the base unit 41 constitutes a hardware PLC, the CPU unit mounted on the base unit 41 controls each functional unit via the data bus 410, resulting in the execution of control processing for the devices 53 and 54. In the PLC function system 40, the computer 20 controls each functional unit from the terminal 11b via the data bus 410, resulting in the execution of control processing.
[0021] The control process typically involves executing the control process based on an input value received from the input unit 43 to generate an arithmetic result, and transmitting the arithmetic result as an output value to the output unit 44. For example, the control process involves transmitting a control command obtained by arithmetic processing based on the sensing result of the device 53, which is a sensor, to the device 54, which is a robot. By the control process, for example, machining is performed on a workpiece on a belt conveyor. Note that the control process is not limited to a process using the input unit 43 and the output unit 44, and may be a process using at least one functional unit.
[0022] Here, the hardware configuration of the relay device 10 and the computer 20 will be described with reference to Fig. 2. The FA device 60, which corresponds to each of the relay device 10 and the computer 20, has a processor 61, a main memory unit 62, an auxiliary memory unit 63, an input unit 64, an output unit 65, and a communication unit 66, as shown in Fig. 2. The main memory unit 62, the auxiliary memory unit 63, the input unit 64, the output unit 65, and the communication unit 66 are all connected to the processor 61 via an internal bus 67.
[0023] The processor 61 includes a CPU or a micro processing unit (MPU) as a processing circuit. The processor 61 executes a program P1 stored in the auxiliary storage unit 63 to realize various functions and execute the processes described below.
[0024] The main memory unit 62 includes a RAM (Random Access Memory). The program P1 is loaded into the main memory unit 62 from the auxiliary memory unit 63. The main memory unit 62 is used as a working area for the processor 61.
[0025] The auxiliary storage unit 63 includes a non-volatile memory such as an EEPROM (Electrically Erasable Programmable Read-Only Memory) and an HDD (Hard Disk Drive). In addition to the program P1, the auxiliary storage unit 63 stores various data used in the processing of the processor 61. The auxiliary storage unit 63 supplies the processor 61 with data used by the processor 61 in accordance with an instruction from the processor 61. The auxiliary storage unit 63 also stores data supplied from the processor 61.
[0026] The input unit 64 includes input devices such as a hardware switch, an input key, a keyboard, and a pointing device. The input unit 64 acquires information input by a user of the FA device 60, and notifies the processor 61 of the acquired information.
[0027] The output unit 65 includes output devices such as a light emitting diode (LED), a liquid crystal display (LCD), and a speaker. The output unit 65 presents various information to the user in accordance with instructions from the processor 61.
[0028] The communication unit 66 includes a communication interface circuit for communicating with an external device. The communication unit 66 receives a signal from the outside and outputs data indicated by the signal to the processor 61. The communication unit 66 also transmits a signal indicating the data output from the processor 61 to the external device. Although one communication unit 66 is representatively shown in FIG. 2, the FA device 60 may have multiple communication units 66. If the data transmitted between the multiple communication units 66 does not require processing by the processor 61, the data may be transmitted directly between the multiple communication units 66 without going through the processor 61.
[0029] The above-mentioned hardware configurations work together to allow the relay device 10 and the computer 20 to perform various functions. In detail, as shown in Fig. 1, the relay device 10 has, as its functions, a first connection I / F 11 for connecting to a data bus 410 of the base unit 41, a second connection I / F 12 for connecting to a data bus 27 of the computer 20, and a providing unit 13. The computer 20 has, as its functions, an execution unit 21 for executing a control program 31 in which the contents of control processing are defined, and a memory 22 corresponding to a working area of the execution unit 21.
[0030] The first connection I / F 11 of the relay device 10 is realized by the communication unit 66 of the relay device 10. The first connection I / F 11 transmits signals to the base unit 41 and receives signals from the base unit 41 via the terminal 11a. The first connection I / F 11 converts between the format of a signal transmitted within the relay device 10 and the format of a signal transmitted on the data bus 410 of the base unit 41. The data bus 410 corresponds to an example of a first data bus inside the base unit, and the first connection I / F 11 corresponds to an example of a first connection interface connected to the first data bus.
[0031] The second connection I / F 12 is realized by the communication unit 66 of the relay device 10. The second connection I / F 12 transmits signals to the data bus 27 and receives signals from the data bus 27 via the terminal 12a. The second connection I / F 12 converts the format of the signal transmitted within the relay device 10 and the format of the signal transmitted on the data bus 27 into each other's. The data bus 27 corresponds to an example of a second data bus inside the computer, and corresponds to the internal bus 67 of the computer 20. The second connection I / F 12 corresponds to an example of a second connection interface connected to the second data bus.
[0032] The providing unit 13 is mainly realized by the processor 61 of the relay device 10. The providing unit 13 provides the software 30 to the computer 20 via the second connection I / F 12. The software 30 provided to the computer 20 is loaded into the memory 22 of the computer 20. The software 30 includes a control program 31 designed for execution by the CPU unit of the hardware PLC, and an execution engine program 32 for executing the control program 31 by a calculation device other than the CPU unit.
[0033] The execution engine program 32 needs to be compatible with an instruction set architecture that conforms to the specifications of the processor that runs the execution engine program 32. Considering that, for example, the computer 20 may be equipped with execution units 21 with different specifications as processors of arithmetic devices other than the CPU unit, there may be multiple types of execution engine programs 32 that respectively correspond to different instruction set architectures. Here, a mode in which an appropriate instruction set architecture is selected when the execution engine program 32 is installed, and the execution engine program 32 that corresponds to the selected instruction set architecture is deployed on the memory can be considered. In this mode, the effect of the execution engine program 32 that runs the control program 31 can be achieved regardless of the type of instruction set architecture. In the following, it is assumed that the execution engine program 32 corresponds to multiple types of instruction set architectures.
[0034] The provision unit 13 may obtain the software 30 by reading it out from the auxiliary memory unit 63 of the relay device 10 in advance and then provide it, or may obtain the software 30 by reading it out from an external device or a removable recording medium such as a memory card and then provide it.
[0035] The providing unit 13 corresponds to an example of a providing means that provides a computer with an execution engine program that executes, in a device different from the programmable logic controller, a control program that causes the programmable logic controller to execute a control process.
[0036] The execution unit 21 of the computer 20 is realized by a processor 61 of the computer 20, and the memory 22 is realized by a main memory unit 62 of the computer 20. The software 30 loaded into the memory 22 is executed by the execution unit 21. In detail, the execution unit 21 executes the control program 31 by an execution engine program 32. The execution unit 21 corresponds to an example of a second execution means that executes the control program in the computer.
[0037] The control program 31 is a program in which the contents of control processing are described in a language such as ladder programming language or C language. In the example of Fig. 1, the contents of control processing described in the control program 31 include sequence control processing, motion control processing, system processing, network processing, and information processing. Since the control program 31 is created in a dedicated format for execution by the CPU unit, the execution unit 21 of the computer 20 cannot execute the control program 31 as is, but the execution engine program 32 makes it possible to execute the control program 31.
[0038] Next, the control function expansion process executed in the control system having the above-mentioned functions will be described with reference to Fig. 3. The control function expansion process is a process in which the computer 20, which does not have a control function using a functional unit, acquires and exerts a control function by mounting the relay device 10.
[0039] In the control function extension process, the relay device 10 provides the execution engine program 32 to the computer 20 (step S1). Specifically, the providing unit 13 provides the software 30 via the second connection I / F 12. As a result, the computer 20 acquires the control program 31 (step S2).
[0040] Next, the computer 20 executes the control program 31 by the execution engine program 32 (step S3). As a result, the execution unit 21 of the computer 20 executes the control process. Specifically, the execution unit 21 executes a calculation based on an input value received by the input unit 43, and a process of transmitting a control command corresponding to the calculation result to the output unit 44 is executed according to the description of the control program 31.
[0041] Then, the relay device 10 transmits signals between the computer 20 and the functional units (step S4). Specifically, the relay device 10 relays signals transmitted between the execution unit 21 that executes the control process and the base unit 41 via the first connection I / F 11 and the second connection I / F 12. This causes the computer 20 to execute the control process using the functional units. The relay device 10 corresponds to an example of a relay device that transmits signals between the computer and the functional units via the first connection interface and the second connection interface when the computer executes the control program by the execution engine program. Thereafter, the control function extension process ends.
[0042] As described above, the execution unit 21 of the computer 20, which is a general-purpose PC, executes the control program 31. As a result, the computer 20 and the PLC function system 40 together correspond to a controller that controls the devices 53, 54. Since it is relatively easy to realize the general-purpose PC 121 using a processor with high computing performance, the computing performance of the controller can be ensured.
[0043] In addition, the data bus 410 of the base unit 41 includes a bus that follows a predetermined protocol for controlling each functional unit of the hardware PLC and a signal line dedicated to the hardware PLC, and therefore has high control responsiveness and reliability. The relay device 10 is directly connected to the data bus 410 of the base unit 41 without going through a network, so that the control responsiveness and reliability of the control process executed by the computer 20 are also ensured. Therefore, compared to the case where the control process is executed through a network, it is possible to improve the control responsiveness and reliability while ensuring the calculation performance of the controller.
[0044] Although an example in which the computer 20 has the relay device 10 built therein has been described, the present invention is not limited thereto, and the relay device 10 may be located outside the computer 20 as shown in FIG. 4. In the example of FIG. 4, the relay device 10 is connected from the terminal 12a to the terminal 12b, which is an expansion slot of the computer 20, via the cable 12c. However, when the relay device 10 and the cable 12c are integrally configured, the relay device 10 and the computer may be connected by inserting the terminal 12b of the relay device 10 into the expansion slot of the computer 20. Also, when the relay device 10 and the cable 11c are integrally configured, the relay device 10 and the base unit 41 may be connected by inserting the terminal 11b of the relay device 10 into the slot of the base unit 41.
[0045] Also, although an example has been described in which the providing unit 13 of the relay device 10 directly provides the software 30 to the computer 20, the present invention is not limited to this, and the providing unit 13 may indirectly provide the software 30, or may ultimately provide the software 30. For example, the providing unit 13 may notify the computer 20 of the address of a web server from which the software 30 can be downloaded, so that the execution unit 21 downloads the software 30 from the address to the memory 22. The providing unit 13 may specify a file to be read, and the execution unit 21 may read the file from the recording medium, so that the software 30 included in the file is loaded into the memory 22.
[0046] In addition, the execution engine program 32 of the software 30 is necessary when the relay device 10 is combined with the computer 20, while the control program 31 can be executed by a hardware PLC and can be subject to appropriate changes even during operation of the control system 1000. In other words, it is conceivable that a user edits the control program 31 using the computer 20, which is a general-purpose PC. For this reason, the providing unit 13 of the relay device 10 may provide the execution engine program 32, and the computer 20 may obtain the control program 31 from a device other than the relay device 10. The user of the computer 20 may develop the control program 31 from scratch.
[0047] Embodiment 2 Next, the second embodiment will be described, focusing on the differences from the first embodiment. Note that the same or equivalent configurations as those in the first embodiment will be denoted by the same reference numerals. In the first embodiment, the control program 31 is executed by the execution unit 21 of the computer 20. However, if the computer 20 does not have sufficient resources, it becomes difficult to stably execute the control process. Therefore, an example in which the relay device 10 executes part of the control process will be described below.
[0048] As shown in Fig. 5, the relay device 10 according to this embodiment includes an execution unit 101 that executes a part of the control process, a memory 102 that corresponds to the working area of the execution unit 101, and an acquisition unit 103 that acquires software 30a equivalent to the software 30. Note that Fig. 5 shows a simplified configuration of the PLC function system 40.
[0049] The execution unit 101 is realized by the processor 61 of the relay device 10, and the memory 102 is realized by the main storage unit 62 of the relay device 10. Software 30a is loaded into the memory 102, and at least a part of the software 30a is executed by the execution unit 101. The execution unit 101 corresponds to an example of a first execution means that executes a part of the control processing defined by the control program by an execution engine program.
[0050] The software 30a includes a control program 31 and an execution engine program 33 that causes the execution unit 101 to execute at least a part of the control program 31. The execution engine program 33 is a program for the relay device 10 to execute the control program 31. When the execution unit 101 operates with the same instruction set architecture as the execution unit 21 of the computer 20, the execution engine program 33 deployed on the memory 102 is the same as the execution engine program 32 deployed on the memory 22. In this case, the software 30a on the memory 102 may be the same as the software 30 on the memory 22. When the execution unit 101 operates with an instruction set architecture different from that of the execution unit 21, the execution engine program 33 may be deployed on the memory 102 as one corresponding to the instruction set architecture of the execution unit 101 selected at the time of installation.
[0051] The acquisition unit 103 is mainly realized by at least one of the processor 61 and the communication unit 66 of the relay device 10. The acquisition unit 103 may acquire the software 30a from an external device through communication, may acquire the software 30a by reading the software 30a stored in advance in the auxiliary storage unit 63 of the relay device 10, or may acquire the software 30a by reading it from a removable recording medium such as a memory card. If the software 30a acquired by the acquisition unit 103 is equivalent to the software 30, it may be provided to the computer 20 by the provision unit 13 as the software 30. The acquisition unit 103 corresponds to an example of an acquisition means for acquiring a control program and an execution engine program.
[0052] The execution unit 101 of the relay device 10 and the execution unit 21 of the computer 20 access the memories 102 and 22, which are each other's working areas, and cooperate to execute control processing. For example, as shown in FIG. 6, when the execution unit 101 executes sequence control processing, system processing, network processing, and information processing, the memory 102 stores sequence control processing data, system processing data, network processing data, and information processing data as data related to each processing. In FIG. 6, the dashed arrow indicates that the sequence control processing data is used in the sequence control processing or that the sequence control processing data is output. In addition, when the execution unit 21 executes motion control processing, the memory 22 stores motion control processing data related to the motion control processing. In FIG. 6, for convenience, the relay device 10 and the computer 20 are shown as separate configurations.
[0053] 6, the execution unit 21 corresponds to an example of one of the execution means of the execution units 21 and 101, and the execution unit 101 corresponds to an example of the other execution means. The execution unit 21 corresponds to an example of one of the execution means that executes control processing together with the other execution means by accessing a memory that is a working area of the execution unit 101.
[0054] Moreover, when sequence control processing data is referred to in the motion control processing, the dashed arrow indicates that the execution unit 21 reads out the sequence control processing data in the memory 102. Moreover, as shown in Fig. 7, when motion control processing data is referred to in the network control processing, the dashed arrow indicates that the execution unit 101 reads out the motion control processing data in the memory 22.
[0055] 7, the execution unit 101 corresponds to an example of one of the execution means of the execution units 21 and 101, and the execution unit 21 corresponds to an example of the other execution means. The execution unit 101 corresponds to an example of one of the execution means that executes a control process together with the other execution means by accessing a memory that is a working area of the execution unit 21.
[0056] As described above, the execution units 101 and 21 share the memories 102 and 22, which are their working areas. This allows the control processing to be distributed and executed, and the control processing can be executed stably even when the computing resources of the computer 20 are insufficient. Examples of such cases include a case where a small fanless personal computer is adopted as the computer 20 due to the installation environment, and a case where sufficient performance cannot be obtained by the computing processing of the general-purpose PC alone due to the influence of other software in the general-purpose PC.
[0057] Depending on the status of the computational resources of the computer 20, the control processes may all be executed by the execution unit 21 as in the first embodiment, or may be distributed and executed by the execution units 21 and 101 as in this embodiment. Furthermore, the control processes may all be executed by the execution unit 101 without the execution unit 21 executing the control processes.
[0058] Embodiment 3 Next, the third embodiment will be described, focusing on the differences from the second embodiment. Note that the same or equivalent configurations as those in the second embodiment are denoted by the same reference numerals. The present embodiment differs from the second embodiment in that the control processes executed in a distributed manner are assigned to the execution units 21 and 101 based on the priority.
[0059] As shown in FIG. 8, the relay device 10 according to this embodiment has a reception unit 104 that receives settings of multiple split programs split from the control program 31 and priorities to be assigned to each of the split programs, and a comparison unit 105 that compares the execution speed when the split programs are executed by the execution unit 101 and when they are executed by the execution unit 21.
[0060] The reception unit 104 is mainly realized by the input unit 64 of the relay device 10. However, when the input unit 64 and the output unit 65 of the computer 20 are used as a user interface of the relay device 10, the reception unit 104 may be realized by the processor 61 or the communication unit 66 of the relay device 10.
[0061] Fig. 9 shows an example of the divided programs and priorities received by the reception unit 104. As shown in Fig. 9, a sequence control processing program, a motion control processing program, a system processing program, a network processing program, and an information processing program are received as divided programs corresponding to sequence control processing, motion control processing, system processing, network processing, and information processing, respectively, which constitute the control processing. A priority ranging from "1" to "5" is assigned to each divided program. The highest priority is "1," and a sequence control processing program assigned a priority of "1" takes precedence over other divided programs.
[0062] The comparison unit 105 is realized by the processor 61 of the relay device 10. The comparison unit 105 obtains and compares the execution speeds of the divided programs when they are executed by the execution units 21 and 101, respectively. The execution speeds may be derived by executing the divided programs in a simulation, may be measured by actually executing the programs, or may be estimated by analyzing the divided programs. The comparison unit 105 corresponds to an example of a comparison means for comparing the execution speeds.
[0063] A procedure of the control function extension process according to this embodiment is shown in Fig. 10. As shown in Fig. 10, in the control function extension process, step S1 is executed in the same manner as in embodiment 1. Next, the relay device 10 accepts designation of a plurality of divided programs divided from the control program and the priority of each of the divided programs (step S31).
[0064] Then, the relay device 10 compares the execution speed when the divided program is executed by the relay device 10 and when the divided program is executed by the computer 20 (step S32). For example, when the priorities as shown in Fig. 9 are specified, the execution speeds of the relay device 10 and the computer 20 are derived for the sequence control processing program specified with the highest priority as shown in the upper part of Fig. 11.
[0065] Next, the relay device 10 assigns the divided programs to the relay device 10 or the computer 20 based on the comparison result (step S33). In the example shown in the upper part of Fig. 11, since execution by the computer 20 is faster, the device that executes the sequence control processing program is determined to be the computer 20. The upper part of Fig. 12 shows a schematic diagram of the execution time when the sequence control processing is executed by the relay device 10 and the computer 20, respectively.
[0066] Similarly, when the execution speeds of the motion control processing program that has the next highest priority are compared as shown in the middle of Fig. 11, as can be seen from the middle of Fig. 12, execution by the computer 20 is faster, so the motion control processing program is also assigned to the computer 20. Furthermore, when the execution speeds of the information processing program that has the next highest priority are compared as shown in the bottom of Fig. 11, as can be seen from the bottom of Fig. 12, due to the influence of a reduction in resources of the computer 20 in charge of the sequence control processing with priority "1" and the motion control processing with priority "2", execution by the relay device 10 is faster, so the information processing program is assigned to the relay device 10. The device to execute the other divided programs is determined in a similar manner.
[0067] 10, following step S33, the computer 20 acquires the divided program assigned to the computer 20 (step S34). Then, the relay device and the computer each execute the assigned divided program by the execution engine program, thereby cooperatively executing the control program (step S35). With regard to the divided program executed by the computer 20, the relay device 10 executes step S4 similar to that of the first embodiment. Thereafter, the control function extension process ends.
[0068] As described above, the relay device 10 accepts the designation of the divided programs and the priority, and assigns and executes each divided program to the relay device 10 or the computer 20 according to the priority. This allows the partial process corresponding to the divided program among the control processes to be executed by an appropriate device according to the priority.
[0069] Although an example in which the relay device 10 receives the designation of the division program and the priority has been described, the present invention is not limited to this, and the computer 20 may have the reception unit 104. The relay device 10 may provide the computer 20 with a program for implementing the function of the reception unit 104.
[0070] In addition, the example in which the relay device 10 compares the execution speeds has been described, but the present invention is not limited to this, and the computer 20 may have the comparison unit 105. The relay device 10 may provide the computer 20 with a program for implementing the function of the comparison unit 105.
[0071] The relay device 10 may receive from the computer 20 a divided program of the control program 31 that is assigned to the relay device 10 itself and execute it.
[0072] Also, an example of accepting a priority designation for each divided program has been described, but this is not limiting, and at least one divided program that should be prioritized over other divided programs may be designated. For example, as shown in FIG. 9, the accepting unit 104 accepts the designation of one of the divided programs, and the comparing unit 105 compares the execution speed of the designated program when executed by the execution unit 101 and when executed by the execution unit 21, and the one of the execution units 101 and 21 that has a faster execution speed may execute the designated program. For divided programs other than the designated program, a device to execute them may be arbitrarily determined. The accepting unit 104 described in the above third embodiment corresponds to an example of a accepting means that accepts the setting of the highest priority assigned to any one of the divided programs as the designation of the designated program by accepting the setting of the priority assigned to each divided program.
[0073] Although the embodiments of the present disclosure have been described above, the present disclosure is not limited to the above-described embodiments.
[0074] For example, although an example has been described in which the relay device 10 is connected to the data bus 27 of the PCI standard or the PCIe standard, the relay device 10 may be connected to a data bus of the USB (Universal Serial Bus) standard in the computer 20. The relay device 10 may be any device that is connected to the base unit 41 and the computer 20 and causes the computer 20 to execute control processing.
[0075] The functions of the relay device 10 according to the above-described embodiment can be realized by dedicated hardware or by a general computer system.
[0076] For example, the program P1 can be stored and distributed on a computer-readable recording medium such as a flexible disk, a CD-ROM (Compact Disk Read-Only Memory), a DVD (Digital Versatile Disk), or an MO (Magneto-Optical disk), and the program P1 can be installed on a computer to configure an apparatus that executes the above-mentioned processing.
[0077] Also, the program P1 may be stored in a disk device of a server device on a communication network such as the Internet, and may be downloaded to a computer, for example, by being superimposed on a carrier wave.
[0078] The above-mentioned processing can also be achieved by starting and executing the program P1 while transferring it via a network such as the Internet.
[0079] Furthermore, the above-mentioned processing can also be achieved by executing all or part of the program P1 on a server device, and executing the program P1 while the computer transmits and receives information related to the processing via a communications network.
[0080] In addition, when the above-mentioned functions are shared and realized by the OS (Operating System) or by the OS working together with an application, only the parts other than the OS may be stored on a medium and distributed, or may be downloaded to a computer.
[0081] Furthermore, the means for realizing the functions of the relay device 10 is not limited to software, and a part or the whole of the functions may be realized by dedicated hardware or circuits.
[0082] Various embodiments and modifications of the present disclosure are possible without departing from the broad spirit and scope of the present disclosure. The above-described embodiments are for explaining the present disclosure and do not limit the scope of the present disclosure. In other words, the scope of the present disclosure is indicated by the claims, not the embodiments. Various modifications made within the scope of the claims and within the scope of the disclosure equivalent thereto are considered to be within the scope of the present disclosure. [Industrial Applicability]
[0083] The present disclosure is suitable for control processing with a high computational load in FA facilities. [Explanation of symbols]
[0084] 10 relay device, 11 first connection I / F, 11a, 11b, 12a, 12b terminal, 12 second connection I / F, 11c, 12c cable, 13 provision unit, 20 computer, 21, 101 execution unit, 22, 102 memory, 27 data bus, 30, 30a software, 31 control program, 32, 33 execution engine program, 40 PLC function system, 41 base unit, 42 power supply unit, 43 input unit, 44 output unit, 45 intelligent function unit, 46 network function unit, 53, 54 equipment, 60 FA device, 61 processor, 62 main memory unit, 63 auxiliary memory unit, 64 input unit, 65 output unit, 66 communication unit, 67 internal bus, 103 acquisition unit, 104 reception unit, 105 comparison unit, 410 data bus, 1000 Control system, NW network, P1 program.
Claims
1. A relay device connected to a base unit on which a functional unit for constituting a programmable logic controller is mounted and to a computer, the relay device causing the computer to execute a control process using the functional unit, a first connection interface connected to a first data bus inside the base unit; a second connection interface connected to a second data bus inside the computer; providing means for providing the computer with an execution engine program for executing, in a device different from the programmable logic controller, a control program for causing the programmable logic controller to execute the control process; transmitting signals between the computer and the functional units via the first connection interface and the second connection interface when the computer executes the control program by the execution engine program; Relay device.
2. an acquisition means for acquiring the control program and the execution engine program; a first execution means for executing a part of the control process defined by the control program by the execution engine program; The relay device of claim 1 further comprising:
3. Either one of the second execution means and the first execution means, which execute the control program in the computer, executes the control process together with the other execution means by accessing a memory which is a working area of the other execution means. The relay device according to claim 2 .
4. The computer is a general-purpose personal computer. The relay device according to claim 1 .
5. The computer runs on a real-time operating system and has a user interface function. The relay device according to claim 1 .
6. A relay device according to any one of claims 1 to 5, the computer that executes the control program using the execution engine program provided by the relay device; A control system comprising:
7. The relay device according to claim 1 ; the computer that executes the control program using the execution engine program provided by the relay device; a receiving means for receiving a plurality of divided programs divided from the control program and a designation of one of the plurality of divided programs; A comparison means for comparing the execution speeds of the designated programs; Equipped with The relay device is An acquisition means for acquiring the execution engine program; an execution means for executing a part of the control process defined by the control program by the execution engine program, the comparison means compares the execution speed when the designated program is executed by the execution means with the execution speed when the designated program is executed by the computer; the execution means or the computer, whichever has a faster execution speed, executes the designated program; Control system.
8. the reception means receives settings of priorities to be assigned to the respective divided programs, and thereby receives a setting of the highest priority to be assigned to any one of the divided programs as the designation of the designated program.
8. The control system of claim 7.
9. A control function expansion method performed by a relay device connected to a base unit on which a functional unit for constituting a programmable logic controller is mounted and a computer, the relay device causing the computer to execute a control process using the functional unit, the method comprising: providing, to the computer, an execution engine program for executing, in a device different from the programmable logic controller, a control program for causing the programmable logic controller to execute the control process; transmitting signals between the computer and the functional units when the computer executes the control process according to the execution engine program; A control function expansion method comprising:
10. a relay device connected to a base unit on which a functional unit for constituting a programmable logic controller is mounted, and a computer, the relay device causing the computer to execute a control process using the functional unit; providing, to the computer, an execution engine program for executing, in a device different from the programmable logic controller, a control program for causing the programmable logic controller to execute the control process; transmitting signals between the computer and the functional units when the computer executes the control process according to the execution engine program; A program to make it happen.
Citation Information
Patent Citations
Emulation device for programmable controller
JP1999272310A
Debug support device and method
JP2000222012A
Data processor
JP2005251228A
Software PLC, and message routing method therefor
JP2007249562A
Plant control apparatus
JP2019082780A
