CONTROL DEVICE, DATA COMMUNICATION METHOD, AND DATA COMMUNICATION PROGRAM
The control device with multiple network interfaces and OPC UA instances, utilizing shared and individual address spaces, addresses data communication inefficiencies by managing access rights and prioritizing communications, ensuring efficient and conflict-free OPC UA data exchange.
Patent Information
- Application Number
- JP2021036472
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-08
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2041-03-08
AI Technical Summary
Existing control devices with multiple network interfaces lack a configuration that enables efficient data communication according to OPC UA, leading to potential conflicts and inefficiencies in managing access rights and data objects.
A control device with multiple network interfaces, each associated with an OPC UA instance, utilizes a shared address space and individual address spaces to manage data objects, along with a management module to handle access rights and prioritize communications based on IEEE802.1 TSN priorities.
Enables efficient and conflict-free data communication with multiple destinations using OPC UA, ensuring proper access management and prioritization of data communications.
Smart Images

Figure 0007563245000001 
Figure 0007563245000002 
Figure 0007563245000003
Abstract
Description
[Technical field]
[0001] The present technology relates to a control device, a data communication method, and a data communication program. [Background technology]
[0002] Efforts are underway to expand the use of standard networks (such as Ethernet (registered trademark)) that are used in general information networks so that they can also be used in industrial networks. For example, OPC UA (OPC Unified Architecture), which is internationally standardized as IEC62541, is becoming more and more popular as a communications stack for data communication between devices.
[0003] For example, Patent Document 1 (EP 03357218) discloses data communication between a client device and a server device according to the OPC-UA protocol. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] European Patent No. 03357218 Summary of the Invention [Problem to be solved by the invention]
[0005] When considering the case where OPC UA is implemented in a control device such as a PLC (Programmable Logic Controller), a network interface is often prepared for each layer. In such a configuration with multiple network interfaces, no consideration is given to realizing data communication according to OPC UA.
[0006] This technology provides a new configuration for implementing data communication conforming to OPC UA in a control device having multiple network interfaces. [Means for solving the problem]
[0007] A control device for controlling a control target according to an embodiment of the present technology includes a plurality of network interfaces, a plurality of OPC UA instances each associated with the plurality of network interfaces, and a shared address space for managing data objects related to control operations. The plurality of OPC UA instances each have an individual address space for sharing the data objects managed by the shared address space. Each of the plurality of OPC UA instances performs data communication according to OPC UA using its own individual address space.
[0008] According to this configuration, data communication according to OPC UA can be performed with a plurality of communication destinations regarding a common data object related to control calculation.
[0009] Each individual address space may manage data objects specific to each OPC UA instance in addition to replicas of data objects managed by the shared address space. With this configuration, data objects corresponding to services provided by each OPC UA instance can also be managed.
[0010] The control device may further include a management module that manages access rights to each of the multiple OPC UA instances. This configuration makes it possible to realize access management that avoids contention among multiple communication destinations and data communications.
[0011] The management module may determine the access rights of each of the multiple OPC UA instances to the same data object based on the priority of access to the same data object among the data objects managed by the shared address space. With this configuration, it is possible to avoid conflicts in access to the same data object based on the priority of access to the same data object.
[0012] The management module may set write permissions for the same data object to only one OPC UA instance among the multiple OPC UA instances. With this configuration, only multiple OPC UA instances are permitted to write to any data object, thereby avoiding write conflicts.
[0013] The access priority may be determined according to the priority according to IEEE 802.1 TSN. With this configuration, it is possible to set the access priority consistent with the frame forwarding rules according to IEEE 802.1 TSN.
[0014] The control device may further include a port status control unit that acquires the status of each of the ports of the multiple network interfaces. The management module may determine the access rights based on the port status of the multiple network interfaces. With this configuration, the access rights can be appropriately determined based on the port status of the interface.
[0015] The port state control unit may be configured to change the port states of the multiple network interfaces. With this configuration, the port states of the multiple network interfaces can be changed in addition to setting and changing access rights.
[0016] According to another embodiment of the present technology, there is provided a data communication method in a control device for controlling a control target. The control device has a plurality of network interfaces. The data communication method includes a step of generating a plurality of OPC UA instances respectively corresponding to the plurality of network interfaces, and a step of managing data objects related to control operations in a shared address space. The plurality of OPC UA instances each have an individual address space that shares the data objects managed in the shared address space. The communication method includes a step of each of the plurality of OPC UA instances performing data communication according to OPC UA using its own individual address space.
[0017] According to yet another embodiment of the present technology, there is provided a data communication program executed by a control device for controlling a control target. The control device has a plurality of network interfaces. The data communication program causes the control device to execute a step of generating a plurality of OPC UA instances respectively associated with the plurality of network interfaces, and a step of managing data objects related to control operations in a shared address space. The plurality of OPC UA instances each have an individual address space that shares the data objects managed in the shared address space. The data communication program causes the control device to execute a step of each of the plurality of OPC UA instances performing data communication according to OPC UA using its own individual address space. Effect of the Invention
[0018] According to the present technology, it is possible to provide a new configuration for realizing data communication according to OPC UA in a control device having multiple network interfaces. [Brief description of the drawings]
[0019] [Figure 1] 1 is a schematic diagram showing an example of the overall configuration of a control system according to an embodiment of the present invention; [Diagram 2]It is a schematic diagram showing a data model of a control device according to the present embodiment. [Diagram 3] It is a schematic diagram showing a method of sharing data objects in a control device according to the present embodiment. [Figure 4] It is a block diagram showing a hardware configuration example of a control device according to the present embodiment. [Diagram 5] It is a schematic diagram showing an example of access management in a control device according to the present embodiment. [Figure 6] It is a schematic diagram showing an aspect of a functional configuration for realizing access management in a control device according to the present embodiment. [Figure 7] It is a schematic diagram showing another aspect of a functional configuration for realizing access management in a control device according to the present embodiment. [Figure 8] It is a diagram for explaining the processing content related to access management in a control device according to the present embodiment. [Figure 9] It is a diagram showing an example of an access right setting generated by a control device according to the present embodiment. [Figure 10] It is a flowchart showing a processing procedure related to data communication in a control device according to the present embodiment. [Figure 11] It is a flowchart showing a processing procedure related to access management in a control device according to the present embodiment.
Embodiments for Carrying Out the Invention
[0020] Embodiments of the present technology will be described in detail with reference to the drawings. Note that the same or corresponding parts in the drawings are denoted by the same reference numerals and their descriptions will not be repeated.
[0021] <A. Application Example> First, an example of a scenario to which the present invention is applied will be described.
[0022] 1 is a schematic diagram showing an example of an overall configuration of a control system 1 according to the present embodiment. Referring to FIG. 1, the control system 1 includes control devices 100-1 and 100-2 (hereinafter also collectively referred to as “control devices 100”) and a higher-level device 200.
[0023] The control device 100 is typically a PLC (Programmable Logic Controller) for controlling a control target. The control devices 100-1 and 100-2 are connected via a network 4, enabling data communication according to OPC UA. More specifically, each of the control devices 100 has a field bus 8. One or more field devices 10 are connected to the field bus 8. The one or more field devices 10 include an input device that acquires a field signal, and an output device or actuator that performs some action on the field according to an instruction from the control device 100.
[0024] The higher-level device 200 is, for example, a database that stores data from the control device 100, a production management server, or an authentication server. The control device 100-1 and the higher-level device 200 are connected via a network 2, enabling data communication according to OPC UA.
[0025] Fig. 2 is a schematic diagram showing a data model of the control device 100 according to the present embodiment. Referring to Fig. 2, the control device 100 includes a PLC engine 170 that handles control calculations for controlling a control target, a global variable module 172 that is a data group that is a target of data communication, and a service module 174 that handles various processes related to the data communication.
[0026] The global variable module 172 holds and updates variables (global variables) that are designated to be made public from among variables (input variables, output variables, internal variables, etc.) that can be referenced in the control calculations executed by the PLC engine 170.
[0027] The service module 174 executes various processes required for data communication, such as executing a specified process in response to a request and responding with the result. The PLC engine 170 cooperates with the service module 174 to execute the specified process as necessary.
[0028] The control device 100 has a plurality of network interfaces 106-1, 106-2 (hereinafter also collectively referred to as "network interfaces 106"). The network interface 106-1 is connected to the higher-level device 200 via a network 2, and the network interface 106-2 is connected to other control devices 100 via a network 4. The network interfaces 106-1, 106-2 logically have ports 108-1, 108-2, respectively.
[0029] The control device 100 has OPC UA instances 150-1 and 150-2 (hereinafter also collectively referred to as "OPC UA instances 150") associated with the network interfaces 106-1 and 106-2, respectively. That is, the control device 100 executes a process of generating two OPC UA instances 150-1 and 150-2.
[0030] Application authentication used in OPC UA is performed using a client-server certificate based on an IP address, so two OPC UA instances 150-1 and 150-2 are required to correspond to the two network interfaces 106-1 and 106-2, respectively.
[0031] Each OPC UA instance 150 is a processing entity for implementing various processes and functions such as Client / Server and Pub / Sub. Each OPC UA instance 150 is responsible for Pub / Sub (Publisher / Subscriber) communication and Req / Res (Request / Response) communication between the higher-level device 200 and other control devices 100. In Pub / Sub communication, data is exchanged periodically. In Req / Res communication, data is exchanged event-wise.
[0032] In the control device 100, a shared address space 142 and a management module 160 are arranged as an internal interface with the two OPC UA instances 150. That is, the two OPC UA instances 150 access the global variable module 172 and the service module 174 via the shared address space 142. The OPC UA instances 150-1 and 150-2 have individual address spaces 152-1 and 152-2. Each of the individual address spaces 152-1 and 152-2 has a copy of all or part of the data object 144 managed by the shared address space 142. That is, each of the individual address spaces 152-1 and 152-2 shares the data object 144 managed by the shared address space 142.
[0033] The shared address space 142 is a virtual space that holds and stores data objects 144 referenced in data communication according to OPC UA. More specifically, the shared address space 142 manages the data objects 144 related to the control operations executed by the PLC engine 170. That is, the control device 100 executes a process of managing the data objects 144 related to the control operations in the shared address space 142.
[0034] The OPC UA instance 150-1 uses its own individual address space 152-1 to perform data communication according to OPC UA. Similarly, the OPC UA instance 150-2 uses its own individual address space 152-2 to perform data communication according to OPC UA. In this way, the OPC UA instance 150-1 and the OPC UA instance 150-2 publish address spaces independent of each other to perform data communication. However, since the individual address spaces 152-1 and 152-2 both share the shared address space 142, they are actually an integrated address space.
[0035] In this way, in the control device 100, the multiple OPC UA instances 150-1 and 150-2 each use their own individual address spaces 152-1 and 152-2 to perform data communication in accordance with OPC UA.
[0036] The management module 160 manages the access rights for the OPC UA instances 150-1 and 150-2. That is, the management module 160 manages the access to the shared address space 142 by the OPC UA instances 150-1 and 150-2.
[0037] 3 is a schematic diagram showing a method of sharing a data object in the control device 100 according to the present embodiment. Referring to FIG. 3, data objects 154-1 and 154-2, which are copies of the data object 144 managed by the shared address space 142, are placed in the individual address spaces 152-1 and 152-2, respectively. That is, the data object 154-1 managed by the individual address space 152-1 of the OPC UA instance 150-1 and the data object 154-2 managed by the individual address space 152-2 of the OPC UA instance 150-2 are substantially identical to the data object 144 managed by the shared address space 142.
[0038] In this manner, the individual address spaces 152-1 and 152-2 manage common data objects. The data objects 154-1 and 154-2 may include not only the data object 144 but also data objects common between the OPC UA instance 150-1 and the OPC UA instance 150-2.
[0039] From the perspective of each OPC UA instance 150, essentially, data objects managed by other OPC UA instances 150 cannot be accessed, but data objects 144 managed by the shared address space 142 can be accessed.
[0040] Data object 144 and data objects 154-1, 154-2 may include not only statically predefined data objects, but also dynamically changed data objects, i.e., data objects that are added and removed are reflected.
[0041] The individual address space 152-1 may manage a unique data object 156-1 separately from the data object 154-1. Similarly, the individual address space 152-2 may manage a unique data object 156-2 separately from the data object 154-2. The unique data object 156-1 and the unique data object 156-2 are data objects unique to the OPC UA instance 150-1 and the OPC UA instance 150-2, respectively. In this manner, each of the individual address spaces 152-1 and 152-2 may manage a unique data object 156 unique to each OPC UA instance 150 in addition to a copy of the data object 144 managed by the shared address space 142.
[0042] Note that the unique data object 156-1 managed by the individual address space 152-1 and the unique data object 156-2 managed by the individual address space 152-2 may be made public to the other OPC UA instance 150. Through the public disclosure, it is possible to access the unique data object of the other OPC UA instance 150 from one OPC UA instance 150.
[0043] By adopting the data models shown in FIGS. 2 and 3, the control device 100 according to the present embodiment can realize data communication conforming to OPC UA with a plurality of communication destinations respectively.
[0044] <B. Hardware Configuration Example> Next, an example of the hardware configuration of the control device 100 according to the present embodiment will be described.
[0045] FIG. 4 is a block diagram showing an example of the hardware configuration of the control device 100 according to the present embodiment. Referring to FIG. 4, the control device 100 includes a processor 102, a main memory 104, network interfaces 106-1 and 106-2, a storage 110, an internal bus interface 120, a field bus interface 122, and a memory card interface 124. Each component is electrically connected via a bus 128.
[0046] The processor 102 is composed of a CPU (Central Processing Unit), an MPU (Micro-Processing Unit), a GPU (Graphical Processing Unit), etc., reads out various programs stored in the storage 110, expands them in the main memory 104, and executes them to realize the processing as a control device.
[0047] The network interfaces 106-1 and 106-2 are responsible for data communication via any network. The network interfaces 106-1 and 106-2 have ports 108-1 and 108-2 for physically connecting to the network. The network interface 106 may transmit and receive frames using, for example, the Institute of Electrical and Electronic Engineers (IEEE) 802.1 Time Sensitive Networking (TSN) (hereinafter, also simply referred to as "TSN"), which is based on Ethernet (registered trademark) and has been improved so that the network behaves deterministically. However, a network conforming to normal Ethernet (registered trademark) may also be used.
[0048] Typically, the storage 110 stores a system program 112 for implementing the functions of the control device, and a user program 114 that defines the control logic executed by the control device. The system program 112 includes a data communication program for implementing the data communication method according to the present embodiment. The user program 114 is arbitrarily designed and created by the user according to the object to be controlled.
[0049] The internal bus interface 120 exchanges data with an I / O unit 130 mounted on the control device 100. The field bus interface 122 exchanges data with a field device via the field bus 8.
[0050] The memory card interface 124 is configured to allow a memory card 126 to be attached / detached, and is capable of writing data to the memory card 126 and reading various data (user programs, trace data, etc.) from the memory card 126.
[0051] FIG. 4 shows a configuration example in which the functions necessary for the processor 102 to execute a program are provided. However, some or all of these provided functions may be implemented using dedicated hardwired circuits (e.g., ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array), etc.). Alternatively, the main part of the control device 100 may be realized using hardware that follows a general-purpose architecture (e.g., an industrial personal computer based on a general-purpose personal computer). Thus, the processes executed and the functions provided by the control device 100 may be realized by a processing circuitry including a processor, an ASIC, an FPGA, etc.
[0052] <C. Access Management> Next, access management in the control device 100 according to the present embodiment will be described.
[0053] As described above, in the control device 100, access is made to the shared address space 142 from a plurality of access sources. It is necessary to manage access from such a plurality of access sources.
[0054] For example, in the control device 100, a profile may be set for each unit or port, or a plurality of profiles may be switched and reflected for the same port. Therefore, it is preferable to manage access rights based on the priority or importance of data communication, and the communication state of data communication.
[0055] As described above, in the control device 100 having a plurality of network interfaces 106, an OPC UA instance is generated for each network interface 106. That is, the individual address spaces of the respective OPC UA instances are independent of each other, but all of the plurality of individual address spaces access the shared address space.
[0056] For this reason, it is necessary to manage access rights appropriate to each OPC UA instance, and it is also preferable to introduce a mechanism to prevent access conflicts, such as exclusive control. Furthermore, since there are multiple types of data communication, it is also necessary to manage access rights according to the type of data communication.
[0057] Therefore, the control device 100 according to the present embodiment manages the individual address space and the shared address space in an integrated manner, and realizes appropriate management of access rights according to the priority of data communication, the state of a port, and the like.
[0058] Furthermore, in TSN, eight priorities are defined, and a priority can be set for each frame. For example, the priority for data used in control calculations executed by the control device 100 is set high, and the priority for access from the higher-level device 200 is set low. In other words, the priority of access (data communication) may be determined according to the priority in accordance with IEEE802.1 TSN.
[0059] Taking such priority into consideration, accesses with relatively high priority may be given priority. In this case, accesses with relatively low priority may be set to read-only so that accesses to the same data do not conflict. Furthermore, even if there is no access conflict, operations such as resetting that stop control calculations may be set to write-prohibited.
[0060] On the other hand, when communication of data used in the control calculation is stopped and it is determined that the effect on the control calculation is small, the write protection may be lifted to allow access.
[0061] Fig. 5 is a schematic diagram showing an example of access management in the control device 100 according to the present embodiment. Referring to Fig. 5, while access from the individual address space 152-2 of the OPC UA instance 150-2 in charge of data communication with other control devices 100 to the shared address space 142 is permitted, access from the individual address space 152-1 of the OPC UA instance 150-1 in charge of data communication with the higher-level device 200 to the shared address space 142 may be prohibited.
[0062] The address space also includes information about Pub / Sub communication for sending and receiving data used in control calculations. By accessing information about such Pub / Sub communication, it is possible to stop data communication or delete communication settings. Therefore, it is preferable to prohibit access to operations that may have a fatal effect on such data communication, depending on the situation.
[0063] For example, in the case of safety communication, access may be permitted only from the safety logic executed in the control device 100, and writing may be prohibited from access from other control devices 100 or the higher-level device 200 that are communication destinations. Also, during safety communication, access may be restricted so that communication settings cannot be deleted.
[0064] Fig. 6 is a schematic diagram showing an aspect of a functional configuration for realizing access management in the control device 100 according to the present embodiment. With reference to Fig. 6, the management module 160 of the control device 100 includes, as functional components, a port state control engine 162, an evaluation engine 164, and an address space control engine 168.
[0065] The port state control engine 162 obtains the state of the port 108 of the network interface 106. The port state control engine 162 also exchanges commands with the network interface 106, and can also change the state of the port 108 of the network interface 106.
[0066] The rating engine 164 is responsible for setting and changing access rights to address spaces. The rating engine 164 includes communication state information 165, a priority table 166, and an access right setting 167.
[0067] The address space control engine 168 sets or modifies the access rights of the address space according to instructions from the evaluation engine 164 .
[0068] The process of changing the access right in the control device 100 will be described with reference to Fig. 6. Fig. 6 shows an example of a case where the access right is set or changed depending on the communication state of the port 108.
[0069] The port state control engine 162 monitors the state of the network interface 106, and reflects the state and state changes of the port 108 in the communication state information 165 (step S2). The communication state information 165 stores the communication state of each port.
[0070] The evaluation engine 164 refers to the communication state information 165 to determine whether the access right needs to be changed (step S4). If the evaluation engine 164 determines that the access right needs to be changed, it refers to the communication state information 165 and the priority table 166 to update the access right setting 167 (step S6). Then, the evaluation engine 164 notifies the address space control engine 168 of the change in the access right based on the updated access right setting 167 (step S8).
[0071] The address space control engine 168 changes the access rights of the shared address space 142 and the individual address spaces 152-1 and 152-2 (step S10).
[0072] Fig. 7 is a schematic diagram showing another aspect of the functional configuration for realizing access management in the control device 100 according to the present embodiment. Fig. 7 shows an example of a case where access rights are set or changed in response to a request from the network interface 106.
[0073] 7, the port state control engine 162 monitors the state of the network interface 106, and reflects the state and state changes of the port 108 in the communication state information 165 (step S12).
[0074] When the port state control engine 162 receives a port state change request from the network interface 106 (step S14), it transmits an access right review request to the evaluation engine 164 (step S16).
[0075] The evaluation engine 164 refers to the communication state information 165 and the priority table 166 to update the access right setting 167 (step S18). Then, the evaluation engine 164 notifies the address space control engine 168 of the change in the access right based on the updated access right setting 167 (step S20).
[0076] The address space control engine 168 changes the access rights of the shared address space 142 and the individual address spaces 152-1 and 152-2 (step S22).
[0077] Through the above-mentioned procedure, the access rights to the address space are set or changed.
[0078] Fig. 8 is a diagram for explaining the process contents related to the access management in the control device 100 according to the present embodiment. Referring to Fig. 8, the communication state information 165 stores the communication state for each target port. In the example shown in Fig. 8, the communication state for each of three ports (ports A, B, and C) is shown.
[0079] More specifically, the communication status information 165 includes a communication type 1652, a priority 1654, and a status 1656. The communication type 1652 indicates the type of communication being performed using the corresponding port. The priority 1654 indicates the priority set for the corresponding communication type. The status 1656 indicates the status of the corresponding communication (operating / stopped).
[0080] The priority is determined by referring to the priority table 166 stored in the priority 1654. The priority table 166 may be set in correspondence with, for example, the eight priorities defined in TSN, or may be set to any priority classification.
[0081] More specifically, the priority table 166 includes a priority 1662 and a communication type 1664. The priority 1662 indicates the priority to be set, and the communication type 1664 indicates the corresponding type of communication. That is, the priority table 166 indicates the priority defined for each type of communication.
[0082] There are provided an access right setting 167-1 for communication with the highest priority, and an access right setting 167-2 for other communications. The access right setting 167-1 and the access right setting 167-2 define the access right for each variable corresponding to a data object.
[0083] The access rights settings 167-1 include variables 1672, associated communications 1674, active high priority communication types 1676, and active high priority access rights 1678.
[0084] Variables 1672 indicate variables (global variables) that are specified to be exposed to the outside. The variables defined in variable 1672 are included in data objects 144 managed by shared address space 142.
[0085] The associated communication 1674 stores the port used by the communication scheduled to access the corresponding variable and the priority of the communication. For example, "A of 2" associated with the variable "aa" indicates a scheduled access by communication of "port A" with a priority of "2". Similarly, "A of 2" and "B of 3" associated with the variable "ab" indicate a scheduled access by communication of "port A" with a priority of "2" and a scheduled access by communication of "port B" with a priority of "3".
[0086] The communication type of the communication with the highest priority among one or more communications scheduled to access the corresponding variable is stored in the active high priority communication type 1676. For example, an access to the variable "aa" is scheduled as a communication with a priority of "2" on "port A", and this communication is "monitor", which corresponds to the priority of "2" in the priority table 166.
[0087] On the other hand, access to the variable "ab" is scheduled as a communication with a priority of "2" through "port A" and a communication with a priority of "3" through "port B", and among these communications, the highest priority is "3." In this case, "event" corresponding to the priority of "3" in the priority table 166 is stored as the communication type.
[0088] It should be noted that access to the variable "cc" is scheduled as communication on "port C" with a priority level of "7", but since that communication is currently stopped, the communication type is "none".
[0089] The active high priority access right 1678 stores the port corresponding to the highest priority communication and the access right (writeable (Write / Read) or read only (Read Only)). For example, the variable "aa" is associated with "monitor" as the communication type, and read only (Read Only) is set in correspondence with "monitor". Similarly, the variable "ab" is associated with "event" as the communication type, and writeable (Write / Read) is set in correspondence with "monitor".
[0090] The access right setting 167-2 includes a variable 1672 and a write permission 1679. The variable 1672 stores a variable similar to the variable 1672 of the access right setting 167-1. The write permission 1679 stores an access right (writable (Write / Read) or read only (Read Only)) according to the high priority access right 1678 during operation of the access right setting 167-1.
[0091] FIG. 9 is a diagram showing an example of the access right setting 167 generated by the control device 100 according to the present embodiment. Referring to FIG. 9, the access right setting 167 defines the access right (writable (Write / Read) or read-only (Read Only)) for each port (OPC UA instance) for each variable.
[0092] In this way, the management module 160 sets the write permission for the same data object (typically, a variable as described above) only to one of the plurality of OPC UA instances 150.
[0093] The address space control engine 168 sets the access right of the address space according to the access right setting 167 as shown in FIG. 9.
[0094] As described above, the management module 160 determines the respective access rights for the same data object from the plurality of OPC UA instances 150 for the same data object (typically, a variable as described above) among the data objects 144 managed by the shared address space 142 based on the priority of access (data communication). Further, the management module 160 determines the access right based on the state of the port of the network interface 106.
[0095] <D. Processing Procedure> Next, the processing executed by the control device 100 according to the present embodiment will be described.
[0096] FIG. 10 is a flowchart showing a processing procedure related to data communication in the control device 100 according to the present embodiment. Each step shown in FIG. 10 is typically realized by the processor 102 of the control device 100 executing the system program 112.
[0097] 10, in an initial state, the control device 100 generates the shared address space 142 (step S100) and generates a plurality of OPC UA instances 150-1 and 150-2 associated with the network interfaces 106-1 and 106-2, respectively (step S102).
[0098] When the control period arrives (YES in step S104), the control device 100 executes a control operation (step S106) and reflects the result of the control operation in the data object 144 managed by the shared address space 142 (step S108). That is, the control device 100 manages the data object 144 related to the control operation in the shared address space 142.
[0099] Then, the control device 100 reflects the data object 144 managed by the shared address space 142 in the data object 154-1 managed by the individual address space 152-1, and reflects the data object 144 managed by the shared address space 142 in the data object 154-2 managed by the individual address space 152-2 (step S110).
[0100] The OPC UA instance 150-1 of the control device 100 uses the individual address space 152-1 to perform data communication according to OPC UA, and the OPC UA instance 150-2 of the control device 100 uses the individual address space 152-2 to perform data communication according to OPC UA (step S112). Then, the processing from step S104 onwards is repeated.
[0101] If necessary, the following access management processing is executed.
[0102] 11 is a flowchart showing a processing procedure related to access management in the control device 100 according to the present embodiment. Typically, each step shown in FIG. 11 is realized by the processor 102 of the control device 100 executing the system program 112.
[0103] Referring to FIG. 11, the control device 100 monitors the state of the network interface 106 and reflects the state of the port 108 in the communication state information 165 (step S200). Subsequently, the control device 100 determines whether the condition for determining whether the access right needs to be changed is satisfied (step S202).
[0104] Examples of the condition for determining whether the access right needs to be changed include, for example, when the communication state stored in the communication state information 165 is changed, and when a request is received from the network interface 106.
[0105] If the condition for determining whether the access right needs to be changed is not satisfied (NO in step S202), the processing below step S200 is repeated.
[0106] If the condition for determining whether the access right needs to be changed is satisfied (YES in step S202), the control device 100 refers to the communication state information 165 and the priority table 166, determines the port and access right with the highest priority for each variable (step S204), and determines an access right setting 167 that defines the access right for each variable and each port (step S206). Then, the control device 100 sets the access right of the address space according to the determined access right setting 167 (step S208). Then, the processing below step S200 is repeated.
[0107] <E. Other Embodiments> In the above description, a configuration example in which a plurality of OPC UA instances are implemented in a control device such as a PLC is shown. However, the device to be implemented is not limited to the control device, and may be an HMI (Human Machine Interface), an IPC (Industrial Personal Computer), or the like.
[0108] Also, the number of OPC UA instances may be three or more.
[0109] <F. Supplementary Note> The present embodiment as described above includes the following technical idea.
[0110] [Configuration 1] A control device (100) for controlling a control target, Multiple network interfaces (108-1, 108-2), A plurality of OPC UA instances (150-1, 150-2) each associated with a corresponding one of the plurality of network interfaces; A shared address space (142) for managing data objects related to control operations; The multiple OPC UA instances each have an individual address space (152-1, 152-2) that shares a data object managed by the shared address space, A control device, wherein each of the multiple OPC UA instances uses its own individual address space to perform data communication in accordance with OPC UA.
[0111] [Configuration 2] The control device according to configuration 1, wherein each of the individual address spaces manages a data object (156) specific to each OPC UA instance in addition to a copy (154) of the data object (144) managed by the shared address space.
[0112] [Configuration 3] The control device according to configuration 1 or 2, further comprising a management module (160) that manages access rights to each of the multiple OPC UA instances.
[0113] [Configuration 4] The control device according to configuration 3, wherein the management module determines access rights for each of the multiple OPC UA instances to the same data object based on a priority of access to the same data object among data objects managed by the shared address space.
[0114] [Configuration 5] The control device according to configuration 4, wherein the management module sets write permission for the same data object to only one OPC UA instance among the multiple OPC UA instances.
[0115] [Configuration 6] The control device according to configuration 4 or 5, wherein the access priority is determined according to a priority conforming to IEEE 802.1 TSN.
[0116] [Configuration 7] A port status control unit (162) for acquiring a status of each port of the plurality of network interfaces, 7. The control device according to any one of configurations 3 to 6, wherein the management module determines the access right based on a state of the ports of the plurality of network interfaces.
[0117] [Configuration 8] 8. The control device of configuration 7, wherein the port state control unit is configured to change a state of the ports of the plurality of network interfaces.
[0118] [Configuration 9] A data communication method in a control device (100) for controlling a control target, the control device having a plurality of network interfaces (108-1, 108-2), A step (S102) of generating a plurality of OPC UA instances (150-1, 150-2) respectively corresponding to the plurality of network interfaces; and managing data objects related to control operations in a shared address space (S108), wherein the multiple OPC UA instances each have individual address spaces (152-1, 152-2) that share the data objects managed in the shared address space, A data communication method comprising a step (S112) in which each of the multiple OPC UA instances performs data communication according to OPC UA using its own individual address space.
[0119] [Configuration 10] A data communication program (112) executed by a control device (100) for controlling a control target, the control device having a plurality of network interfaces (108-1, 108-2), the data communication program instructing the control device to: A step (S102) of generating a plurality of OPC UA instances (150-1, 150-2) respectively corresponding to the plurality of network interfaces; and a step (S108) of managing data objects related to control operations in a shared address space, wherein the plurality of OPC UA instances each have individual address spaces (152-1, 152-2) that share the data objects managed in the shared address space, A data communication program that causes each of the multiple OPC UA instances to execute a step (S112) of performing data communication in accordance with OPC UA using its own individual address space.
[0120] The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, not the above description, and is intended to include all modifications within the scope and meaning equivalent to the claims. [Explanation of symbols]
[0121] 1 control system, 2,4 network, 8 field bus, 10 field device, 100 control device, 102 processor, 104 main memory, 106 network interface, 108 port, 110 storage, 112 system program, 114 user program, 120 internal bus interface, 122 field bus interface, 124 memory card interface, 126 memory card, 128 bus, 130 I / O unit, 142 shared address space, 144,154 data object, 150 OPC UA instance, 152 individual address space, 156 specific data object, 160 management module, 162 port state control engine, 164 evaluation engine, 165 communication state information, 166 priority table, 167 access right setting, 168 address space control engine, 170 PLC engine, 172 global variable module, 174 service module, 200 Upper device, 1652, 1664, 1676 communication type, 1654, 1662 priority, 1656 status, 1672 variables, 1674 communication, 1678 access rights, 1679 write permissions.
Claims
1. A control device for controlling a control target, Multiple network interfaces and A plurality of OPC UA instances respectively corresponding to the plurality of network interfaces; a shared address space for managing data objects related to control operations; The multiple OPC UA instances each have an individual address space that shares a data object managed by the shared address space, A control device, wherein each of the multiple OPC UA instances performs data communication according to OPC UA using its own individual address space.
2. The control device of claim 1 , wherein each of the individual address spaces manages a copy of a data object managed by the shared address space plus a data object specific to each OPC UA instance.
3. The control device according to claim 1 , further comprising a management module that manages access rights to each of the plurality of OPC UA instances.
4. The control device according to claim 3 , wherein the management module determines access rights from the multiple OPC UA instances to the same data object based on a priority of access to the same data object among the data objects managed by the shared address space.
5. The control device according to claim 4 , wherein the management module sets a write permission for the same data object in only one OPC UA instance among the plurality of OPC UA instances.
6. 6. The control device according to claim 4, wherein the access priority is determined according to a priority according to IEEE802.1 TSN.
7. a port status control unit that acquires a status of each of the ports of the plurality of network interfaces; The control device according to any one of claims 3 to 6, wherein the management module determines access rights based on port states of the plurality of network interfaces.
8. The control device according to claim 7 , wherein the port state control unit is configured to change states of ports of the plurality of network interfaces.
9. A data communication method in a control device for controlling a control target, the control device having a plurality of network interfaces, generating a plurality of OPC UA instances respectively associated with the plurality of network interfaces; and managing data objects related to control operations in a shared address space, wherein the plurality of OPC UA instances each have an individual address space that shares the data objects managed in the shared address space, A data communication method comprising a step in which each of the multiple OPC UA instances performs data communication according to OPC UA using its own individual address space.
10. A data communication program executed by a control device for controlling a control target, the control device having a plurality of network interfaces, the data communication program being provided to the control device, generating a plurality of OPC UA instances respectively associated with the plurality of network interfaces; and managing data objects related to control operations in a shared address space, wherein the plurality of OPC UA instances each have an individual address space that shares the data objects managed in the shared address space; A data communication program that causes each of the multiple OPC UA instances to execute a step of performing data communication according to OPC UA using its own individual address space.
Citation Information
Patent Citations
Method for industrial communication via tsn
EP3357218A1
Control unit, control method, and program
JP2019096211A
Method for the Fail-Safe Operation of a Process Control System with Redundant Control Devices
US20150018980A1
Method, a system and a computer program product for managing OPC UA server capacity
US20200304567A1
Method for configuring an industrial automation system
US20200409340A1
