Control system, support device, and control device
The control system and support device empower users to autonomously set and map variable nodes, simplifying system development and reducing costs by integrating a user interface for direct variable-node association.
Patent Information
- Application Number
- JP2023047528
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-10-04
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The conventional system development flow for FA systems requires users to entrust mapping work between variables and variable nodes to external specialists, complicating the process and increasing development costs.
A control system and support device that allows users to set the correspondence between variable nodes in an address space and variables in a variable space using a user interface, generating a file with mapping information to automate this process.
Enables users to define and map variable nodes without external assistance, simplifying system development and reducing costs.
Smart Images

Figure 2024136415000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a control system, a support device, and a control device. [Background technology]
[0002] Factory Automation (FA) systems that automate production processes are becoming widespread in various production sites. FA systems are composed of various industrial driving devices. Industrial driving devices include, for example, a moving table for moving a workpiece, a conveyor for transporting the workpiece, and an arm robot for moving the workpiece to a predetermined target location. These driving devices are controlled by industrial control devices such as a Programmable Logic Controller (PLC) or a robot controller.
[0003] The control device controls various types of moving equipment to be controlled according to a program (hereinafter also referred to as a "user program") designed in advance by a user or the like. The user can use a development tool to develop any user program suited to the moving equipment to be controlled.
[0004] Control devices compatible with OPC UA (Open Platform Communications Unified Architecture) are becoming more widespread. OPC UA is a standard for communication established to realize data exchange between multiple devices, independent of vendor or type of OS (Operating System). By using a control device compatible with OPC UA, external devices can easily access data managed by the control device.
[0005] Japanese Patent Application Publication No. 2019-152949 (Patent Document 1) provides an explanation of the address space defined in OPC UA. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2019-152949 A Summary of the Invention [Problem to be solved by the invention]
[0007] The memory space of the control device includes a variable space and an address space. In the variable space, variables used during execution of a user program are defined. In the address space, variable nodes corresponding to the variables are defined. The correspondence between the variables and the variable nodes is determined by mapping to associate the variables defined in the variable space with the variable nodes defined in the address space. An external device accesses the exposed variables via the variable nodes.
[0008] Many vendors provide control devices with various specifications. The specifications of variables used in the control devices are determined by the vendor. In contrast, the specifications of variable nodes defined in the address space are standardized, for example, as the OPC UA standard. Conventionally, after a user designs a user program and variable nodes, the user asks an external specialist who is familiar with OPC UA to perform mapping. The external specialist performs mapping by associating variables with variable nodes using a dedicated setting tool.
[0009] In the conventional system development flow, after the user developed the user program, the user had to entrust some of the system development work, such as mapping, to a specialist company. This not only made the system development flow more complicated, but also increased the development costs.
[0010] One object of the present disclosure is to solve the above-mentioned problems, and to provide a technique that allows a user to set the correspondence between variable nodes in an address space and variables in a variable space. [Means for solving the problem]
[0011] According to an example of the present disclosure, there is provided a control system, comprising: a control device that controls a control target according to a user program; and a support device that supports the control device, the control device comprising a storage device in which a memory space is defined, the memory space including a variable space in which variables used when the user program is executed are defined, and an address space in which variable nodes are defined, the support device comprising a generation unit that generates a file for setting an information model including the memory space, and an output unit that outputs the file to the control device, the file including mapping information that specifies variables associated with the variable nodes, and the control device, upon receiving the file, associates the variables with the variable nodes according to the mapping information.
[0012] According to this disclosure, a user can set the correspondence between variable nodes in an address space and variables in a variable space.
[0013] In the above disclosure, the file includes variable node information for generating variable nodes in the address space, and the control device generates variable nodes in the address space according to the variable node information when receiving the file.
[0014] According to this disclosure, a user can create variable nodes in an address space. In the above disclosure, the generator includes a user interface for defining variables associated with the variable nodes.
[0015] According to this disclosure, a user can specify variables to be associated with variable nodes using a user interface.
[0016] In the above disclosure, variables are defined for each function block in the variable space, and the user interface accepts an operation for associating a variable defined in a function block with a variable node.
[0017] According to this disclosure, a user can associate a variable node with a variable defined within a function block.
[0018] In the above disclosure, the address space is defined in the memory space according to the Open Platform Communications Unified Architecture (OPC UA).
[0019] According to this disclosure, a user can map variables in a variable space to variable nodes in a memory space that conforms to OPC UA.
[0020] According to another example of the present disclosure, there is provided a support device that supports a control device that controls a control target according to a user program. The control device includes a storage device in which a memory space is defined, the memory space including a variable space in which variables used when the user program is executed are defined, and an address space in which variable nodes are defined, and the support device includes a generation unit that generates a file for setting an information model including the memory space, and an output unit that outputs the file to the control device, the file including mapping information that specifies variables associated with the variable nodes.
[0021] According to this disclosure, a user can set the correspondence between variable nodes in an address space and variables in a variable space.
[0022] According to another example of the present disclosure, there is provided a control device for controlling a control target in accordance with a user program, the control device comprising: a processor; and a storage device in which a memory space is defined, the memory space including a variable space in which variables used when the user program is executed are defined and an address space in which variable nodes are defined, the processor obtains a file for setting an information model including the memory space, the file including mapping information that specifies variables associated with the variable nodes, and the processor associates the variables with the variable nodes in accordance with the mapping information.
[0023] According to this disclosure, a user can set the correspondence between variable nodes in an address space and variables in a variable space. [Brief description of the drawings]
[0024] [Figure 1] FIG. 1 illustrates an example of a control system according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of instantiation of a function block (FB definition). [Diagram 3] FIG. 2 is a block diagram for explaining a flow in which variables are associated with variable nodes. [Figure 4] FIG. 2 is a diagram illustrating an example of a hardware configuration of a control device. [Diagram 5] FIG. 2 illustrates an example of a hardware configuration of a support device. [Figure 6] FIG. 2 illustrates an example of a hardware configuration of an external device. [Figure 7] 4 is a sequence diagram showing the flow of processing in each of the support device, the control device, the drive device, and the external device. [Figure 8] 11 is a flowchart for explaining a process executed by the support device when generating a node set file. [Figure 9] 13 is a flowchart for explaining a process of the control device based on the node set file. [Figure 10] FIG. 13 is a diagram showing an example of a development screen displayed on the support device. [Figure 11] 13 is a diagram showing an example of a setting screen displayed on the support device when a user sets mapping information. FIG. [Figure 12] 13 is a diagram showing an example of a setting screen displayed on the support device when a user sets mapping information. FIG. [Figure 13] 13 is a diagram showing an example of a setting screen displayed on the support device when a user sets mapping information. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0025] Embodiments of the present disclosure will be described in detail with reference to the drawings. Note that for the same or corresponding parts in the drawings, the same reference numerals are given and their descriptions will not be repeated.
[0026] <A. Application Example> With reference to FIG. 1, an example of a scenario in which the support device 100 of the present disclosure is applied will be described. FIG. 1 is a diagram showing an example of a control system 1 according to an embodiment. The control system 1 is an FA system that automates a production process. As shown in FIG. 1, the control system 1 includes a control device 200, a drive device 400 that is a control target of the control device 200, an external device 300 that exchanges data with the control device 200, and a support device 100 that supports the control device 200.
[0027] The control device 200 is a device such as a PLC that executes a user program 230 for controlling a control target. The control device 200 is communicably connected to the drive device 400 via a control system network 10. It is preferable to adopt a field network that performs fixed-cycle communication, in which the data arrival time is guaranteed, for the control system network 10. As such a field network that performs fixed-cycle communication, EtherCAT (registered trademark), EtherNet / IP (registered trademark), and CompoNet (registered trademark) are known. Note that the control device 200 may be communicably connected to the drive device 400 via a remote I / O (Input / Output) device or an I / O unit as the control system network 10.
[0028] The control device 200 is communicably connected to an external device 300 via an information network 20. The information network 20 is preferably a network conforming to a communication standard that can realize data exchange without depending on, for example, a vendor or a type of OS (Operating System). For example, OPC UA is known as such a communication standard. Note that the communication standard adopted by the information network 20 is not limited to OPC UA. For example, the information network 20 may be a network conforming to a communication standard specific to a specific vendor or OS.
[0029] When the information network 20 is a network conforming to OPC UA, the control device 200 is an example of an OPC UA server, and the external device 300 is an example of an OPC UA client. In such a control system 1 corresponding to OPC UA, the external device 300, which is an OPC UA client, can easily access data managed by the control device 200, which is an OPC UA server. The service provided by such a control system 1 is also referred to as a "network publication service" below.
[0030] The control device 200 is communicably connected to the support device 100 via a USB (Universal Serial Bus) connection or the like.
[0031] The driving device 400 includes various industrial devices for automating a production process. The driving device 400 includes, for example, a robot controller 400A for controlling a robot 401A, a servo driver 400B for controlling a servo motor 401B, and a sensor 400C for collecting various data. These driving devices 400 are controlled by the control device 200 via the control system network 10.
[0032] The external device 300 acquires data managed by the control device 200 via the information network 20. The external device 300 includes, for example, an HMI (Human Machine Interface), a notebook or desktop PC (Personal Computer), a smartphone, a tablet terminal, or other information processing device having a display. In FIG. 1, an HMI 300A and an HMI 300B are illustrated as examples of the external device 300. Note that the external device 300 is not limited to an information processing device such as an HMI having a display, and may be another control device (such as a PLC) other than the control device 200. For example, the control system 1 may be configured such that a plurality of control devices 200 are communicably connected to each other, so that data managed by each of the plurality of control devices 200 is exchanged between the plurality of control devices 200.
[0033] The support device 100 is, for example, a notebook or desktop PC, a smartphone, a tablet terminal, or any other information processing device.
[0034] The control device 200 comprises a variable space 210, an address space 220, a user program 230, a communication management program 240, user setting information 250, public setting information 260, and a node setting program 290. These components are stored in a storage device 202 (see FIG. 4) of the control device 200.
[0035] The control device 200 further includes a publication management unit 270 and a node setting unit 280. The publication management unit 270 and the node setting unit 280 are realized by a processor 201 (see FIG. 4) of the control device 200 and various programs executed by the processor 201.
[0036] Variables are defined in the variable space 210. In the example of FIG.
[0037] A "variable" is a concept that expresses any numerical value or character string that the control device 200 uses while executing the user program 230. The term "variable" is used as the opposite of a constant whose value never changes. In addition, a "variable" is not limited to input / output data exchanged with the outside or temporary data during internal processing, but can also be said to be a container (memory area) that stores the input / output data or temporary data. The control device 200 uses variables when executing the user program 230. The control device 200 updates variables in the process of executing the user program 230.
[0038] Variable nodes are defined in the address space 220. In an embodiment, the address space 220 is defined according to, for example, OPC UA. The address space 220 includes addresses of the variable nodes. In the example of FIG. 1, the address space 220 includes the addresses of a variable node A, a variable node B, and a variable node C.
[0039] By associating the variable nodes defined in the address space 220 with the variables defined in the variable space, the external device 300 can access the published variables via the variable nodes. Associating the variable nodes defined in the address space 220 with the variables defined in the variable space is called "mapping."
[0040] The node setting program 290 is a program for executing a process of implementing (generating) a variable node in the address space 220 and a mapping process. The node setting program 290 is executed by the node setting unit 280.
[0041] The user program 230 is a program in which processes for the control device 200 to control the movable machine 400 that is the control target are described. The user program 230 is generated by the support device 100 and installed in the control device 200.
[0042] The user program 230 may be written in any programming language. For example, the user program 230 is defined using at least one of a ladder diagram (LD), an instruction list (IL), structured text (ST), and a sequential function chart (SFC). The user program 230 may be defined in a general-purpose programming language such as JavaScript (registered trademark) or C language.
[0043] The communication management program 240 is a program for operating the control device 200 as an OPC UA server. The communication management program 240 describes a process for exposing variables to the external device 300. When the control device 200 receives an access request from the external device 300, the control device 200 determines whether to expose variables to the external device 300 based on the communication management program 240. The communication management program 240 is generated by the support device 100 and installed in the control device 200.
[0044] The user setting information 250 includes login information for managing a person accessing from the external device 300. Hereinafter, a person accessing from the external device 300 is also referred to as an "accessing user". In contrast, a person who generates the user program 230 and the node set file using the support device 100 is referred to as a "user". Note that the "user" and the "accessing user" may be the same person or may be different people. The accessing user is registered in advance in the control device 200 as the user setting information 250. The user setting information 250 is generated by the support device 100 and downloaded to the control device 200.
[0045] The public setting information 260 includes information for specifying whether or not data managed by the control device 200 is to be made public to the external device 300. The public setting information 260 is generated by the support device 100 and downloaded to the control device 200.
[0046] The disclosure management unit 270 discloses data to the external device 300 in accordance with the communication management program 240. For example, when the disclosure management unit 270 receives an access request for a variable from the external device 300, it authenticates the accessing user based on the user setting information 250. Next, after the user authentication, the disclosure management unit 270 identifies the variable that is the target of the access request. Next, the disclosure management unit 270 determines based on the disclosure setting information 260 whether or not the target variable is permitted to be disclosed to the external device 300.
[0047] If the target variable is permitted to be disclosed to the external device 300, the disclosure manager 270 identifies a variable node corresponding to the target variable. Specifically, the disclosure manager 270 extracts the address of the variable node associated with the target variable from the address space 220. The disclosure manager 270 discloses the extracted address to the external device 300. The external device 300 uses the address obtained from the control device 200 to access the requested variable.
[0048] An editor 140 and a development tool 150 may be installed in the support device 100. A user may install the editor 140 in one of the two information processing devices and install the development tool 150 in the other. In this case, each of the two information processing devices operates as a support device that supports the control device 200.
[0049] The editor 140 is, for example, an application for creating an information model of the control device 200 that operates as an OPC UA server. A user can design an information model of the control device 200 by using the editor 140. The information model designed by the editor 140 is transmitted to the control device 200 as, for example, a node set file in XML format. The editor 140 is an example of a generating unit included in the support device 100.
[0050] The node set file includes variable node information and mapping information. In other words, the editor 140 provides a user with a user interface for generating the variable node information and the mapping information. The variable node information includes information for implementing the variable nodes in the address space 220. The mapping information includes information for associating the variable nodes defined in the address space 220 with the variables defined in the variable space 210.
[0051] In general, the address space of an OPC UA server is described by a node set file. The node set file has, for example, the form of an XML file in an OPC UA environment. The specification of the node set file for describing the address space of an OPC UA server is standardized in OPC UA. Therefore, it is possible to generate variable node information based on the standard specification of OPC UA.
[0052] The editor 140 according to the embodiment can generate not only variable nodes in the address space 220 but also mapping information for setting variables associated with the variable nodes. Generating mapping information for setting variables associated with the variable nodes is not supported as a standard specification of OPC UA, and is a new idea proposed by the inventors of the present disclosure.
[0053] The information model of OPC UA is constructed by multiple layers. The multiple layers include a layer that specifies the CMI (Custom Information Model). Variable nodes that conform to the information model of OPC UA are defined as standard specifications in the CMI. In the editor 140 according to the embodiment, the extension data portion of the CMI, which is allowed to be used according to the interpretation of each designer, is utilized for mapping. The idea of utilizing the extension data portion of the CMI for mapping did not exist in the past and was newly brought about by the inventors involved in the present disclosure.
[0054] Based on this idea, the inventor has developed a control system 1 that enables the user who designed the variable nodes to implement and map the variable nodes themselves, without the user having to outsource the work to an external specialist company.
[0055] A user can use the editor 140 to generate a node set file including variable node information and mapping information. The support device 100 outputs the node set file to the control device 200. The control device 200 stores a node setting program 290 required for processing the variable node information and mapping information included in the node set file. The node setting unit 280 interprets the variable node information and mapping information included in the node set file based on the node setting program 290. Based on the interpretation, the node setting unit 280 generates variable nodes in the address space 220 and executes mapping processing.
[0056] The development tool 150 provides the user with a user interface for developing the user program 230 and a user interface for setting variables to be made public to the external device 300. An example of the development tool 150 is "Sysmac Studio" manufactured by Omron Corporation. The user develops the user program 230 using the development tool 150. The user sets the public setting information 260 using the development tool 150. The user program 230 and the public setting information 260 are output from the support device 100 to the control device 200. The control device 200 stores the user program 230 and the public setting information 260.
[0057] The user program 230 is created in accordance with "IEC61131-3," which is a standard for programming a PLC, which is an example of the control device 200, and is composed of program organization units called POUs (Program Organization Units). The user program 230 includes function blocks (hereinafter also referred to as "FBs") as components of the POUs.
[0058] A "function block" is a modularized function that is used repeatedly within the user program 230. More specifically, a function block is a POU used when creating a component (e.g., a mold) such as a timer or counter, whose output variable may vary for the same input variable depending on the state of the moving device 400 to be controlled. In a function block, at least one variable that is used when the function block is executed is predefined.
[0059] "At least one variable" includes, for example, input variables, output variables, input / output variables, and internal variables. An input variable is a variable used within a function block as input data to be input to a function block. An output variable is a variable used within a function block as output data to be output from a function block. An input / output variable is a variable used within a function block as input / output data for a function block. An internal variable is a variable for temporarily storing data within a function block.
[0060] A function block prepared in advance as a type is also called an FB definition. When a function block (FB definition) is placed in the user program 230, it is individually treated as an instance on the user program 230 and can actually operate on the user program 230. Usually, the term "function block" includes both a function block (FB definition) that means a type and a function block that is incorporated into the user program 230 and instantiated. In the embodiment, the "function block" is treated as a term that refers to a function block (FB definition) that means a type.
[0061] FIG. 2 is a diagram showing an example of instantiation of a function block (FB definition). The instantiation of a function block (FB definition) will be described with reference to FIG. 2. As shown in FIG. 2, FB1 (FB definition) has at least one variable (Var1, Var2, ...) defined in advance. When such an FB1 (FB definition) is placed in the user program 230, it is individually handled in the user program 230 as an FB1 corresponding to instance 1 and an FB1 corresponding to instance 2.
[0062] An "instance" is a function block (FB definition) arranged on the user program 230. Each instance defined on the user program 230 uses an individual memory area. By generating multiple instances based on one function block (FB definition) on the user program 230, the user can cause the control device 200 to process different input / output data with the same function according to the user program 230.
[0063] As shown in FIG. 2, a function block (FB definition) has a unique "namespace" as identification information. For example, a function block (FB definition) is associated with "FB1" as the namespace. Also, an instance has a unique "instance name" as identification information. For example, FB1 corresponding to instance 1 is associated with "FB1 instance 1" as the instance name, and FB1 corresponding to instance 2 is associated with "FB1 instance 2" as the instance name.
[0064] Fig. 3 is a block diagram for explaining a flow in which variables are associated with variable nodes. As shown in Fig. 3, memory space 211 is formed in control device 200. Memory space 211 is realized by one or more storage devices. Memory space 211 is realized by storage device 202 (see Fig. 4), for example. Memory space 211 includes variable space 210, address space 220, and user program 230.
[0065] 3 includes a plurality of function block instances. Hereinafter, a "function block instance" will be referred to as an "FB instance." An FB instance includes variables. The FB instances included in the user program 230 are arranged in a variable space 210.
[0066] 3, FB instances F11, F12, ... are arranged in the variable space 210. The FB instances F11, F12, ... are examples of FB instances included in the user program 230. The FB instances F11, F12, ... include variables Var1, Var2, ... used by the user program 230.
[0067] The user generates a node set file including variable node information and mapping information using the editor 140 provided by the support device 100. The support device 100 outputs the node set file to the control device 200 according to an instruction from the user.
[0068] The node setting unit 280 generates variable nodes N1, N2, ... in the address space 220 based on the variable node information in the node set file. The node setting unit 280 further executes a mapping process based on the mapping information in the node set file. There is a one-to-one correspondence between variable nodes and variables. Therefore, by executing the mapping process, one variable (Var) included in one FB instance is associated with one variable node.
[0069] For example, "Var1" of an FB instance F11 may be associated with a variable node N1, or "Var2" of an FB instance F12 may be associated with a variable node N1.
[0070] The mapping information generated by the editor 140 includes information regarding the orientation of the mapping. In the editor 140, with respect to the variable node, a variable associated with the variable node is set. In other words, in the editor 140, the mapping is set in the direction from the variable node to the variable. In the mapping process performed by an external vendor proficient in OPC UA using tools, the mapping is set in the direction from the variable to the variable node.
[0071] Therefore, the direction of the mapping is different between the mapping information generated by the support device 100 according to the embodiment and the mapping information generated by conventional tools. The control device 200 according to the embodiment can interpret the mapping information output from the support device 100 and execute the mapping process in the direction from the variable to the variable node. The mapping process is executed by the node setting unit 280 (see FIG. 1) provided in the control device 200.
[0072] The user can perform the process of implementing the variable nodes F11, F12,... in the address space 220 and the mapping process in the variable direction from the implemented variable nodes F11, F12,... by outputting the node set file to the control device 200. Therefore, the user does not need to request an external vendor proficient in OPC UA to implement the variable nodes and perform the mapping process. Since the user does not need to request an external vendor to implement the variable nodes and perform the mapping process, the cost required for system development can be suppressed. Note that the vendor selling the control device 200 to the user may generate the node set file using the editor 140 on behalf of the user and output the generated node set file to the control device 200.
[0073] <B. Configuration of Control Device> The hardware configuration of the control device 200 will be described with reference to Fig. 4. Fig. 4 is a diagram showing an example of the hardware configuration of the control device 200. As shown in Fig. 4, the control device 200 mainly includes a processor 201, a storage device 202, a memory 203, a chipset 204, a control system interface 205, an information system interface 206, a USB controller 207, and a storage medium interface 208.
[0074] The processor 201 is a computing entity (computer) that executes various processes by executing various programs. The processor 201 is composed of, for example, a central processing unit (CPU) or a micro-processing unit (MPU). The processor 201 has a function of executing various processes by executing programs, but some or all of these functions may be implemented using a dedicated hardware circuit such as an application specific integrated circuit (ASIC) or a field-programmable gate array (FPGA). The processor 201 is not limited to a processor in the narrow sense that executes processes in a stored program manner, such as a CPU or an MPU, but may include a hardwired circuit such as an ASIC or an FPGA. For this reason, the processor 201 can also be interpreted as a processing circuitry in which processing is defined in advance by computer-readable code and / or a hardwired circuit. The processor 201 may be composed of one chip or multiple chips. Furthermore, the processor 201 and related processing circuits may be composed of multiple computers that are interconnected by wire or wirelessly via a local area network or a wireless network. The processor 201 and associated processing circuitry may be configured as a cloud computer that performs computations remotely based on input data and outputs the results of the computations to other devices in remote locations.
[0075] The storage device 202 stores various programs or various data executed by the processor 201. The storage device 202 may be one or more non-transitory computer readable media, or may be one or more computer readable storage media. Examples of the storage device 202 include a hard disk drive (HDD) and a solid state drive (SSD). In the control device 200 according to the embodiment, the storage device 202 stores a variable space 210, an address space 220, a user program 230, a communication management program 240, user setting information 250, public setting information 260, and a node setting program 290.
[0076] The memory 203 includes a volatile storage area (for example, a working area) that temporarily stores program codes, work memory, and the like when the processor 201 executes various programs. Examples of the memory 203 include volatile memories such as dynamic random access memory (DRAM) and static random access memory (SRAM), and non-volatile memories such as read only memory (ROM) and flash memory.
[0077] The chipset 204 has a relay function for managing and processing data exchange between the devices that make up the control device 200 .
[0078] The control system interface 205 is an interface that mediates data exchange between the control device 200 and the movable device 400 .
[0079] The information system interface 206 is an interface that mediates data exchange between the control device 200 and the external device 300 .
[0080] The USB controller 207 is an interface that mediates the exchange of data between the control device 200 and the support device 100.
[0081] The memory medium interface 208 is configured to be detachable from the memory medium 209, and is an interface for the control device 200 to write various data such as the user program 230, the communication management program 240, the user setting information 250, the public setting information 260, and the node setting program 290 to the memory medium 209, or for the control device 200 to read the various data from the memory medium 209. Note that the memory medium 209 may be one or more non-transitory computer readable media such as a memory card, a removable disk, or a USB memory, or may be one or more computer readable storage media.
[0082] <Configuration of the Support Device> With reference to FIG. 5, the hardware configuration of the support device 100 will be described. FIG. 5 is a diagram showing an example of the hardware configuration of the support device 100. As shown in FIG. 5, the support device 100 mainly includes a processor 101, a storage device 102, a memory 103, a bus 104, a display unit 105, an input unit 106, a USB controller 107, and a memory medium interface 108.
[0083] The processor 101 is a computing entity (computer) that executes various processes by executing various programs. The processor 101 is composed of, for example, a CPU or an MPU. The processor 101 has a function of executing various processes by executing a program, but some or all of these functions may be implemented using a dedicated hardware circuit such as an ASIC or an FPGA. The processor 101 is not limited to a processor in the narrow sense that executes processes in a stored program manner, such as a CPU or an MPU, but may include a hardwired circuit such as an ASIC or an FPGA. For this reason, the processor 101 can also be interpreted as a processing circuitry in which processing is defined in advance by computer-readable code and / or a hardwired circuit. The processor 101 may be composed of one chip or multiple chips. Furthermore, the processor 101 and related processing circuits may be composed of multiple computers that are interconnected by wire or wirelessly via a local area network or a wireless network. The processor 101 and related processing circuits may be composed of a cloud computer that performs calculations remotely based on input data and outputs the calculation results to another device located at a distant location.
[0084] The storage device 102 stores various programs executed by the processor 101, various data, and the like. The storage device 102 may be one or more non-transitory computer readable media, or may be one or more computer readable storage media. Examples of the storage device 102 include an HDD and an SSD.
[0085] In the support device 100 according to the embodiment, the storage device 102 stores a support program 130 and an editor 140. The support program 130 realizes the development tool 150 shown in Fig. 1. The editor 140 is software for generating a node set file.
[0086] The memory 103 includes a volatile storage area (for example, a working area) that temporarily stores program code, work memory, and the like when the processor 101 executes various programs. Examples of the memory 103 include volatile memories such as DRAM and SRAM, and non-volatile memories such as ROM and flash memory.
[0087] The bus 104 manages and processes data exchange between the devices that make up the support device 100 .
[0088] The display unit 105 is, for example, a display. The display unit 105 may be an interface for connecting a display configured to mediate data exchange between the support device 100 and the display. That is, the support device 100 may be configured to include a display, or may be separate from the display.
[0089] The input unit 106 is, for example, a peripheral device such as a keyboard or a mouse. The input unit 106 may be an interface for connecting a peripheral device configured to mediate data exchange between the support device 100 and the peripheral device. That is, the support device 100 may be configured to include a peripheral device such as a keyboard or a mouse, or may be separate from the peripheral device.
[0090] The USB controller 107 is an interface that mediates data exchange between the support device 100 and the control device 200. The USB controller 107 is an example of an output unit.
[0091] The memory medium interface 108 is configured to be detachable from the memory medium 109, and is an interface for the support device 100 to write various data such as the support program 130 and the editor 140 to the memory medium 109, or for the support device 100 to read the various data from the memory medium 109. Note that the memory medium 109 may be one or more non-transitory computer readable media such as a memory card, a removable disk, or a USB memory, or may be one or more computer readable storage media.
[0092] <D. Configuration of External Device> With reference to FIG. 6, the hardware configuration of the external device 300 will be described. FIG. 6 is a diagram showing an example of the hardware configuration of the external device 300. As shown in FIG. 6, the external device 300 mainly includes a processor 301, a storage device 302, a memory 303, a bus 304, a display unit 305, an input unit 306, a communication interface 307, and a memory medium interface 308.
[0093] The processor 301 is a computing entity (computer) that executes various processes by executing various programs. The processor 301 is composed of, for example, a CPU or an MPU. The processor 301 has a function of executing various processes by executing a program, but some or all of these functions may be implemented using a dedicated hardware circuit such as an ASIC or an FPGA. The processor 301 is not limited to a processor in the narrow sense that executes processes in a stored program manner, such as a CPU or an MPU, but may include a hardwired circuit such as an ASIC or an FPGA. For this reason, the processor 301 can also be interpreted as a processing circuitry in which processing is defined in advance by computer-readable code and / or a hardwired circuit. The processor 301 may be composed of one chip or multiple chips. Furthermore, the processor 301 and related processing circuits may be composed of multiple computers that are interconnected by wire or wirelessly via a local area network or a wireless network. The processor 301 and related processing circuits may be composed of a cloud computer that performs calculations remotely based on input data and outputs the calculation results to another device at a distant location.
[0094] The storage device 302 stores various programs or various data executed by the processor 301. The storage device 302 may be one or more non-transitory computer readable media, or may be one or more computer readable storage media. Examples of the storage device 302 include a HDD and an SSD. In the external device 300 according to the embodiment, the storage device 302 stores a communication program 330. The communication program 330 is a program for causing the external device 300 to function as an OPC UA client, and describes a process for the external device 300 to request access to variables managed by the control device 200.
[0095] The memory 303 includes a volatile storage area (for example, a working area) that temporarily stores program code, work memory, and the like when the processor 301 executes various programs. Examples of the memory 303 include volatile memories such as DRAM and SRAM, and non-volatile memories such as ROM and flash memory.
[0096] The bus 304 manages and processes data exchange between the devices that make up the external device 300 .
[0097] The display unit 305 is, for example, a display. The display unit 305 may be an interface for connecting a display configured to mediate data exchange between the external device 300 and the display. That is, the external device 300 may include a display as a configuration, or may be separate from the display.
[0098] The input unit 306 is, for example, a peripheral device such as a keyboard or a mouse. The input unit 306 may be an interface for connecting a peripheral device configured to mediate data exchange between the external device 300 and the peripheral device. That is, the external device 300 may be configured to include a peripheral device such as a keyboard or a mouse, or may be separate from the peripheral device.
[0099] The communication interface 307 is an interface that mediates data exchange between the external device 300 and the control device 200 .
[0100] The storage medium interface 308 is configured to allow the storage medium 309 to be detachably attached, and is an interface for the external device 300 to write various data such as the communication program 330 to the storage medium 309 or for the external device 300 to read the various data from the storage medium 309. Note that the storage medium 309 may be one or more non-transitory computer readable mediums such as a memory card, a removable disk, or a USB memory, or may be one or more computer readable storage mediums.
[0101] <E.シーケンスフロー> The process flow of each of the support device 100, the control device 200, the moving device 400, and the external device 300 will be described with reference to Fig. 7. Fig. 7 is a sequence diagram showing the process flow of each of the support device 100, the control device 200, the moving device 400, and the external device 300.
[0102] Each STEP (hereinafter, indicated by "S") of the support device 100 shown in Fig. 7 is realized by the processor 101 executing the support program 130. The processor 101 executes the support program 130 to provide the user with a user interface of the development tool 150 shown in Fig. 1. The user uses the development tool 150 to develop a user program 230, generate user setting information, and set public setting information.
[0103] 7 is realized by the processor 201 executing the user program 230 and the communication management program 240. Each step of the external device 300 shown in FIG.
[0104] 7, when the support device 100 receives an operation to display a development screen, the support device 100 displays the development screen on the display unit 105 (S11). The user uses the development screen to develop a user program 230. The support device 100 compiles the user program 230 and transmits it to the control device 200 as an executable file (S12).
[0105] When the control device 200 receives the user program 230 transmitted from the support device 100, the control device 200 stores the user program 230 in the storage device 202 (S21).
[0106] When the support device 100 receives an operation to display the user setting screen, it displays the user setting screen on the display unit 105 (S13). The user uses the user setting screen to register a specific person as an access user of the network public service. The support device 100 generates user setting information 250 based on the input contents on the user setting screen (S14). The support device 100 transmits the user setting information 250 to the control device 200 (S15).
[0107] When the control device 200 receives the user setting information 250 transmitted from the support device 100, the control device 200 stores the user setting information 250 in the storage device 202 (S22).
[0108] When the support device 100 receives an operation to display the public setting screen, it displays the public setting screen on the display unit 105 (S16). Using the public setting screen, the user inputs information regarding whether or not to make the data (variables, etc.) managed by the control device 200 public to the external device 300. The support device 100 generates public setting information 260 based on the input contents on the public setting screen (S17). The support device 100 transmits the public setting information 260 to the control device 200 (S18).
[0109] When the control device 200 receives the public setting information 260 transmitted from the support device 100, the control device 200 stores the public setting information 260 in the storage device 202 (S23).
[0110] When the control device 200 receives an execution command for the user program 230, it executes the user program 230 to control the moving machine 400. If the user program 230 is a cyclic execution type program, the control device 200 repeatedly executes a group of instructions included in the user program 230 for each predetermined control period. More specifically, the control device 200 executes the user program 230 from the first line to the last line in one control period, and in the next control period, it executes the user program 230 from the first line to the last line in one control period again. The control device 200 generates a command value for each control period, and outputs the command value to the moving machine 400.
[0111] As described above, the control device 200 executes the user program 230 to control the movable device 400, and variables are stored in each instance that is predetermined by the user program 230.
[0112] When a accessing user accesses a variable generated during execution of the user program 230, the external device 300 accepts login information input by the accessing user (S31).
[0113] When the control device 200 receives login information input to the external device 300, it compares the login information with the login information included in the user setting information 250, and if the comparison results in a match between the login information input to the external device 300 and the login information included in the user setting information 250, it determines that the authentication of the accessing user is valid.
[0114] When the accessing user specifies a variable that the accessing user wishes to access, the external device 300 accepts information for specifying the variable input by the accessing user (S33). The external device 300 requests the control device 200 to access the variable specified by the accessing user (S34).
[0115] When the control device 200 receives an access request from the external device 300, it determines whether or not the variable that is the subject of the access request is permitted to be made public to the accessing user based on the public setting information 260 (S25). If the variable that is the subject of the access request is not permitted to be made public to the accessing user (NO in S25), the control device 200 proceeds to the next process without making the variable that is the subject of the access request public to the accessing user. On the other hand, if the variable that is the subject of the access request is permitted to be made public to the accessing user (YES in S25), the control device 200 transmits an address for accessing the variable that is the subject of the access request to the external device 300 in order to make the variable that is the subject of the access request public to the external device 300 (S26).
[0116] The external device 300 displays the variable that is the target of the access request on the display unit 305 based on the address received from the control device 200 (S34).
[0117] In this way, when an access user requests access to a variable, the control device 200 can make the variable public to the access user, provided that the public disclosure of the variable is permitted based on the disclosure settings set by the support device 100.
[0118] <F.フローチャート> The variable node generation and mapping process will be described with reference to Figures 8 and 9. Figure 8 is a flowchart for explaining the process executed by the support device 100 when generating a node set file. Figure 9 is a flowchart for explaining the process of the control device 200 based on the node set file.
[0119] The processing procedure of the flowchart shown in Fig. 8 is included in the editor 140 shown in Fig. 1. The processing procedure of the flowchart shown in Fig. 9 is included in the node setting program 290 shown in Fig. 1.
[0120] 7, the support device 100 accepts a user operation to set variable node information (S101). Next, the support device 100 accepts a user operation to set a variable corresponding to the variable node (a user operation to set mapping information) (S102). Next, the support device 100 generates a node set file based on the user operations accepted in S101 and S102 (S103). As a result, a node set file including the variable node information and the mapping information is generated.
[0121] Next, the support device 100 accepts a user operation to output the node set file (S104), and then outputs the node set file to the control device 200 (S105).
[0122] As shown in FIG. 8, the control device 200 receives a node set file from the support device 100 (S201). Next, the control device 200 generates variable nodes in the address space 220 based on the variable node information included in the node set file (S202). Next, the control device 200 executes mapping processing (S203). That is, the control device 200 associates variables with the variable nodes based on the mapping information included in the node set file. By executing the above processing, the implementation and mapping of the variable nodes are completed.
[0123] <G. Development Screen of User Program> With reference to FIG. 10, the development screen 151 of the user program 230 will be described. FIG. 10 is a diagram showing an example of the development screen 151 displayed on the support device 100. The development screen is realized by the development tool 150 installed in the support device 100.
[0124] The user program 230 is described in a ladder diagram. The user can design the user program 230 corresponding to the drive device 400 to be controlled by combining arbitrary function blocks or defining the input / output relationship of variables or function blocks on the development screen 151.
[0125] The user program 230 includes at least one function block. For example, as shown in FIG. 10, the user program 230 includes a function block (FB definition) with "FB1" assigned as a name space, and a function block (FB definition) with "FB2" assigned as a name space. FB1 is defined in the user program 230 as FB1 corresponding to instance 1 and FB1 corresponding to instance 2. FB1 corresponding to instance 1 is assigned the instance name "FB1 instance 1". FB1 corresponding to instance 2 is assigned the instance name "FB2 instance 1". FB2 is defined in the user program 230 as FB2 corresponding to instance 1 and FB2 corresponding to instance 2. FB2 corresponding to instance 1 is assigned the instance name "FB2 instance 1". FB2 corresponding to instance 2 is assigned the instance name "FB2 instance 2".
[0126] The function block corresponding to FB1 instance 1 performs its function based on variable 1 associated with its input. The execution result of the function block corresponding to FB1 instance 1 is reflected in variable 2 associated with its output. The function block corresponding to FB1 instance 2 performs its function based on variable 2 associated with its input. The execution result of the function block corresponding to FB1 instance 2 is reflected in variable 3 associated with its output. The function block corresponding to FB2 instance 1 performs its function based on variable 3 associated with its input. The execution result of the function block corresponding to FB2 instance 1 is reflected in variable 4 associated with its output. The function block corresponding to FB2 instance 2 performs its function based on variable 4 associated with its input. The execution result of the function block corresponding to FB2 instance 2 is reflected in variable 5 associated with its output.
[0127] In this way, the user can develop any user program 230 by combining variables or function blocks on the development screen 151.
[0128] <H. Mapping Information Setting Screen> With reference to FIGS. 11 to 13, the setting screen 141 for setting mapping information will be described. FIGS. 11 to 13 are diagrams showing an example of the setting screen 141 displayed on the support device 100 when the user sets mapping information. The setting screen 141 is an example of a user interface.
[0129] As shown in FIGS. 11 to 13, on the setting screen 141, an interface for the user to select a variable to be associated with the variable node is displayed based on the variable node. Here, as examples of a plurality of variable nodes, variable nodes N1 to N4 are listed. The number of variable nodes displayed on the setting screen 141 may be one or five or more.
[0130] The setting screen 141 provides the user with steps of selecting an FB instance and selecting a variable to be associated with the variable node from among the variables included in the selected FB instance. The user sets the variable to be associated with the variable node by operating on these two steps.
[0131] The user clicks on the "FB Instance" of the setting screen 141 with a mouse, which is an example of an operation unit. As a result, as shown in FIG. 11, a number of FB instances related to the user program 230 are displayed in a pull-down format under the "FB Instance". FIG. 11 shows a state where the user designates "FB1 Instance 2" with the mouse cursor 145.
[0132] As shown in FIG. 12, in response to the designation by the mouse cursor 145, "FB1 instance 2" is designated for the variable node N1. Further, FIG. 12 shows a state where the user designates the variable "Var3" within "FB1 instance 2" with the mouse cursor 145.
[0133] In the setting screen 141 shown in FIG. 13, the variable "Var3" of "FB1 instance 2" is designated for the variable node N1. Thereby, based on the variable node N1, a variable to be associated with the variable node N1 is set. Further, the user sets variables to be associated with each of the variable nodes N2, N3... by repeating the same procedure. FIG. 13 shows a state where the user operates with the mouse cursor 145 to set a variable to be associated with the variable node N2.
[0134] As described above, the setting screen 141 described with reference to FIGS. 11 to 13 is realized by S102 of the flowchart shown in FIG. 8.
[0135] <I. Supplementary Note> As described above, the present embodiment includes the following disclosure.
[0136] (Configuration 1) A control system (1), A control device (200) that controls a control target (400) according to a user program (230), And a support device (100) that supports the control device, The control device includes a storage device (202) in which a memory space (211) is defined, The memory space is, A variable space (210) in which variables used when the user program is executed are defined, And an address space (220) in which variable nodes are defined, The support device is, A generation unit (140) that generates a file for setting an information model including the memory space, an output unit (107) that outputs the file to the control device; the file includes mapping information that defines variables associated with the variable nodes; When the control device receives the file, the control device associates the variables with the variable nodes in accordance with the mapping information (S203).
[0137] (Configuration 2) the file includes variable node information for generating the variable nodes in the address space, The control system of configuration 1, wherein the control device generates the variable node in the address space according to the variable node information when receiving the file (S202).
[0138] (Configuration 3) 3. The control system according to claim 1, wherein the generation unit includes a user interface (141) for defining variables to be associated with the variable nodes.
[0139] (Configuration 4) In the variable space, the variables are defined for each function block (F11, F12), The user interface includes: The control system according to configuration 3, wherein an operation for associating a variable defined in the function block with the variable node is accepted (FIGS. 11 to 13).
[0140] (Configuration 5) 5. The control system according to any one of configurations 1 to 4, wherein the address space is defined in the memory space in accordance with OPC UA (Open Platform Communications Unified Architecture).
[0141] (Configuration 6) A support device (100) that supports a control device (200) that controls a control target according to a user program (230), The control device includes a storage device (202) in which a memory space (211) is defined. The memory space includes a variable space (210) in which variables used when the user program (230) is executed are defined, and an address space (220) in which variable nodes are defined. The support device includes a generation unit (140) that generates a file for setting an information model including the memory space, and an output unit (107) that outputs the file to the control device. The file includes mapping information that defines variables associated with the variable nodes, and is a support device.
[0142] (Configuration 7) A control device (200) that controls a control target (400) according to a user program (230), includes a processor (201) and a storage device (202) in which a memory space (211) is defined. The memory space includes a variable space (210) in which variables used when the user program is executed are defined, and an address space (220) in which variable nodes are defined. The processor acquires a file for setting an information model including the memory space (S201). The file includes mapping information that defines variables associated with the variable nodes. The processor associates the variables with the variable nodes according to the mapping information (S203), and is a control device.
[0143] <J. Advantages> According to the control system 1, the support device 100, and the control device 200 according to the embodiment, a user can set the correspondence between variable nodes in the address space and variables in the variable space.
[0144] 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]
[0145] 1 control system, 10 control network, 20 information network, 100 support device, 101, 201, 301 processor, 102, 202, 302 storage device, 103, 203, 303 memory, 104, 304 bus, 105, 305 display unit, 106, 306 input unit, 107, 207 USB controller, 108, 208, 308 storage medium interface, 109, 209, 309 storage medium, 110 provision unit, 120 public setting unit, 130 support program, 140 editor, 141 setting screen, 145 mouse cursor, 150 development tool, 151 development screen, 200 control device, 204 chipset, 205 control system interface, 206 information system interface, 210 variable space, 211 memory space, 220 Address space, 230 user program, 240 communication management program, 250 user setting information, 260 public setting information, 270 public management section, 280 node setting section, 290 node setting program, 300 external device, 307 communication interface, 330 communication program, 400 drive equipment, 400A robot controller, 400B servo driver, 400C sensor, 401A robot, 401B servo motor.
Claims
1. 1. A control system comprising: A control device that controls a control target in accordance with a user program; A support device that supports the control device, The control device includes a storage device in which a memory space is defined; The memory space is: a variable space in which variables used when the user program is executed are defined; an address space in which the variable nodes are defined; The support device comprises: a generation unit for generating a file for setting an information model including the memory space; an output unit that outputs the file to the control device, the file includes mapping information that defines variables associated with the variable nodes; A control system, wherein the control device, upon receiving the file, maps the variables to the variable nodes in accordance with the mapping information.
2. the file includes variable node information for generating the variable nodes in the address space, The control system according to claim 1 , wherein the control device generates the variable nodes in the address space according to the variable node information when the control device receives the file.
3. The control system according to claim 1 , wherein the generation unit includes a user interface for defining variables to be associated with the variable nodes.
4. In the variable space, the variables are defined for each function block, The user interface includes: The control system according to claim 3 , further comprising an operation for associating a variable defined in the function block with the variable node.
5. 3. The control system according to claim 1, wherein the address space is defined in the memory space in accordance with OPC UA (Open Platform Communications Unified Architecture).
6. A support device that supports a control device that controls a control target according to a user program, The control device includes a storage device in which a memory space is defined, The memory space is: a variable space in which variables used when the user program is executed are defined; an address space in which the variable nodes are defined; The support device comprises: a generation unit for generating a file for setting an information model including the memory space; an output unit that outputs the file to the control device, The file includes mapping information that defines variables that are associated with the variable nodes.
7. A control device that controls a control target according to a user program, A processor; a storage device in which a memory space is defined; The memory space is: a variable space in which variables used when the user program is executed are defined; an address space in which the variable nodes are defined; The processor obtains a file for configuring an information model including the memory space; the file includes mapping information that defines variables associated with the variable nodes; The processor maps the variables to the variable nodes according to the mapping information.
Citation Information
Patent Citations
Display device, screen generation method, and screen generation program
JP2019152949A
