Remote system, remote connection method, and recording medium

By using a gateway device and a server for relay in the remote system and utilizing the wide area network to remotely access the production device, the security and verification man-hour problems of remote access in the existing technology are solved, the operation is simplified and the system security is enhanced.

CN116783871BActive Publication Date: 2024-09-13MITSUBISHI ELECTRIC CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202180088688.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-28
Publication Date
2024-09-13
Estimated Expiration
2041-05-28

AI Technical Summary

Technical Problem

When existing technology enables remote access to production equipment, personnel with network and information security knowledge are required to set up and verify the VPN, and changes in system settings may lead to intrusion by a third party, resulting in lengthy verification work and difficulty in ensuring security. .

Method used

By introducing a gateway device and server into the remote system, using the wide area network for relay, ensuring that the initial settings of the network instruments remain unchanged, only allowing connections from the inside to the outside, rejecting connections from the outside to the inside, remote access is achieved, and through Instrument identifiers relay communications, reducing the need for network instrument settings.

Benefits of technology

It enables remote access to production equipment without changing the existing network structure, reduces the verification time of network and information security knowledge, enhances system security, avoids third-party intrusion, and simplifies user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116783871B
    Figure CN116783871B
Patent Text Reader

Abstract

The remote system connects a local area network having a production device and a gateway device to a server device via a wide area network. The remote system has a network instrument that allows connections from the inside of the local area network to the outside and rejects connections from the outside to the inside. The gateway device requests the server device to establish a first dialogue with the server device. The server device has an instrument management unit and a connection control unit. The instrument management unit compares the instrument identification information for identifying the target production device specified from the external terminal with the instrument identification information set for the production device. The connection control unit accepts the request to establish the first dialogue and establishes the first dialogue. When the comparison result of the instrument management unit is that the instrument identification information of the target production device is consistent with the instrument identification information set for the production device, a second dialogue is established between the external terminal and the first dialogue and the second dialogue are connected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a remote system and a remote connection method for connecting to a production device of a factory or the like from the outside. Background Art

[0002] A system is known in which an external terminal as an information communication device is remotely connected from outside the factory to a production device such as a programmable logic controller (PLC), a human machine interface (HMI), an inverter, etc. installed in the factory. In such a system, by appropriately setting network equipment such as a router and a firewall, the global IP (Internet Protocol) address or port number of each production device is switched, thereby enabling remote access from the outside. In addition, by using a virtual private network (VPN) technology, the internal network of a factory and the external network are virtually connected by a local area network (LAN), so that the production device is not open to the outside.

[0003] Patent document 1 discloses a control device that can easily perform communication settings for network devices in such a system. The control device described in Patent document 1 includes: a storage unit that stores a user program including at least one command for performing communication settings related to communication via network devices; and a communication setting unit that performs communication settings indicated by the command by performing transmission and reception of commands with the network devices based on the establishment of execution conditions of the command. Thus, even if a user does not know how to transmit and receive commands with the network devices, if the communication settings are specified, the control device can execute processing corresponding to the specified setting contents.

[0004] Patent Document 1: Japanese Patent Application Publication No. 2020-088690 Summary of the invention

[0005] However, when the technology described in Patent Document 1 is introduced into an existing factory, etc., there is a problem that a command for setting the VPN import etc. must be created by a person with knowledge of network and information security. In addition, the technology described in Patent Document 1 may allow a third party to break into the system if the setting is incorrect due to the setting change of the network equipment in the system. Therefore, even if the communication setting can be performed based on the command, it is necessary to verify whether the setting of the communication setting corresponding to the command is appropriate by a person with knowledge of network and information security. There is also a problem that the man-hours for this verification are very large.

[0006] The present invention has been made in view of the above situation, and an object of the present invention is to obtain a remote system that can realize remote access to production equipment without changing the existing network structure and settings of network equipment on the factory side.

[0007] In order to solve the above-mentioned problems and achieve the objectives, the remote system of the present invention connects a local area network having a production device and a gateway device and a server device that relays the communication between an external terminal as an information communication device and the production device via a wide area network, thereby realizing a remote connection to the production device by an external terminal. The remote system has a network instrument at a connection point between the local area network and the wide area network or between the connection point and the production device, and the network instrument allows connection from the inside of the local area network to the outside and rejects connection from the outside of the local area network to the inside. The gateway device has a server connection control unit that requests the server device to establish a first session between the gateway device and the server device. The server device has an instrument management unit and a connection control unit. The instrument management unit compares the instrument identification information for identifying the target production device specified from the external terminal with the instrument identification information set for the production device. The connection control unit accepts the request to establish the first session and establishes the first session. When the comparison result of the instrument management unit is that the instrument identification information of the target production device is consistent with the instrument identification information set for the production device, a second session is established between the external terminal and the server device, and the first session is connected to the second session. The connection control unit of the server device relays communication between the external terminal and the production device using the connected first session and second session.

[0008] Effects of the Invention

[0009] The remote system according to the present invention has the effect of realizing remote access to production equipment without changing the existing network structure and settings of network equipment on the factory side. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 This is a diagram schematically showing an example of the configuration of the remote system according to the first embodiment.

[0011] Figure 2 This is a block diagram showing an example of the functional configuration of the remote system according to the first embodiment.

[0012] Figure 3 This is a diagram showing an example of connected device information.

[0013] Figure 4 This is a diagram showing an example of connection setting information.

[0014] Figure 5 This is a diagram showing an example of device information.

[0015] Figure 6 This is a diagram showing an example of gateway information.

[0016] Figure 7 This is a sequence diagram showing an example of the steps of the remote connection method in the remote system according to the first embodiment.

[0017] Figure 8 This is a flowchart showing an example of the operation of the server device included in the remote system according to the first embodiment.

[0018] Fig. 9 This is a sequence diagram showing an example of the steps of the remote connection method in the remote system involved in the second embodiment.

[0019] Fig.10 This is a diagram showing an example of a connection device selection screen.

[0020] Fig.11 This is a diagram showing an example of the structure of a remote system involved in Implementation Example 2.

[0021] Fig.12 This is a sequence diagram showing an example of the steps of the remote connection method in the remote system involved in the third embodiment.

[0022] Fig.13 This is a diagram showing an example of a functional structure of a remote system according to a fourth embodiment.

[0023] Fig.14 This is a diagram showing an example of user information.

[0024] Fig.15 This is a diagram showing an example of access control information when access rights are set in units of production equipment.

[0025] Fig.16 This is a diagram showing an example of access control information when access rights are set in units of gateway devices.

[0026] Fig.17 This is a diagram showing an example of gateway information.

[0027] Fig.18 This is a diagram showing an example of connection setting information.

[0028] Fig.19 This is a sequence diagram showing an example of the steps of the remote connection method in the remote system involved in the fourth embodiment.

[0029] Fig. 20 This is a diagram schematically showing an example of the structure of a remote system involved in Implementation Example 5.

[0030] Fig.21 This is a diagram schematically showing an example of the structure of a remote system involved in Implementation Example 6.

[0031] Fig. 22 This is a perspective view schematically showing an example of the structure of a production device with a gateway function used in the remote system involved in the sixth embodiment.

[0032] Fig.23 This is a diagram schematically showing another example of the structure of the remote system involved in Implementation Example 6.

[0033] Fig.24 This is a diagram showing an example of the hardware configuration of a computer system that implements a gateway device and a server device of a remote system according to Embodiments 1 to 6. DETAILED DESCRIPTION

[0034] Hereinafter, a remote system and a remote connection method according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings.

[0035] Implementation Method 1

[0036] Figure 1 1 is a diagram schematically showing an example of the configuration of a remote system according to Embodiment 1. The remote system 1 is a system that realizes remote connection from outside the factory 10 to the production device 130 in the factory 10 by means of an external terminal 310, which is an information communication device owned by a user such as a manager who manages the factory 10. The remote system 1 includes a factory network 11, which is a LAN installed in the factory 10, a cloud system 20, and an external terminal 310 installed in an external facility 30. The factory network 11, the cloud system 20, and the external terminal 310 are connected via a wide area network 40, such as a public IP network.

[0037] The factory 10 has one or more production devices 130. The production device 130 is a device used to control a control object. An example of the production device 130 is a PLC, an HMI, or an inverter. The production device 130 is connected to a control instrument of the control object, a sensor that monitors the state of the control object, and the like. The in-factory network 11 is a network that connects the production devices 130 in the factory 10. The in-factory network 11 has a production device 130 and a gateway device 110, and the production device 130 and the gateway device 110 are connected via a wired or wireless LAN. In one example, the production device 130 and the gateway device 110 are connected via a switching hub 141. In addition, in Figure 1 The in-factory network 11 is shown as connecting two production devices 130, but one or more than three production devices 130 may be connected.

[0038] In the first embodiment, the gateway device 110 searches for the production device 130 connected to the in-factory network 11, and when the production device 130 is found, the gateway device 110 sends information about the production device 130 to the server device 210 of the cloud system 20. In addition, the gateway device 110 sends a session establishment request to the server device 210 to establish a session as the first session with the server device 210.

[0039] A router 145 as a network device is installed at the connection point between the in-plant network 11 and the wide area network 40. In the first embodiment, the router 145 is set to allow connection from the inside of the in-plant network 11 to the outside of the wide area network 40, but to deny connection from the outside of the in-plant network 11 to the inside.

[0040] exist Figure 1 In the example of FIG. 1 , there is one in-factory network 11, but there may be multiple in-factory networks 11 in one factory 10. For example, each in-factory network 11 including a gateway device 110 is connected to a router 145. Figure 1 Although the example of FIG. 1 shows a case where there is one factory 10 , a plurality of factories 10 may be provided, and one or more in-factory networks 11 may be provided in each of the factories 10 .

[0041] The cloud system 20 includes a server device 210. The server device 210 is connected to the wide area network 40 via a router 245 which is a network device. The server device 210 relays communication between the gateway device 110 and the external terminal 310.

[0042] The server device 210 stores information about the production device 130 received from the gateway device 110. When the information for identifying the target production device 130 specified from the external terminal 310 is included in the information about the production device 130 stored in the server device 210, the server device 210 establishes a dialogue as a second dialogue with the external terminal 310. Then, the server device 210 connects the dialogue with the external terminal 310 and the dialogue with the gateway device 110 connected to the target production device 130, and relays the communication between the external terminal 310 and the production device 130. In addition, when the server device 210 receives a connection request from the external terminal 310, it instructs the gateway device 110 to establish a dialogue between the gateway device 110 and the target production device 130. Thus, a dialogue is established between the external terminal 310 and the target production device 130. In addition, although in Figure 1 The server device 210 of the cloud system 20 is shown in the figure, but it can also be a locally deployed server device 210.

[0043] The external facility 30 is a facility where users who manage and operate the production device 130 in the factory 10 are located. An example of the external facility 30 is an office or a user's home located physically away from the factory 10. The external terminal 310 is used by the user. The external terminal 310 is, for example, a desktop personal computer (PC), a notebook PC, a smart phone, a tablet terminal, etc. One or more external terminals 310 are provided. The external terminal 310 is connected to the server device 210 via a router 345 as a network device and a wide area network 40. The external terminal 310 sends a connection request including information about the target production device 130 to the server device 210. When the connection request is approved by the server device 210, the target production device 130 can be connected via the server device 210 and the gateway device 110. In addition, the external terminal 310 can be arranged at any place if it is in an environment where it can be connected to the wide area network 40. In one example, it is not only installed in the external facility 30, but also can be arranged in the factory 10.

[0044] Although in Figure 1 3 shows a case where one external terminal 310 is installed in the external facility 30, but there may be a plurality of external terminals 310. In this case, a LAN is formed in the external facility 30 by a switching hub or the like, and the LAN is connected to a router 345. Figure 1 The network device is shown as the router 145, 245, 345, but the network device includes a firewall device, a router device with a firewall function, etc. in addition to the router 145, 245, 345.

[0045] When the remote system 1 according to the first embodiment is applied to a system that connects the in-plant network 11 and the external terminal 310 via the wide area network 40, it is not necessary to change the settings of the already installed network devices, namely the routers 145, 245, and 345. That is, the router 145 connected to the in-plant network 11 is usually set to allow connection from the inside of the in-plant network 11 to the outside and not to allow connection from the outside to the inside, and can be used as it is without changing the settings.

[0046] Figure 2 1 is a block diagram showing an example of the functional structure of the remote system involved in Embodiment 1. As described above, in the remote system 1 involved in Embodiment 1, the server device 210 connects the dialogue between the gateway device 110 and the server device 210 and the dialogue between the external terminal 310 and the server device 210, and connects the external terminal 310 and the production device 130 by relaying the communication. Figure 22 shows the connection between the external terminal 310, the server device 210, the gateway device 110, and the production device 130. The functional configurations of the gateway device 110 and the server device 210 will be described in detail below.

[0047] The gateway device 110 includes a production equipment connection control unit 111 , a connected device information storage unit 112 , a connection setting information storage unit 113 , and a server connection control unit 114 .

[0048] The production device connection control unit 111 searches for the production device 130 connected to the factory network 11 connected to the gateway device 110, that is, the production device 130 that can connect to the gateway device 110. When the production device connection control unit 111 finds the production device 130 that can be connected, it obtains information about the production device 130 from the production device 130 that can be connected, and registers it in the connection instrument information storage unit 112. The information about the production device 130 includes the physical address, logical address, instrument host name, and instrument identifier of the production device 130. The instrument host name is a name given to the production device 130. The instrument host name is a network address (Network Basic Input Output System: NetBIOS) name, a host name of a computer, etc. An example of an instrument host name is a product model name that is different for each model of a product. The instrument identifier is identification information that uniquely identifies the production device 130 in the remote system 1. The instrument identifier corresponds to the instrument identification information.

[0049] In one example, the production device connection control unit 111 searches for the connectable production device 130 using an echo message of the Internet Control Message Protocol (ICMP), Universal Plug and Play (UPnP), or other methods. According to these methods, the production device connection control unit 111 can obtain the physical address, logical address, device host name, etc. of the production device 130. In addition, in one example, the production device connection control unit 111 sends an equipment identifier acquisition request to the production device 130 to request the production device 130 to send an equipment identifier, and receives the response, i.e., the equipment identifier acquisition response, to obtain the equipment identifier.

[0050] The production device connection control unit 111 establishes a session between the target production device 130 specified by the server device 210 and the gateway device 110 in accordance with an instruction from the server device 210. This is performed after the external terminal 310 issues a connection request to the server device 210.

[0051] The connected device information storage unit 112 stores the connected device information, which is information on the production device 130 acquired by the production device connection control unit 111. The connected device information is information required for connection with the production device 130. Figure 3 This is a diagram showing an example of connection instrument information. The connection instrument information is information that associates the instrument MAC (Media Access Control) address, instrument IP address, instrument host name, and instrument identifier. The instrument MAC address is a physical address possessed by the production device 130. The MAC address is used here, but other information may be used as long as it represents a physical address. The instrument IP address is a logical address assigned to the production device 130. In Implementation 1, as described later, the instrument identifier is generated by the external terminal 310 and registered to the production device 130, so when the instrument identifier is not registered in the production device 130, this column is blank.

[0052] The connection setting information storage unit 113 stores connection setting information which is information required for the gateway device 110 to connect to the server device 210 . Figure 4 This is a diagram showing an example of connection setting information. In one example, the connection setting information is composed of a key-value database that combines a setting item as a key (Key) and a setting value as a value (Value). The connection setting information includes, as setting items, a "cloud system server device FDQN (Fully Qualified Domain Name)" representing the server device 210 of the connection target, information that identifies the gateway device 110, namely the "gateway ID (Identification)", and the password required for the gateway device 110 to access the server device 210, namely the "gateway PW (Password)".

[0053] The server connection control unit 114 uses the connection setting information in the connection setting information storage unit 113 to connect to the server device 210 of the cloud system 20. When connecting to the server device 210, the server connection control unit 114 logs in the server device 210 indicated by the "cloud system server device FQDN" in the connection setting information storage unit 113 using the gateway ID and the gateway PW. In addition, if the device identifier is registered for the connection device information, the server connection control unit 114 sends information about the production device 130 corresponding to the registered device identifier to the server device 210. And the server connection control unit 114 requests the server device 210 to establish a dialogue between the gateway device 110 and the server device 210.

[0054] In addition, although Figure 2In the example of FIG. 1 , the connection device information storage unit 112 and the connection setting information storage unit 113 are provided in the gateway device 110, but they may not be provided in the gateway device 110. In this case, it is sufficient to provide a new database device for managing the connection device information and the connection setting information and to configure the gateway device 110 so that the new database device can be accessed.

[0055] The server device 210 includes a connection control unit 211 , an equipment management unit 212 , an equipment information storage unit 213 , and a gateway information storage unit 214 .

[0056] The connection control unit 211 controls the connection with the gateway device 110 and the connection with the external terminal 310. Specifically, the connection control unit 211 accepts a request from the gateway device 110 and establishes a dialogue with the gateway device 110. The connection control unit 211 accepts a request from the external terminal 310 and establishes a dialogue with the external terminal 310, so that a dialogue between the gateway device 110 and the production device 130 set as the target of the external terminal 310 is established. When the comparison result of the instrument management unit 212 is that the instrument identifier of the target production device 130 is consistent with the instrument identifier set for the production device 130, the connection control unit 211 connects the dialogue with the gateway device 110 and the dialogue with the external terminal 310, and relays the communication between the external terminal 310 and the production device 130.

[0057] The instrument management unit 212 registers information about the production device 130 from the gateway device 110 into the instrument information storage unit 213. The information about the production device 130 includes the instrument name, the instrument identifier, and the gateway to which the production device 130 is connected. The instrument name is a name given to the production device 130 by the user and can be edited freely. In addition, the instrument management unit 212 compares the instrument identifier for identifying the target production device 130 specified from the external terminal 310 with the instrument identifier set for the production device 130. In embodiment 1, if the instrument management unit 212 receives an instrument connection request from the external terminal 310, it compares whether the instrument identifier contained in the instrument connection request is contained in the instrument information in the instrument information storage unit 213, and outputs the comparison result to the connection control unit 211.

[0058] The device information storage unit 213 stores device information which is information indicating which network of the gateway device 110 the production device 130 belongs to. The device information only needs to associate the production device 130 with the gateway device 110 of the in-plant network 11 to which the production device 130 belongs. Figure 51 is a diagram showing an example of device information. The device information includes a device name, a device identifier, and a gateway ID as items. The device name is a name given to the production device 130 by the user. The gateway ID is information for identifying the gateway device 110 connected to the factory network 11 to which the production device 130 belongs. Figure 4 The setting value of "Gateway ID" in the connection setting information.

[0059] The gateway information storage unit 214 stores gateway information which is information indicating the gateway device 110 that can connect to the server device 210 . Figure 6 1 is a diagram showing an example of gateway information. Gateway information is information that associates a gateway ID, a gateway PW, and a gateway name. The gateway ID is information for identifying the gateway device 110. In one example, Figure 5 The device information is expressed by using the gateway ID. The gateway ID corresponds to the gateway identification information. The gateway name is a name given to the gateway by the user.

[0060] A remote connection method in such a remote system 1 will be described. Figure 7 This is a sequence diagram showing an example of the steps of the remote connection method in the remote system according to Embodiment 1. Here, a case where a user having an external terminal 310 remotely accesses a certain production device 130 in a factory 10 is taken as an example.

[0061] First, the preparation is performed. In the preparation, the external terminal 310 generates an equipment identifier for the target production device 130 to be accessed remotely (step S11). The equipment identifier is a value that is not repeated in the remote system 1. In one example, the equipment identifier is generated by a mechanism such as GUID (Globally Unique Identifier).

[0062] Next, the external terminal 310 registers the generated instrument identifier to the production device 130 (step S12). In one example, the external terminal 310 is connected to the production device 130 via any path such as a USB (Universal Serial Bus) cable, and the instrument identifier is registered from the external terminal 310 to the production device 130. In addition, the instrument identifier can also be registered from the external terminal 310 to the production device 130 by other methods. At this time, the user of the external terminal 310 carries the external terminal 310 to the vicinity of the production device 130 of the factory 10. The above is the end of the preliminary preparation. Thereafter, the user carries the external terminal 310 to the external facility 30.

[0063] The server connection control unit 114 of the gateway device 110 sends a session establishment request to the server device 210 via the wide area network 40 (step S13). In addition, since the connection is from the inside of the factory network 11 to the outside, the router 145 relays the session establishment request from the gateway device 110 to the server device 210.

[0064] The connection control unit 211 of the server device 210 establishes a dialogue with the gateway device 110. When the dialogue is successfully established, the connection control unit 211 of the server device 210 responds to the gateway device 110 with an establishment completion notification (step S14). Since the establishment completion notification is a response to the dialogue establishment request from the gateway device 110, rather than a connection from outside the factory network 11, the router 145 relays the establishment completion notification to the gateway device 110. Through this dialogue establishment action, the server device 210 and the gateway device 110 are in a state of always being connected to the network. Thereafter, the communication between the server device 210 and the gateway device 110 can be performed using the dialogue.

[0065] The production device connection control unit 111 of the gateway device 110 sends a device connection confirmation to the production device 130 that can be connected via a network such as a wired LAN or a wireless LAN (step S15). The search for the production device 130 that can be connected can be performed from the gateway device 110 using an ICMP response request notification, which is a general technology, or using UPnP or other methods.

[0066] The production device 130 sends an instrument connection availability response to the gateway device 110 (step S16). When an ICMP echo request notification is received in step S15, an echo response notification (EchoReply Message) is sent as an instrument connection availability response. The production device connection control unit 111 of the gateway device 110 obtains the MAC address and IP address of the production device 130 included in the received instrument connection availability response, and registers the connection instrument information in the connection instrument information storage unit 112. In this way, the gateway device 110 can identify the instrument that can be connected to the gateway device 110.

[0067] The production device connection control unit 111 of the gateway device 110 sends an instrument identifier request requesting the transmission of the instrument identifier to the production device 130 that sent back the instrument connection permission response (step S17). The production device 130 having the instrument identifier sends an instrument identifier response including the instrument identifier to the gateway device 110 (step S18). In one example, the production device connection control unit 111 of the gateway device 110 obtains the MAC address and instrument identifier of the transmission source of the instrument identifier response, and registers the instrument identifier in association with the instrument MAC address of the connected instrument information.

[0068] The server connection control unit 114 of the gateway device 110 sends a device information registration including the device identifier included in the device identifier response to the server device 210 (step S19). Through this action, the device management unit 212 of the server device 210 registers the device identifier included in the device information registration in the device information of the device information storage unit 213. At this time, in the device information, the gateway ID of the gateway device 110 of the transmission source is registered as the via gateway ID, and the device name is also registered if there is an instrument name. Then, the connection control unit 211 of the server device 210 sends a registration acceptance response to the gateway device 110 (step S20).

[0069] Then, when the external terminal 310 is to connect to the production device 130 whose device identifier is registered in advance, it transmits a device connection request including the device identifier of the target production device 130 to the server device 210 (step S21). The device connection request is a request for establishing a session with the server device 210, and is also a request for connecting to the production device 130 through the session.

[0070] When the instrument management unit 212 of the server device 210 receives the instrument connection request, it obtains the instrument identifier from the instrument connection request and determines whether the obtained instrument identifier exists in the instrument information of the instrument information storage unit 213. That is, the instrument management unit 212 determines whether the obtained instrument identifier is consistent with the instrument identifier included in the instrument information. In the case where the obtained instrument identifier is inconsistent with the instrument identifier included in the instrument information, the instrument management unit 212 does not allow the instrument connection request issued by the external terminal 310. On the other hand, in the case where the obtained instrument identifier is consistent with the instrument identifier included in the instrument information, the connection control unit 211 establishes a session between the external terminal 310 and the server device 210. Then, the connection control unit 211 sends a connection acceptance response to the external terminal 310 (step S22).

[0071] At this time, the connection control unit 211 refers to the device information, obtains the gateway device 110 having the intermediate gateway ID corresponding to the device identifier, and requests the obtained gateway device 110 to establish a session with the production device 130. Thus, a session is established between the gateway device 110 and the production device 130.

[0072] The server device 210 obtains the via-gateway ID corresponding to the device identifier included in the device connection request from the device information, and associates the session established with the gateway device 110 corresponding to the via-gateway ID with the session established between the external terminal 310 and the server device 210. In addition, in the gateway device 110, the session between the gateway device 110 and the production device 130 and the session between the gateway device 110 and the server device 210 are associated. Thus, a session from the external terminal 310 to the production device 130 is established. That is, the production device 130 and the external terminal 310 are in a state where communication is possible.

[0073] In this state, when the external terminal 310 communicates with the production device 130, the external terminal 310 sends arbitrary data to the server device 210. At this time, the server device 210 and the gateway device 110 relay the arbitrary data using the established session and send the arbitrary data to the production device 130 (step S23).

[0074] Similarly, when communicating from production device 130 to external terminal 310, production device 130 sends arbitrary data to gateway device 110. At this time, gateway device 110 and server device 210 relay the arbitrary data using the established session and send the arbitrary data to external terminal 310 (step S24).

[0075] When the external terminal 310 wants to cut off the communication with the production device 130, it sends a device cut-off request to the server device 210 (step S25). When the connection control unit 211 of the server device 210 receives the device cut-off request from the external terminal 310, it sends a cut-off acceptance response to the external terminal 310 (step S26). At this time, the communication between the external terminal 310 and the production device 130 is blocked.

[0076] Figure 8 This is a flowchart showing an example of the operation of the server device included in the remote system according to Implementation 1. The connection control unit 211 is set in a connection waiting state (step S51). In this state, after receiving a request from the gateway device 110 or the external terminal 310 (step S52), the connection control unit 211 determines the type of the request (step S53).

[0077] If the request is a session establishment request from the gateway device 110 (session establishment request in step S53), the connection control unit 211 generates a session for gateway device communication (step S54). In addition, the connection control unit 211 generates a thread or process for gateway device communication (step S55).

[0078] Next, the connection control unit 211 allocates a session for gateway device communication to a thread or process for gateway device communication (step S56 ). Then, the connection control unit 211 sends an establishment completion notification to the gateway device 110 (step S57 ), and the process returns to step S51 .

[0079] If the request is for device information registration from the gateway device 110 (device information registration in step S53), the device management unit 212 registers the device identifier included in the received device information registration into the device information (step S61). Thereafter, the connection control unit 211 sends a registration acceptance response to the gateway device 110 (step S62), and the process returns to step S51.

[0080] If the request is an equipment connection request from the external terminal 310 (in the case of an equipment connection request in step S53), the equipment management unit 212 obtains the equipment identifier from the equipment connection request (step S71), and determines whether the obtained equipment identifier exists in the equipment information (step S72). If the equipment identifier does not exist in the equipment information (in the case of No in step S72), it is regarded as an invalid equipment connection request. Then, the process returns to step S51.

[0081] If the device identifier exists in the device information (Yes in step S72), the connection control unit 211 generates a session for external terminal communication (step S73). The connection control unit 211 generates a thread or process for external terminal communication (step S74).

[0082] Next, the connection control unit 211 allocates a session for external terminal communication to the thread or process for external terminal communication (step S75 ). Thereafter, the connection control unit 211 sends a connection acceptance response to the external terminal 310 (step S76 ), and the process returns to step S51 .

[0083] When the request is for communication between the external terminal 310 and the production device 130 (in the case of communication between the external terminal and the production device in step S53), the connection control unit 211 generates a thread or process for communication between the external terminal 310 and the gateway device 110 (step S81). Next, the connection control unit 211 allocates a thread or process for communication with the gateway device to the thread or process for communication between the external terminal 310 and the gateway device 110 (step S82).

[0084] In addition, the connection control unit 211 allocates a thread or process for external terminal communication to the thread or process for communication between the external terminal 310 and the gateway device 110 (step S83). As a result, the dialogue between the external terminal 310 and the server device 210 and the dialogue between the server device 210 and the gateway device 110 are connected. Thereafter, the connection control unit 211 starts the communication relay action between the external terminal 310 and the gateway device 110 (step S84). Then, the processing returns to step S51. In this way, the gateway device 110 refers to the established dialogue and the connection instrument information storage unit 112, determines the production device 130 of the connection target, and relays the data.

[0085] If the request is a device disconnection request (device disconnection request in step S53), the connection control unit 211 ends the communication relay operation between the external terminal 310 and the gateway device 110 (step S91). Thereafter, the connection control unit 211 sends a disconnection acceptance response to the external terminal 310 (step S92), and the process returns to step S51.

[0086] Here, when the session establishment request is issued from the server device 210 to the gateway device 110 instead of the gateway device 110 to the server device 210, the session establishment request does not reach the gateway device 110 through the network device. In addition, in order to issue the session establishment request from the server device 210 to the gateway device 110, it is necessary to set the network device to allow access from the outside to the inside of the factory network 11. In this case, the network device can access the factory network 11 through the external terminal 310 owned by a third party, and security cannot be ensured.

[0087] In the remote system 1 according to the first embodiment, the in-plant network 11 including the production device 130 and the gateway device 110, the server device 210, and the external terminal 310 are connected via the wide area network 40, and the in-plant network 11 is connected to the wide area network 40 via a network device that relays connections from the inside to the outside and intercepts connections from the outside to the inside. The gateway device 110 issues a session establishment request to the server device 210, and establishes a session between the gateway device 110 and the server device 210. The server device 210 holds the instrument information including the instrument identification information of the production device 130 in which the instrument identification information is registered, and when receiving the instrument connection request from the external terminal 310, checks whether the instrument identification information included in the instrument connection request exists in the instrument information, and establishes a session with the external terminal 310 if it exists, and connects the session with the external terminal 310 and the session with the gateway device 110 of the connection target production device 130. As a result, it is possible to realize remote access to the production device 130 from the external terminal 310 without changing the configuration of the existing in-factory network 11 on the factory 10 side and the settings of network devices such as the router 145. In addition, since it is unnecessary to change the settings of network devices, it is possible to reduce the number of setting hours for communication settings and the number of verification hours for verification work on communication settings by people with knowledge of network and information security, thereby suppressing setting errors.

[0088] More specifically, in the initial settings of most network devices sold on the market, connections from the inside of the network to the outside are allowed, while connections from the outside of the network to the inside are rejected from the perspective of information security. In the prior art such as Patent Document 1, in order to realize the existing remote access, the initial settings of the network device are changed to reject connections from the outside to the inside.

[0089] In this regard, in the remote system 1 involved in the first embodiment, a session establishment request is made from the gateway device 110 inside the factory 10 to the server device 210 outside the factory 10. That is, there is no need to change the initial settings of the network equipment. In addition, from the perspective of information security, the router 145 on the factory 10 side is not set to accept connections from the outside, so that the communication between the external terminal 310 owned by the user and the production device 130 can be relayed without making special settings for the network equipment, and at the same time, it is easy to prevent the external terminal held by a third party from accessing the production device 130.

[0090] In Embodiment 1, communication between the external terminal 310 and the production device 130 is performed by socket communication such as TCP / IP (Transmission Control Protocol / Internet Protocol), that is, communication using a session. Therefore, it is possible to support all communication standards corresponding to IP and realize remote access to equipment other than PLC.

[0091] In the first embodiment, the external terminal 310, the server device 210 of the cloud system 20, and the production device 130 have an apparatus identifier for uniquely identifying the production device 130. When the external terminal 310 is connected to the production device 130, the server device 210 compares the apparatus identifiers of the external terminal 310 and the production device 130, and then relays the communication between the two to achieve remote access. As a result, remote access can be easily performed between the external terminal 310 and the production device 130 without inputting information of the connection target such as an IP address or a port number. That is, the user can perform remote access without managing network information including an IP address and a port number.

[0092] By using the device identifier, the external terminal 310 can connect without selecting a target from a plurality of production devices 130. Since the connection is not permitted for the external terminal 310 that has issued a device connection request including a device identifier that is not registered in the server device 210, access to the production device 130 in the factory network 11 by a third party who does not know the device identifier can be suppressed. As described above, in the remote system 1 according to the first embodiment, even a user who does not have information security knowledge can achieve remote access safely and easily without changing the settings of existing network devices.

[0093] At present, there is a known technology that establishes a dialogue between a production device in a factory and a data center through WebSocket communication, and remotely accesses the production device in the factory from a mobile terminal via the data center. In this technology, it is assumed that the production device has the function of establishing a dialogue, and remote access cannot be performed on a production device that does not have the function of establishing a dialogue. However, in Implementation 1, since it is not the production device 130 but the gateway device 110 that establishes the dialogue, the production device 130 may not have the function of establishing a dialogue. That is, a structure is adopted in which a dialogue is established between the server device 210 and the gateway device 110, and arbitrary communication is performed with the production device 130 through the gateway device 110, so that even a production device 130 that does not have a mechanism for establishing a dialogue can be remotely accessed.

[0094] Implementation Method 2

[0095] In the first embodiment, the external terminal 310 generates a device identifier and registers it in the production device 130. In the second embodiment, a case where the production device 130 has a function of generating a device identifier will be described.

[0096] Since the structure of the remote system 1 involved in the second embodiment is the same as that described in the first embodiment, the description thereof is omitted. However, the production device 130 has a function of generating an equipment identifier. In addition, the connection control unit 211 of the server device 210 has a function of displaying the equipment information in the equipment information storage unit 213 in the form of a list on the external terminal 310 in response to a request from the external terminal 310.

[0097] Fig. 9 is a sequence diagram showing an example of the steps of the remote connection method in the remote system according to the second embodiment. Figure 7 The same parts are described by focusing on the different parts. In addition, it is assumed here that the device identifier is not written to the production device 130.

[0098] In the second embodiment, since the production device 130 has the function of generating a device identifier, no Figure 7 Steps S11 to S12 are the generation of the device identifier by the external terminal 310 and the registration of the device identifier to the production device 130 .

[0099] When the production device 130 receives the device connection confirmation from the gateway device 110 in step S15, it generates a device identifier if the device identifier is not written to the internal storage unit (step S11a). The generated device identifier is written to the internal storage unit of the production device 130. Thereafter, the production device 130 sends a device connection response to the gateway device 110 (step S16).

[0100] Here, the device identifier is generated after receiving the device connection confirmation in step S15, but it may be generated after sending the device connection response in step S16 or after receiving the device identifier request in step S17.

[0101] In addition, after receiving the device connection permission response in step S16 and the device identifier response in step S18, the gateway device 110 registers the connected device information about the production device 130, but sometimes the device name of the production device 130 is not registered at this time. In this case, the device name remains unregistered and the information of the production device 130 is registered in the device information of the server device 210.

[0102] In the first embodiment, the external terminal 310 sends an equipment connection request including an equipment identifier to the server device 210, but in the second embodiment, the external terminal 310 does not have information on the equipment identifier of the production device 130. Therefore, the external terminal 310 sends an equipment list acquisition request to the server device 210 before the equipment connection request in step S21 (step S111). Upon receiving the equipment list acquisition request, the connection control unit 211 of the server device 210 sends an equipment list response including connection equipment information, which is information about the production device 130 that can be connected to the external terminal 310, extracted from the equipment information in the equipment information storage unit 213, to the external terminal 310 (step S112).

[0103] The external terminal 310 displays a connected device selection screen on the display unit using the connected device information included in the device list response. Fig.10 2 is a diagram showing an example of a connected device selection screen. The connected device selection screen 500 includes a device list display area 510 and a connect button 520 .

[0104] The equipment list display area 510 displays information that can identify the production device 130 in the connected equipment information, that is, equipment list information. In one example, the equipment list information is a list of data including equipment names, equipment host names, and gateway names as items. The equipment names, equipment host names, and gateway names are the same as those described above. In the equipment list information, the combination of the equipment name, equipment host name, and gateway name is called a record 511. Fig.10 In the device list information shown, the user of the external terminal 310 can select an arbitrary record 511. In addition, the connected device information has a device identifier associated with the record 511 of the device list information in addition to the information shown in the device list information.

[0105] The connect button 520 is a button for sending an equipment connection request to the production device 130 of the record 511 selected in the equipment list information to the server device 210. At this time, the equipment identifier corresponding to the record 511 selected from the connected equipment information is extracted, and the equipment connection request includes the extracted equipment identifier.

[0106] Return to Fig. 9, the user of the external terminal 310 selects one record 511 in the instrument list information and presses the connect button 520 to execute the instrument connection request of step S21. Here, the instrument identifier included in the instrument connection request is selected from the instrument list response including the connection instrument information sent by the server device 210 to the external terminal 310. Therefore, the instrument management unit 212 of the server device 210 receives the instrument connection request and performs the same processing as comparing the instrument identifier for identifying the target production device 130 specified from the external terminal 310 with the instrument identifier set for the production device 130. Thereafter, Figure 7 same.

[0107] In addition, Fig.10 In the example, there are multiple records 511 in which the device host name and gateway name are the same but the device name is not set. When a production device 130 in one of the records is selected and connected, the user with the external terminal 310 does not know which of the production devices 130 on site is connected. Therefore, in the second embodiment, an environment is provided in which the user can understand whether the target production device 130 can be connected.

[0108] An example of a method for determining whether the target production device 130 is connected remotely is a method for confirming information about instruments constituting the production device 130, i.e., actual machine information, using an engineering design tool that has been introduced into the external terminal 310. An example of actual machine information is a combination of the model name and manufacturing information of the production device 130. That is, the engineering design tool of the external terminal 310 reads out the structural information including the model name and manufacturing information of the production device 130, and outputs it to a display unit not shown. The engineering design tool is an application that performs settings of the production device 130 based on input from the user. The user can confirm whether the target production device 130 is connected by comparing the actual machine information about the target production device 130 that the user has with the actual machine information obtained by the engineering design tool.

[0109] Another example of a method for understanding whether the target production device 130 is connected remotely is a method of confirming the project information read from the production device 130 using an engineering design tool that has been imported into the external terminal 310. Project information is information for controlling the production device 130. The project information includes a program executed by the production device 130, parameters used when the production device 130 executes the program, and variables, i.e., labels, whose values ​​change according to the status of each instrument controlled by the production device 130. That is, the engineering design tool of the external terminal 310 reads the project information including the program, parameters, and labels and outputs it to a display unit not shown. The user can confirm whether the target production device 130 is connected by comparing the program, parameters, labels, etc. that participated in the creation with the program, parameters, labels, etc. obtained by the engineering design tool.

[0110] Another example of a method of understanding whether the target production device 130 is remotely connected is a method of checking and determining the operation of a control target controlled by the production device 130 using a camera installed in the factory 10 . Fig.11 is a diagram showing an example of the structure of a remote system according to Embodiment 2. Figure 1 The same components are denoted by the same reference numerals, and their description is omitted. Fig.11 The remote system 1 also includes a robot 131 as a control object connected to two production devices 130 respectively, and a camera 133 capable of photographing each of the robot 131. One camera 133 can be arranged at a position capable of photographing two robot arms 131 at the same time, and two cameras 133 can be arranged at positions capable of photographing areas respectively including the robot arms 131. In addition, the camera 133 is connected to the factory network 11 and can be connected to an external terminal 310. The external terminal 310 has a function of causing a program of a production device 130 selected from the list to be executed, and displaying an image of the movement of the robot 131 of the selected production device 130 photographed by the camera 133 on a display unit not shown.

[0111] In one example, the user of the external terminal 310 edits and executes the program for controlling the robot arm 131 online using the engineering design tool imported into the external terminal 310. Then, the user can confirm whether the target production device 130 is connected based on whether the movement of the robot arm 131 captured by the camera 133 is in accordance with the edited program.

[0112] In the above three examples, when the external terminal 310 is not connected to the target production device 130, the external terminal 310 only needs to send an equipment disconnection request to the server device 210 and execute the process from step S111. In addition, the method shown here is an example, and whether the target production device 130 is connected can also be grasped by other methods.

[0113] In the second embodiment, the production device 130 generates an instrument identifier, so compared with the case of the first embodiment, in addition to the effect of the first embodiment, the user can omit the prior preparation for carrying the external terminal 310 to the target production equipment of the factory 10.

[0114] In addition, the first embodiment and the second embodiment may be combined. That is, the in-factory network 11 may include a production device 130 that can generate an equipment identifier by itself and a production device 130 in which an equipment identifier is written by prior preparation. In this case, the connected device information about the production device 130 in which the equipment identifier is written by prior preparation as in the first embodiment and the production device 130 in which the equipment identifier is generated by itself as in the second embodiment is included in the equipment list response and sent to the external terminal 310. Since the record 511 of the production device 130 in which the equipment identifier is written is displayed on the connected device selection screen 500, the user of the external terminal 310 can select the production device 130 to be accessed from the connected device selection screen 500.

[0115] Implementation 3

[0116] In the second embodiment, the case where the production device 130 has the function of generating the device identifier is exemplified. However, there are many production devices 130, and it is sometimes difficult to update the production devices 130 having the function of generating the device identifier in terms of cost and work. Therefore, in the third embodiment, a remote system 1 including the production device 130 that does not correspond to the generation and registration of the device identifier is described.

[0117] Since the structure of the remote system 1 involved in the third embodiment is the same as that described in the first embodiment, its description is omitted. However, the production device connection control unit 111 of the gateway device 110 also has a function of generating and registering the device identifier of the production device 130 connected to the in-plant network 11 in the connected device information. In addition, the production device 130 does not have a function of sending the device identifier to the gateway device 110.

[0118] Fig.12 is a sequence diagram showing an example of the steps of the remote connection method in the remote system according to the third embodiment. Figure 7 And implementation mode 2 Fig. 9 The same parts are described below, with the different parts explained.

[0119] In the third embodiment, since the production device 130 does not have an equipment identifier, it does not correspond to the communication method using the equipment identifier. Figure 7 as well as Fig. 9 The process of step S17 in which the gateway device 110 sends a device identifier request to the production device 130 and the process of step S18 in which the production device 130 sends back a device identifier response to the gateway device 110.

[0120] Therefore, after receiving the device connection permission response from the production device 130 in step S16, the production device connection control unit 111 of the gateway device 110 generates a device identifier for the production device 130 that does not have a device identifier based on the connected device information of the connected device information storage unit 112 (step S11b). In addition, the production device connection control unit 111 of the gateway device 110 assigns the generated device identifier to the production device 130 in the connected device information (step S121).

[0121] After the device identifier is generated, the processing of step S19 and subsequent steps is performed to register the generated device identifier in the server device 210 .

[0122] In implementation mode 3, the gateway device 110 generates and manages the instrument identifier of the production device 130. Therefore, even if the production device 130 does not correspond to the generation and registration of the instrument identifier, remote access to the production device 130 can be performed from the external terminal 310, and the same effect as implementation modes 1 and 2 can be obtained.

[0123] In addition, embodiments 1 to 3 may be combined. In this case, a production device 130 in which an instrument identifier is written by prior preparation as in embodiment 1, a production device 130 in which an instrument identifier is generated by itself as in embodiment 2, and a production device 130 in which an instrument identifier is generated and managed by the gateway device 110 without corresponding to the generation and transmission of the instrument identifier as in embodiment 3 may be included in the in-plant network 11. In this case, the connected instrument information about these production devices 130 is included in the instrument list response and sent to the external terminal 310. Since the record 511 of the production device 130 in which the instrument identifier is written is displayed on the connected instrument selection screen 500, the user of the external terminal 310 can select the production device 130 to be accessed from the connected instrument selection screen 500.

[0124] Implementation 4

[0125] In the second and third embodiments, the case where an instrument list response is sent back to the external terminal 310 that has sent an instrument list acquisition request to the server device 210 has been described. Generally, only the external terminal 310 owned by the relevant person in the factory 10 can connect to the server device 210, but the external terminal 310 of a third party can try to connect to the server device 210. In this case, the third party may access the production device 130. In the fourth embodiment, a technology for suppressing the external terminal 310 of the third party connected to the server device 210 from accessing the production device 130 is described.

[0126] Since the configuration of the remote system 1 according to the fourth embodiment is the same as that described in the first embodiment, the description thereof will be omitted. Fig.13 is a diagram showing an example of a functional structure of a remote system according to Embodiment 4. Figure 2 The same components are denoted by the same reference numerals, and their description is omitted.

[0127] In the remote system 1 according to the fourth embodiment, the configuration of the server device 210 is different from that of the first to third embodiments. The server device 210 further includes a user information storage unit 215 , an access control information storage unit 216 , and an access control unit 217 .

[0128] The user information storage unit 215 stores user information which is information on a user who is an owner of the external terminal 310 . Fig.14 : is a diagram showing an example of user information. User information is information that associates a user ID, a user PW, a user name, and an access token. The user ID is identification information for identifying a user. The user PW is a password set for the user ID. The user name is a name given to a user with a user ID. The access token is authentication information issued to a user who is authenticated as a user.

[0129] The access control information storage unit 216 stores access control information which is information defining the user's access rights to the production device 130. The access control information can be set for each production device 130 and each gateway device 1100.

[0130] Fig.15This is a diagram showing an example of access control information in the case of setting access rights in units of production devices. Access control information has user IDs, access rights, and instrument identifiers as items. Access control information is information that associates user IDs, access rights, and instrument identifiers. The access rights are set to "allow" when access is possible, and to "deny" when access is not possible. In the access control information, it is set to allow or deny access to the production device 130 represented by the instrument identifier by the user registered as the user ID.

[0131] Fig.16 This is a diagram showing an example of access control information when access rights are set in units of gateway devices. The access control information has a user ID, an access right, and a gateway ID as items. The access control information is information that associates the user ID, the access right, and the gateway ID. In the access control information, it is set to allow or deny access to the gateway device 110 represented by the gateway ID by the user registered as the user ID.

[0132] In addition, if the default setting is to deny the user access to the production device 130, it may not be necessary. Fig.15 as well as Fig.16 In this case, a combination of a user ID that is allowed to access and an equipment identifier of the production device 130 or a gateway ID of the gateway device 110 is registered in the access control information.

[0133] The access control information storage unit 216 holds two pieces of access control information, one for setting access rights in units of production devices 130 and the other for setting access rights in units of gateway devices 110. The priority of the access control information for setting access rights in units of production devices 130 is higher than that of the access control information for setting access rights in units of gateway devices 110. That is, the basic setting is performed by the access control information for setting access rights in units of gateway devices 110, and the fine control is set by the access control information for setting access rights in units of production devices 130.

[0134] The access control unit 217 authenticates the gateway device 110 with reference to the gateway information, and authenticates the user of the external terminal 310 with reference to the user information. Specifically, if the access control unit 217 receives a gateway authentication request including information for authenticating the gateway device 110, i.e., gateway authentication information, from the gateway device 110, the gateway authentication information included in the gateway authentication request is compared with the gateway information. When the result of the comparison is that the gateway authentication information is registered in the gateway information, that is, when the gateway device 110 is a regular gateway device 110, the access control unit 217 issues an access token. Then, the connection control unit 211 acknowledges the establishment of a dialogue with the gateway device 110. On the other hand, when the result of the comparison is that the gateway authentication information is not registered in the gateway information, that is, when the gateway device 110 is not a regular gateway device 110, the connection from the gateway device 110 is not accepted. An example of gateway authentication information is a gateway ID and a gateway PW.

[0135] In addition, if the access control unit 217 receives a user authentication request including information for authenticating a user, i.e., user authentication information, from the external terminal 310, the user authentication information included in the user authentication request is compared with the user information. If the result of the comparison is that the user authentication information is registered in the user information, that is, if the user is a regular user, the access control unit 217 issues an access token. Then, the connection control unit 211 approves access to the production device 130 by the external terminal 310 used by the user. On the other hand, if the result of the comparison is that the user authentication information is not registered in the user information, that is, if the user is not a regular user, the connection from the external terminal 310 is not accepted. An example of user authentication information is a user ID and a user PW.

[0136] In the fourth embodiment, the gateway information in the gateway information storage unit 214 of the server device 210 and the connection setting information in the connection setting information storage unit 113 of the gateway device 110 are different from those described in the first embodiment.

[0137] Fig.17 is a diagram showing an example of gateway information. Figure 6 In contrast, an access token item is added. In the access token item, an access token issued to the gateway device 110 that has made a gateway authentication request by the access control unit 217 is stored in association with the gateway device 110 that has made the gateway authentication request.

[0138] Fig.18 FIG. 1 is a diagram showing an example of connection setting information. Figure 4In contrast, an access token is added to the setting item, and the value of the access token corresponding to the setting value is stored. After the authentication by the server device 210 is completed, the server connection control unit 114 of the gateway device 110 communicates with the server device 210 including the access token.

[0139] Fig.19 is a sequence diagram showing an example of the steps of the remote connection method in the remote system according to the fourth embodiment. Figure 7 The same parts are described below, with the different parts explained.

[0140] The server connection control unit 114 of the gateway device 110 sends a gateway authentication request including information for gateway authentication, i.e., gateway authentication information, to the server device 210 before the session establishment request in step S13 (step S131). An example of the gateway authentication information is a gateway ID and a gateway PW. The gateway authentication information is stored in the connection setting information of the connection setting information storage unit 113 in one example, but it may also be stored by other methods.

[0141] If the access control unit 217 of the server device 210 receives a gateway authentication request, it compares whether the gateway authentication information in the gateway authentication request is the gateway authentication information of the gateway device 110 that has been registered in the gateway information. When it can be confirmed that it is a gateway device 110 that has been registered, the access control unit 217 generates an access token for omitting subsequent gateway authentication, and sends a gateway authentication response including the access token to the gateway device 110 (step S132). The access control unit 217 registers the generated access token in the record of the corresponding gateway device 110 in the gateway information of the gateway information storage unit 214. In addition, if the access token is associated with the authenticated gateway device 110, it can also be managed by other methods.

[0142] If the server connection control unit 114 of the gateway device 110 receives a gateway authentication response, it registers the access token included in the gateway authentication response to the connection setting information of the connection setting information storage unit 113. The server connection control unit 114 of the gateway device 110 includes the access token in subsequent communications with the server device 210. Therefore, when establishing a dialogue, the server connection control unit 114 sends a dialogue establishment request including the access token (step S13c). The access control unit 217 of the server device 210 verifies the access token included in the dialogue establishment request, and when it can be confirmed that it is a legitimate gateway device 110, it sends the gateway authentication response of step S14 to the gateway device 110.

[0143] In addition, when registering the instrument information, the server connection control unit 114 of the gateway device 110 sends the instrument information registration including the access token (step S19c). The access control unit 217 of the server device 210 verifies the access token included in the instrument information registration, and when it can be confirmed that it is a legitimate gateway device 110, it sends the registration acceptance response of step S20 to the gateway device 110.

[0144] In addition, the session establishment request may also serve as the gateway authentication request of step S131. In this case, the server connection control unit 114 of the gateway device 110 Figure 7 In step S13, the connection control unit 211 of the server device 210 sends a session establishment request including the gateway authentication information. Similarly, the establishment completion notification can also serve as the gateway authentication response of step S132. In this case, the connection control unit 211 of the server device 210 sends a session establishment request including the gateway authentication information. Figure 7 In step S14, a notification of establishment completion including an access token is sent.

[0145] Furthermore, before the device connection request in step S21, the external terminal 310 transmits a user authentication request including user authentication information, which is information for user authentication, to the server device 210 (step S133). An example of the user authentication information is a user ID and a user password.

[0146] If the access control unit 217 of the server device 210 receives a user authentication request, it checks whether the user authentication information in the user authentication request is a user that has been registered in the user information. If it can be confirmed that the user is a user that has been registered in the user information, the access control unit 217 generates an access token for omitting the subsequent user authentication. Then, the access control unit 217 sends a user authentication response including the access token to the external terminal 310 (step S134). The access control unit 217 registers the generated access token to the record of the corresponding user in the user information of the user information storage unit 215. In addition, if the access token is associated with the authenticated user, it can also be managed by other methods.

[0147] If the external terminal 310 receives the user authentication response, the access token included in the user authentication response is included in the subsequent communication with the server device 210. Therefore, when the external terminal 310 makes a request for instrument connection, it sends an instrument connection request including the access token to the server device 210 (step S21c). The access control unit 217 of the server device 210 verifies the access token included in the instrument connection request, and when it can be confirmed that it is a legitimate user, it sends a connection acceptance response of step S22 to the external terminal 310. In addition, the access control unit 217 of the server device 210 not only verifies legitimate users, but also allows them to be connected by setting the gateway device 110 and the production device 130 that are allowed to connect in the access control information.

[0148] In addition, when the external terminal 310 makes a request to disconnect the device, it sends a device disconnection request including an access token to the server device 210 (step S25c). The access control unit 217 of the server device 210 verifies the access token included in the device disconnection request, and when it can be confirmed that the user is a legitimate user, it sends a disconnection acceptance response of step S26 to the external terminal 310.

[0149] In addition, the device connection request may also serve as the user authentication request of step S133. In this case, the external terminal 310 Figure 7 In step S21, the device connection request including the user authentication information is sent. Similarly, the connection acceptance response can also serve as the user authentication response in step S134. In this case, the connection control unit 211 of the server device 210 Figure 7 In step S22, a connection acceptance response including an access token is sent.

[0150] In the above description, the authentication and permission operations using the access token are exemplified, but the authentication and permission may be performed using other techniques.

[0151] In the fourth embodiment, by authenticating the user of the external terminal 310 and the gateway device 110, it is possible to authenticate and permit the users of the external terminal 310 and the gateway device 110 to be legitimate users. As a result, security can be improved compared to the first to third embodiments.

[0152] In the above description, the example of applying user authentication of external terminal 310 and authentication of gateway device 110 in implementation mode 1 is given, but the same effect can be obtained by applying user authentication of external terminal 310 and authentication of gateway device 110 in implementation modes 2 and 3.

[0153] Implementation method 5

[0154] In the fifth embodiment, a case where the remote system 1 is applied to an environment in which countermeasures from the perspective of information security are improved using a firewall, an illegal intrusion detection system (IDS), an illegal intrusion prevention system (IPS), and a web application firewall (WAF) is described.

[0155] Fig. 20 is a diagram schematically showing an example of a structure of a remote system according to Embodiment 5. Figure 1 The same components are denoted by the same reference numerals, and their description is omitted. In the remote system 1 of the fifth embodiment, the in-plant network 11, the cloud system 20, and the external facility 30 of the first embodiment are further provided with devices for improving information security measures. As information security measures, in one example, port forwarding settings for routers 145, 245, 345, filters for firewalls, etc. can be cited.

[0156] The factory network 11 has a firewall 151 configured between the router 145 and the switching hub 141, an IPS 152 configured between the firewall 151 and the switching hub 141, and an IDS 153 configured in the network to which the gateway device 110 belongs. The firewall 151 has the function of intercepting illegal data packets sent from the outside to the inside of the factory network 11 and allowing the allowed data packets to pass. The IPS 152 is a device that checks the content of the data packet and intercepts illegal communications. The IDS 153 is a device that checks the content of the data packet and detects illegal access and intrusion. In addition, in Fig. 20 The figure shows a case where all firewalls 151, IPS 152, and IDS 153 are installed in the factory network 11, but a structure in which one or more of them are installed may also be possible.

[0157] The cloud system 20 also has a switching hub 241, a firewall 251, an IPS 252, an IDS 253, and a WAF 254. The server device 210 is connected to the WAF 254, and the IDS 253 is connected to the WAF 254 via one switching hub 241. The WAF 254 has a function of protecting the network application from attacks that maliciously exploit the vulnerability of the network application connected between the external terminal 310 and the production device 130 provided by the server device 210. The firewall 251 is configured between the router 245 and the switching hub 241, and the IPS 252 is set between the firewall 251 and the switching hub 241. In addition, Fig. 20 The figure shows a situation where all firewalls 251, IPS 252, IDS 253, and WAF 254 are provided in the cloud system 20, but a structure in which any one or more of them is provided may also be provided.

[0158] The external facility 30 also has a switching hub 341, a firewall 351, an IPS 352, and an IDS 353. The external terminal 310 and the IDS 353 are connected via one switching hub 341. The firewall 351 is arranged between the router 345 and the switching hub 341, and the IPS 352 is arranged between the firewall 351 and the switching hub 341. Fig. 20 The figure shows a case where all firewalls 351, IPS 352, and IDS 353 are installed in the external facility 30, but a structure in which any one or more of them is installed may also be possible.

[0159] exist Fig. 20 In the firewall 151 shown in the factory 10, as a method of preventing illegal access by a third party, packet filtering based on the status monitoring function is mostly performed. The status monitoring function is a function of checking the content of the data packet passing through the firewall 151 and dynamically executing the opening or closing of the port. In this case, the session establishment request sent from the internal gateway device 110 of the factory 10 to the external server device 210 can pass through the firewall 151 because it is a communication sent to the outside. Based on the mechanism of the status monitoring function, the response corresponding to the session establishment request in step S13, that is, the establishment completion notification in step S14, can also pass through the firewall 151.

[0160] Even if the firewall 151 does not use the status monitoring function, unless it is set intentionally, the communication sent to the outside and the corresponding response can usually pass.

[0161] exist Fig. 20 In the IDS153 and IPS152 shown in the factory 10, it is a normal action to detect illegal behavior from the outside to the remote system 1 and the factory network 11. In this case, the communication between the gateway device 110 and the server device 210 is not hindered.

[0162] exist Fig. 20 In the firewall 351, IDS 353 and IPS 352 shown in the external facility 30, similar to the factory 10, since the communication is sent to the outside, such as from the external terminal 310 inside the external facility 30 to the external server device 210, it is not blocked.

[0163] exist Fig. 20The firewall 251 in the cloud system 20 is set to allow the communication related to the remote system 1 sent from the gateway device 110 and the external terminal 310. In addition, in the IDS 253, the IPS 252 and the WAF 254, the communication related to the remote system 1 is not detected as an illegal behavior, and settings are made as needed.

[0164] In addition, when a network server is arranged between the router 145 and the firewall 151 in the in-plant network 11, the router 145 is set to allow access to the network server from outside the in-plant network 11. In this case, the firewall 151 as a network device is set to allow connection from inside the in-plant network 11 to the outside and to deny connection from outside to inside. Therefore, in such a case, the firewall 151 has the same function as the router 145 in the first embodiment.

[0165] As described above, in the remote system 1 of the fifth embodiment, a network system in which a device for improving information security measures is configured can be introduced and used without making special settings for the remote system 1. In this case, communication between the external terminal 310 and the production device 130 can be achieved via the server device 210 without changing the settings of the router 145 configured between the in-plant network 11 and the wide area network 40, the router 245 configured between the cloud system 20 and the wide area network 40, and the router 345 configured between the external facility 30 and the wide area network 40.

[0166] Implementation 6

[0167] In the sixth embodiment, a configuration will be described in which a remote access environment has redundancy by providing the function of the gateway device 110 to the production device 130 in the remote system 1 described in the first embodiment and using the gateway device 110 together with the production device 130.

[0168] Fig.21 is a diagram schematically showing an example of a structure of a remote system according to Embodiment 6. Figure 1The same structural elements are marked with the same reference numerals, and their description is omitted. The remote system 1 of Implementation Example 6 has multiple in-factory networks 11, 11a in the factory 10. The in-factory network 11 is the same as the description in Implementation Example 1, and has a structure in which the gateway device 110 is connected to more than or equal to one production device 130 via a switching hub 141. The in-factory network 11a has a production device 135 with a gateway function, more than or equal to one production device 130, and a switching hub 141a. Through the switching hub 141a, the production device 135 with a gateway function and more than or equal to one production device 130 constitute one in-factory network 11a. The switching hubs 141, 141a are respectively connected to a router 145.

[0169] Fig. 22 Schematically shows an example of a structure of a production device with a gateway function used in a remote system according to Embodiment 6. Fig. 22 In the example, a case where the control device in the production device with a gateway function 135 is a PLC is taken. The production device with a gateway function 135 has a PLC component 170. The PLC component 170 has a CPU (Central Processing Unit) unit 171, an I / O (Input / Output) unit 172, and a gateway unit 173.

[0170] The CPU unit 171 performs calculations according to the control program and controls the control object in the production device 135 with a gateway function. The I / O unit 172 inputs and outputs signals between the control object, sensors, etc. The gateway unit 173 has the functions of the gateway device 110 described in embodiments 1 to 5. However, the I / O unit 172 and the gateway unit 173 are not required in embodiment 6. In the case where the gateway unit 173 is omitted, it can be replaced by a built-in gateway function 175 in the CPU unit 171. In addition, in Fig. 22 In the figure, for the sake of explanation, the PLC configuration unit 170 is shown to include the gateway unit 173 and the CPU unit 171 is shown to include the gateway function 175, but in reality, only one of them is required.

[0171] Fig.23 is a diagram schematically showing another example of the structure of the remote system involved in the sixth embodiment. Figure 1 and Embodiment 6 Fig.21 The same structural elements are denoted by the same reference numerals, and their descriptions are omitted. Fig.21 FIG. 1 shows a case where the in-plant network 11 is not connected to the in-plant network 11a, but Fig.23In the example, the in-plant network 11 is connected to the in-plant network 11a via the switching hub 141b. In this way, when any one of the gateway device 110 and the production device with a gateway function 135 fails, the other can be used to continue the communication with the server device 210. That is, the communication via the gateway device 110 and the production device with a gateway function 135 has redundancy.

[0172] The CPU unit 171 or the gateway unit 173 having the gateway function 175 has the same function as the gateway device 110 described in the first to fifth embodiments, and can therefore relay remote access to devices other than the production device 135 having the gateway function, such as the HMI and the inverter. The communication path in this case forms a structure in which the CPU unit 171 having the gateway unit 173 or the gateway function 175 communicates directly with the server device 210.

[0173] In addition, Fig.23 In the redundant structure shown, the device information in the device information storage unit 213 of the server device 210 is structured such that a plurality of devices having a gateway function can be registered for the device identifier of one production device 130. The connection control unit 211 of the server device 210 can select a device having a gateway function in a path with the best communication environment such as smoothness among the paths to the target production device 130, and perform a relay operation.

[0174] In the above description, the case where the PLC component 170 in the production device with a gateway function 135 has a gateway function is exemplified, but other devices such as inverters may also have a gateway function.

[0175] In the sixth embodiment, the in-factory network 11 having the gateway device 110 and the in-factory network 11a having the production device 135 with the gateway function are arranged in the factory 10. Thus, the production device 130 in the factory 10 can be divided into a plurality of groups for each device having the gateway function. In addition, by connecting a plurality of in-factory networks 11 and 11a including devices having the gateway function, the remote access environment can be made redundant.

[0176] Here, the hardware configuration of the gateway device 110 and the server device 210 will be described. The gateway device 110 and the server device 210 according to the first to sixth embodiments are specifically implemented by a computer system. Fig.24 1 is a diagram showing an example of the hardware structure of a computer system that implements the gateway device and server device of the remote system involved in Embodiments 1 to 6. Fig.24As shown, the computer system 700 includes a control unit 701 , a storage unit 700 , and a communication unit 703 , which are connected via a system bus 704 .

[0177] exist Fig.24 In the embodiment, the control unit 701 is, for example, a CPU, etc. The control unit 701 executes a remote connection program that describes any one of the remote connection methods described in embodiments 1 to 6. The storage unit 702 includes various memories such as RAM (Random Access Memory) and ROM (Read Only Memory) and storage devices such as HDD (Hard Disk Drive) or SSD (Solid State Drive), and stores programs that the control unit 701 should execute, required data obtained during the processing, etc. In addition, the storage unit 702 is also used as a temporary storage area for programs. The communication unit 703 is a communication circuit that implements communication processing, etc. The communication unit 703 can also be composed of multiple communication circuits corresponding to multiple communication methods. In addition, Fig.24 is an example, and the structure of the computer system 700 is not limited to Fig.24 Example.

[0178] Here, an example of the operation of the computer system 700 until the remote connection program involved in any one of Implementation Examples 1 to 6 becomes executable is described. In the computer system 700 adopting the above-mentioned structure, the remote connection program is installed to the storage unit 702 from, for example, a CD-ROM or DVD-ROM set in a CD (Compact Disc)-ROM drive or DVD (Digital Versatile Disc)-ROM drive not shown. Then, when the remote connection program is executed, the remote connection program read from the storage unit 702 is stored in an area of ​​the main storage device of the storage unit 702. In this state, the control unit 701 executes the remote connection processing in the gateway device 110 or the server device 210 of Implementation Examples 1 to 6 according to the remote connection program stored in the storage unit 702.

[0179] In addition, in the above description, a remote connection program is provided using a CD-ROM or DVD-ROM as a recording medium, but the present invention is not limited to this. The program may be provided using a transmission medium such as the Internet via the communication unit 703, for example, depending on the structure of the computer system 700, the capacity of the program to be provided, etc.

[0180] exist Figure 2 as well as Fig.13 The production device connection control unit 111 and the server connection control unit 114 of the gateway device 110 are shown by Fig.24 The control unit 701 is implemented. Figure 2as well as Fig.13 The connection device information storage unit 112 and the connection setting information storage unit 113 of the gateway device 110 are shown in FIG. Fig.24 A portion of storage unit 702 is shown.

[0181] exist Figure 2 as well as Fig.13 The connection control unit 211, the device management unit 212, and the access control unit 217 of the server device 210 are shown in FIG. Fig.24 The control unit 701 is implemented. Figure 2 as well as Fig.13 The device information storage unit 213, the gateway information storage unit 214, the user information storage unit 215, and the access control information storage unit 216 of the server device 210 are shown in FIG. Fig.24 A portion of storage unit 702 is shown.

[0182] The configuration shown in the above embodiment is merely an example, and can be combined with other known technologies, and the embodiments can be combined with each other. Part of the configuration can be omitted or changed without departing from the gist.

[0183] Description of the label

[0184] 1 remote system, 10 factory, 11, 11a factory network, 20 cloud system, 30 external facilities, 40 wide area network, 110 gateway device, 111 production device connection control unit, 112 connection instrument information storage unit, 113 connection setting information storage unit, 114 server connection control unit, 130 production device, 131 robot arm, 133 camera, 135 production device with gateway function, 141, 141a, 141b, 241, 341 switching hub, 145, 245, 345 router, 15 1, 251, 351 firewall, 152, 252, 352 IPS, 153, 253, 353 IDS, 170 PLC component unit, 171 CPU unit, 172 I / O unit, 173 gateway unit, 175 gateway function, 210 server device, 211 connection control unit, 212 instrument management unit, 213 instrument information storage unit, 214 gateway information storage unit, 215 user information storage unit, 216 access control information storage unit, 217 access control unit, 254 WAF, 310 external terminal.

Claims

1. A remote system that connects a local area network having a production device and a gateway device to a server device that relays communications between an external terminal serving as an information communication device and the production device via a wide area network, thereby enabling remote connection to the production device from the external terminal. The remote system is characterized by, A network device is provided between a connection point between the local area network and the wide area network, or between the connection point and the production device, the network device allowing connections from inside the local area network to the outside and denying connections from outside the local area network to the inside. The gateway device includes a server connection control unit that requests the server device to establish a first session between the gateway device and the server device. The server device comprises: an apparatus information storage unit that stores apparatus information that associates apparatus identification information for identifying the production apparatus with gateway identification information for identifying the gateway device connectable to the production apparatus; the device management unit, upon receiving from the external terminal an device connection request including device identification information identifying a target production device specified by the external terminal, checking whether the device identification information in the device connection request is included in the device information; as well as a connection control unit that receives the request to establish the first session and establishes the first session; establishes a second session between the external terminal and the server device if the comparison result of the device management unit indicates that the device identification information in the device connection request exists in the device information; obtains the gateway identification information corresponding to the device identification information in the device connection request from the device information; and connects the second session to the first session established between the server device and the gateway device corresponding to the obtained gateway identification information; The connection control unit of the server device relays communication between the external terminal and the production device using the connected first session and the second session.

2. A remote system that connects a local area network comprising a production device and a gateway device to a server device that relays communications between an external terminal serving as an information communication device and the production device via a wide area network, thereby enabling remote connection to the production device from the external terminal. The remote system is characterized by, A network device is provided between a connection point between the local area network and the wide area network, or between the connection point and the production device, the network device allowing connections from inside the local area network to the outside and denying connections from outside the local area network to the inside. The gateway device includes a server connection control unit that requests the server device to establish a first session between the gateway device and the server device. The server device comprises: an apparatus information storage unit that stores apparatus information that associates apparatus identification information for identifying the production apparatus with gateway identification information for identifying the gateway device connectable to the production apparatus; and a connection control unit that receives a request to establish the first session and establishes the first session, displays information about the production equipment registered in the equipment information in a list on the external terminal, and when the production equipment is selected from the list via the external terminal, establishes a second session between the external terminal and the server device, and connects the second session to the first session established between the server device and the gateway device corresponding to the gateway identification information associated with the selected production equipment via the equipment information; The connection control unit of the server device relays communication between the external terminal and the production device using the connected first session and the second session. The external terminal has a function of reading and outputting configuration information including a model name of the production device selected from the list, or project information including a program, parameters, and labels of the selected production device from the production device.

3. A remote system that connects a local area network comprising a production device and a gateway device to a server device that relays communications between an external terminal serving as an information communication device and the production device via a wide area network, thereby enabling remote connection to the production device from the external terminal. The remote system is characterized by: a network device configured to allow connections from inside the local area network to the outside and deny connections from outside the local area network to the inside, between a connection point between the local area network and the wide area network, or between the connection point and the production device; as well as a camera for photographing a control object of the production device, The gateway device includes a server connection control unit that requests the server device to establish a first session between the gateway device and the server device. The server device comprises: an apparatus information storage unit that stores apparatus information that associates apparatus identification information for identifying the production apparatus with gateway identification information for identifying the gateway device connectable to the production apparatus; as well as a connection control unit that receives a request to establish the first session and establishes the first session, displays information about the production equipment registered in the equipment information in a list on the external terminal, and when the production equipment is selected from the list via the external terminal, establishes a second session between the external terminal and the server device, and connects the second session to the first session established between the server device and the gateway device corresponding to the gateway identification information associated with the selected production equipment via the equipment information; The connection control unit of the server device relays communication between the external terminal and the production device using the connected first session and the second session. The external terminal has a function of executing a program of the production device selected from the list and displaying an image captured by the camera and including an operation of the control target of the selected production device.

4. The remote system according to any one of claims 1 to 3, characterized in that: The gateway device further includes a production device connection control unit that searches for the production device connected to the local area network and requests the production device to transmit the device identification information. Upon receiving the device identification information from the production device, the server connection control unit of the gateway device registers the device identification information in the server device.

5. The remote system according to claim 4, wherein: The device identification information of the production device is registered in the production device via the external terminal.

6. The remote system according to claim 4, wherein: The production device has a function of generating the device identification information.

7. The remote system according to any one of claims 1 to 3, characterized in that: The gateway device further includes a production device connection control unit that searches for the production device connected to the local area network and generates the device identification information of the production device. When the device identification information is generated, the server connection control unit of the gateway device registers the device identification information in the server device.

8. The remote system according to any one of claims 1 to 3, characterized in that: The server device further comprises: a gateway information storage unit that stores gateway information for authenticating the gateway device; and an access control unit that compares gateway authentication information for authenticating the gateway device sent from the gateway device with the gateway information, The connection control unit approves establishment of the first session with the gateway device when the comparison result shows that the gateway device is a legitimate gateway device.

9. The remote system according to any one of claims 1 to 3, characterized in that: The server device further comprises: a user information storage unit that stores user information of a user who authenticates the external terminal; and an access control unit that compares user authentication information for authenticating the user sent from the external terminal with the user information, The connection control unit authorizes access of the external terminal to the production device when the comparison result shows that the user is a legitimate user.

10. The remote system according to claim 9, wherein: The server device further includes an access control information storage unit that stores access control information that sets access rights to the production device and the gateway device for each user; The access control unit refers to the access control information to determine the range of access that the user can access.

11. The remote system according to any one of claims 1 to 3, characterized in that: It also has more than or equal to one of a firewall, an illegal intrusion detection system for detecting illegal communications, an illegal intrusion prevention system for intercepting illegal communications, and a network application firewall for protecting network applications from attacks that maliciously exploit vulnerabilities of the network applications.

12. The remote system according to any one of claims 1 to 3, characterized in that: The gateway device is the production device having a gateway function.

13. The remote system according to any one of claims 1 to 3, characterized in that: The local area network is provided with multiple The gateway devices of the plurality of local area networks are connected to each other.

14. A remote connection method, comprising connecting a local area network having a production device and a gateway device and a server device that relays communications between an external terminal serving as an information communication device and the production device via a wide area network, thereby enabling remote connection of the production device to the external terminal. The remote connection method is characterized by comprising the following steps: A network device disposed at a connection point between the local area network and the wide area network, or between the connection point and the production equipment, allows connections from inside the local area network to the outside, and denies connections from outside the local area network to the inside; The gateway device requests the server device to establish a first session between the gateway device and the server device; The server device accepts the request to establish the first session and establishes the first session; If an instrument connection request including instrument identification information identifying a target production device specified by the external terminal is received from the external terminal, the server device checks whether the instrument identification information in the instrument connection request is included in instrument information obtained by associating the instrument identification information identifying the production device with gateway identification information identifying the gateway device connectable to the production device; The server device establishes a second session between the external terminal and the server device if the comparison result shows that the device identification information in the device connection request exists in the device information; The server device obtains the gateway identification information corresponding to the device identification information in the device connection request from the device information, and connects the second session to the first session established between the server device and the gateway device corresponding to the obtained gateway identification information; as well as The server device relays communication between the external terminal and the production device using the connected first session and the second session.

15. A remote connection method, comprising connecting a local area network having a production device and a gateway device and a server device that relays communications between an external terminal serving as an information communication device and the production device via a wide area network, thereby enabling remote connection of the production device to the external terminal. The remote connection method is characterized by comprising the following steps: The server device stores device information that associates device identification information for identifying the production device with gateway identification information for identifying the gateway device that can be connected to the production device; A network device disposed at a connection point between the local area network and the wide area network, or between the connection point and the production equipment, allows connections from inside the local area network to the outside, and denies connections from outside the local area network to the inside; The gateway device requests the server device to establish a first session between the gateway device and the server device; The server device accepts the request to establish the first session and establishes the first session; The server device displays information about the production equipment registered in the equipment information in a list on the external terminal; When the production device is selected from the list by the external terminal, the server device establishes a second session between the external terminal and the server device; The server device connects the second session to the first session established between the server device and the gateway device having the gateway identification information associated with the selected production device through the device information; The server device relays communication between the external terminal and the production device using the connected first session and the second session; The external terminal reads out the configuration information including the model name of the production device selected from the list, or the project information including the program, parameter, and label of the selected production device; as well as The external terminal outputs the configuration information or the project information.

16. A remote connection method, comprising connecting a local area network having a production device and a gateway device and a server device that relays communications between an external terminal serving as an information communication device and the production device via a wide area network, thereby enabling remote connection of the production device to the external terminal. The remote connection method is characterized by comprising the following steps: The server device stores device information that associates device identification information for identifying the production device with gateway identification information for identifying the gateway device that can be connected to the production device; A network device disposed at a connection point between the local area network and the wide area network, or between the connection point and the production equipment, allows connections from inside the local area network to the outside, and denies connections from outside the local area network to the inside; The gateway device requests the server device to establish a first session between the gateway device and the server device; The server device accepts the request to establish the first session and establishes the first session; The server device displays information about the production equipment registered in the equipment information in a list on the external terminal; When the production device is selected from the list by the external terminal, the server device establishes a second session between the external terminal and the server device; The server device connects the second session to the first session established between the server device and the gateway device having the gateway identification information associated with the selected production device through the device information; The server device relays communication between the external terminal and the production device using the connected first session and the second session; The external terminal causes the program of the production device selected from the list to be executed; as well as The external terminal displays an image captured by a camera capturing an image of the control target of the production device and including the operation of the control target of the selected production device.

17. A recording medium storing a program for operating a server device used in a remote system for realizing remote connection to a production device via an external terminal, the remote system comprising: A local area network having the production device and the gateway device; The server device is connected to the local area network via a wide area network and relays communication between an external terminal as an information communication device and the production device; as well as a network device that allows connections from inside the local area network to the outside and denies connections from outside the local area network to the inside, at a connection point between the local area network and the wide area network, or between the connection point and the production equipment; The program is used to cause the server device to perform the following steps: storing device information that associates device identification information for identifying the production device with gateway identification information for identifying the gateway device connectable to the production device; receiving, from the external terminal, an equipment connection request including equipment identification information identifying a target production device specified by the external terminal; checking whether the device identification information in the device connection request is included in the device information; accepting a request from the gateway device to establish a first session between the gateway device and the server device, and establishing the first session; establishing a second session between the external terminal and the server device when the comparison of the device identification information shows that the device identification information in the device connection request exists in the device information; acquiring, from the device information, the gateway identification information corresponding to the device identification information in the device connection request; linking the second session to the first session established between the server device and the gateway device corresponding to the acquired gateway identification information; as well as The communication between the external terminal and the production device is relayed using the connected first session and the second session.

18. A recording medium storing a program for operating an external terminal used in a remote system for realizing remote connection to a production device by the external terminal, the remote system comprising: A local area network having the production device and the gateway device; a server device connected to the local area network via a wide area network and relaying communication between the external terminal as an information communication device and the production device; as well as a network device that allows connections from inside the local area network to the outside and denies connections from outside the local area network to the inside, at a connection point between the local area network and the wide area network, or between the connection point and the production equipment; The program is used to enable the external terminal to perform the following steps: requesting to obtain a list of information related to the production device registered in device information, the device information being obtained by associating device identification information identifying the production device with gateway identification information identifying the gateway device connectable to the production device; displaying the overview; sending an equipment connection request for the production device selected from the list to the server device; transmitting data to the production device using a first session established between the gateway device and the server device and a second session established between the external terminal and the server device, which are associated through the server device; as well as Configuration information including the model name of the production device selected from the list, or item information including the program, parameter, and label of the selected production device is read from the selected production device and output.

19. A recording medium storing a program for operating an external terminal used in a remote system for realizing remote connection to a production device by an external terminal, the remote system comprising: A local area network having the production device and the gateway device; a server device connected to the local area network via a wide area network and relaying communication between the external terminal as an information communication device and the production device; as well as a network device that allows connections from inside the local area network to the outside and denies connections from outside the local area network to the inside, at a connection point between the local area network and the wide area network, or between the connection point and the production equipment; The program is used to enable the external terminal to perform the following steps: requesting to obtain a list of information related to the production device registered in device information, the device information being obtained by associating device identification information identifying the production device with gateway identification information identifying the gateway device connectable to the production device; displaying the overview; sending an equipment connection request for the production device selected from the list to the server device; transmitting data to the production device using a first session established between the gateway device and the server device and a second session established between the external terminal and the server device, which are associated through the server device; as well as The program of the production device selected from the list is executed, and a camera that captures an image of a control target of the production device is used to capture an image, and an image including the operation of the control target of the selected production device is displayed.