CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND CONTROL PROGRAM
The control device in EtherCAT networks manages redundant configurations by detecting disconnections and adjusting paths to prevent frame discard, ensuring continuous communication despite failures.
Patent Information
- Application Number
- JP2020194428
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-11-24
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-11-24
AI Technical Summary
In networks with multiple redundant configurations, communication frames are discarded when multiple failures occur, particularly in EtherCAT networks with ring connections, due to the Circulating bit mechanism preventing frames from circulating endlessly.
A control device operates as a communication master, monitoring network status and detecting cable disconnections. It cancels redundant configurations by logically or physically disconnecting redundant paths when release conditions are met, ensuring communication frames are not discarded.
Prevents communication frame discard by dynamically managing redundant configurations, allowing continuous communication even with multiple failures, and notifies users of configuration changes.
Smart Images

Figure 0007574623000001 
Figure 0007574623000002 
Figure 0007574623000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a control device connectable to a network, a communication control method in the control device, and a control program for implementing the control device. [Background technology]
[0002] For example, in a network conforming to EtherCAT (registered trademark), a communication frame transmitted by a communication master circulates through all communication slaves and then returns to the communication master.
[0003] A daisy chain connection is generally adopted as a topology for circulating communication frames. In a daisy chain connection, communication frames go back and forth along the same path, so if any fault occurs on the path, the communication frame cannot be transferred to a stage subsequent to the location where the fault occurred.
[0004] In contrast to this type of daisy chain connection, a topology that adds a path from the slave connected to the final stage of the daisy chain connection back to the communication master has also been put to practical use. This type of topology is called a ring connection. In other words, while the daisy chain connection is a non-redundant configuration, the ring connection is a redundant configuration.
[0005] Regarding such a ring connection, Japanese Patent Application Laid-Open No. 2020-167554 (Patent Document 1) discloses a master device that can easily detect unauthorized routes in a network including a ring topology. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2020-167554 A Summary of the Invention [Problem to be solved by the invention]
[0007] The present inventors have discovered a new problem that arises in a network including multiple redundant configurations. It is an object of one aspect of the present invention to provide a solution to the new problem that arises in a network including multiple redundant configurations. [Means for solving the problem]
[0008] According to an embodiment of the present invention, there is provided a control device that operates as a communication master in a network including one or more communication slaves. A communication frame transmitted from the communication master is transferred sequentially so as to circulate around the network and return to the communication master, and each of the multiple communication slaves has an IN port and an OUT port. The control device includes a monitoring means for monitoring a communication state in the network, and a determining means for determining, when disconnection of any cable included in the network is detected, whether or not a communication slave connected to the cable in which the disconnection was detected satisfies a release condition. The release condition includes that the cable connected to the IN port of the target communication slave is disconnected and that the OUT port is capable of receiving a communication frame. The control device includes a management means for releasing a redundant configuration included in the network when the release condition is satisfied.
[0009] The term "disconnect" in this specification may include, for example, a state in which a path of interest (such as a cable) is physically disconnected, as well as a state in which a signal does not flow by some means. Therefore, the term "disconnect" may include a logical disconnection of a connection, as well as a physical disconnection of a connection.
[0010] According to this configuration, if the communication slave connected to the cable where the disconnection was detected satisfies the release condition, the redundant configuration included in the network is released. In a state where the release condition is satisfied, if a further cable disconnection or the like occurs in the redundant configuration, problems such as the discarding of communication frames may occur, but the occurrence of such problems can be prevented.
[0011] The management means may issue a command to close the OUT port to a communication slave to which a cable to be disconnected in order to release the target redundant configuration is connected. With this configuration, the redundant configuration can be released logically, and therefore can be flexibly realized using software without the need for additional equipment.
[0012] In each of the redundant configurations included in the network, a switch is provided on the cable to be disconnected in order to release the redundant configuration. The management means may issue a command for each of the switches provided in the target redundant configuration to disconnect the cable. With this configuration, the target cable can be physically disconnected, so that the redundant configuration can be released more reliably.
[0013] The determination means may determine that the release condition is satisfied when the cable in which the disconnection was detected is included in any of the redundant configurations and the cable in which the disconnection was detected is not a cable that should be disconnected in order to release the redundant configuration. With this configuration, it is possible to determine whether or not the release condition is satisfied based on the position of the cable in which the disconnection was detected.
[0014] When the same communication frame is received multiple times at the OUT port of a communication slave whose cable connected to its IN port has been disconnected, the communication frame may be discarded.
[0015] The management unit may be configured to reconfigure the canceled redundant configuration when the cable in which the disconnection was detected is reconnected. With this configuration, the original redundant configuration can be maintained by recovering from the failure that occurred in the cable.
[0016] The control device may further include a notification unit that notifies a user that a redundant configuration included in the network has been released. With this configuration, for example, a user can easily know that the redundant configuration has been released, and can take necessary measures.
[0017] The control device further includes an execution unit for executing a user program. The user program can refer to information indicating whether a redundant configuration included in the network has been released. With this configuration, for example, it is possible to switch the process executed by the user program based on whether the redundant configuration has been released.
[0018] According to another embodiment of the present invention, there is provided a communication control method executed by a control device operating as a communication master in a network including one or more communication slaves. A communication frame transmitted from the communication master is transferred sequentially so as to circulate around the network and return to the communication master. Each of the multiple communication slaves has an IN port and an OUT port. The communication control method includes a step of monitoring a communication state in the network, and a step of judging, when disconnection of any cable included in the network is detected, whether or not a communication slave connected to the cable in which the disconnection was detected satisfies a release condition. The release condition includes that the cable connected to the IN port of the target communication slave is disconnected and that the OUT port is capable of receiving a communication frame. The communication control method includes a step of releasing a redundant configuration included in the network when the release condition is satisfied.
[0019] According to yet another embodiment of the present invention, there is provided a control program executed by a computer operating as a communication master in a network including one or more communication slaves. A communication frame transmitted from the communication master is transferred sequentially so as to circulate around the network and return to the communication master. Each of the multiple communication slaves has an IN port and an OUT port. The control program causes the computer to execute a step of monitoring a communication state in the network, and a step of determining, when disconnection of any cable included in the network is detected, whether or not a communication slave connected to the cable in which the disconnection was detected satisfies a release condition. The release condition includes that the cable connected to the IN port of the target communication slave is disconnected and that the OUT port is capable of receiving a communication frame. The control program causes the computer to execute a step of releasing a redundant configuration included in the network when the release condition is satisfied. Effect of the Invention
[0020] According to an embodiment of the present invention, it is possible to provide a solution to a new problem that arises in a network including multiple redundant configurations. [Brief description of the drawings]
[0021] [Figure 1] 11 is a diagram for illustrating a connection in a communication control method according to the present embodiment. FIG. [Diagram 2] FIG. 2 is a schematic diagram showing a control system including a plurality of redundant configurations shown in FIG. [Diagram 3] 3 is a diagram for explaining the behavior of a communication frame when a failure occurs at one point in the control system shown in FIG. 2. FIG. [Figure 4] 3 is a diagram for explaining the behavior of a communication frame when two failures occur in the control system shown in FIG. 2. FIG. [Diagram 5] FIG. 2 is a schematic diagram showing an example of a hardware configuration of a PLC in the control system according to the present embodiment. [Figure 6]FIG. 2 is a schematic diagram showing an example of a hardware configuration of a device in the control system according to the present embodiment. [Figure 7] 2 is a schematic diagram showing an example of a hardware configuration of a relay device in the control system according to the present embodiment. FIG. [Figure 8] 11 is a diagram for explaining a method for preventing a communication frame from being discarded midway through transmission in the control system according to the present embodiment. FIG. [Figure 9] 2 is a schematic diagram showing a main part of a functional configuration related to communication processing of a PLC included in the control system according to the present embodiment. FIG. [Figure 10] 10 is a flowchart relating to a communication control method in a first implementation example of a PLC included in a control system according to the present embodiment. [Figure 11] FIG. 11 is a schematic diagram showing an implementation example 2 of a control system according to the present embodiment. [Figure 12] 13 is a flowchart relating to a communication control method in an implementation example 2 of a PLC included in a control system according to the present embodiment. [Figure 13] FIG. 2 is a schematic diagram showing an example of a hardware configuration of a support device of the control system according to the present embodiment. [Figure 14] 4 is a schematic diagram showing an example of a user interface screen provided by a support device of the control system according to the present embodiment. FIG. [Figure 15] 13 is a schematic diagram showing another example of a user interface screen provided by the support device of the control system according to the present embodiment. FIG. [Figure 16] FIG. 13 is a schematic diagram showing yet another example of a user interface screen provided by the support device of the control system according to the present embodiment. [Figure 17] FIG. 4 is a diagram showing an example of a user program executed by a PLC of the control system according to the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0022] Embodiments of the present invention will be described in detail with reference to the drawings. For the same or corresponding parts in the drawings, the same reference numerals are given and their description will not be repeated.
[0023] <A. Application Example> First, with reference to FIGS. 1 to 4, an example of a scenario to which the present invention is applied will be described. In the following description, as an example of a control device that operates as a communication master (hereinafter also simply referred to as a "master") in a network including one or more communication slaves (hereinafter also simply referred to as "slaves"), a PLC (programmable logic controller) is assumed. Also, as the network, typically, a network conforming to EtherCAT is assumed. In a network conforming to EtherCAT, communication frames transmitted from a control device (PLC) that is a master are sequentially transferred so as to return to the control device after going around the network.
[0024] FIG. 1 is a diagram for explaining the connection in the communication control method according to the present embodiment. FIG. 1(A) shows an example of daisy-chain connection (non-redundant configuration), and FIG. 1(B) shows an example of ring connection (redundant configuration).
[0025] Referring to FIG. 1(A), the control system 1A for daisy-chain connection includes a PLC 100 which is an example of a control device that operates as a master, a relay device 300, and one or more devices 200-1 to 200-5 (hereinafter also collectively referred to as "device 200") that operate as slaves.
[0026] The PLC 100 has a port 151 for transmitting and receiving communication frames. Each of the devices 200-1 to 200-5 has an IN port 251 (first port) and an OUT port 252 (second port) for transmitting and receiving communication frames. Basically, the IN port 251 is a port to which a communication frame is input, and the OUT port 252 is a port from which a communication frame is output. However, regardless of the names of the IN port 251 and the OUT port 252, any port can receive and transmit communication frames.
[0027] The relay device 300 has a first port 351, a second port 352, a third port 353, a fourth port 354, a fifth port 355, and a sixth port 356 for transmitting and receiving communication frames. When the relay device 300 receives a communication frame at a certain port, it transmits the received frame from another port determined according to a predetermined rule. The predetermined rule may be determined cyclically, such as first port 351 → second port 352 → third port 353 →...
[0028] 1A, the PLC 100, the relay device 300, and the device 200 are connected in this order. More specifically, a communication frame transmitted from the port 151 of the PLC 100 is transferred in the order of the cable 20, the first port 351 of the relay device 300, the second port 352 of the relay device 300, the cable 21, the IN port 251 of the device 200-1, the OUT port 252 of the device 200-1, the cable 22, the IN port 251 of the device 200-2, the OUT port 252 of the device 200-2, the cable 23, the IN port 251 of the device 200-3, the OUT port 252 of the device 200-3, the cable 24, the IN port 251 of the device 200-4, the OUT port 252 of the device 200-4, the cable 25, and the IN port 251 of the device 200-5, and then returns to the port 151 of the PLC 100 via the same route.
[0029] In this way, in a daisy chain connection, a communication frame can be transmitted in both directions through the cables 20 to 25 connected to the slaves. At this time, the IN port 251 and the OUT port 252 of the device 200 both transmit and receive communication frames.
[0030] Therefore, if any fault occurs in any of the cables or devices, communication frames cannot be transferred beyond the part where the fault occurred. Therefore, it can be considered a "non-redundant configuration" that does not have redundancy against faults.
[0031] In this specification, the term "non-redundant configuration" refers to a topology in which, if a cable connecting slaves is cut, some slaves may not be able to receive communication frames. A daisy chain connection is known as an example of a "non-redundant configuration." In a daisy chain connection, there exists a device 200 (slave) that has no cable connected to its OUT port 252.
[0032] 1(B), in comparison with the daisy chain connection shown in FIG. 1(A), the ring-connected control system 1B adds a cable 26 that connects the OUT port 252 of the device 200-5 and the third port 353 of the relay device 300. By adding the cable 26, a communication frame that arrives at the device 200-5 is transmitted from the OUT port 252 of the device 200-5, not from the IN port 251 of the device 200-5. The communication frame then returns to the port 151 of the PLC 100 via the cable 26 and the relay device 300.
[0033] In the ring connection shown in FIG. 1B, the cable 26 is a cable forming a detour and constitutes at least a part of a redundant path. That is, by adding the cable 26, a ring-shaped loop path is formed in which a communication frame transmitted from the second port 352 of the relay device 300 passes through the devices 200-1 to 200-5 and returns to the third port 353 of the relay device 300. In such a ring connection, the communication frame is transmitted in one direction through each of the cables 20 to 26 connected to the slaves. As a result, the IN port 251 of the device 200 is responsible for receiving the communication frame, and the OUT port 252 of the device 200 is responsible for transmitting the communication frame.
[0034] The path along which the communication frames circulate as described above is also referred to as a “redundant configuration.” In the ring connection shown in FIG.
[0035] In this specification, the term "redundant configuration" refers to a topology that allows communication frames to continue circulating even if the cable connecting the slaves is cut. A known example of a "redundant configuration" is a ring connection. In a ring connection, a cable is connected to the IN port 251 and the OUT port 252 of every device 200.
[0036] In the redundant configuration 10, even if some kind of failure occurs in any of the cables or any of the devices, the communication frame can be looped back at the location where the failure occurred, so that the frame can be transmitted to the remaining devices via the redundant path.
[0037] Fig. 2 is a schematic diagram showing a control system 1 including a plurality of redundant configurations 10 shown in Fig. 1(A). Referring to Fig. 2, the control system 1 includes three redundant configurations 10-1, 10-2, and 10-3. In the redundant configuration 10-1, a ring connection is formed with cables 21 to 26, in the redundant configuration 10-2, a ring connection is formed with cables 31 to 36, and in the redundant configuration 10-3, a ring connection is formed with cables 41 to 46.
[0038] Here, the behavior when a fault occurs in any of the ring connections will be described. Fig. 3 is a diagram for explaining the behavior of communication frames when a failure occurs at one point in the control system 1 shown in Fig. 2. With reference to Fig. 3, for example, a case is assumed in which a failure such as a break occurs in the cable 23 connecting the OUT port 252 of the device 200-2 and the IN port 251 of the device 200-3 in the redundant configuration 10-1.
[0039] In this case, since the communication frame cannot be transmitted from the OUT port 252 of the device 200 - 2 , the device 200 - 2 transmits the communication frame from the IN port 251 instead of the OUT port 252 . As a result, the communication frame is transferred in the following order: cable 22, OUT port 252 of device 200-1, IN port 251 of device 200-1, cable 21, third port 353 of relay device 300, cable 26, OUT port 252 of device 200-5, IN port 251 of device 200-5, cable 25, OUT port 252 of device 200-4, IN port 251 of device 200-4, cable 24, OUT port 252 of device 200-3, IN port 251 of device 200-3 (loopback), OUT port 252 of device 200-3, cable 24, IN port 251 of device 200-4, OUT port 252 of device 200-4, cable 25, IN port 251 of device 200-5, OUT port 252 of device 200-5, and cable 26.
[0040] By using such a transfer path for a communication frame, the communication frame passes through all of the devices 200 included in the redundant configuration 10-1. That is, in the control system 1, communication continues even if a failure occurs at any one point.
[0041] Next, the behavior when multiple failures occur in any of the ring connections will be described. Fig. 4 is a diagram for explaining the behavior of communication frames when two failures occur in the control system 1 shown in Fig. 2. With reference to Fig. 4, it is assumed that, in addition to the failures shown in Fig. 3, a failure such as a break also occurs in the cable 33 connecting the OUT port 252 of the device 200-2 and the IN port 251 of the device 200-3 in the redundant configuration 10-2.
[0042] In this case, not only in the redundant configuration 10-1 but also in the redundant configuration 10-2, the communication frame cannot be transmitted from the OUT port 252 of the device 200-2, so the device 200-2 transmits the communication frame from the IN port 251 instead of the OUT port 252. As a result, the communication frame is transferred in the order of the cable 32, the OUT port 252 of the device 200-1, the IN port 251 of the device 200-1, the cable 31, the third port 353 of the relay apparatus 300, the cable 36, the OUT port 252 of the device 200-5, the IN port 251 of the device 200-5, the cable 35, the OUT port 252 of the device 200-4, the IN port 251 of the device 200-4, the cable 34, the OUT port 252 of the device 200-3, and the IN port 251 of the device 200-3, but is discarded when the communication frame reaches the IN port 251 of the device 200-3.
[0043] That is, if the same communication frame is received multiple times at the OUT port 252 of the device 200 (communication slave) whose cable connected to the IN port 251 is disconnected, the communication frame is discarded. As a result, the communication frame does not return to the master, and communication cannot continue.
[0044] The inventors of the present application have discovered a new problem in that in a network having such a redundant configuration, when multiple failures occur, communication frames cannot be transferred.
[0045] Here, we will explain why communication frames are discarded. In EtherCAT, information called a "Circulating bit" is added to communication frames to prevent them from circulating forever between slaves without returning to the master if some kind of failure occurs in the network.
[0046] The circulating bit is assigned to an area called EtherCAT Datagrams in the communication frame. The initial value of the circulating bit in the communication frame sent from the master is set to "0".
[0047] If the Circulating bit is "0", it means that the communication frame has not circulated, and if the Circulating bit is "1", it means that the communication frame has circulated only once.
[0048] When each of the devices 200 receives a communication frame (at the OUT port 252) while the IN port 251 is in a link-off state (a state in which communication is not possible due to some kind of failure), the device 200 performs one of the following operations depending on the value of the Circulating bit contained in the received communication frame.
[0049] (1) If the circulating bit is "0", update the circulating bit of the received communication frame to "1" and continue forwarding the communication frame.
[0050] (2) If the Circulating bit is “1”, discard the received communication frame.
[0051] The process based on the circulating bit will be described with reference to the above-mentioned FIG. 3 and FIG.
[0052] In the case of a single failure as shown in FIG. 3, when a communication frame is received at the OUT port 252 of the device 200-3 in the redundant configuration 10-1, the circulating bit of the communication frame is updated from “0” to “1”, and forwarding of the communication frame continues.
[0053] In contrast, in the case of two failures as shown in FIG. 4, when a communication frame is received at the OUT port 252 of the device 200-3 in the redundant configuration 10-1, the circulating bit of the communication frame is updated from "0" to "1" and forwarding of the communication frame continues. However, when a communication frame is received at the OUT port 252 of the device 200-3 in the redundant configuration 10-2, the circulating bit of the communication frame is already "1", so it is not forwarded any further and is discarded.
[0054] The control system according to the present embodiment provides a means for preventing a situation in which a communication frame cannot be transferred when there is a possibility that the communication frame cannot be transferred as described above. The configuration, processing, functions, etc. for realizing such a means will be described in detail below.
[0055] As shown in FIG. 3, if a corresponding redundant path is disconnected in a state where one failure occurs, some of the devices 200 will be unable to communicate when another failure occurs in the redundant configuration 10. For example, if a further failure such as a break occurs in the cable 24 connecting the OUT port 252 of the device 200-3 and the IN port 251 of the device 200-4 in the redundant configuration 10-1, the device 200-3 will not be able to receive communication frames because both the IN port 251 and the OUT port 252 will be linked off. In order to prevent such potential problems, information on a failure occurring in the network is made available or can be notified. Details will be described later.
[0056] It may also be determined that a situation in which communication is disabled for only some of the devices 200 is acceptable, compared to a situation in which communication is disabled for all of the devices 200.
[0057] <B. Hardware Configuration Example> Next, a hardware configuration example of each device constituting the control system 1 according to the present embodiment will be described.
[0058] (b1: Control Device (PLC100)) FIG. 5 is a schematic diagram showing a hardware configuration example of the PLC100 of the control system 1 according to the present embodiment. Referring to FIG. 5, the PLC100 includes, as main hardware components, a processor 102, a main memory 104, a storage 110, a field network controller 112, and a local bus controller 114. These hardware components are electrically connected via an internal bus 118.
[0059] The processor 102 corresponds to an arithmetic processing unit that executes control arithmetic, and is composed of a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), or the like. Specifically, the processor 102 reads out a program stored in the storage 110, expands it in the main memory 104, and executes it, thereby realizing a control arithmetic according to a control target and various processes as described later. In the configuration example shown in FIG. 5, the processor 102 periodically executes the user program 1104.
[0060] The main memory 104 is composed of a volatile storage device such as a DRAM (Dynamic Random Access Memory) or an SRAM (Static Random Access Memory). The storage 110 is composed of a non-volatile storage device such as an SSD (Solid State Drive) or an HDD (Hard Disk Drive), for example.
[0061] The storage 110 stores a system program 1102 for implementing basic functions, a user program 1104 created according to a control target, and system setting information 1106 for determining processing as described below. The system program 1102 implements basic functions in the PLC 100 and can therefore be regarded as at least a part of the control program.
[0062] The field network controller 112 corresponds to a communication unit, and is connected to a network configured to circulate communication frames. More specifically, the field network controller 112 has a port 151, and is responsible for transmitting and receiving communication frames. The field network controller 112 of the PLC 100 functions as a communication master. The field network controller 112 may have a synchronization counter for periodically transmitting and receiving communication frames.
[0063] The local bus controller 114 is electrically connected to one or more functional units 116 via an internal bus 118. The functional units 116 include functions for exchanging various signals with the controlled object. The functional units 116 have, for example, one or more of a DI (Digital Input) function for receiving a digital signal from the controlled object, a DO (Digital Output) function for outputting a digital signal to the controlled object, an AI (Analog Input) function for receiving an analog signal from the controlled object, and an AO (Analog Output) function for outputting an analog signal to the controlled object. Furthermore, the functional units 116 may include a controller that implements special functions such as PID (Proportional Integral Derivative) control and motion control.
[0064] FIG. 5 shows an example of a configuration in which the processor 102 executes a program to provide the necessary functions, but some or all of these provided functions may be implemented using a dedicated hardware circuit (e.g., an Application Specific Integrated Circuit (ASIC) or a Field-Programmable Gate Array (FPGA)). Alternatively, the main part of the PLC 100 may be realized using hardware that conforms to a general-purpose architecture (e.g., an industrial PC based on a general-purpose PC). In this case, virtualization technology may be used to run multiple operating systems (OSs) with different uses in parallel, and necessary applications may be executed on each OS.
[0065] Furthermore, the PLC 100 may be configured to integrate the functions of a display device, a support device, and the like.
[0066] (b2:Device 200) Fig. 6 is a schematic diagram showing an example of a hardware configuration of a device 200 of a control system 1 according to the present embodiment. Referring to Fig. 6, the device 200 includes, as main hardware components, a control circuit 206, a field network controller 212, and a functional module 220.
[0067] The control circuit 206 is an arithmetic processing unit that mainly executes processing in the device 200. The control circuit 206 typically includes a processor 202, a main memory 204, and a storage 210. The processor 202 is configured with a CPU, a GPU, or the like. The main memory 204 is configured with a volatile storage device such as a DRAM or an SRAM, or the like. The storage 210 is configured with a non-volatile storage device such as an SSD, or the like. Note that a ROM (Read Only Memory) may be adopted as the storage 210.
[0068] The control circuit 206 may be implemented using a dedicated hardware circuit (eg, ASIC or FPGA).
[0069] The field network controller 212 has an IN port 251 and an OUT port 252, and is responsible for transmitting and receiving communication frames. The field network controller 212 of the device 200 functions as a communication slave. The field network controller 212 may have a synchronization counter for periodically transmitting and receiving communication frames.
[0070] The functional module 220, like the functional unit 116 shown in FIG. 5, is responsible for processing such as exchanging various signals with the controlled object.
[0071] (b3: relay device 300) Fig. 7 is a schematic diagram showing an example of a hardware configuration of relay device 300 of control system 1 according to the present embodiment. Referring to Fig. 7, relay device 300 includes, as main hardware components, a control circuit 306 and a field network interface 312.
[0072] The control circuit 306 is an arithmetic processing unit that mainly executes the transfer process of communication frames in the relay device 300. The control circuit 306 typically includes a processor 302, a main memory 304, and a storage 310. The processor 302 is configured with a CPU, a GPU, or the like. The main memory 304 is configured with a volatile storage device such as a DRAM or an SRAM, or the like. The storage 310 is configured with a non-volatile storage device such as an SSD, or the like. Note that a ROM may be adopted as the storage 310.
[0073] The control circuit 306 may be implemented using a dedicated hardware circuit (eg, ASIC or FPGA).
[0074] The field network interface 312 has a first port 351, a second port 352, a third port 353, a fourth port 354, a fifth port 355, and a sixth port 356, and includes a receiving circuit and a transmitting circuit (not shown) for communication frames.
[0075] <C. Overview> When the control system according to the present embodiment may fall into a state where the transfer of communication frames as described above cannot be performed, means are provided to prevent the system from falling into a state where the transfer of communication frames cannot be performed.
[0076] As described above, when the device 200 with the IN port 251 in the link-off state receives a communication frame at the OUT port 252, the value of the circulating bit is evaluated. That is, a situation where there are a plurality of devices 200 with the IN port 251 in the link-off state and these devices 200 can receive communication frames at the OUT port 252 should be avoided. As a method of avoiding such a situation, when the IN port 251 of any one of the devices 200 is in the link-off state, it is conceivable to prevent the communication frame from being transmitted through a redundant path. That is, although the IN port 251 of the device 200 may be in the link-off state due to various factors, if the redundant path is cut off, the communication frame will not be received at the OUT port 252 of the device 200. As a result, even if a plurality of devices 200 with the IN port 251 in the link-off state occur, the communication frame will not reach the OUT ports 252 of these devices 200, so the communication frame will not be discarded during transmission.
[0077] Therefore, in the control system according to the present embodiment, when a device 200 in which the IN port 251 is linked off and a communication frame can reach the OUT port 252 is detected on the network, the redundant paths are disconnected for redundant configurations 10 included in the network other than the redundant configuration 10 in which the detected device 200 is included. This eliminates the existence of multiple devices 200 in which the IN port 251 is linked off and a communication frame can reach the OUT port 252, making it possible to prevent communication frames from being discarded mid-transmission.
[0078] The cancellation conditions for canceling the redundant configuration 10 include that the cable connected to the IN port 251 of the target device 200 (slave) is disconnected and that a communication frame can be received at the OUT port 252. As a more specific determination method, it can be determined that the cancellation conditions are met when the cable in which the disconnection has been detected is included in any of the redundant configurations 10 and the cable in which the disconnection has been detected is not a cable (redundant path) that should be disconnected to cancel the redundant configuration 10.
[0079] Fig. 8 is a diagram for explaining a method for preventing a communication frame from being discarded midway through transmission in control system 1 according to the present embodiment. With reference to Fig. 8, for example, a case is assumed in which a fault such as a break occurs in cable 23 connecting OUT port 252 of device 200-2 and IN port 251 of device 200-3 in redundant configuration 10-1.
[0080] When it is detected that IN port 251 of device 200-3 in redundant configuration 10-1 has been linked off ((1) cable disconnection detection), the redundant paths (cables 36 and cable 46) of redundant configurations 10-2 and 10-3 other than redundant configuration 10-1 are disconnected ((2) redundant path disconnection).
[0081] In the redundant configuration 10-1, the cable 23 is cut, changing from a ring connection to a non-ring connection. The IN port 251 is in a link-off state, and no further device 200 to which a communication frame can reach the OUT port 252 will occur.
[0082] Also, in the redundant configurations 10-2 and 10-3, since the redundant cables 36 and 46 are cut, it has changed from a ring connection (redundant configuration 10) to a daisy-chain connection (non-redundant configuration), and for any device 200, no communication frame will reach the OUT port 252.
[0083] In this way, when a link-off occurs in any redundant configuration 10, by cutting the redundant paths of the other redundant configurations 10 and releasing the redundant configuration 10, it is possible to prevent the abandonment of communication frames during transmission.
[0084] Hereinafter, an implementation example for realizing the release of the redundant configuration 10 as described above will be described. <D. Implementation Example 1: Logical Release> As Implementation Example 1, a configuration for logically releasing the redundant configuration 10 will be described. The path through which the communication frame is transmitted can be logically cut or connected by a command from the master. More specifically, each of the devices 200 has an ESC (EtherCAT Slave Controller) and can arbitrarily open and close its respective ports according to a command from the master. When the port is closed, even if it is physically connected to other ports via a cable, it can be put into a logically disconnected state (link-off).
[0085] The master PLC100 has system setting information 1106 (see FIG. 5). The system setting information 1106 includes information such as (1) all slaves constituting the network and the cables connecting the slaves, (2) the redundant configuration 10 constituted by the slaves and the cables, and (3) the cables serving as redundant paths in the redundant configuration 10.
[0086] Therefore, the master PLC 100 can grasp the slaves and network topology included in the target network. Also, the master PLC 100 can obtain information such as the transfer path based on the information included in the communication frame that has traveled around the network and returned to the master.
[0087] Fig. 9 is a schematic diagram showing a main part of a functional configuration related to communication processing of PLC 100 included in control system 1 according to the present embodiment. Referring to Fig. 9, PLC 100 includes, as functional configuration related to the network, a communication status monitoring module 150, a release necessity determination module 152, a network management module 154, and a notification module 156. The functional configuration shown in Fig. 9 is typically realized by processor 102 of PLC 100 executing system program 1102 (Fig. 5). However, a circuit configuration included in field network controller 112 of PLC 100 may realize all or a part of the functional configuration shown in Fig. 9.
[0088] The communication status monitoring module 150 monitors the communication status in the network. More specifically, the communication status monitoring module 150 monitors the communication status of the devices 200 included in the network (e.g., whether there is a response) and the communication status (connected / disconnected) of the cables connecting the devices 200. The communication status monitoring module 150 can detect that any cable has been disconnected or reconnected based on a change in the communication status.
[0089] The release necessity determination module 152 determines whether or not it is necessary to release or reconfigure the redundant configuration 10, depending on the result of detection of cable disconnection or reconnection by the communication status monitoring module 150. For example, when a disconnection of any cable included in the network is detected, the release necessity determination module 152 determines whether or not the device 200 (communication slave) connected to the cable where the disconnection was detected satisfies the release condition.
[0090] When the cancellation condition is satisfied, the network management module 154 cancels the redundant configuration 10 included in the network. That is, depending on the result of the determination made by the cancellation necessity determination module 152 that the cancellation condition is satisfied, the network management module 154 generates and transmits a command to open or close a port to the device 200 connected to the target redundant path. More specifically, the network management module 154 issues a command to close the OUT port 252 to the device 200 (communication slave) to which the cable to be disconnected in order to cancel the target redundant configuration 10 is connected. For example, in the example shown in FIG. 8, the PLC 100 issues a command to the device 200-5 of the redundant configuration 10-2 to close the OUT port 252. Close At the same time, it sends to device 200-5 of redundant configuration 10-3 a command to open OUT port 252. These commands cause cables 36 and 46, which are redundant paths, to be logically disconnected.
[0091] Furthermore, when the failure that occurred in cable 23 is restored, network management module 154 may reconnect cables 36 and 46, which are redundant paths. That is, when the cable in which disconnection was detected is reconnected, network management module 154 may reconfigure all of the released redundant configurations. In the example shown in Fig. 8, network management module 154 transmits a command to device 200-5 in redundant configuration 10-2 to close OUT port 252, and transmits a command to device 200-5 in redundant configuration 10-3 to close OUT port 252.
[0092] These commands enable the corresponding cables to be disconnected and reconnected. When multiple cables constituting a redundant path are disconnected, the ports for each device 200 are Close The order in which the commands are sent may be arbitrary. Also, the timing of sending the commands may be as soon as possible.
[0093] The notification module 156 transmits to the outside information such as the communication state of the network, a change in the communication state, and the transmission of a command to disconnect a redundant path. In particular, the notification module 156 may notify an arbitrary output destination by an arbitrary method of a state in which a redundant configuration included in the network has been released.
[0094] Fig. 10 is a flowchart of a communication control method in implementation example 1 of the PLC 100 included in the control system 1 according to the present embodiment. Each step shown in Fig. 10 is typically realized by the processor 102 of the PLC 100 executing the system program 1102 (Fig. 5). However, a circuit configuration included in the field network controller 112 of the PLC 100 may execute all or part of the steps shown in Fig. 10.
[0095] 10, the PLC 100 monitors the communication state in the network (step S100), and determines whether or not a disconnection of any cable included in the network has been detected (step S102).
[0096] If disconnection of any cable included in the network is not detected (NO in step S102), PLC 100 determines whether reconnection of any cable included in the network is detected (step S104). If reconnection of any cable included in the network is not detected (NO in step S104), the process from step S100 onwards is repeated.
[0097] When disconnection of any cable included in the network is detected (YES in step S102), PLC 100 determines whether or not device 200 (communication slave) connected to the cable in which the disconnection was detected satisfies the release condition.
[0098] More specifically, the PLC 100 identifies the location of the cut cable (step S110), and determines whether the cut cable is a cable of any of the redundant configurations (step S112).
[0099] If the cut cable is not a redundant cable (NO in step S112), the PLC 100 notifies information about the cut cable and the associated device 200 (step S114). Then, the process from step S100 onwards is repeated.
[0100] If the cut cable is any of the cables in the redundant configuration (YES in step S112), the PLC 100 determines whether the cut cable is a cable that configures a redundant path (step S116).
[0101] If the disconnected cable is a cable that constitutes a redundant path (YES in step S116), PLC 100 notifies information about the disconnected cable and related device 200, and that the redundant configuration 10 including the disconnected cable has been released (step S118). Then, the processing from step S100 onwards is repeated.
[0102] If the cut cable is not a cable constituting a redundant path (NO in step S116), PLC 100 transmits a command to the corresponding device 200 to cut off the redundant path for the redundant configurations other than the redundant configuration including the cut cable (step S120). That is, if NO in step S116, it means that the release condition is satisfied, and PLC 100 releases the redundant configurations included in the network. Then, PLC 100 notifies information about the cut cable and related device 200, and that all redundant configurations have been released (step S122). Then, the processing from step S100 onwards is repeated.
[0103] If a cable reconnection has occurred within the network (YES in step S104), PLC 100 identifies the location of the reconnected cable (step S130) and determines whether the reconnected cable is a cable in any of the redundant configurations (step S132).
[0104] If the reconnected cable is not a redundant cable (NO in step S132), the PLC 100 notifies information about the reconnected cable and the associated device 200 (step S134), and the processes from step S100 onwards are then repeated.
[0105] If the reconnected cable is any of the cables in a redundant configuration (YES in step S132), PLC 100 determines whether the reconnected cable is a cable that configures a redundant path (step S136).
[0106] If the reconnected cable is a cable that constitutes a redundant path (YES in step S136), PLC 100 notifies information about the reconnected cable and related device 200, and that the redundant configuration including the reconnected cable has been restored (step S138). Then, the processing from step S100 onwards is repeated.
[0107] If the reconnected cable is not a cable constituting a redundant path (NO in step S136), PLC 100 transmits a command to the corresponding device 200 to reconnect the redundant paths for redundant configurations other than the redundant configuration including the reconnected cable (step S140). Then, PLC 100 notifies the corresponding device 200 of information on the reconnected cable and related devices 200, and that all redundant configurations have been restored (step S142). Then, the processing from step S100 onwards is repeated.
[0108] The above-described functional configuration and processing procedure make it possible to realize logical release and reconfiguration of a redundant configuration.
[0109] <E. Implementation Example 2: Physical Release> As Implementation Example 2, a configuration for physically releasing a redundant configuration will be described. In Implementation Example 2, a switch capable of physically disconnecting a redundant path is provided, and by controlling the state of the switch, the redundant configuration is released or reconfigured.
[0110] FIG. 11 is a schematic diagram showing Implementation Example 2 of the control system 1 according to the present embodiment. Referring to FIG. 11, the control system 1 includes a connection management device 500 and switches 510-1, 510-2, 510-3 (hereinafter also collectively referred to as "switch 510"). Switch 510-1 can physically disconnect and connect cable 26, which is a redundant path of redundant configuration 10-1. Switch 510-2 can physically disconnect and connect cable 36, which is a redundant path of redundant configuration 10-2. Switch 510-3 can physically disconnect and connect cable 46, which is a redundant path of redundant configuration 10-3. Note that the structure of switch 510 may be any structure as long as it can block the electrical signal flowing through the cable.
[0111] In this way, for each of the redundant configurations 10-1, 10-2, 10-3 included in the network, switches 510-1, 510-2, 510-3 are respectively provided for cables 26, 36, 46 to be disconnected in order to release redundant configurations 10-1, 10-2, 10-3.
[0112] The network management module 154 of PLC 100 (see FIG. 9) gives a command for each switch 510 provided in the target redundant configuration 10 to disconnect the cable. The connection management device 500 causes the designated switch 510 to disconnect and connect the cable corresponding to the redundant path in response to the command from PLC 100.
[0113] Also, when the cable where disconnection is detected is reconnected, the network management module 154 may give a command for each switch 510 provided in all the released redundant configurations 10 to reconnect the cable.
[0114] FIG. 12 is a flowchart relating to a communication control method in Implementation Example 2 of the PLC 100 included in the control system 1 according to the present embodiment. Each step shown in FIG. 12 is typically realized by the processor 102 of the PLC 100 executing the system program 1102 (FIG. 5). However, the circuit configuration included in the field network controller 112 of the PLC 100 may execute all or part of the steps shown in FIG. 10.
[0115] The flowchart shown in FIG. 12 is obtained by changing step S120 in the flowchart shown in FIG. 10 to step S120A and changing step S140 to step S140A.
[0116] In step S120A, the PLC 100 transmits a command for disconnecting the redundant path to the connection management device 500 for redundant configurations 10 other than the redundant configuration 10 including the disconnected cable (step S120A). The connection management device 500 drives the corresponding switch 510 according to the command from the PLC 100 to disconnect the redundant path in which each switch 510 is arranged.
[0117] In step S140A, the PLC 100 transmits a command for reconnecting the redundant path to the connection management device 500 for redundant configurations 10 other than the redundant configuration 10 including the reconnected cable (step S140A). The connection management device 500 drives the corresponding switch 510 according to the command from the PLC 100 to reconnect the redundant path in which each switch 510 is arranged.
[0118] For other steps, since they are the same as the corresponding steps in the flowchart shown in FIG. 10, detailed descriptions will not be repeated.
[0119] With the above functional configuration and processing procedure, physical release and reconfiguration of the redundant configuration 10 can be realized.
[0120] <F. Notification and Use of Information> Next, an example of information notification by the notification module 156 (FIG. 9) of the PLC 100 and an example of information usage will be described.
[0121] As described above, in a state where the redundant configuration 10 is released due to the occurrence of some kind of failure, the occurrence of a further failure may disable communication among some of the devices 200. For this reason, it is effective to notify the user so that the failure can be quickly restored. Such notification can be made via a support device or HMI (Human Machine Interface) connected to the PLC 100.
[0122] (f1: Support device) Fig. 13 is a schematic diagram showing an example of a hardware configuration of support device 400 in control system 1 according to the present embodiment. Referring to Fig. 13, support device 400 is realized, as an example, using hardware (for example, a general-purpose personal computer) conforming to a general-purpose architecture.
[0123] The support device 400 provides an integrated development environment that enables settings for the PLC 100 and the device 200 of the control system 1, and the creation of a user program 1104 executed by the PLC 100 in an integrated manner. In the integrated development environment, debugging, simulation, and the like may be possible.
[0124] 13, the support device 400 includes, as main hardware components, a processor 402, a main memory 404, an input unit 406, a display unit 408, a storage 410, a communication controller 412, an optical drive 416, and a USB controller 424. These hardware components are electrically connected via an internal bus 228.
[0125] The processor 402 is composed of a CPU, a GPU, and the like, and realizes the functions of the support device 400 by reading out a program stored in the storage 410, expanding it in the main memory 404, and executing it.
[0126] The main memory 404 is configured with a volatile storage device such as a DRAM or an SRAM, etc. The storage 410 is configured with a non-volatile storage device such as an HDD or an SSD, etc.
[0127] The storage 410 stores an OS 4102 for implementing basic functions, a development program 4104 for implementing an integrated development environment, and the like. The development program 4104 provides the integrated development environment by being executed by the processor 402.
[0128] The input unit 406 is composed of a keyboard, a mouse, and the like, and accepts user operations. The display unit 408 is composed of a display and various indicators, and outputs the processing results from the processor 402, etc.
[0129] The communication controller 412 exchanges data with any information processing device via any higher-level network.
[0130] The optical drive 416 can read any data from a storage medium 418 (eg, an optical storage medium such as a DVD) that non-transiently stores a computer-readable program, and can write any data to the storage medium 418 .
[0131] A USB controller 424 transmits and receives data to and from any information processing device via a USB connection.
[0132] A computer-readable program may be read from a storage medium 418 that non-transiently stores the program and installed in the storage 410. Alternatively, various programs executed by the support device 400 may be installed by downloading them from a server device on a network. In addition, the functions provided by the support device 400 according to the present embodiment may be realized by utilizing some of the modules provided by the OS 4102.
[0133] During operation of the control system 1, the support device 400 may be removed from the PLC 100.
[0134] Information can be presented to the user in any display format via the support device 400. The user interface screens shown below may be realized by the processor 402 of the support device 400 executing programs such as the OS 4102 and the development program 4104.
[0135] Fig. 14 is a schematic diagram showing an example of a user interface screen provided by support device 400 of control system 1 according to the present embodiment. Referring to Fig. 14, user interface screen 450 includes object 452 indicating a network configuration. On object 452, object 454 indicating the occurrence of a fault is displayed in association with a location where some fault has occurred. In the example shown in Fig. 14, together with object 454, the words "Fault Occurring" are also displayed.
[0136] By referring to a user interface screen 450 such as that shown in FIG. 14, the user can grasp at a glance the location where a failure has occurred within the network.
[0137] As described above, when a failure occurs in a cable that constitutes a redundant configuration 10 but is not a redundant path, the redundant paths are also disconnected for other redundant configurations 10. When this state occurs, the user interface screen 450 also displays an object 456 indicating that all redundant configurations 10 have been released.
[0138] Note that disconnected redundant routes may also be displayed on the user interface screen 450. However, since a disconnected redundant route is not an essential failure, in order to prevent confusion of the user, the disconnected redundant route may not be displayed.
[0139] Fig. 15 is a schematic diagram showing another example of a user interface screen provided by the support device 400 of the control system 1 according to the present embodiment. Referring to Fig. 15, a user interface screen 460 includes a list display object 462 showing the state of each port of the device 200 (slave) included in the network.
[0140] The list display object 462 includes identification information 464 for identifying each slave, an IN port display 466 indicating the IN port 251 of each slave, and an OUT port display 468 indicating the OUT port 252. A status display 467 indicating the status of the slave's IN port 251 is displayed in association with the IN port display 466. Similarly, a status display 469 indicating the status of the slave's OUT port 252 is displayed in association with the OUT port display 468.
[0141] 3, the OUT port 252 of the device 200-2 (slave 02) and the IN port 251 of the device 200-3 (slave 03) are displayed as "Link Off." By referring to such a network status display, the user can quickly determine the location of the fault in the network.
[0142] The display of "link off", which indicates the occurrence of a fault, may be displayed in a different manner from "connected", which indicates a normal state.
[0143] Fig. 16 is a schematic diagram showing yet another example of a user interface screen provided by the support device 400 of the control system 1 according to the present embodiment. Referring to Fig. 16, a user interface screen 470 includes an event log 472 relating to the network.
[0144] The event log 472 may be generated in response to an event registered in advance in the PLC 100. In the example shown in Fig. 16, an event log 472 is generated when a failure occurs as shown in Fig. 3, and another event log 472 is generated when the redundant configuration 10 is released.
[0145] Necessary information can be provided to the user using any user interface screen, not limited to the user interface screens shown in the above-mentioned FIGS.
[0146] (f2: HMI) An HMI may be provided in the control system 1, and necessary information may be displayed on the HMI. The information displayed on the HMI may have the same contents as the user interface screens shown in the above-mentioned Figs. 14 to 16. Alternatively, a user interface screen created arbitrarily according to the control target controlled by the control system 1 may be used. In other words, necessary information can be provided to the user using an arbitrary user interface screen.
[0147] The HMI may be realized using hardware that conforms to a general-purpose architecture (for example, an industrial PC based on a general-purpose PC).
[0148] (f3: User program) Since the PLC 100 can acquire the network status, the acquired network status may be made available for reference by a user program.
[0149] Fig. 17 is a diagram showing an example of a user program 1104 executed by PLC 100 of control system 1 according to the present embodiment. Referring to Fig. 17, user program 1104 is able to use a variable indicating whether or not redundant configuration 10 has been released. Variable 160 used as contact A is turned ON when redundant configuration 10 is maintained, and variable 162 used as contact B is turned ON when redundant configuration 10 has been released. In this way, user program 1104 is able to refer to information indicating whether or not redundant configuration 10 included in the network has been released.
[0150] In user program 1104, it is assumed that processing when the network is normal is defined in processing block 164, and processing when some kind of fault occurs in the network is defined in processing block 166. Here, variable 160 is used as an execution condition for processing block 164, and variable 162 is used as an execution condition for processing block 166.
[0151] By creating such a user program 1104, it is possible to switch between processing when no fault has occurred in the network and processing when some fault has occurred in the network.
[0152] FIG. 17 shows an example of using a variable indicating whether or not the redundant configuration 10 has been released, but the present invention is not limited to this. A dedicated command may be prepared to obtain the status indicating whether or not the redundant configuration 10 has been released as needed, or an event may be prepared that is triggered by the release of the redundant configuration 10.
[0153] (f4: Notification of the need to cancel redundant configuration) In the above description, an implementation example has been described in which when a failure occurs in the network and the occurred failure satisfies a predetermined condition, all redundant configurations 10 included in the network are automatically released. However, the user may be allowed to release all redundant configurations 10. Alternatively, all redundant configurations 10 may be released after obtaining user approval.
[0154] When adopting such an implementation example, the user may be notified that it is necessary to release all redundant configurations 10 included in the network.
[0155] <G. Other Embodiments> In the above description, mainly the case of applying to a network conforming to EtherCAT has been described. However, the application destination of the communication control method according to the present embodiment is not limited to a network conforming to EtherCAT.
[0156] For example, similar to EtherCAT, any communication protocol that adopts a mechanism that does not continuously circulate between slaves is similarly applicable.
[0157] <H. Supplementary Note> The present embodiment as described above includes the following technical ideas.
[0158] [Configuration 1] A control device (100) that operates as a communication master in a network including one or more communication slaves (200), wherein a communication frame transmitted from the communication master is sequentially transferred so as to circulate through the network and return to the communication master, and each of the plurality of communication slaves has an IN port (251) and an OUT port (252), and the control device monitoring means (150) for monitoring the communication state in the network; a determination means (152) for, when a disconnection of any cable included in the network is detected, determining whether or not a communication slave connected to the cable in which the disconnection was detected satisfies a release condition, the release condition including that a cable connected to an IN port of the target communication slave is disconnected and that a communication frame can be received at an OUT port; The control device comprises a management means (154) for releasing a redundant configuration (10) included in the network when the release condition is satisfied.
[0159] [Configuration 2] 2. The control device according to configuration 1, wherein the management means issues a command to close an OUT port to a communication slave to which a cable to be disconnected in order to release a target redundant configuration is connected.
[0160] [Configuration 3] Each of the redundant configurations included in the network is provided with a switch (510) on a cable to be disconnected in order to release the redundant configuration; 2. The control device according to configuration 1, wherein the management means issues a command for each of the switches provided in the target redundant configuration to disconnect a cable.
[0161] [Configuration 4] The control device according to any one of configurations 1 to 3, wherein the determination means determines that the release condition is satisfied when the cable in which the disconnection is detected is included in any redundant configuration and the cable in which the disconnection is detected is not a cable that should be disconnected to release the redundant configuration.
[0162] [Configuration 5] 5. The control device according to any one of configurations 1 to 4, wherein when the same communication frame is received multiple times at an OUT port of a communication slave whose cable connected to its IN port has been disconnected, the communication frame is discarded.
[0163] [Configuration 6] 6. The control device according to any one of configurations 1 to 5, wherein the management unit reconfigures the released redundant configuration when the cable in which the disconnection was detected is reconnected.
[0164] [Configuration 7] 7. The control device according to any one of configurations 1 to 6, further comprising a notification means (156) for notifying that a redundant configuration included in the network has been released.
[0165] [Configuration 8] The computer further comprises an execution means (102) for executing a user program (1104), 8. The control device according to any one of configurations 1 to 7, wherein the user program is capable of referring to information indicating whether a redundant configuration included in the network has been released.
[0166] [Configuration 9] A communication control method executed by a control device (100) operating as a communication master (100) in a network including one or more communication slaves (200), wherein a communication frame transmitted from the communication master is sequentially transferred so as to circulate around the network and return to the communication master, each of the plurality of communication slaves having an IN port (251) and an OUT port (252), and the communication control method includes: A step of monitoring a communication state in the network (S100); and when a disconnection of any of the cables included in the network is detected, determining whether or not a communication slave connected to the cable in which the disconnection was detected satisfies a release condition (S102 to S116), the release condition including that a cable connected to an IN port of the target communication slave is disconnected and that a communication frame can be received at an OUT port; The communication control method includes a step (S120) of canceling a redundant configuration included in the network when the cancellation condition is satisfied.
[0167] [Configuration 10] A control program (1102) executed by a computer (100) operating as a communication master in a network including one or more communication slaves (200), wherein communication frames transmitted from the communication master are sequentially transferred so as to return to the communication master after traversing the network, each of the plurality of communication slaves has an IN port (251) and an OUT port (252), and the control program causes the computer to monitor the communication state in the network (step S100); when a disconnection of any cable included in the network is detected, determine whether a communication slave connected to the cable in which the disconnection is detected satisfies a release condition (steps S102 to S116), the release condition including that the cable connected to the IN port of the target communication slave is disconnected and that a communication frame can be received at the OUT port, when the release condition is satisfied, cause the redundant configuration included in the network to be released (step S120). A control program.
[0168] <I. Advantages> The control system according to the present embodiment can provide a solution to problems such as the discard of communication frames due to the occurrence of multiple failures in a network including a plurality of redundant configurations.
[0169] The embodiments disclosed this time should be considered as illustrative in all respects and not restrictive. The scope of the present invention is shown not by the above description but by the claims, and it is intended that all modifications within the meaning and scope equivalent to the claims are included.
Explanation of Reference Numerals
[0170] 1,1A,1B Control system, 10 Redundant configuration, 20,21,22,23,24,25,26,31,32,33,34,35,36,41,42,43,44,45,46 Cable, 100 PLC, 102,202,302,402 Processor, 104,204,304,404 Main memory, 110,210,310,410 Storage, 112,212 Field network controller, 114 Local bus controller, 116 Functional unit, 118,228 Internal bus, 150 Communication status monitoring module, 151 Port, 152 Necessity judgment module, 154 Network management module, 156 Notification module, 160,162 Variable, 164,166 Processing block, 200 Device, 206,306 Control circuit, 220, function module, 251, IN port, 252, OUT port, 300, relay device, 312, field network interface, 351, first port, 352, second port, 353, third port, 354, fourth port, 355, fifth port, 356, sixth port, 400, support device, 406, input section, 408, display section, 412, communication controller, 416, optical drive, 418, storage medium, 424, USB controller, 450, 460, 470, user interface screen, 452, 454, 456, object, 462, list display object, 464, identification information, 466, IN port display, 467, 469, status display, 468, OUT port display, 472, event log, 500, connection management device, 510, switch, 1102, system program, 1104, user program, 1106, system setting information, 4102 OS, 4104 Development Program.
Claims
1. A control device that operates as a communication master in a network including one or more communication slaves, wherein a communication frame transmitted from the communication master is sequentially transferred so as to circulate around the network and return to the communication master, each of the communication slaves has an IN port and an OUT port, the network includes a plurality of redundant configurations, and the control device: A monitoring means for monitoring a communication state in the network; a determination means for determining, when a disconnection of any cable included in the network is detected, whether or not a communication slave connected to the cable in which the disconnection was detected satisfies a release condition, the release condition including that a cable connected to an IN port of the target communication slave is disconnected and that a communication frame can be received at an OUT port; a control device comprising: a management means for releasing, when the release condition is satisfied, redundant configurations included in the network other than the redundant configuration corresponding to the release condition.
2. 2. The control device according to claim 1, wherein said management means issues a command to close an OUT port to a communication slave to which a cable to be disconnected in order to release a target redundant configuration is connected.
3. Each of the plurality of redundant configurations is provided with a switch on a cable to be disconnected in order to release the redundant configuration; 2. The control device according to claim 1, wherein said management means issues a command for each of said switches provided in said target redundant configuration to disconnect a cable.
4. The control device according to any one of claims 1 to 3, wherein the judgment means determines that the release condition is satisfied when the cable in which the disconnection is detected is included in any redundant configuration and when the cable in which the disconnection is detected is not a cable that should be disconnected to release the redundant configuration.
5. 5. The control device according to claim 1, wherein when the same communication frame is received multiple times at the OUT port of a communication slave whose cable connected to the IN port is disconnected, the communication frame is discarded.
6. 6. The control device according to claim 1, wherein the management means reconfigures the released redundant configuration when the cable in which the disconnection was detected is reconnected.
7. The control device according to claim 1, further comprising a notification unit that notifies a state in which a redundant configuration included in the network has been released.
8. The computer further comprises an execution means for executing a user program, The control device according to claim 1 , wherein the user program is capable of referring to information indicating whether or not a redundant configuration included in the network has been released.
9. A communication control method executed by a control device operating as a communication master in a network including one or more communication slaves, wherein a communication frame transmitted from the communication master is transferred in sequence so as to circulate around the network and return to the communication master, each of the communication slaves has an IN port and an OUT port, the network includes a plurality of redundant configurations, and the communication control method comprises: monitoring a communication state in the network; and when a disconnection of any of the cables included in the network is detected, determining whether or not a communication slave connected to the cable in which the disconnection was detected satisfies a release condition, the release condition including that a cable connected to an IN port of the target communication slave is disconnected and that a communication frame can be received at an OUT port; and when the cancellation condition is satisfied, canceling redundant configurations included in the network other than the redundant configuration corresponding to the cancellation condition.
10. A control program executed by a computer that operates as a communication master in a network including one or more communication slaves, wherein a communication frame transmitted from the communication master is transferred in sequence so as to circulate around the network and return to the communication master, each of the communication slaves has an IN port and an OUT port, the network includes a plurality of redundant configurations, and the control program causes the computer to: monitoring a communication state in the network; and when a disconnection of any cable included in the network is detected, a step of determining whether or not a communication slave connected to the cable in which the disconnection was detected satisfies a release condition, the release condition including that a cable connected to an IN port of the target communication slave is disconnected and that a communication frame can be received at an OUT port; a control program that executes, when the cancellation condition is satisfied, a step of canceling redundant configurations included in the network other than the redundant configuration corresponding to the cancellation condition.
Citation Information
Patent Citations
Packet transmission apparatus, packet transfer method and packet transmission system
JP2007306344A
Ring type network system, and master node thereof
JP2016119616A
Communication apparatus and communication system
JP2019009628A
Network management device, management method, management program, and recording medium
JP2020161998A
Master unit, arithmetic processing unit, programmable logic controller, network, and information processing method
JP2020167554A
