WO2022176370A1 - 通信システム、スレーブ、コントローラ、および、通信方法 - Google Patents

通信システム、スレーブ、コントローラ、および、通信方法 Download PDF

Info

Publication number
WO2022176370A1
WO2022176370A1 PCT/JP2021/046949 JP2021046949W WO2022176370A1 WO 2022176370 A1 WO2022176370 A1 WO 2022176370A1 JP 2021046949 W JP2021046949 W JP 2021046949W WO 2022176370 A1 WO2022176370 A1 WO 2022176370A1
Authority
WO
WIPO (PCT)
Prior art keywords
input
output port
slave
operation mode
controller
Prior art date
Application number
PCT/JP2021/046949
Other languages
English (en)
French (fr)
Inventor
隼太 境
篤紀 久畑
雅史 三島
Original Assignee
パナソニックIpマネジメント株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by パナソニックIpマネジメント株式会社 filed Critical パナソニックIpマネジメント株式会社
Priority to EP21926793.7A priority Critical patent/EP4297363A1/en
Priority to KR1020237031389A priority patent/KR20230146598A/ko
Priority to JP2023500580A priority patent/JPWO2022176370A1/ja
Priority to CN202180093735.1A priority patent/CN116888938A/zh
Priority to US18/263,897 priority patent/US20240106735A1/en
Publication of WO2022176370A1 publication Critical patent/WO2022176370A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • H04L49/113Arrangements for redundant switching, e.g. using parallel planes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0079Receiver details

Definitions

  • the present disclosure relates to communication systems.
  • Patent Document 1 describes a communication system in which a controller and a plurality of slaves are connected in a ring. This communication system confirms the network connection status by periodically transmitting a network presence frame from the controller to a plurality of slaves by broadcasting. Then, based on the confirmation result, the transmission route of the frame is changed.
  • the network connection status can only be confirmed at the timing of transmitting the network presence frame. For this reason, it may take a long time to change the frame transmission path after an abnormality related to network connection occurs.
  • an object of the present disclosure is to provide a communication system and the like that can shorten the time required from the occurrence of an abnormality related to network connection until the frame transmission path is changed, compared to conventional systems. do.
  • a communication system is a communication system that includes a controller and first to N-th slaves (N is an integer equal to or greater than 2).
  • the controller has a first input/output port, a second input/output port, and a controller transmission control section.
  • Each of the first slave to the Nth slave has a third input/output port, a fourth input/output port, a slave transmission control section, and a detection section.
  • the first input/output port and the fourth input/output port of the first slave are connected.
  • the third input/output port of the Nth slave is connected to the second input/output port.
  • the controller transmission control unit generates and transmits a normal frame, receives a disconnection node notification frame, and executes a first controller operation mode and a second controller operation mode.
  • the first controller operation mode repeatedly transmits the normal frame from the first input/output port.
  • the second controller operation mode repeatedly transmits the normal frame from the first input/output port and the second input/output port.
  • the slave transmission control unit transmits and receives the normal frame, generates the disconnected node notification frame, transmits and receives the disconnected node notification frame, and operates in a first slave operation mode and a second slave operation mode. and run In the first slave operation mode, when one of the third input/output port and the fourth input/output port receives the normal frame, the third input/output port and the fourth input/output port receive the normal frame. 4 input/output ports, the normal frame is transmitted from the other input/output port. In the second slave operation mode, when the one input/output port receives the normal frame, the one input/output port transmits the normal frame.
  • the detection unit detects an abnormality related to connection of the third input/output port and an abnormality related to connection of the fourth input/output port.
  • the slave transmission control unit detects an abnormality related to the connection of the third input/output port or the connection of the fourth input/output port when the detection unit detects an abnormality related to the connection of the fourth input/output port when operating in the first slave operation mode.
  • the first slave operation mode is switched to the second slave operation mode.
  • the slave transmission control unit generates the broken node notification frame indicating that a change in the connection state has been detected, and transmits the broken node notification frame from the third input/output port and the fourth input/output port. Attempt to send a frame.
  • the slave transmission control unit transmits the disconnection node notification frame from the other input/output port.
  • the controller transmission control unit controls the first to the second controller operation mode.
  • a slave includes a first input/output port, a second input/output port, a slave transmission control section, and a detection section.
  • the slave transmission control unit transmits and receives a normal frame, generates a disconnected node notification frame, transmits and receives the disconnected node notification frame, and operates in a first slave operation mode, a second slave operation mode, to run.
  • the first slave operation mode when one of the first input/output port and the second input/output port receives the normal frame, the normal frame is received by the first input/output port. and the second input/output port.
  • the second slave operation mode is an operation mode in which, when the normal frame is received by the one input/output port, a normal frame based on the normal frame is transmitted from the one input/output port.
  • the detection unit detects an abnormality related to connection of the first input/output port and an abnormality related to connection of the first input/output port.
  • the slave transmission control unit when operating in the first slave operation mode, detects whether the detection unit detects an abnormality related to the connection of the first input/output port or the connection of the second input/output port. When an abnormality is detected, the first slave operation mode is switched to the second slave operation mode.
  • the slave transmission control unit attempts to transmit a disconnection node notification frame indicating that a change in connection state has been detected from the first input/output port and the second input/output port. At the same time, when the one input/output port receives the disconnection node notification frame, the slave transmission control unit transmits the disconnection node notification frame from the other input/output port.
  • a controller includes a first input/output port, a second input/output port, and a controller transmission control section.
  • the controller transmission control unit generates and transmits a normal frame, and executes a first controller operation mode and a second controller operation mode.
  • the first controller operation mode is an operation mode in which the normal frame is repeatedly transmitted from the first input/output port.
  • the second controller operation mode is an operation mode in which the normal frame is repeatedly transmitted from the first input/output port and the second input/output port.
  • the controller transmission control unit when operating in the first controller operation mode, disconnection indicating that the first input/output port or the second input/output port detects a change in connection state. When a node notification frame is received, the first controller operating mode is switched to the second controller operating mode.
  • a communication method is a communication method performed by a communication system.
  • the communication system includes a controller and first to N-th slaves (N is an integer equal to or greater than 2).
  • the controller has a first input/output port, a second input/output port, and a controller transmission control section.
  • Each of the first to Nth slaves has a third input/output port, a fourth input/output port, a slave transmission control section, and a detection section.
  • the first input/output port and the fourth input/output port of the first slave are connected.
  • the third input/output port of the Nth slave is connected to the second input/output port.
  • the controller transmission control unit generates the normal frame, repeatedly transmits the normal frame from the first input/output port in the first controller operation mode, and performs the second controller operation. mode, the normal frame is repeatedly transmitted from the first input/output port and the second input/output port.
  • the slave transmission control unit of each of the first slave to the Nth slave transmits the normal frame to the third input/output port and the fourth input/output port in the first slave operation mode.
  • the normal frame is transmitted from the other input/output port of the third input/output port and the fourth input/output port. Further, when the one input/output port receives the normal frame in the second slave operation mode, the slave transmission control unit transmits the normal frame from the one input/output port.
  • the detection unit detects an abnormality related to connection of the third input/output port and an abnormality related to connection of the fourth input/output port.
  • the slave transmission control unit detects an abnormality related to the connection of the third input/output port or the connection of the fourth input/output port when the detection unit detects an abnormality related to the connection of the fourth input/output port when operating in the first slave operation mode.
  • the first slave operation mode is switched to the second slave operation mode.
  • the slave transmission control unit generates a broken node notification frame indicating that a change in the connection state has been detected, and transmits the broken node notification frame from the third input/output port and the fourth input/output port. try to send
  • the slave transmission control unit transmits a disconnection node notification frame based on the disconnection node notification frame from the other input/output port.
  • the controller transmission control unit controls the first to the second controller operation mode.
  • the time required from the occurrence of an abnormality related to network connection until the frame transmission route is changed can be reduced to can also be shortened.
  • FIG. 1 is a block diagram showing an example of the configuration of a communication system according to Embodiment 1.
  • FIG. 2 is a block diagram showing an example of a configuration of a controller according to Embodiment 1.
  • FIG. 3 is a block diagram showing an example of a configuration of a slave according to Embodiment 1.
  • FIG. 4 is a schematic diagram showing the transmission path of normal frames.
  • FIG. 5 is a timing chart showing transmission/reception timings of normal frames and operation timings of synchronization timing signals.
  • FIG. 6 is a schematic diagram showing a normal frame transmission route.
  • FIG. 7 is a timing chart showing transmission/reception timings of normal frames and operation timings of synchronization timing signals.
  • FIG. 8 is a schematic diagram showing a state in which a cable disconnection abnormality occurs in the cable according to Embodiment 1.
  • FIG. FIG. 9 is a sequence diagram of the first operation according to Embodiment 1.
  • FIG. 10 is a schematic diagram showing a state in which a phi terminal abnormality occurs in the TX phi terminal according to the first embodiment.
  • 11 is a sequence diagram of a second operation according to Embodiment 1.
  • FIG. FIG. 12 is a schematic diagram showing a state in which a phi terminal abnormality occurs in the RX phi terminal according to the first embodiment.
  • 13 is a sequence diagram of a third operation according to the first embodiment;
  • FIG. FIG. 14 is a schematic diagram showing transmission paths of normal frames.
  • FIG. 15 is a schematic diagram showing recovery from the cable disconnection abnormality of the cable according to the first embodiment.
  • 16 is a sequence diagram of a fourth operation according to Embodiment 1.
  • FIG. 17 is a flowchart showing the operation of the slave according to Embodiment 1.
  • FIG. 18 is a flowchart showing the operation of the slave according to Embodiment 1.
  • FIG. 19 is a flowchart showing the operation of the controller according to Embodiment 1.
  • FIG. 20 is a block diagram showing an example of a configuration of a controller according to Embodiment 2.
  • FIG. FIG. 21 is a schematic diagram showing how slaves are replaced according to the second embodiment.
  • FIG. 22 is a schematic diagram showing how a slave is removed according to the second embodiment.
  • 23 is a block diagram showing an example of the configuration of a communication system according to Embodiment 3.
  • the inventors have found that in a communication system in which a controller and a plurality of slaves are connected in a ring, the time required from the occurrence of an abnormality related to the network connection until the frame transmission route is changed is We have repeatedly studied and experimented on how to shorten the time. As a result, the inventors found that each slave detects an abnormality related to network connection and notifies the controller of the detected abnormality, so that the controller can relatively The knowledge that the occurrence of the abnormality can be confirmed in a short time was obtained. Based on this knowledge, the inventors conducted further studies and experiments. As a result, the following communication system etc. were conceived.
  • a communication system is a communication system that includes a controller and first to N-th slaves (N is an integer equal to or greater than 2).
  • the controller has a first input/output port, a second input/output port, and a controller transmission control section.
  • Each of the first slave to the Nth slave has a third input/output port, a fourth input/output port, a slave transmission control section, and a detection section.
  • the first input/output port and the fourth input/output port of the first slave are connected.
  • the third input/output port of the Nth slave is connected to the second input/output port.
  • the controller transmission control unit generates and transmits a normal frame, receives a disconnection node notification frame, and executes a first controller operation mode and a second controller operation mode.
  • the first controller operation mode repeatedly transmits the normal frame from the first input/output port.
  • the second controller operation mode repeatedly transmits the normal frame from the first input/output port and the second input/output port.
  • the slave transmission control unit transmits and receives the normal frame, generates the disconnected node notification frame, transmits and receives the disconnected node notification frame, and operates in a first slave operation mode and a second slave operation mode. and run In the first slave operation mode, when one of the third input/output port and the fourth input/output port receives the normal frame, the third input/output port and the fourth input/output port receive the normal frame. 4 input/output ports, the normal frame is transmitted from the other input/output port. In the second slave operation mode, when the one input/output port receives the normal frame, the one input/output port transmits the normal frame.
  • the detection unit detects an abnormality related to connection of the third input/output port and an abnormality related to connection of the fourth input/output port.
  • the slave transmission control unit detects an abnormality related to the connection of the third input/output port or the connection of the fourth input/output port when the detection unit detects an abnormality related to the connection of the fourth input/output port when operating in the first slave operation mode.
  • the first slave operation mode is switched to the second slave operation mode.
  • the slave transmission control unit generates the broken node notification frame indicating that a change in the connection state has been detected, and transmits the broken node notification frame from the third input/output port and the fourth input/output port. Attempt to send a frame.
  • the slave transmission control unit transmits the disconnection node notification frame from the other input/output port.
  • the controller transmission control unit controls the first to the second controller operation mode.
  • the normal frame transmission path is the controller , through the first slave to the N-th slave, and then return to the controller again.
  • the slave when the detector detects an abnormality in the connection of the third input/output port or in the connection of the fourth input/output port in any of the slaves, the slave sends a signal to the controller. Then, a broken node notification frame is transmitted. As a result, the controller can receive the disconnection node notification frame in a relatively short period of time after an abnormality related to network connection occurs. Then, when the controller receives the disconnection node notification frame, the controller transmission control unit switches the operation mode from the first controller operation mode to the second controller operation mode.
  • the slave transmission control unit changes the operation mode to the first mode. Switch from the slave mode of operation to a second slave mode of operation.
  • the communication path of the communication frame is changed to a transmission path consisting of two paths, the first path and the second path.
  • the slave transmission control unit when the disconnected node notification frame includes a node count value indicating an integer value of 0 or more, and the slave transmission control unit operates in the first slave operation mode, the following (1) and It may have the feature of (2).
  • the detection unit When the detection unit detects an abnormality related to the connection of the one input/output port, it attempts to transmit a disconnected node notification frame including a node count value indicating 0 from the one input/output port. Then, an attempt is made to transmit a disconnection node notification frame including a node count value indicating 1 from the other input/output port.
  • the operation mode is switched from the first slave operation mode to the second slave operation mode.
  • the other input/output port transmits a broken node notification frame including a node count value obtained by adding 1 to the node count value included in the broken node notification frame.
  • the controller further controls, when the first input/output port and the second input/output port receive a disconnection node notification frame, the node included in the disconnection node notification frame received by the first input/output port.
  • An abnormal position determination unit may be provided for identifying the position where an abnormality occurs based on the count value and the node count value included in the disconnected node notification frame received by the second input/output port.
  • the slave transmission control unit of the slave can also switch the operating mode from the first slave operating mode to the second slave operating mode. In addition, this makes it possible to determine the location of the occurrence of the abnormality.
  • each of the first slave to the Nth slave further controls the first slave according to the timing at which the third input/output port or the fourth input/output port receives a normal frame.
  • a synchronous timing calculator for calculating a synchronous timing signal indicating a synchronous timing at which the N-th slave operates synchronously;
  • the synchronization timing calculation unit receives a disconnection node notification frame at the input/output port on the side of receiving the normal frame, and the detection unit detects an abnormality related to the connection of the input/output port on the side of receiving the normal frame. If detected, the calculation method for calculating the synchronization timing signal may be updated so that the synchronization timing does not change when the input/output port other than the input/output port receives the normal frame.
  • the first slave to the Nth slave can operate in synchronization.
  • the slave transmission control unit detects, when the slave transmission control unit is operating in the first slave operation mode, whether the detection unit detects an abnormality related to the connection of the third input/output port or the fourth input/output port.
  • the MACID (Media Access Control ID) of the slave including the slave transmission control unit may be included in a disconnection node notification frame to be transmitted when an abnormality related to port connection is detected.
  • the controller further includes: and the MACID included in the disconnected node notification frame received by the second input/output port.
  • the controller can determine the type of abnormality.
  • the detection unit may detect recovery from an abnormality related to the connection of the third input/output port and recovery from an abnormality related to the connection of the fourth input/output port.
  • the detection unit recovers from an abnormality related to the connection of the third input/output port or restores the fourth input/output port.
  • the operation mode is switched from the second slave operation mode to the first slave operation mode, and the third input/output port and the fourth input/output are switched.
  • a disconnection note notification frame may be transmitted from the port.
  • the controller transmission control unit changes the operation mode to the A second controller operating mode may be switched to the first controller operating mode.
  • the transmission route can be restored when the abnormality related to the connection is recovered.
  • a slave includes a first input/output port, a second input/output port, a slave transmission control section, and a detection section.
  • the slave transmission control unit transmits the normal frame.
  • the detection unit detects an abnormality related to connection of the first input/output port and an abnormality related to connection of the first input/output port.
  • the detection unit detects an abnormality related to the connection of the first input/output port or the connection of the second input/output port.
  • the operation mode is switched from the first slave operation mode to the second slave operation mode.
  • the slave transmission control unit generates the broken node notification frame indicating that a change in connection state has been detected, and sends the broken node notification from the first input/output port and the second input/output port. Attempt to send a frame.
  • the slave transmission control unit transmits the broken node notification frame from the other input/output port.
  • the slave with the above configuration can transmit a disconnection node notification frame when the detection unit detects an abnormality related to the connection of the first input/output port or an abnormality related to the connection of the second input/output port.
  • the controller can receive the disconnection node notification frame in a relatively short period of time after an abnormality related to network connection occurs. Then, when the controller receives the disconnection node notification frame, it can change the transmission route of the frame.
  • the disconnection node notification frame includes a node count value indicating an integer value of 0 or more
  • the slave transmission control unit operates in the first slave operation mode
  • (1) and (2) may be performed.
  • the detection unit detects an abnormality related to the connection of the first input/output port, it attempts to transmit a disconnected node notification frame including a node count value indicating 0 from the one input/output port. , attempts to transmit a disconnected node notification frame including a node count value of 1 from the other input/output port.
  • the one input/output terminal receives a disconnected node notification frame including a node count value indicating 0, the operation mode is switched from the first slave operation mode to the second slave operation mode.
  • the one input/output port receives the broken node notification frame
  • the other input/output port transmits a broken node notification frame including a node count value obtained by adding 1 to the node count value included in the broken node notification frame. .
  • it may further include a synchronization timing calculation unit that calculates a synchronization timing signal indicating synchronization timing based on the timing at which the first input/output port or the second input/output port receives the normal frame.
  • the synchronization timing calculation unit receives a disconnection node notification frame at the input/output port on the side of receiving the normal frame, and the detection unit detects an abnormality related to the connection of the input/output port on the side of receiving the normal frame. If detected, the calculation method for calculating the synchronization timing signal may be updated so that the synchronization timing does not change when the input/output port other than the input/output port receives the normal frame.
  • the slave transmission control unit detects, when the slave transmission control unit is operating in the first slave operation mode, whether the detection unit detects an abnormality related to the connection of the first input/output port or the second input/output port.
  • the MACID (Media Access Control ID) of the slave including the slave transmission control unit may be included in the disconnection node notification frame to be transmitted when an abnormality related to port connection is detected.
  • the detection unit may detect recovery from an abnormality related to the connection of the first input/output port and recovery from an abnormality related to the connection of the second input/output port.
  • the detection unit recovers from an abnormality related to the connection of the first input/output port or restores the second input/output port.
  • the operation mode may be switched from the second slave operation mode to the first slave operation mode when recovery from an abnormality related to port connection is detected.
  • the slave transmission control unit may transmit a disconnection node notification frame from the first input/output port and the second input/output port.
  • a controller includes a first input/output port, a second input/output port, and a controller transmission control section.
  • the controller transmission control unit generates a normal frame, repeatedly transmits the normal frame from the first input/output port in a first controller operation mode, and transmits the normal frame in a second controller operation mode by: It repeatedly transmits from the first input/output port and the second input/output port. Further, the controller transmission control unit notifies that the first input/output port or the second input/output port detects a change in connection state when operating in the first controller operation mode. is received, the operation mode is switched from the first controller operation mode to the second controller operation mode.
  • the controller with the above configuration can change the communication path of the communication frame by receiving the disconnection note notification frame without transmitting the network presence frame as in the conventional technology.
  • MACID may be included in the disconnected node notification frame.
  • the MACID included in the disconnected node notification frame received by the first input/output port; 2 may include an abnormality type determination unit that determines the type of abnormality based on the MACID included in the disconnected node notification frame received by the input/output port No. 2.
  • the operation mode is changed to the second controller operation mode.
  • the mode of operation may be switched to the first controller mode of operation.
  • a communication method is a communication method performed by a communication system.
  • the communication system includes a controller and first to N-th slaves (N is an integer equal to or greater than 2).
  • the controller has a first input/output port, a second input/output port, and a controller transmission control section.
  • Each of the first to Nth slaves has a third input/output port, a fourth input/output port, a slave transmission control section, and a detection section.
  • the first input/output port and the fourth input/output port of the first slave are connected.
  • the third input/output port of the Nth slave is connected to the second input/output port.
  • the controller transmission control unit generates a normal frame, repeatedly transmits the normal frame from the first input/output port in a first controller operation mode, and transmits the normal frame repeatedly in a second controller operation mode. , a normal frame is repeatedly transmitted from the first input/output port and the second input/output port.
  • the slave transmission control units of the first slave to the Nth slave transmit normal frames to the third input/output port and the fourth input/output port in the first slave operation mode.
  • the normal frame is transmitted from the other input/output port of the third input/output port and the fourth input/output port. Further, when the one input/output port receives a normal frame in the second slave operation mode, the slave transmission control unit transmits the normal frame from the one input/output port.
  • the detection unit detects an abnormality related to connection of the third input/output port and an abnormality related to connection of the fourth input/output port.
  • the slave transmission control unit detects an abnormality related to the connection of the third input/output port or the connection of the fourth input/output port when the detection unit detects an abnormality related to the connection of the fourth input/output port when operating in the first slave operation mode.
  • the first slave operation mode is switched to the second slave operation mode.
  • the slave transmission control unit generates a broken node notification frame indicating that a change in the connection state has been detected, and transmits the broken node notification frame from the third input/output port and the fourth input/output port. try to send
  • the slave transmission control unit transmits the disconnection node notification frame from the other input/output port.
  • the controller transmission control unit transmits the first Switching from the controller operating mode to the second controller operating mode.
  • the normal frame transmission path is the controller , through the first slave to the N-th slave, and then return to the controller again.
  • the slave when the detector detects an abnormality in the connection of the third input/output port or in the connection of the fourth input/output port in any of the slaves, the slave sends a signal to the controller. Then, a broken node notification frame is transmitted. As a result, the controller can receive the disconnection node notification frame in a relatively short period of time after an abnormality related to network connection occurs. Then, when the controller receives the disconnection node notification frame, the controller transmission control unit switches the operation mode from the first controller operation mode to the second controller operation mode.
  • the slave transmission control unit sets the operation mode to the first mode for the slave for which the detection unit has detected an abnormality related to the connection of the third input/output port or the abnormality related to the connection of the fourth input/output port.
  • slave operation mode to a second slave operation mode.
  • the communication path of the communication frame is changed to a transmission path consisting of two paths, the first path and the second path shown below.
  • the first route is from the controller in order, from the first slave to the slave in front of the location where an abnormality related to the connection occurs, and back to the controller again via the first slave (that is, the route related to the connection). path that is looped back at the slave before the abnormality).
  • the second route is from the controller to the Nth slave, the previous slave that has an abnormality related to connection, and returns to the controller again via the Nth slave. route that is looped back at the slave in front of the point).
  • FIG. 1 is a block diagram showing an example of the configuration of a communication system 1 according to Embodiment 1. As shown in FIG.
  • a communication system 1 includes a controller 10 having a first input/output port 11 and a second input/output port 12, and a third input/output port 21 and a fourth input/output port 21, respectively.
  • a plurality of slaves 20 (the first slave 20A, the second slave 20B, and the third slave 20C in FIG. 1 correspond) each having an input/output port 22 .
  • slaves 20 there are three slaves 20, namely, a first slave 20A, a second slave 20B, and a third slave 20C, but the number of slaves 20 is not necessarily three. It need not be limited to a configuration where Further, hereinafter, when there is no need to explicitly distinguish between the first slave 20A, the second slave 20B, and the third slave 20C, the first slave 20A and the second slave 20B and the third slave 20C are simply referred to as slaves 20 as well.
  • the first input/output port 11 and the fourth input/output port 22 of the first slave 20A are connected by a cable 30A.
  • a cable 30B connects the third input/output port 21 of the first slave 20A and the fourth input/output port 22 of the second slave 20B.
  • a cable 30C connects the third input/output port 21 of the second slave 20B and the fourth input/output port 22 of the third slave 20C.
  • a cable 30D connects the third input/output port 21 and the second input/output port 12 of the third slave 20C.
  • the cables 30A, 30B, 30C, and 30D will be referred to as the cables 30A, 30B, 30C, and 30D when there is no need to explicitly distinguish them. It is also simply referred to as cable 30 .
  • the first input/output port 11 has a transmission terminal TX111 and a reception terminal RX112.
  • the second input/output port 12 has a transmission terminal TX121 and a reception terminal RX122.
  • the third input/output port 21 has a transmission terminal TX211 and a reception terminal RX212.
  • the fourth input/output port 22 has a transmission terminal TX221 and a reception terminal RX222.
  • the cable 30 has a first connection path and a second connection path, and the first connection path connects the transmission terminal TX111 and the reception terminal RX222, the transmission terminal TX121 and the reception terminal RX212, or the transmission terminal TX221 and the reception terminal.
  • terminal RX212, and the second connection path connects the transmission terminal TX221 and the reception terminal RX112, the transmission terminal TX211 and the reception terminal RX122, or the transmission terminal TX211 and the reception terminal RX222.
  • FIG. 2 is a block diagram showing an example of the configuration of the controller 10. As shown in FIG.
  • the controller 10 includes a first input/output port 11, a second input/output port 12, a controller transmission control section 13, an abnormality position determination section 14, and an abnormality type determination section 15. have.
  • the first input/output port 11 has a connector 110 having a transmission terminal TX 111 and a reception terminal RX 112 and a PHY 130 .
  • the phi 130 has a TX phi terminal 131 and an RX phi terminal 132. From the TX phi terminal 131, a frame is transmitted to the communication device to which it is connected. Receive frames from the device. TX phi terminal 131 connects to transmit terminal TX111 and RX phi terminal 132 connects to receive terminal RX112.
  • the phi 130 also detects a link between the RX phi terminal 132 and its connected communication device.
  • the second input/output port 12 has a connector 120 having a transmission terminal TX 121 and a reception terminal RX 122 and a phi 150 .
  • the phi 150 has a TX phi terminal 151 and an RX phi terminal 152. From the TX phi terminal 151, a frame is transmitted to the communication device to which it is connected. Receive frames from the device. The TX phi terminal 151 connects to the transmit terminal TX121 and the RX phi terminal 152 connects to the receive terminal RX122.
  • the phi 150 also detects a link between the RX phi terminal 152 and its connected communication device.
  • the controller transmission control unit 13 operates in the first controller operation mode or the second controller operation mode.
  • the controller transmission control unit 13 operates in the first controller operation mode in the initial state.
  • the controller transmission control unit 13 repeatedly transmits normal frames from the first input/output port 11 in the first controller operation mode. More specifically, in the first controller operation mode, the controller transmission control unit 13 controls the phi 130 to repeatedly transmit normal frames from the TX phi terminal 131 to its connection destination communication device.
  • the controller transmission control unit 13 may transmit a normal frame from the first input/output port 11 every predetermined period in the first controller operation mode.
  • the controller transmission control unit 13 repeatedly transmits normal frames from the first input/output port 11 and the second input/output port 12 in the second controller operation mode. More specifically, controller transmission control unit 13 controls phi 130 and phi 150 in the second controller operation mode to transmit normal frames from TX phi terminal 131 and TX phi terminal 151 to their connection. Repeat transmission to the destination communication device.
  • controller transmission control unit 13 may transmit normal frames from the first input/output port 11 and the second input/output port 12 at predetermined intervals in the second controller operation mode.
  • the controller transmission control unit 13 changes the operation mode. from the first controller operating mode to the second controller operating mode.
  • the controller transmission control unit 13 changes the operation mode to the second controller operation mode. to the first controller operation mode.
  • the controller transmission control unit 13 may be realized, for example, by the processor 101 of the controller 10 executing a program stored in the memory 102 of the controller 10 .
  • the abnormal position determination unit 14 determines whether the node indicating an integer value of 0 or more is included in the disconnection node notification frame. Based on the count value, the location where the abnormality occurs is determined. The details of the operation performed by the abnormal position determination unit 14 will be described later.
  • the abnormal position determination unit 14 may be implemented, for example, by the processor 101 of the controller 10 executing a program stored in the memory 102 of the controller 10 .
  • the abnormality type determination unit 15 When the first input/output port 11 and the second input/output port 12 receive the disconnection node notification frame, the abnormality type determination unit 15, based on the MACID of the slave 20 included in the disconnection node notification frame, A determination is made as to the type of abnormality. Details of the operation performed by the abnormality type determination unit 15 will be described later.
  • the abnormality type determination unit 15 may be realized, for example, by executing a program stored in the memory 102 of the controller 10 by the processor 101 of the controller 10 .
  • FIG. 3 is a block diagram showing an example of the configuration of the slave 20. As shown in FIG.
  • the slave 20 includes a third input/output port 21, a fourth input/output port 22, a slave transmission control section 23, a synchronization timing calculation section 24, and a detection section 25.
  • the third input/output port 21 has a connector 210 having a transmission terminal TX 211 and a reception terminal RX 212 and a phi 230 .
  • the phi 230 has a TX phi terminal 231 and an RX phi terminal 232. From the TX phi terminal 231, a frame is transmitted to the communication device to which it is connected. Receive frames from the device.
  • the TX phi terminal 231 connects to the transmit terminal TX211 and the RX phi terminal 232 connects to the receive terminal RX212.
  • Phi 230 also detects a link between RX Phi terminal 232 and its connected communication device.
  • the fourth input/output port 22 has a connector 220 having a transmission terminal TX 221 and a reception terminal RX 222 and a phi 250 .
  • the phi 250 has a TX phi terminal 251 and an RX phi terminal 252. From the TX phi terminal 251, a frame is transmitted to the communication device to which it is connected. Receive frames from the device.
  • the TX phi terminal 251 connects to the transmit terminal TX221 and the RX phi terminal 252 connects to the receive terminal RX222.
  • Phi 250 detects a link between RX Phi terminal 252 and its connected communication device.
  • the detection unit 25 detects an abnormality related to the connection of the third input/output port 21 and an abnormality related to the connection of the fourth input/output port 22 . More specifically, the detection unit 25 detects the third third By detecting an abnormality related to the connection of the input/output port 21 and changing the state in which the phi 250 is detecting the link between the RX phi terminal 252 and the communication device to which it is connected to the state in which it is not detecting, the second 4 is detected.
  • the detection unit 25 detects recovery from an abnormality related to the connection of the third input/output port 21 and recovery from an abnormality related to the connection of the fourth input/output port 22 . More specifically, the detection unit 25 changes from the state in which the phi 230 does not detect the link between the RX phi terminal 232 and the communication device to which it is connected to the state in which the phi 230 detects the link, thereby causing the third
  • the phi 250 changes from the state of not detecting the link between the RX phi terminal 252 and the communication device to which it is connected to the state of detecting , recovery of an abnormality related to the connection of the fourth input/output port 22 is detected.
  • the detection unit 25 may be realized, for example, by the processor 201 of the slave 20 executing a program stored in the memory 202 of the slave 20 .
  • the slave transmission control unit 23 operates in the first slave operation mode or the second slave operation mode.
  • the slave transmission control unit 23 operates in the first slave operation mode in the initial state.
  • the slave transmission control unit 23 transmits the normal frame. , from the other input/output port of the third input/output port 21 and the fourth input/output port 22 . More specifically, in the first slave operation mode, the slave transmission control unit 23 controls the phi 230 and phi 250 so that when the RX phi terminal 232 receives a normal frame, the normal frame is transferred to the TX When the RX phi terminal 252 receives a normal frame, the TX phi terminal 231 transmits the normal frame.
  • the normal frame transmitted by the other input/output port is a normal frame obtained by controlling the phi 230 and phi 250 with respect to the normal frame received by the one input/output port.
  • the received normal frame may become the transmitted normal frame as it is under the control of the phi 230 and the phi 250, that is, the normal frame may be passed through.
  • the received normal frame may be converted into the transmitted normal frame under the control of the phi 230 and the phi 250 .
  • the slave transmission control unit 23 transmits the normal frame. , from one of its input/output ports. More specifically, in the second slave operation mode, the slave transmission control unit 23 controls the phi 230 and phi 250 so that when the RX phi terminal 232 receives a normal frame, the normal frame is transferred to the TX When the RX phi terminal 252 receives a normal frame, the normal frame is transmitted from the TX phi terminal 251 .
  • the detection unit 25 detects an abnormality related to the connection of the third input/output port 21 or the connection of the fourth input/output port 22. is detected, the operation mode is switched from the first slave operation mode to the second slave operation mode. At the same time, the slave transmission control unit 23 attempts to transmit a disconnection node notification frame indicating detection of a change in connection state from the third input/output port 21 and the fourth input/output port 22 . More specifically, the slave transmission control unit 23 controls the phi 230 and phi 250 to attempt transmission of the disconnection node notification frame from the TX phi terminal 231, and transmits the disconnection note notification frame from the TX phi terminal 251. to try.
  • the slave transmission control unit 23 includes the MACID of the slave 20 including the slave transmission control unit 23 in the disconnection node notification frame to be attempted to be transmitted. Also, at this time, the slave transmission control unit 23 detects an abnormality related to the connection of one of the third input/output port 21 and the fourth input/output port 22 by the detection unit 25. Then, from one of the input/output ports, an attempt is made to transmit a disconnected node notification frame including a node count value indicating 0, and from the other input/output port an attempt is made to transmit a disconnected node notification frame including a node count value indicating 1. .
  • the detection unit 25 detects the recovery from the abnormality related to the connection of the third input/output port 21 or the fourth input/output port 22. , the operation mode is switched from the second slave operation mode to the first slave operation mode, and from the third input/output port 21 and the fourth input/output port 22. , send a broken node notification frame. More specifically, the slave transmission control unit 23 controls the phi 230 and phi 250 to transmit a disconnection node notification frame from the TX phi terminal 231 and transmit a disconnection note notification frame from the TX phi terminal 251 .
  • the slave transmission control unit 23 includes the MACID of the slave 20 including the slave transmission control unit 23 in the disconnected node notification frame to be transmitted.
  • the slave transmission control unit 23 detects that the detection unit 25 has recovered from the abnormality related to the connection of one of the third input/output port 21 and the fourth input/output port 22. Then, one of the input/output ports transmits a disconnected node notification frame including a node count value indicating 0, and the other input/output port transmits a disconnected node notification frame including a node count value indicating 1. .
  • the slave transmission control unit 23 transmits the disconnection node notification frame to the other input/output port. Send from the output port. More specifically, the slave transmission control unit 23 controls the phi 230 and the phi 250 to transmit the disconnection node notification frame from the TX phi terminal 251 when the RX phi terminal 232 receives the disconnection node notification frame. When the RX phi terminal 252 receives the disconnection node notification frame, the TX phi terminal 231 transmits the disconnection node notification frame.
  • the broken node notification frame transmitted by the other input/output port is a broken node notification frame obtained by controlling the phi 230 and phi 250 for the disconnected node notification frame received by the one input/output port.
  • the received broken node notification frame may become the broken node notification frame to be transmitted as it is under the control of the phi 230 and phi 250, that is, the broken node notification frame may be passed through.
  • the received broken node notification frame may be converted into the broken node notification frame to be transmitted under the control of the phi 230 and phi 250 .
  • the slave transmission control unit 23 transmits a disconnection node notification frame including a node count value obtained by adding 1 to the node count value included in the disconnection node notification frame received by one input/output port from the other input/output port. Send.
  • the third input/output port 21 or the fourth input/output port 22 receives a disconnection node notification frame including a node count value indicating 0. is received, the operating mode is switched from the first slave operating mode to the second slave operating mode.
  • the third input/output port 21 or the fourth input/output port 22 transmits a disconnection node notification frame including a node count value including 0.
  • the operating mode is switched from the second slave operating mode to the first slave operating mode.
  • the slave transmission control unit 23 may be realized, for example, by the processor 201 of the slave 20 executing a program stored in the memory 202 of the slave 20 .
  • the synchronization timing calculator 24 calculates a synchronization timing indicating a synchronization timing at which all of the plurality of slaves 20 operate in synchronization, based on the timing at which the third input/output port 21 or the fourth input/output port 22 receives normal frames. Calculate timing signals.
  • FIG. 2 is a schematic diagram showing a normal frame transmission path (hereinafter also referred to as a “main transmission path”) when operating in mode.
  • This main transmission path is a normal frame transmission path when the controller transmission control unit 13 and the slave transmission control unit 23 are in the initial state.
  • the main transmission path is the path indicated by the solid arrow.
  • the main transmission path is a transmission path that returns from the controller 10 to the controller 10 via the first slave 20A, second slave 20B, and third slave 20C in order.
  • FIG. 5 shows the transmission/reception timing of the normal frame 50 in the controller 10 and each slave 20 and the synchronization timing calculator 24 of each slave 20 when the transmission path of the normal frame 50 is the main transmission path.
  • 4 is a timing chart showing an example of operation timing of a synchronous timing signal XSYNC; In FIG. 5, the horizontal axis is time t.
  • the synchronization timing calculator 24 of each slave 20 calculates a synchronization timing signal XSYNC that operates in synchronization with each other.
  • the synchronization timing calculation unit 24 determines the number of slaves 20 (here, 3) and the order of connection from the controller 10 in the main transmission path (here, 1 for the first slave 20A and 1 for the second slave 20B). 2 and 3) are stored in the third slave 20C in advance, and the pulse timing T of the synchronization timing signal XSYNC is calculated by (Equation 1).
  • connection order on the transmission path is the connection order from the controller 10 on the main transmission path, which is stored in advance by the synchronization timing calculator 24 .
  • the controller transmission control unit 13 operates in the second controller operation mode
  • the slave transmission control unit 23 of the first slave 20A operates in the first slave operation mode
  • the second slave 20B and the third slave 20B operate in the first slave operation mode.
  • this first redundant transmission path is, for example, when the transmission path for normal frames is the main transmission path, the detector 25 of the second slave 20B is connected to the third input/output port 21. and when the detection unit 25 of the third slave 20C detects an abnormality related to the connection of the fourth input/output port 22, etc., the main transmission path is changed and formed. This is the transmission path that
  • the first redundant transmission path is the path indicated by the solid arrow.
  • the first redundant transmission path consists of a first transmission path and a second transmission path.
  • the first transmission path is the transmission path from the controller 10, through the first slave 20A, the second slave 20B, the first slave 20A, and back to the controller 10, that is, the second slave 20B. This is the route to turn around.
  • the second transmission path is a transmission path that sequentially returns from the controller 10 to the controller 10 via the third slave 20C, that is, a path that loops back at the third slave 20C.
  • connection order of the first slave 20A and the second slave 20B from the controller 10 on the first redundant transmission path has not been changed from the connection order on the main transmission path.
  • connection order of the third slave 20C from the controller 10 on the first redundant transmission path is changed (here, from 3 to 1) from the connection order on the main transmission path.
  • FIG. 7 shows the transmission/reception timing of the normal frame 50 in the controller 10 and each slave 20 and the synchronization timing calculator 24 of each slave 20 when the transmission path of the normal frame 50 is the first redundant transmission path.
  • 4 is a timing chart showing an example of calculated operation timing of a synchronous timing signal XSYNC; In FIG. 7, the horizontal axis is time t.
  • the synchronization timing calculation unit 24 calculates the "connection order on the transmission path" based on the node count value included in the disconnection node notification frame. As a result, the synchronization timing calculator 24 does not change the pulse timing T of the synchronization timing signal XSYNC even if the "connection order in the transmission path" is changed. In this manner, the synchronization timing calculator 24 selects a method for calculating the pulse timing T of the synchronization timing signal XSYNC so that the pulse timing T of the synchronization timing signal XSYNC is not changed even if the "connection order in the transmission path" is changed. Update.
  • the pulse timing T of the synchronization timing signal XSYNC is not changed.
  • the calculation of the "connection order in the transmission path" performed by the synchronization timing calculator 24 when the "connection order in the transmission path" is changed will be described later.
  • the synchronization timing calculation unit 24 may be realized, for example, by executing a program stored in the memory 202 of the slave 20 by the processor 201 of the slave 20 .
  • the cable disconnection abnormality refers not only to an abnormality in which the cable is disconnected, but also to an abnormality in which communication via the cable becomes impossible due to reasons such as disconnection of the cable from the connector.
  • FIG. 8 is a schematic diagram showing how the cable 30C has a cable disconnection abnormality in which the cable 30C is disconnected.
  • FIG. 9 is a sequence diagram of the first operation.
  • the detection unit 25 of the third slave 20C detects an abnormality related to the connection of the fourth input/output port 22 (step S10A).
  • the slave transmission control unit 23 of the third slave 20C changes the operation mode from the first slave operation mode. Switch to the second slave operation mode (step S20A).
  • the slave transmission control unit 23 of the third slave 20C causes the third input/output port 21 and the fourth input/output port 22 to transmit a disconnection node notification frame indicating that a change in the connection state has been detected. try (step S30A).
  • the slave transmission control unit 23 of the third slave 20C causes the MACID of the third slave 20C including the slave transmission control unit 23 to be included in the disconnected node notification frame to be attempted to be transmitted. Also, the slave transmission control unit 23 of the third slave 20C attempts to transmit a disconnection node notification frame including a node count value indicating 1 from the third input/output port 21, and from the fourth input/output port 22, Attempt to send a Broken Node Notification frame containing a node count value of zero.
  • the normal frame transmission path is the main transmission path. Further, as will be described later, due to the occurrence of cable disconnection in the cable 30C, the normal frame transmission path is changed from the main transmission path to the first redundant transmission path. Therefore, in the third slave 20C, the connection order of the third slave 20C from the controller 10 in the normal frame transmission path is changed (here, changed from 3 to 1).
  • the synchronization timing calculator 24 selects a method for calculating the pulse timing T of the synchronization timing signal XSYNC so that the pulse timing T of the synchronization timing signal XSYNC is not changed even if the "connection order in the transmission path" is changed.
  • Update step S50.
  • the detection unit 25 detects an abnormality related to the connection of the input/output port on the side that receives the normal frame
  • the synchronization timing calculation unit 24 receives the normal frame from the next input/output port other than the input/output port.
  • the calculation method for calculating the synchronous timing signal XSYNC is updated so that the synchronous timing at which all of the plurality of slaves 20 operate synchronously does not change when the port receives the signals.
  • the phi 230 disconnects the link between the RX phi terminal 232 and the TX phi terminal 251 of the phi 250 of the third slave 20C to which it is connected. no longer detected. Therefore, in the second slave 20B, the detector 25 of the second slave 20B detects an abnormality related to the connection of the third input/output port 21 (step S10B).
  • the slave transmission control unit 23 of the second slave 20B changes the operation mode from the first slave operation mode. Switch to the second slave operation mode (step S20B).
  • the slave transmission control unit 23 of the second slave 20B attempts transmission of the disconnection node notification frame from the third input/output port 21 and the fourth input/output port 22 (step S30B).
  • the slave transmission control unit 23 of the second slave 20B includes the MACID of the second slave 20B including the slave transmission control unit 23 in the disconnection node notification frame to be attempted to be transmitted. Further, the slave transmission control unit 23 of the second slave 20B tries to transmit a disconnection node notification frame including a node count value indicating 0 from the third input/output port 21, and from the fourth input/output port 22, Attempt to send a broken node notification frame containing a node count value of 1.
  • the normal frame transmission path is the main transmission path. Further, as will be described later, due to the occurrence of cable disconnection in the cable 30C, the normal frame transmission path is changed from the main transmission path to the first redundant transmission path. Therefore, in the second slave 20B, the order of connection from the controller 10 to the third slave 20C on the normal frame transmission path is not changed. Therefore, the synchronization timing calculator 24 of the second slave 20B does not update the calculation method of the pulse timing T of the synchronization timing signal XSYNC.
  • step S40B when the slave transmission control unit 23 of the second slave 20B transmits a disconnection node notification frame from the fourth input/output port 22, the third input/output port 21 of the first slave 20A , receives its broken node notification frame.
  • step S40A when the slave transmission control unit 23 of the third slave 20C transmits a disconnection node notification frame (hereinafter also referred to as "first disconnection node notification frame") from the third input/output port 21, , the second input/output port 12 receives the first broken node notification frame.
  • first disconnection node notification frame a disconnection node notification frame
  • step S40C when the slave transmission control unit 23 of the first slave 20A transmits a disconnection node notification frame (hereinafter also referred to as "second disconnection node notification frame") from the fourth input/output port 22, , the first input/output port 11 receives the second broken node notification frame.
  • a disconnection node notification frame hereinafter also referred to as "second disconnection node notification frame”
  • the abnormality type determination unit 15 detects the first disconnection node Based on the MACID included in the notification frame (here, the MACID of the third slave 20C) and the MACID included in the second disconnection node notification frame (here, the MACID of the second slave 20B), the communication system 1 is determined to be cable disconnection (step S60).
  • the abnormality type determination unit 15 determines that the MACIDs included in the disconnection node notification frames are When different, it is determined that the abnormality that occurred in the communication system 1 is the cable disconnection abnormality.
  • the abnormality type determination unit 15 determines the MACID included in the first disconnection node notification frame (here, the MACID of the third slave 20C) and the MACID included in the second disconnection node notification frame (here, the MACID of the third slave 20C). 2 MACID of the slave 20B), it is determined that the position where the cable disconnection abnormality has occurred is between the third slave 20C and the second slave 20B (step S70).
  • the abnormality type determination unit 15 determines that the MACIDs included in the disconnection node notification frames are At different times, it is determined that the location of the abnormality occurring in the communication system 1 is between the slaves 20 of those MACIDs.
  • the controller transmission control unit 13 switches the operation mode from the first controller operation mode to the second controller operation mode (step S80).
  • the operation mode of the controller transmission control unit 13 is changed from the first controller operation mode to the second controller operation mode. Further, the first operation performed by the communication system 1 changes the operation mode of the slave transmission control unit 23 of the third slave 20C from the first slave operation mode to the second slave operation mode. Further, the first operation performed by the communication system 1 changes the operation mode of the slave transmission control unit 23 of the second slave 20B from the first slave operation mode to the second slave operation mode. As a result, the normal frame transmission path is changed from the main communication path (see FIG. 4) to the first redundant transmission path (see FIG. 6).
  • the communication system 1 does not use the cable 30 in which the cable disconnection abnormality has occurred as the transmission path when the cable disconnection abnormality occurs in the cable 30 when the normal frame transmission path is the main transmission path.
  • the normal frame is transmitted to each slave 20 by changing to the transmission path.
  • FIG. 10 is a schematic diagram showing a state in which the TX phi terminal 231 of the second slave 20B has a phi terminal abnormality that causes the TX phi terminal 231 to stop functioning.
  • FIG. 11 is a sequence diagram of the second operation.
  • the phi terminal abnormality in which the TX phi terminal does not function refers to an abnormality in which the TX phi terminal does not function due to, for example, a phi failure or a problem in the connection path of the TX phi terminal. .
  • the detection unit 25 of the third slave 20C detects an abnormality related to the connection of the fourth input/output port 22 (step S110).
  • the slave transmission control unit 23 of the third slave 20C changes the operation mode from the first slave operation mode. Switch to the second slave operation mode (step S120).
  • the slave transmission control unit 23 of the third slave 20C attempts transmission of the disconnection node notification frame from the third input/output port 21 and the fourth input/output port 22 (step S130).
  • the slave transmission control unit 23 of the third slave 20C causes the MACID of the third slave 20C including the slave transmission control unit 23 to be included in the disconnected node notification frame to be attempted to be transmitted. Also, the slave transmission control unit 23 of the third slave 20C attempts to transmit a disconnection node notification frame including a node count value indicating 1 from the third input/output port 21, and from the fourth input/output port 22, Attempt to send a Broken Node Notification frame containing a node count value of zero.
  • the TX phi terminal 231 of the second slave 20B has a phi terminal abnormality that causes the TX phi terminal 231 of the second slave 20B to stop functioning.
  • transmission of signals from the TX phi terminal 251 of the third slave 20C to the RX phi terminal 232 of the second slave 20B is possible. Therefore, the attempt to transmit the disconnection node notification frame from the fourth input/output port 22 succeeds. That is, the slave transmission control unit 23 of the third slave 20C transmits a disconnection node notification frame from the fourth input/output port 22 (step S140B).
  • an attempt to transmit a disconnection node notification frame from the third input/output port 21 also succeeds. That is, the slave transmission control unit 23 of the third slave 20C transmits a disconnection node notification frame from the third input/output port 21 (step S140A).
  • the normal frame transmission path is the main transmission path.
  • the normal frame transmission path is interrupted.
  • the transmission path is changed to the first redundant transmission path. Therefore, in the third slave 20C, the connection order of the third slave 20C from the controller 10 in the normal frame transmission path is changed (here, changed from 3 to 1).
  • the synchronization timing calculator 24 updates the calculation method of the pulse timing T of the synchronization timing signal XSYNC so that the pulse timing T of the synchronization timing signal XSYNC is not changed even if the "connection order in the transmission path" is changed. (step S150).
  • the detection unit 25 of the second slave 20B does not detect an abnormality related to the connection of the third input/output port 21.
  • step S140B when the slave transmission control unit 23 of the third slave 20C transmits a disconnection node notification frame from the fourth input/output port 22, the third input/output port 21 of the second slave 20B , receives its broken node notification frame.
  • step S160 since the slave transmission control unit 23 of the second slave 20B receives the disconnection node notification frame including the node count value indicating 0, the operation mode is changed from the first slave operation mode to the second slave operation mode. Switch (step S160).
  • step S140C when the slave transmission control unit 23 of the second slave 20B transmits a disconnection node notification frame through the fourth input/output port 22, the third input/output port 21 of the first slave 20A , receives its broken node notification frame.
  • step S140A when the slave transmission control unit 23 of the third slave 20C transmits a disconnection node notification frame (hereinafter also referred to as "third disconnection node notification frame") from the third input/output port 21, , the second input/output port 12 receives the third broken node notification frame.
  • a disconnection node notification frame hereinafter also referred to as "third disconnection node notification frame”
  • step S140D when the slave transmission control unit 23 of the first slave 20A transmits a disconnection node notification frame (hereinafter also referred to as "fourth disconnection node notification frame") from the fourth input/output port 22, , the first input/output port 11 receives the fourth disconnection node notification frame.
  • a disconnection node notification frame hereinafter also referred to as "fourth disconnection node notification frame
  • the abnormality type determination unit 15 detects the third disconnection node Based on the MACID included in the notification frame (here, the MACID of the third slave 20C) and the MACID included in the fourth disconnection node notification frame (here, the MACID of the third slave 20C), the communication system 1 is determined to be a phi terminal abnormality (step S170).
  • the abnormality type determination unit 15 determines that the MACIDs included in the disconnection node notification frames are the same. Sometimes, it is determined that an abnormality that has occurred in the communication system 1 is a phi terminal abnormality.
  • the abnormality position determination unit 14 is included in the third disconnection node notification frame and the fourth disconnection node notification frame. Based on the node count value, it is determined that the position where the phi terminal abnormality occurred is between the third slave 20C and the second slave 20B (step S180).
  • the abnormal position determination unit 14 determines the node count value (here, 1) included in the third disconnection node notification frame and the node count value (here, 2) included in the fourth disconnection node notification frame. , the two slaves 20 that have transmitted the disconnection node notification frame including the node count value indicating 1 are identified (here, the third slave 20C and the second slave 20B are identified). Then, the abnormal position determining unit 14 determines that the phi terminal abnormal occurrence position is between the identified two slaves 20 (here, between the third slave 20C and the second slave 20B).
  • the abnormal position determination unit 14 stores, for example, the order of connection of the slaves 20 in advance, and based on the stored order of connection of the slaves 20 and the node count value, the two disconnection note notification frames indicating the node count value indicating 1 are transmitted.
  • the slave 20 may be identified.
  • the controller transmission control unit 13 switches the operation mode from the first controller operation mode to the second controller operation mode (step S190).
  • the operation mode of the controller transmission control section 13 is changed from the first controller operation mode to the second controller operation mode. Further, the second operation performed by the communication system 1 changes the operation mode of the slave transmission control unit 23 of the third slave 20C from the first slave operation mode to the second slave operation mode. Further, the second operation performed by the communication system 1 changes the operation mode of the slave transmission control unit 23 of the second slave 20B from the first slave operation mode to the second slave operation mode. As a result, the normal frame transmission path is changed from the main communication path (see FIG. 4) to the first redundant transmission path (see FIG. 6).
  • the transmission path is changed to the fiber where the phi terminal failure has occurred. is changed to a transmission path that does not use the normal frame, and the normal frame is transmitted to each slave 20.
  • FIG. 12 is a schematic diagram showing a state in which the RX phi terminal 252 of the second slave 20B has a phi terminal abnormality that causes the RX phi terminal 252 to stop functioning.
  • FIG. 13 is a sequence diagram of the third operation.
  • the phi terminal abnormality in which the RX phi terminal does not function refers to an abnormality in which the RX phi terminal does not function due to, for example, a phi failure or a problem in the connection path of the RX phi terminal. .
  • the detector 25 of the second slave 20B detects an abnormality related to the connection of the fourth input/output port 22 (step S210).
  • the slave transmission control unit 23 of the second slave 20B changes the operation mode from the first slave operation mode. Switch to the second slave operation mode (step S220).
  • the slave transmission control unit 23 of the second slave 20B attempts transmission of the disconnection node notification frame from the third input/output port 21 and the fourth input/output port 22 (step S230).
  • the slave transmission control unit 23 of the second slave 20B includes the MACID of the second slave 20B including the slave transmission control unit 23 in the disconnection node notification frame to be attempted to be transmitted. Also, the slave transmission control unit 23 of the second slave 20B attempts to transmit a disconnection node notification frame including a node count value indicating 1 from the third input/output port 21, and from the fourth input/output port 22, Attempt to send a Broken Node Notification frame containing a node count value of zero.
  • a phi terminal abnormality has occurred in the RX phi terminal 252 of the second slave 20B, causing the RX phi terminal 252 of the second slave 20B to stop functioning.
  • transmission of signals from the TX phi terminal 251 of the second slave 20B to the RX phi terminal 232 of the first slave 20A is possible. Therefore, the attempt to transmit the disconnection node notification frame from the fourth input/output port 22 succeeds. That is, the slave transmission control unit 23 of the second slave 20B transmits a disconnection node notification frame from the fourth input/output port 22 (step S240B).
  • an attempt to transmit a disconnection node notification frame from the third input/output port 21 also succeeds. That is, the slave transmission control unit 23 of the second slave 20B transmits a disconnection node notification frame from the third input/output port 21 (step S240A).
  • the normal frame transmission path is the main transmission path.
  • the normal frame transmission route becomes the main one.
  • the transmission path is changed to a second redundant transmission path (described later). Therefore, in the second slave 20B, the connection order from the controller 10 of the second slave 20B on the normal frame transmission path is changed.
  • the change from 2 to 2 does not appear to be changed, but in this example, the connection order before the change and the connection order after the change just happen to be the same. It is nothing more than
  • FIG. 14 is a schematic diagram showing the second redundant transmission path.
  • the controller transmission control section 13 operates in the second controller operation mode
  • the slave transmission control sections 23 of the first slave 20A and the second slave 20B operate in the second slave operation mode. This is the normal frame transmission path when the slave transmission control unit 23 of the third slave 20C operates in the first slave operation mode.
  • the second redundant transmission path is the path indicated by the solid arrow.
  • the second redundant transmission path consists of a first transmission path and a second transmission path.
  • the first transmission path is the first transmission path from the controller 10 through the first slave 20A and back to the controller 10 in order, that is, the path that loops back at the first slave 20A.
  • the second transmission path starts from the controller 10, passes through the third slave 20C, the second slave 20B, and the third slave 20C in this order, and then returns to the controller 10. That is, it loops back at the second slave 20B. route).
  • the synchronization timing calculator 24 prevents the pulse timing T of the synchronization timing signal XSYNC from being changed even if the transmission path for normal frames is changed from the main transmission path to the second redundant transmission path.
  • the synchronization timing calculator 24 selects a method for calculating the pulse timing T of the synchronization timing signal XSYNC so that the pulse timing T of the synchronization timing signal XSYNC is not changed even if the "connection order in the transmission path" is changed. Update (step S250).
  • step S240A when the slave transmission control unit 23 of the second slave 20B transmits the disconnection node notification frame from the third input/output port 21, the fourth input/output port 22 of the third slave 20C , receives its broken node notification frame.
  • the normal frame transmission path is replaced by the main transmission path. to the second redundant transmission path. Therefore, in the third slave 20C, the connection order of the third slave 20C from the controller 10 in the normal frame transmission path is changed (here, changed from 3 to 1).
  • the synchronization timing calculation unit 24 is configured so that the pulse timing T of the synchronization timing signal XSYNC is not changed even if the normal frame transmission path is changed from the main transmission path to the second redundant transmission path.
  • the synchronization timing calculator 24 selects a method for calculating the pulse timing T of the synchronization timing signal XSYNC so that the pulse timing T of the synchronization timing signal XSYNC is not changed even if the "connection order in the transmission path" is changed.
  • Update step S270.
  • the input/output port here, the fourth input/output port 22
  • the synchronization timing calculation unit 24 receives the normal frame from the next time onward.
  • the calculation method for calculating the synchronous timing signal XSYNC is updated so that the synchronous timing at which all of the plurality of slaves 20 operate synchronously does not change when an input/output port that is not an output port receives the signal.
  • the detection unit 25 of the first slave 20A does not detect an abnormality related to the connection of the third input/output port 21.
  • step S240B when the slave transmission control unit 23 of the second slave 20B transmits a disconnection node notification frame from the fourth input/output port 22, the third input/output port 21 of the first slave 20A , receives its broken node notification frame.
  • step S260 since the slave transmission control unit 23 of the first slave 20A receives the disconnection node notification frame including the node count value indicating 0, the operation mode is changed from the first slave operation mode to the second slave operation mode. Switch (step S260).
  • step S240C when the slave transmission control unit 23 of the third slave 20C transmits a disconnection node notification frame (hereinafter also referred to as "fifth disconnection node notification frame") from the third input/output port 21, , the second input/output port 12 receives the fifth broken node notification frame.
  • a disconnection node notification frame hereinafter also referred to as "fifth disconnection node notification frame”
  • step S240D when the slave transmission control unit 23 of the first slave 20A transmits a disconnection node notification frame (hereinafter also referred to as "sixth disconnection node notification frame") from the fourth input/output port 22, , the first input/output port 11 receives the sixth broken node notification frame.
  • a disconnection node notification frame hereinafter also referred to as "sixth disconnection node notification frame
  • the abnormality type determination unit 15 determines the fifth disconnection node notification frame. Based on the MACID included in the notification frame (here, the MACID of the second slave 20B) and the MACID included in the sixth disconnection node notification frame (here, the MACID of the second slave 20B), the communication system 1 is determined to be a phi terminal abnormality (step S280).
  • the abnormality position determination unit 14 is included in the fifth disconnection node notification frame and the sixth disconnection node notification frame. Based on the node count value, it is determined that the position where the phi terminal abnormality occurred is between the second slave 20B and the first slave 20A (step S290).
  • the abnormal position determination unit 14 determines the node count value (here, 2) included in the fifth disconnection node notification frame and the node count value (here, 1) included in the sixth disconnection node notification frame. , the two slaves 20 that have transmitted the disconnection node notification frame including the node count value indicating 1 are identified (here, the second slave 20B and the first slave 20A are identified). Then, the abnormal position determination unit 14 determines that the position where the Phi terminal abnormality has occurred is between the identified two slaves 20 (here, between the second slave 20B and the first slave 20A).
  • the controller transmission control unit 13 switches the operation mode from the first controller operation mode to the second controller operation mode (step S300).
  • the operation mode of the controller transmission control section 13 is changed from the first controller operation mode to the second controller operation mode. Further, the third operation performed by the communication system 1 changes the operation mode of the slave transmission control unit 23 of the second slave 20B from the first slave operation mode to the second slave operation mode. Further, the third operation performed by the communication system 1 changes the operation mode of the slave transmission control section 23 of the first slave 20A from the first slave operation mode to the second slave operation mode. As a result, the normal frame transmission path is changed from the main communication path (see FIG. 4) to the second redundant transmission path (see FIG. 14).
  • the transmission path is replaced by the phi terminal failure. is changed to a transmission path that does not use the normal frame, and the normal frame is transmitted to each slave 20.
  • the communication system 1 (hereinafter also referred to as "fourth operation") will be described.
  • FIG. 15 is a schematic diagram showing how the cable disconnection abnormality of the cable 30C is recovered.
  • FIG. 16 is a sequence diagram of the fourth operation.
  • the detection unit 25 of the third slave 20C detects recovery from the abnormality related to the connection of the fourth input/output port 22 (step S310A).
  • the slave transmission control unit 23 of the third slave 20C changes the operation mode to the second slave operation. mode to the first slave operation mode (step S320A).
  • the slave transmission control unit 23 of the third slave 20C transmits a disconnection node notification frame from the third input/output port 21 and the fourth input/output port 22 (step S340A).
  • the slave transmission control unit 23 of the third slave 20C includes the MACID of the third slave 20C including the slave transmission control unit 23 in the disconnected node notification frame to be transmitted.
  • the normal frame transmission path is the first redundant transmission path.
  • the normal frame transmission path is changed from the first redundant transmission path to the main transmission path due to recovery from the cable disconnection abnormality of the cable 30C. Therefore, in the third slave 20C, the connection order of the third slave 20C from the controller 10 in the normal frame transmission path is changed (here, changed from 1 to 3).
  • the synchronization timing calculation unit 24 is configured so that the pulse timing T of the synchronization timing signal XSYNC is not changed even if the transmission path of the normal frame is changed from the first redundant transmission path to the main transmission path. Calculate the connection order in the transmission route. More specifically, the synchronization timing calculator 24 calculates the prestored connection order (here, 3) from the controller 10 on the main transmission path as the "connection order on the transmission path" in (Equation 1). .
  • the synchronization timing calculator 24 selects a method for calculating the pulse timing T of the synchronization timing signal XSYNC so that the pulse timing T of the synchronization timing signal XSYNC is not changed even if the "connection order in the transmission path" is changed. Update (step S350).
  • the phi 230 disconnects the link between the RX phi terminal 232 and the TX phi terminal 251 of the phi 250 of the third slave 20C to which it is connected. come to detect. Therefore, in the second slave 20B, the detection unit 25 of the second slave 20B detects recovery from the abnormality related to the connection of the third input/output port 21 (step S310B).
  • the slave transmission control unit 23 of the second slave 20B changes the operation mode to the second slave operation. mode to the first slave operation mode (step S320B).
  • the slave transmission control unit 23 of the second slave 20B transmits a disconnection node notification frame from the third input/output port 21 and the fourth input/output port 22 (step S340B).
  • the slave transmission control unit 23 of the second slave 20B includes the MACID of the second slave 20B including the slave transmission control unit 23 in the disconnected node notification frame to be transmitted.
  • the normal frame transmission path is the first redundant transmission path.
  • the normal frame transmission path is changed from the first redundant transmission path to the main transmission path by recovering from the cable disconnection of the cable 30C. Therefore, in the second slave 20B, the order of connection from the controller 10 to the third slave 20C on the normal frame transmission path is not changed. Therefore, the synchronization timing calculator 24 of the second slave 20B does not update the calculation method of the pulse timing T of the synchronization timing signal XSYNC.
  • step S340B when the slave transmission control unit 23 of the second slave 20B transmits a disconnection node notification frame from the fourth input/output port 22, the third input/output port 21 of the first slave 20A , receives its broken node notification frame.
  • the slave transmission control unit 23 of the first slave 20A transmits the disconnection node notification frame from the fourth input/output port 22. Send (step S340C).
  • the controller transmission control unit 13 sets the operation mode to the second controller operation mode to the first controller operation mode (step S360).
  • the operation mode of the controller transmission control section 13 is changed from the second controller operation mode to the first controller operation mode. Further, the fourth operation performed by the communication system 1 changes the operation mode of the slave transmission control unit 23 of the third slave 20C from the second slave operation mode to the first slave operation mode. Further, the fourth operation performed by the communication system 1 changes the operation mode of the slave transmission control unit 23 of the second slave 20B from the second slave operation mode to the first slave operation mode. As a result, the normal frame transmission path is changed from the first redundant communication path (see FIG. 6) to the main transmission path (see FIG. 4).
  • the normal frame transmission path is the first redundant transmission path due to the occurrence of the cable disconnection abnormality in the cable 30C
  • the cable disconnection abnormality of the cable 30 is recovered.
  • the transmission path is changed to the main transmission path to transmit normal frames to each slave 20 .
  • 17 and 18 are flowcharts showing an example of the operation of the slave 20 when the communication frame transmission path is the main transmission path in the initial state of the communication system 1.
  • FIG. 17 and 18 are flowcharts showing an example of the operation of the slave 20 when the communication frame transmission path is the main transmission path in the initial state of the communication system 1.
  • step S500 No
  • step S515 No
  • step S515 the main transmission path upstream
  • step S550 the process of transmitting the normal frame from the downstream side of the main transmission path
  • step S500 When the slave 20 detects an abnormality related to the connection in the process of step S500 (step S500: Yes), it notifies the disconnected node from both the third input/output port 21 and the fourth input/output port 22.
  • the frame is transmitted (step S505).
  • step S510 If the detection of the abnormality in the connection is the detection of the abnormality in the connection of the input/output port on the upstream side of the main transmission path (step S510: Yes), the slave 20 adjusts the pulse timing T of the synchronization timing signal XSYNC. The calculation method is updated (step S530).
  • step S515 When the slave 20 receives the broken node notification frame in the process of step S515 (step S515: Yes), it checks whether the node count value included in the received broken node notification frame is 0 (step S520).
  • step S520 when the node count value is 0 (step S520: Yes), when the disconnection node notification frame is received by the input/output port on the upstream side of the main transmission path (step S525 : Yes), the slave 20 updates the calculation method of the pulse timing T of the synchronization timing signal XSYNC (step S530).
  • step S520 if the node count value is not 0 (step S520: No), if the disconnection node notification frame is received by the input/output port on the upstream side of the main transmission path (step S535: Yes) , the slave 20 updates the calculation method of the pulse timing T of the synchronization timing signal XSYNC (step S540).
  • step S510 if the detection of a connection abnormality is not the detection of a connection abnormality of the input/output port on the upstream side of the main transmission path (step S510: No), and in the process of step S525, disconnection When the node notification frame is not received by the input/output port on the upstream side of the main transmission path (step S525: No), and when the process of step S530 is completed, the slave 20 detects an abnormality related to the connection.
  • step S605 No
  • step S600 when a normal frame is received at the input/output port on the side that has not detected an abnormality related to connection (step S600), the side that has not detected an abnormality related to connection A process of transmitting a normal frame from the input/output port (step S625) is repeated.
  • step S605 when the slave 20 detects that the connection abnormality has been recovered (step S605: Yes), both the third input/output port 21 and the fourth input/output port 22 are disconnected. A node notification frame is transmitted (step S610).
  • step S615 If the detection of the recovery of the connection-related abnormality is the detection of the connection-related abnormality of the input/output port on the upstream side of the main transmission path (step S615: Yes), the slave 20 adjusts the pulse timing of the synchronization timing signal XSYNC.
  • the method for calculating T is updated (step S620).
  • step S535 when the reception of the disconnection node notification frame is not received by the input/output port on the upstream side of the main transmission path (step S535: No), and when the process of step S540 ends, the slave 20 As long as a normal frame is received (step S630) and a disconnection node notification frame is not received (step S635: No), the process of transmitting the normal frame from an input/output port different from that at the time of reception (step S650) is repeated. .
  • step S635 when the broken node notification frame is received (step S635: Yes), when the broken node notification frame is received by the input/output port on the upstream side of the main transmission path (step S640 : Yes), the slave 20 updates the calculation method of the pulse timing T of the synchronization timing signal XSYNC (step S645).
  • step S615 if the detection of the recovery of the connection-related abnormality is not the detection of the abnormality related to the connection of the input/output port on the upstream side of the main transmission path (step S615: No), and in the process of step S640 , when the disconnection node notification frame is not received by the input/output port on the upstream side of the main transmission path (step S640: No), when the process of step S620 ends, and when the process of step S645 ends In some cases, the slave 20 proceeds to the process of step S500.
  • FIG. 19 is a flowchart showing an example of the operation of the controller 10 when the communication frame transmission path is the main transmission path in the initial state of the communication system 1.
  • FIG. 19 is a flowchart showing an example of the operation of the controller 10 when the communication frame transmission path is the main transmission path in the initial state of the communication system 1.
  • step S700 when the controller 10 transmits a normal frame from the input/output port on the upstream side of the seed transmission path (step S700), the first input/output port 11 and the second input/output port 12 As long as the disconnection node notification frame is not received at both input/output ports (step S705: No), the process of receiving normal frames at the input/output port on the downstream side of the main transmission path (step S760) is repeated.
  • step S700 when the controller 10 receives the disconnection node notification frames at both input/output ports (step S705: Yes), it checks whether the MACIDs included in the two received disconnection node notification frames are different from each other. (Step S710).
  • step S710 if the MACIDs included in the two received disconnection node notification frames are different from each other (step S710: Yes), the controller 10 determines that the abnormality that occurred in the communication system 1 is the cable disconnection abnormality. (Step S715). Based on these MACIDs, the controller 10 then determines that the location where the cable disconnection abnormality has occurred is between the slaves 20 of those MACIDs (step S720).
  • step S710 if the MACIDs included in the two received disconnection node notification frames are not different from each other (step S710: No), the controller 10 determines that the abnormality that occurred in the communication system 1 is the phi terminal abnormality. (step S725). Then, based on the node count values contained in the two broken node notification frames, the controller 10 determines the position of the two slaves 20 that have transmitted the broken node notification frame including the node count value indicating 1 as the position where the phi abnormality has occurred. It is determined that it is between (step S730).
  • step S720 When the process of step S720 ends and when the process of step S730 ends, the controller 10 receives normal frames from both the first input/output port 11 and the second input/output port 12. is transmitted (step S735), as long as the disconnection node notification frame is not received (step S740: No), the normal frame is repeatedly performed (step S750).
  • step S740 when the disconnection node notification frame is received (step S740: Yes), the controller 10 detects that the abnormality that occurred in the communication system 1 has been recovered (step S755), and proceeds to the process of step S700.
  • the detection unit 25 detects an abnormality related to the connection of the third input/output port 21 or the abnormality related to the connection of the fourth input/output port 22. Then, when an abnormality related to network connection is detected, the slave 20 transmits a disconnection node notification frame to the controller 10 . As a result, the normal frame transmission route in the communication system 1 is changed in a relatively short period of time after the occurrence of an abnormality related to network connection.
  • the communication system 1 it is possible to shorten the time required from the occurrence of an abnormality related to network connection until the frame transmission route is changed, compared to the conventional system.
  • Embodiment 2 A communication system according to Embodiment 2, which is configured by partially changing the communication system 1 according to Embodiment 1, will be described below.
  • the communication system according to the second embodiment is configured by changing the controller 10 from the communication system 1 according to the first embodiment to the controller 10A according to the second embodiment.
  • FIG. 20 is a block diagram showing an example of the functional configuration of the controller 10A according to the second embodiment.
  • the controller 10A is configured by changing the controller transmission control section 13 from the controller 10 according to Embodiment 1 to a controller transmission control section 13A.
  • the controller transmission control section 13A has the following functions in addition to the functions that the controller transmission control section 13 has.
  • controller transmission control unit 13A is asked by the user of the communication system according to Embodiment 2 whether or not to stop normal frame transmission when two or more abnormalities occur in the communication system according to Embodiment 2. The setting of whether or not is accepted.
  • the controller transmission control unit 13A receives a setting to stop transmission of normal frames when an abnormality occurs at two or more locations, the controller transmission control unit 13A, in the communication system according to Embodiment 2, When an abnormality occurs, the transmission of normal frames is stopped.
  • the controller transmission control unit 13A may, for example, use an input interface (eg, touch pad, dip switch, etc.) provided in the controller 10A to receive a setting as to whether or not to stop transmission of normal frames.
  • an input interface eg, touch pad, dip switch, etc.
  • the controller transmission control unit 13A controls the first input/output port 11 and the second input/output port 12. and receive the broken node notification frames, and if the sum of the node count values contained in the broken node notification frames is less than the number of all the slaves 20 stored in advance, two or more abnormalities occur. It may be determined that
  • a user who uses the communication system according to the second embodiment configured as described above may have a controller
  • the transmission control unit 13A may be set to stop transmission of normal frames when two or more abnormalities occur.
  • a user using the communication system according to the second embodiment instructs the controller transmission control unit 13A to stop normal frame transmission when two or more abnormalities occur in the communication system according to the second embodiment.
  • the controller transmission control unit 13A By setting, for example, one of the plurality of slaves 20 included in the communication system according to the second embodiment can be replaced without stopping the operation of the other slaves 20 .
  • FIG. 21 shows how a user using the communication system according to Embodiment 2 replaces one slave 20 (here, the third slave 20C) out of a plurality of slaves 20 with another slave 20 (here, the third slave 20C). , a first slave 20A, a second slave 20B, and a fourth slave 20D) without stopping.
  • a user using the communication system according to the second embodiment removes the fourth input/output port 22 of the third slave 20C from the cable 30C and replaces it with the fourth input/output port 22 of the fifth slave 20E. 4 input/output ports 22 are connected. Also, the third input/output port 21 of the third slave 20C is removed from the cable 30E, and the third input/output port 21 of the fourth slave 20D is connected instead. By doing so, the third slave 20C can be replaced with the fifth slave 20E without stopping the operations of the first slave 20A, the second slave 20B, and the fourth slave 20D.
  • a user using the communication system according to the second embodiment instructs the controller transmission control unit 13A to stop normal frame transmission when two or more abnormalities occur in the communication system according to the second embodiment.
  • removal of one slave 20 out of the plurality of slaves 20 included in the communication system according to the second embodiment can be performed without stopping the operation of the other slaves 20 .
  • FIG. 22 shows how a user using the communication system according to Embodiment 2 removes one slave 20 (here, the third slave 20C) from among a plurality of slaves 20, and removes another slave 20 (here, the third slave 20C). , a first slave 20A, a second slave 20B, and a fourth slave 20D) without stopping.
  • a user using the communication system according to the second embodiment connects a cable 30E to the fourth input/output port 22 of the fourth slave 20D and the third input/output port of the third slave 20C. 21, remove the fourth input/output port 22 of the third slave 20C from the cable 30C, and connect the fourth input/output port 22 of the fourth slave 20D instead.
  • the third slave 20C can be removed without stopping the operations of the first slave 20A, the second slave 20B, and the fourth slave 20D.
  • FIG. 23 is a block diagram showing an example of the configuration of communication system 1 according to the third embodiment.
  • the communication system 1 includes a controller 10 having a first input/output port 11 and a second input/output port 12, and a third input/output port 21 and a fourth input/output port 21, respectively. It comprises N slaves 20 with input/output ports 22 .
  • N is an integer of 2 or more.
  • FIG. 23 shows N slaves 20 as a first slave 20A, a K-1th slave 20 (K is an integer and 3 ⁇ K ⁇ N-1), a Kth slave 20, Nth slave 20 is shown.
  • the first input/output port 11, the second input/output port 12, the third input/output port 21, and the fourth input/output port 22 are connected by a cable 30, as in the first embodiment. That is, the communication system 1 according to Embodiment 3 represents the case of the communication system 1 generalized to N slaves 20 .
  • the communication system 1 according to the third embodiment can obtain the same effects as the communication system 1 according to the first embodiment.
  • the present disclosure can be widely used in communication systems and the like that include a controller and multiple slaves.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Small-Scale Networks (AREA)

Abstract

ネットワークの接続に係る異常が発生してから、フレームの送信経路が変更されるまでにかかる時間を、従来よりも短縮する。通信システム(1)は、コントローラ(10)と、各々が、第3の入出力ポート(21)と第4の入出力ポート(22)とを有する複数のスレーブ(20)とを備える。スレーブ(20)は、検出部(25)と、スレーブ送信制御部(23)とを有する。検出部(25)は、第3の入出力ポート(21)の接続に係る異常、および、第4の入出力ポート(22)の接続に係る異常を検出する。スレーブ送信制御部(23)は、検出部(25)が、これら異常を検出したときに、第3の入出力ポート(21)と第4の入出力ポート(22)とから、接続状態の変化を検出した旨を示す断線ノード通知フレームの送信を試みる。コントローラは、断線ノード通知フレームを受信すると、通常フレームの送信経路を変更する。

Description

通信システム、スレーブ、コントローラ、および、通信方法
 本開示は、通信システムに関する。
 特許文献1には、コントローラと複数のスレーブとがリング状に接続された通信システムについて記載されている。この通信システムは、コントローラから複数のスレーブに、定期的に、ブロードキャストでネットワーク存在フレームを送信することで、ネットワークの接続状況を確認する。そして、その確認結果に基づいて、フレームの送信経路を変更する。
国際公開WO2010/143305号
 上記従来の通信システムでは、ネットワーク存在フレームを送信するタイミングでしか、ネットワークの接続状況を確認できない。このため、ネットワークの接続に係る異常が発生してから、フレームの送信経路が変更されるまでに、ある程度長い時間がかかってしまうことがある。
 そこで、本開示は、ネットワークの接続に係る異常が発生してから、フレームの送信経路が変更されるまでにかかる時間を、従来よりも短縮することができる通信システム等を提供することを目的とする。
 本開示の一態様に係る通信システムは、コントローラと、第1のスレーブ~第Nのスレーブ(Nは2以上の整数)と、を備える通信システムである。前記コントローラは、第1の入出力ポートと、第2の入出力ポートと、コントローラ送信制御部と、を有する。前記第1のスレーブ~前記第Nのスレーブの各々は、第3の入出力ポートと、第4の入出力ポートと、スレーブ送信制御部と、検出部と、を有する。前記第1の入出力ポートと、前記第1のスレーブが有する前記第4の入出力ポートとが接続される。前記第Nのスレーブが有する前記第3の入出力ポートと、前記第2の入出力ポートとが接続される。任意のK(Kは2以上N以下の整数)において、第K-1のスレーブが有する前記第3の入出力ポートと、第Kのスレーブが有する前記第4の入出力ポートとが接続される。前記コントローラ送信制御部は、通常フレームを生成して送信し、断線ノード通知フレームを受信し、第1のコントローラ動作モードと、第2のコントローラ動作モードと、を実行する。前記第1のコントローラ動作モードは、前記通常フレームを、前記第1の入出力ポートから繰り返し送信する。前記第2のコントローラ動作モードは、前記通常フレームを、前記第1の入出力ポートと前記第2の入出力ポートとから繰り返し送信する。前記スレーブ送信制御部は、前記通常フレームを送信および受信し、前記断線ノード通知フレームを生成するとともに前記断線ノード通知フレームを送信および受信し、第1のスレーブ動作モードと、第2のスレーブ動作モードと、を実行する。第1のスレーブ動作モードは、前記第3の入出力ポートと前記第4の入出力ポートとのうちの一方の入出力ポートが前記通常フレームを受信すると、前記第3の入出力ポートと前記第4の入出力ポートとのうちの他方の入出力ポートから前記通常フレームを送信する。第2のスレーブ動作モードは、前記一方の入出力ポートが前記通常フレームを受信すると、前記一方の入出力ポートから前記通常フレームを送信する。前記検出部は、前記第3の入出力ポートの接続に係る異常、および、前記第4の入出力ポートの接続に係る異常を検出する。前記スレーブ送信制御部は、前記第1のスレーブ動作モードで動作している場合に、前記検出部が前記第3の入出力ポートの接続に係る異常または前記第4の入出力ポートの接続に係る異常を検出したとき、前記第1のスレーブ動作モードから前記第2のスレーブ動作モードに切り替える。また、前記スレーブ送信制御部は、接続状態の変化を検出した旨を示す前記断線ノード通知フレームを生成し、前記第3の入出力ポートと前記第4の入出力ポートとから、前記断線ノード通知フレームの送信を試みる。それとともに、前記スレーブ送信制御部は、前記一方の入出ポートが前記断線ノード通知フレームを受信すると、前記他方の入出力ポートから前記断線ノード通知フレームを送信する。前記コントローラ送信制御部は、前記第1のコントローラ動作モードで動作している場合に、前記第1の入出力ポートまたは前記第2の入出力ポートが前記断線ノード通知フレームを受信すると、前記第1のコントローラ動作モードから前記第2のコントローラ動作モードに切り替える。
 本開示の他の一態様に係るスレーブは、第1の入出力ポートと、第2の入出力ポートと、スレーブ送信制御部と、検出部と、を備える。前記スレーブ送信制御部は、通常フレームを送信および受信し、断線ノード通知フレームを生成するとともに前記断線ノード通知フレームを送信および受信し、第1のスレーブ動作モードと、第2のスレーブ動作モードと、を実行する。前記第1のスレーブ動作モードは、前記通常フレームを、前記第1の入出力ポートと前記第2の入出力ポートとのうちの一方の入出力ポートが受信すると、当該通常フレームを、前記第1の入出力ポートと前記第2の入出力ポートとのうちの他方の入出力ポートから送信する動作モードである。前記第2のスレーブ動作モードは、前記通常フレームを、前記一方の入出力ポートが受信すると、当該通常フレームに基づく通常フレームを、前記一方の入出力ポートから送信する動作モードである。前記検出部は、前記第1の入出力ポートの接続に係る異常、および、前記第1の入出力ポートの接続に係る異常を検出する。前記スレーブ送信制御部は、前記第1のスレーブ動作モードで動作している場合に、前記検出部が前記第1の入出力ポートの接続に係る異常または前記第2の入出力ポートの接続に係る異常を検出したときに、前記第1のスレーブ動作モードから前記第2のスレーブ動作モードに切り替える。また、前記スレーブ送信制御部は、前記第1の入出力ポートと前記第2の入出力ポートとから接続状態の変化を検出した旨を示す断線ノード通知フレームの送信を試みる。それとともに、前記スレーブ送信制御部は、前記断線ノード通知フレームを前記一方の入出ポートが受信すると、当該断線ノード通知フレームを、前記他方の入出力ポートから送信する。
 本開示の他の一態様に係るコントローラは、第1の入出力ポートと、第2の入出力ポートと、コントローラ送信制御部と、を備える。前記コントローラ送信制御部は、通常フレームを生成して送信し、第1のコントローラ動作モードと、第2のコントローラ動作モードと、を実行する。前記第1のコントローラ動作モードは、前記通常フレームを、前記第1の入出力ポートから繰り返し送信する動作モードである。前記第2のコントローラ動作モードは、前記通常フレームを、前記第1の入出力ポートと前記第2の入出力ポートとから繰り返し送信する動作モードである。前記コントローラ送信制御部は、前記第1のコントローラ動作モードで動作している場合に、前記第1の入出力ポートまたは前記第2の入出力ポートが、接続状態の変化を検出した旨を示す断線ノード通知フレームを受信すると、前記第1のコントローラ動作モードから前記第2のコントローラ動作モードに切り替える。
 本開示の他の一態様に係る通信方法は、通信システムが行う通信方法である。前記通信システムは、コントローラと、第1のスレーブ~第Nのスレーブ(Nは2以上の整数)と、を備える。前記コントローラは、第1の入出力ポートと、第2の入出力ポートと、コントローラ送信制御部と、を有する。前記第1のスレーブ~第Nのスレーブの各々は、第3の入出力ポートと、第4の入出力ポートと、スレーブ送信制御部と、検出部と、を有する。前記第1の入出力ポートと、前記第1のスレーブが有する前記第4の入出力ポートとが接続される。前記第Nのスレーブが有する前記第3の入出力ポートと、前記第2の入出力ポートとが接続される。任意のK(Kは2以上N以下の整数)において、第K-1のスレーブが有する前記第3の入出力ポートと、第Kのスレーブが有する前記第4の入出力ポートとが接続される。前記通信方法は、前記コントローラ送信制御部が、前記通常フレームを生成し、前記第1のコントローラ動作モードにおいて、前記通常フレームを前記第1の入出力ポートから繰り返し送信し、前記第2のコントローラ動作モードにおいて、前記通常フレームを前記第1の入出力ポートと前記第2の入出力ポートとから繰り返し送信する。前記第1のスレーブ~前記第Nのスレーブの各々の前記スレーブ送信制御部は、前記第1のスレーブ動作モードにおいて、前記通常フレームを前記第3の入出力ポートと前記第4の入出力ポートとのうちの一方の入出力ポートが受信すると、当該通常フレームを、前記第3の入出力ポートと前記第4の入出力ポートとのうちの他方の入出力ポートから送信する。また、前記スレーブ送信制御部は、前記第2のスレーブ動作モードにおいて、前記通常フレームを、前記一方の入出力ポートが受信すると、当該通常フレームを、前記一方の入出力ポートから送信する。前記検出部は、前記第3の入出力ポートの接続に係る異常、および、前記第4の入出力ポートの接続に係る異常を検出する。前記スレーブ送信制御部は、前記第1のスレーブ動作モードで動作している場合に、前記検出部が前記第3の入出力ポートの接続に係る異常または前記第4の入出力ポートの接続に係る異常を検出したときに、前記第1のスレーブ動作モードから前記第2のスレーブ動作モードに切り替える。それと共に前記スレーブ送信制御部は、接続状態の変化を検出した旨を示す断線ノード通知フレームを生成し、前記第3の入出力ポートと前記第4の入出力ポートとから、前記断線ノード通知フレームの送信を試みる。そして前記スレーブ送信制御部は、前記断線ノード通知フレームを前記一方の入出ポートが受信すると、当該断線ノード通知フレームに基づく断線ノード通知フレームを、前記他方の入出力ポートから送信する。前記コントローラ送信制御部は、前記第1のコントローラ動作モードで動作している場合に、前記第1の入出力ポートまたは前記第2の入出力ポートが前記断線ノード通知フレームを受信すると、前記第1のコントローラ動作モードから前記第2のコントローラ動作モードに切り替える。
 本開示の上記態様に係る通信システム、スレーブ、コントローラ、および、通信方法によれば、ネットワークの接続に係る異常が発生してから、フレームの送信経路が変更されるまでにかかる時間を、従来よりも短縮することができる。
図1は、実施の形態1に係る通信システムの構成の一例を示すブロック図である。 図2は、実施の形態1に係るコントローラの構成の一例を示すブロック図である。 図3は、実施の形態1に係るスレーブの構成の一例を示すブロック図である。 図4は、通常フレームの送信経路を示す模式図である。 図5は、通常フレームの送受信タイミングと同期タイミング信号の動作タイミングとを示すタイミングチャートである。 図6は、通常フレームの送信経路を示す模式図である。 図7は、通常フレームの送受信タイミングと同期タイミング信号の動作タイミングとを示すタイミングチャートである。 図8は、実施の形態1に係るケーブルにケーブル断線異常が発生した様子を示す模式図である。 図9は、実施の形態1に係る第1の動作のシーケンス図である。 図10は、実施の形態1に係るTXファイ端子にファイ端子異常が発生した様子を示す模式図である。 図11は、実施の形態1に係る第2の動作のシーケンス図である。 図12は、実施の形態1に係るRXファイ端子にファイ端子異常が発生した様子を示す模式図である。 図13は、実施の形態1に係る第3の動作のシーケンス図である。 図14は、通常フレームの送信経路を示す模式図である。 図15は、実施の形態1に係るケーブルのケーブル断線異常が回復した様子を示す模式図である。 図16は、実施の形態1に係る第4の動作のシーケンス図である。 図17は、実施の形態1に係るスレーブの動作を示すフローチャートである。 図18は、実施の形態1に係るスレーブの動作を示すフローチャートである。 図19は、実施の形態1に係るコントローラの動作を示すフローチャートである。 図20は、実施の形態2に係るコントローラの構成の一例を示すブロック図である。 図21は、実施の形態2に係るスレーブの入れ替えを行っている様子を示す模式図である。 図22は、実施の形態2に係るスレーブの取り外しを行っている様子を示す模式図である。 図23は、実施の形態3に係る通信システムの構成の一例を示すブロック図である。
 (本開示の一態様を得るに至った経緯)
 発明者らは、コントローラと複数のスレーブとがリング状に接続された通信システムにおいて、ネットワークの接続に係る異常が発生してから、フレームの送信経路が変更されるまでにかかる時間を、従来よりも短縮する方法について、鋭意、検討、実験を繰り返し行った。その結果、発明者らは、各スレーブが、ネットワークの接続に係る異常を検出し、検出した異常をコントローラに通知することで、コントローラは、ネットワークの接続に係る異常が発生してから、比較的短時間で、その異常の発生を確認することができるという知見を得た。そして、発明者らは、この知見に基づいて、さらに、検討、実験を重ねた。その結果、下記通信システム等に想到した。
 本開示の一態様に係る通信システムは、コントローラと、第1のスレーブ~第Nのスレーブ(Nは2以上の整数)と、を備える通信システムである。前記コントローラは、第1の入出力ポートと、第2の入出力ポートと、コントローラ送信制御部と、を有する。前記第1のスレーブ~前記第Nのスレーブの各々は、第3の入出力ポートと、第4の入出力ポートと、スレーブ送信制御部と、検出部と、を有する。前記第1の入出力ポートと、前記第1のスレーブが有する前記第4の入出力ポートとが接続される。前記第Nのスレーブが有する前記第3の入出力ポートと、前記第2の入出力ポートとが接続される。任意のK(Kは2以上N以下の整数)において、第K-1のスレーブが有する前記第3の入出力ポートと、第Kのスレーブが有する前記第4の入出力ポートとが接続される。前記コントローラ送信制御部は、通常フレームを生成して送信し、断線ノード通知フレームを受信し、第1のコントローラ動作モードと、第2のコントローラ動作モードと、を実行する。前記第1のコントローラ動作モードは、前記通常フレームを、前記第1の入出力ポートから繰り返し送信する。前記第2のコントローラ動作モードは、前記通常フレームを、前記第1の入出力ポートと前記第2の入出力ポートとから繰り返し送信する。前記スレーブ送信制御部は、前記通常フレームを送信および受信し、前記断線ノード通知フレームを生成するとともに前記断線ノード通知フレームを送信および受信し、第1のスレーブ動作モードと、第2のスレーブ動作モードと、を実行する。第1のスレーブ動作モードは、前記第3の入出力ポートと前記第4の入出力ポートとのうちの一方の入出力ポートが前記通常フレームを受信すると、前記第3の入出力ポートと前記第4の入出力ポートとのうちの他方の入出力ポートから前記通常フレームを送信する。第2のスレーブ動作モードは、前記一方の入出力ポートが前記通常フレームを受信すると、前記一方の入出力ポートから前記通常フレームを送信する。前記検出部は、前記第3の入出力ポートの接続に係る異常、および、前記第4の入出力ポートの接続に係る異常を検出する。前記スレーブ送信制御部は、前記第1のスレーブ動作モードで動作している場合に、前記検出部が前記第3の入出力ポートの接続に係る異常または前記第4の入出力ポートの接続に係る異常を検出したとき、前記第1のスレーブ動作モードから前記第2のスレーブ動作モードに切り替える。また、前記スレーブ送信制御部は、接続状態の変化を検出した旨を示す前記断線ノード通知フレームを生成し、前記第3の入出力ポートと前記第4の入出力ポートとから、前記断線ノード通知フレームの送信を試みる。それとともに前記スレーブ送信制御部は、前記一方の入出ポートが前記断線ノード通知フレームを受信すると、前記他方の入出力ポートから前記断線ノード通知フレームを送信する。前記コントローラ送信制御部は、前記第1のコントローラ動作モードで動作している場合に、前記第1の入出力ポートまたは前記第2の入出力ポートが前記断線ノード通知フレームを受信すると、前記第1のコントローラ動作モードから前記第2のコントローラ動作モードに切り替える。
 上記通信システムにおいて、コントローラ送信制御部が第1のコントローラ動作モードで動作し、各スレーブのスレーブ送信制御部が第1のスレーブ動作モードで動作している場合に、通常フレームの送信経路は、コントローラから、順に、第1のスレーブ~第Nのスレーブを経由して再びコントローラに戻る送信経路となる。
 この状態において、いずれかのスレーブにおいて、検出部が、第3の入出力ポートの接続に係る異常、または、第4の入出力ポートの接続に係る異常を検出すると、そのスレーブから、コントローラに向けて、断線ノード通知フレームが送信される。これにより、コントローラは、ネットワークの接続に係る異常が発生してから、比較的短時間で、断線ノード通知フレームを受信することができる。そして、コントローラは、断線ノード通知フレームを受信すると、コントローラ送信制御部が、動作モードを第1のコントローラ動作モードから第2のコントローラ動作モードに切り替える。
 一方で、検出部が、第3の入出力ポートの接続に係る異常、または、第4の入出力ポートの接続に係る異常を検出したスレーブは、スレーブ送信制御部が、動作モードを第1のスレーブ動作モードから第2のスレーブ動作モードに切り替える。
 これにより、通信フレームの通信経路は、第1の経路と第2の経路との2つの経路からなる送信経路に変更される。
 (第1の経路)
 コントローラから、順に、第1のスレーブ~接続に係る異常が発生している箇所の手前のスレーブ~第1のスレーブを経由して再びコントローラへ戻る経路(すなわち、接続に係る異常の手前のスレーブで折り返す経路)。
 (第2の経路)
 コントローラから、順に、第Nのスレーブ~接続に係る異常の手前のスレーブ~第Nのスレーブを経由して再びコントローラへ戻る経路(すなわち、接続に係る異常が発生している箇所の手前のスレーブで折り返す経路)。
 このように、上記構成の通信システムによると、ネットワークの接続に係る異常が発生してから、フレームの送信経路が変更されるまでにかかる時間を、従来よりも短縮することができる。
 また、前記断線ノード通知フレームは、0以上の整数値を示すノードカウント値を含み、前記スレーブ送信制御部は、前記第1のスレーブ動作モードで動作している場合において、以下の(1)および(2)の特徴を有してもよい。
 (1)前記検出部が、前記一方の入出力ポートの接続に係る異常を検出したときに、前記一方の入出力ポートから、0を示すノードカウント値を含む断線ノード通知フレームの送信を試みる。そして、前記他方の入出力ポートから、1を示すノードカウント値を含む断線ノード通知フレームの送信を試みる。
 (2)前記一方の入出力ポートが、0を示すノードカウント値を含む断線ノード通知フレームを受信すると、動作モードを前記第1のスレーブ動作モードから前記第2のスレーブ動作モードに切り替える。前記一方の入出ポートが断線ノード通知フレームを受信すると、当該断線ノード通知フレームに含まれるノードカウント値に1を加えたノードカウント値を含む断線ノード通知フレームを、前記他方の入出力ポートから送信する。
 前記コントローラは、さらに、前記第1の入出力ポートおよび前記第2の入出力ポートが断線ノード通知フレームを受信した場合に、前記第1の入出力ポートが受信した断線ノード通知フレームに含まれるノードカウント値と、前記第2の入出力ポートが受信した断線ノード通知フレームに含まれるノードカウント値とに基づいて、異常の発生位置を特定する異常位置判定部を有するとしてもよい。
 これにより、発生した接続に係る異常が、その発生位置の一方の側のスレーブの検出部のみがその異常を検出することができるタイプの異常であったとしても、その発生位置の他方の側のスレーブのスレーブ送信制御部も、動作モードを、第1のスレーブ動作モードから第2のスレーブ動作モードに切り替えることができる。また、これにより、異常の発生位置を判定することができる。
 また、前記第1のスレーブ~前記第Nのスレーブの各々は、さらに、前記第3の入出力ポートまたは前記第4の入出力ポートが通常フレームを受信するタイミングに基づいて、前記第1のスレーブ~前記第Nのスレーブが同期して動作する同期タイミングを示す同期タイミング信号を算出する同期タイミング算出部を有してよい。前記同期タイミング算出部は、通常フレームを受信する側の入出力ポートで断線ノード通知フレームを受信した場合、および、前記検出部が、通常フレームを受信する側の入出力ポートの接続に係る異常を検出した場合に、通常フレームを、当該入出力ポートではない入出力ポートが受信するときに、前記同期タイミングが変わらないように、前記同期タイミング信号を算出する算出方法を更新するとしてもよい。
 これにより、通常フレームの送信経路が変更された場合でも、第1のスレーブ~第Nのスレーブが同期して動作することができる。
 また、前記スレーブ送信制御部は、前記第1のスレーブ動作モードで動作している場合において、前記検出部が、前記第3の入出力ポートの接続に係る異常、または、前記第4の入出力ポートの接続に係る異常を検出したときに送信を試みる断線ノード通知フレームに、前記スレーブ送信制御部を含むスレーブのMACID(Media Access Control ID)を含ませてもよい。そして、前記コントローラは、さらに、前記第1の入出力ポートおよび前記第2の入出力ポートが断線ノード通知フレームを受信した場合に、前記第1の入出力ポートが受信した断線ノード通知フレームに含まれるMACIDと、前記第2の入出力ポートが受信した断線ノード通知フレームに含まれるMACIDとに基づいて、異常の種類に係る判定を行う異常種類判定部を有するとしてもよい。
 これにより、コントローラは、異常の種類に係る判定を行うことができる。
 また、前記検出部は、さらに、前記第3の入出力ポートの接続に係る異常の回復、および、前記第4の入出力ポートの接続に係る異常の回復を検出してよい。前記スレーブ送信制御部は、前記第2のスレーブ動作モードで動作している場合において、前記検出部が、前記第3の入出力ポートの接続に係る異常の回復、または、前記第4の入出力ポートの接続に係る異常の回復を検出したときに、動作モードを前記第2のスレーブ動作モードから前記第1のスレーブ動作モードに切り替えると共に、前記第3の入出力ポートと前記第4の入出力ポートとから断線ノート通知フレームを送信してもよい。前記コントローラ送信制御部は、前記第2のコントローラ動作モードで動作している場合において、前記第1の入出力ポートまたは前記第2の入出力ポートが断線ノード通知フレームを受信すると、動作モードを前記第2のコントローラ動作モードから前記第1のコントローラ動作モードに切り替えるとしてもよい。
 これにより、接続に係る異常が回復した場合に、送信経路を元に戻すことができる。
 本開示の他の一態様に係るスレーブは、第1の入出力ポートと、第2の入出力ポートと、スレーブ送信制御部と、検出部と、を備える。スレーブ送信制御部は、第1のスレーブ動作モードにおいて、通常フレームを、前記第1の入出力ポートと前記第2の入出力ポートとのうちの一方の入出力ポートが受信すると、当該通常フレームを、前記第1の入出力ポートと前記第2の入出力ポートとのうちの他方の入出力ポートから送信する。また、スレーブ送信制御部は、第2のスレーブ動作モードにおいて、通常フレームを、前記一方の入出力ポートが受信すると、当該通常フレームを、前記一方の入出力ポートから送信する。前記検出部は、前記第1の入出力ポートの接続に係る異常、および、前記第1の入出力ポートの接続に係る異常を検出する。前記スレーブ送信制御部は、前記第1のスレーブ動作モードで動作している場合において、前記検出部が、前記第1の入出力ポートの接続に係る異常、または、前記第2の入出力ポートの接続に係る異常を検出したときに、動作モードを前記第1のスレーブ動作モードから前記第2のスレーブ動作モードに切り替える。それと共に、前記スレーブ送信制御部は、接続状態の変化を検出した旨を示す前記断線ノード通知フレームを生成し、前記第1の入出力ポートと前記第2の入出力ポートとから前記断線ノード通知フレームの送信を試みる。前記スレーブ送信制御部は、断線ノード通知フレームを前記一方の入出ポートが受信すると、当該断線ノード通知フレームを、前記他方の入出力ポートから送信する。
 上記構成のスレーブは、検出部が、第1の入出力ポートの接続に係る異常、または、第2の入出力ポートの接続に係る異常を検出すると、断線ノード通知フレームを送信することができる。これにより、コントローラは、ネットワークの接続に係る異常が発生してから、比較的短時間で、断線ノード通知フレームを受信することができる。そして、コントローラは、断線ノード通知フレームを受信すると、フレームの送信経路を変更することができる。
 このように、上記構成のスレーブによると、ネットワークの接続に係る異常が発生してから、フレームの送信経路が変更されるまでにかかる時間を、従来よりも短縮することができる。
 また、前記断線ノード通知フレームは、0以上の整数値を示すノードカウント値を含み、前記スレーブ送信制御部は、前記第1のスレーブ動作モードで動作している場合において、次の(1)および(2)を行ってもよい。
(1)前記検出部が、前記第1の入出力ポートの接続に係る異常を検出したときに、前記一方の入出力ポートから、0を示すノードカウント値を含む断線ノード通知フレームの送信を試み、前記他方の入出力ポートから、1を示すノードカウント値を含む断線ノード通知フレームの送信を試みる。
(2)前記一方の入出力端子が、0を示すノードカウント値を含む断線ノード通知フレームを受信すると、動作モードを前記第1のスレーブ動作モードから前記第2のスレーブ動作モードに切り替える。前記一方の入出ポートが断線ノード通知フレームを受信すると、当該断線ノード通知フレームに含まれるノードカウント値に1を加えたノードカウント値を含む断線ノード通知フレームを、前記他方の入出力ポートから送信する。
 また、さらに、前記第1の入出力ポートまたは前記第2の入出力ポートが通常フレームを受信するタイミングに基づいて、同期タイミングを示す同期タイミング信号を算出する同期タイミング算出部を有してよい。前記同期タイミング算出部は、通常フレームを受信する側の入出力ポートで断線ノード通知フレームを受信した場合、および、前記検出部が、通常フレームを受信する側の入出力ポートの接続に係る異常を検出した場合に、通常フレームを、当該入出力ポートではない入出力ポートが受信するときに、前記同期タイミングが変わらないように、前記同期タイミング信号を算出する算出方法を更新するとしてもよい。
 また、前記スレーブ送信制御部は、前記第1のスレーブ動作モードで動作している場合において、前記検出部が、前記第1の入出力ポートの接続に係る異常、または、前記第2の入出力ポートの接続に係る異常を検出したときに送信を試みる断線ノード通知フレームに、前記スレーブ送信制御部を含むスレーブのMACID(Media Access Control ID)を含ませるとしてもよい。
 また、前記検出部は、さらに、前記第1の入出力ポートの接続に係る異常の回復、および、前記第2の入出力ポートの接続に係る異常の回復を検出してよい。前記スレーブ送信制御部は、前記第2のスレーブ動作モードで動作している場合において、前記検出部が、前記第1の入出力ポートの接続に係る異常の回復、または、前記第2の入出力ポートの接続に係る異常の回復を検出したときに、動作モードを前記第2のスレーブ動作モードから前記第1のスレーブ動作モードに切り替えてよい。それと共に、前記スレーブ送信制御部は、前記第1の入出力ポートと前記第2の入出力ポートとから断線ノード通知フレームを送信するとしてもよい。
 本開示の他の一態様に係るコントローラは、第1の入出力ポートと、第2の入出力ポートと、コントローラ送信制御部と、を備える。前記コントローラ送信制御部は、通常フレームを生成し、第1のコントローラ動作モードにおいて、前記通常フレームを、前記第1の入出力ポートから繰り返し送信し、第2のコントローラ動作モードにおいて、通常フレームを、前記第1の入出力ポートと前記第2の入出力ポートとから繰り返し送信する。また、前記コントローラ送信制御部は、前記第1のコントローラ動作モードで動作している場合において、前記第1の入出力ポートまたは前記第2の入出力ポートが、接続状態の変化を検出した旨を示す断線ノード通知フレームを受信すると、動作モードを前記第1のコントローラ動作モードから前記第2のコントローラ動作モードに切り替える。
 上記構成のコントローラは、従来技術のように、ネットワーク存在フレームを送信しなくても、断線ノート通知フレームを受信すれば、通信フレームの通信経路を変更することがきる。
 したがって、上記コントローラによると、ネットワークの接続に係る異常が発生してから、フレームの送信経路が変更されるまでにかかる時間を、従来よりも短縮することができる。
 また、断線ノード通知フレームには、MACIDが含まれてよい。さらに、前記第1の入出力ポートおよび前記第2の入出力ポートが断線ノード通知フレームを受信した場合に、前記第1の入出力ポートが受信した断線ノード通知フレームに含まれるMACIDと、前記第2の入出力ポートが受信した断線ノード通知フレームに含まれるMACIDとに基づいて、異常の種類に係る判定を行う異常種類判定部を有するとしてもよい。
 また、前記第2のコントローラ動作モードで動作している場合において、前記第1の入出力ポートまたは前記第2の入出力ポートが、断線ノード通知フレームを受信すると、動作モードを前記第2のコントローラ動作モードから前記第1のコントローラ動作モードに切り替えるとしてもよい。
 本開示の他の一態様に係る通信方法は、通信システムが行う通信方法である。当該通信システムは、コントローラと、第1のスレーブ~第Nのスレーブ(Nは2以上の整数)と、を備える。コントローラは、第1の入出力ポートと、第2の入出力ポートと、コントローラ送信制御部と、を有する。第1のスレーブ~第Nのスレーブの各々は、第3の入出力ポートと、第4の入出力ポートと、スレーブ送信制御部と、検出部と、を有する。前記第1の入出力ポートと、前記第1のスレーブが有する前記第4の入出力ポートとが接続される。前記第Nのスレーブが有する前記第3の入出力ポートと、前記第2の入出力ポートとが接続される。任意のK(Kは2以上N以下の整数)において、第K-1のスレーブが有する前記第3の入出力ポートと、第Kのスレーブが有する前記第4の入出力ポートとが接続される。前記通信方法は、前記コントローラ送信制御部が、通常フレームを生成し、第1のコントローラ動作モードにおいて、前記通常フレームを、前記第1の入出力ポートから繰り返し送信し、第2のコントローラ動作モードにおいて、通常フレームを、前記第1の入出力ポートと前記第2の入出力ポートとから繰り返し送信する。前記第1のスレーブ~前記第Nのスレーブのそれぞれの前記スレーブ送信制御部は、第1のスレーブ動作モードにおいて、通常フレームを、前記第3の入出力ポートと前記第4の入出力ポートとのうちの一方の入出力ポートが受信すると、当該通常フレームを、前記第3の入出力ポートと前記第4の入出力ポートとのうちの他方の入出力ポートから送信する。また、前記スレーブ送信制御部は、第2のスレーブ動作モードにおいて、通常フレームを、前記一方の入出力ポートが受信すると、当該通常フレームを、前記一方の入出力ポートから送信する。前記検出部は、前記第3の入出力ポートの接続に係る異常、および、前記第4の入出力ポートの接続に係る異常を検出する。前記スレーブ送信制御部は、前記第1のスレーブ動作モードで動作している場合に、前記検出部が前記第3の入出力ポートの接続に係る異常または前記第4の入出力ポートの接続に係る異常を検出したとき、前記第1のスレーブ動作モードから前記第2のスレーブ動作モードに切り替える。それと共に前記スレーブ送信制御部は、接続状態の変化を検出した旨を示す断線ノード通知フレームを生成し、前記第3の入出力ポートと前記第4の入出力ポートとから、前記断線ノード通知フレームの送信を試みる。そして前記スレーブ送信制御部は、前記断線ノード通知フレームを前記一方の入出ポートが受信すると、当該断線ノード通知フレームを、前記他方の入出力ポートから送信する。前記コントローラ送信制御部は、前記第1のコントローラ動作モードで動作している場合に、前記第1の入出力ポートまたは前記第2の入出力ポートが断線ノード通知フレームを受信すると、前記第1のコントローラ動作モードから前記第2のコントローラ動作モードに切り替える。
 上記通信方法において、コントローラ送信制御部が第1のコントローラ動作モードで動作し、各スレーブのスレーブ送信制御部が第1のスレーブ動作モードで動作している場合に、通常フレームの送信経路は、コントローラから、順に、第1のスレーブ~第Nのスレーブを経由して再びコントローラに戻る送信経路となる。
 この状態において、いずれかのスレーブにおいて、検出部が、第3の入出力ポートの接続に係る異常、または、第4の入出力ポートの接続に係る異常を検出すると、そのスレーブから、コントローラに向けて、断線ノード通知フレームが送信される。これにより、コントローラは、ネットワークの接続に係る異常が発生してから、比較的短時間で、断線ノード通知フレームを受信することができる。そして、コントローラは、断線ノード通知フレームを受信すると、コントローラ送信制御部が、動作モードを第1のコントローラ動作モードから第2のコントローラ動作モードに切り替える。
 一方で、検出部が、第3の入出力ポートの接続に係る異常、または、第4の入出力ポートの接続に係る異常を検出したスレーブに対し、スレーブ送信制御部は、動作モードを第1のスレーブ動作モードから第2のスレーブ動作モードに切り替える。
 これにより、通信フレームの通信経路は、次に示す第1の経路および第2の経路の2つの経路からなる送信経路に変更される。第1の経路は、コントローラから、順に、第1のスレーブ~接続に係る異常が発生している箇所の手前のスレーブ~第1のスレーブを経由して再びコントローラへ戻る経路(すなわち、接続に係る異常の手前のスレーブで折り返す経路)である。第2の経路は、コントローラから、順に、第Nのスレーブ~接続に係る異常の手前のスレーブ~第Nのスレーブを経由して再びコントローラへ戻る経路(すなわち、接続に係る異常が発生している箇所の手前のスレーブで折り返す経路)である。
 このように、上記通信方法によると、ネットワークの接続に係る異常が発生してから、フレームの送信経路が変更されるまでにかかる時間を、従来よりも短縮することができる。
 以下、本開示の一態様に係る通信システム、スレーブ、コントローラ、および、通信方法の具体例について、図面を参照しながら説明する。ここで示す実施の形態は、いずれも本開示の一具体例を示すものである。従って、以下の実施の形態で示される数値、形状、構成要素、構成要素の配置および接続形態、ならびに、ステップ(工程)およびステップの順序等は、一例であって本開示を限定する趣旨ではない。また、各図は、模式図であり、必ずしも厳密に図示されたものではない。
 なお、本開示の包括的または具体的な態様は、システム、方法、集積回路、コンピュータプログラムまたはコンピュータ読み取り可能なCD-ROMなどの記録媒体で実現されてもよく、システム、方法、集積回路、コンピュータプログラムおよび記録媒体の任意な組み合わせで実現されてもよい。
 (実施の形態1)
 [1-1.構成]
 図1は、実施の形態1に係る通信システム1の構成の一例を示すブロック図である。
 図1に示すように、通信システム1は、第1の入出力ポート11と、第2の入出力ポート12とを有するコントローラ10と、それぞれが、第3の入出力ポート21と、第4の入出力ポート22とを有する複数のスレーブ20(図1中の、第1のスレーブ20Aと、第2のスレーブ20Bと、第3のスレーブ20Cとが対応)を備える。
 ここでは、複数のスレーブ20が、第1のスレーブ20Aと、第2のスレーブ20Bと、第3のスレーブ20Cとの3つであるとして説明するが、複数のスレーブ20の数は、必ずしも3つである構成に限定される必要はない。また、以下では、第1のスレーブ20Aと、第2のスレーブ20Bと、第3のスレーブ20Cとを明示的に区別をする必要が無い場合には、第1のスレーブ20Aと、第2のスレーブ20Bと、第3のスレーブ20Cとのことを単に、スレーブ20とも称する。
 図1に示すように、第1の入出力ポート11と、第1のスレーブ20Aにおける第4の入出力ポート22とが、ケーブル30Aにより接続される。第1のスレーブ20Aにおける第3の入出力ポート21と、第2のスレーブ20Bにおける第4の入出力ポート22とが、ケーブル30Bにより接続される。第2のスレーブ20Bにおける第3の入出力ポート21と、第3のスレーブ20Cにおける第4の入出力ポート22とが、ケーブル30Cにより接続される。第3のスレーブ20Cにおける第3の入出力ポート21と、第2の入出力ポート12とが、ケーブル30Dにより接続される。以下では、ケーブル30Aと、ケーブル30Bと、ケーブル30Cと、ケーブル30Dとを明示的に区別をする必要が無い場合には、ケーブル30Aと、ケーブル30Bと、ケーブル30Cと、ケーブル30Dとのことを単に、ケーブル30とも称する。
 第1の入出力ポート11は、送信端子TX111と、受信端子RX112とを有する。第2の入出力ポート12は、送信端子TX121と、受信端子RX122とを有する。第3の入出力ポート21は、送信端子TX211と、受信端子RX212とを有する。第4の入出力ポート22は、送信端子TX221と、受信端子RX222とを有する。
 ケーブル30は、第1の接続経路と第2の接続経路とを有し、第1の接続経路により、送信端子TX111と受信端子RX222、送信端子TX121と受信端子RX212、または、送信端子TX221と受信端子RX212とを接続し、第2の接続経路により、送信端子TX221と受信端子RX112、送信端子TX211と受信端子RX122、または、送信端子TX211と受信端子RX222とを接続する。
 図2は、コントローラ10の構成の一例を示すブロック図である。
 図2に示すように、コントローラ10は、第1の入出力ポート11と、第2の入出力ポート12と、コントローラ送信制御部13と、異常位置判定部14と、異常種類判定部15とを有する。
 第1の入出力ポート11は、送信端子TX111と受信端子RX112とを有するコネクタ110と、ファイ(PHY)130とを有する。
 ファイ130は、TXファイ端子131と、RXファイ端子132とを有し、TXファイ端子131から、その接続先の通信装置に対してフレームを送信し、RXファイ端子132で、その接続先の通信装置からのフレームを受信する。TXファイ端子131は、送信端子TX111に接続し、RXファイ端子132は、受信端子RX112に接続する。
 また、ファイ130は、RXファイ端子132とその接続先の通信装置とのリンクを検出する。
 第2の入出力ポート12は、送信端子TX121と受信端子RX122とを有するコネクタ120と、ファイ150とを有する。
 ファイ150は、TXファイ端子151と、RXファイ端子152とを有し、TXファイ端子151から、その接続先の通信装置に対してフレームを送信し、RXファイ端子152で、その接続先の通信装置からのフレームを受信する。TXファイ端子151は、送信端子TX121に接続し、RXファイ端子152は、受信端子RX122に接続する。
 また、ファイ150は、RXファイ端子152とその接続先の通信装置とのリンクを検出する。
 コントローラ送信制御部13は、第1のコントローラ動作モードまたは第2のコントローラ動作モードで動作する。コントローラ送信制御部13は、初期状態において、第1のコントローラ動作モードで動作する。
 コントローラ送信制御部13は、第1のコントローラ動作モードにおいて、通常フレームを、第1の入出力ポート11から繰り返し送信する。より具体的には、コントローラ送信制御部13は、第1のコントローラ動作モードにおいて、ファイ130を制御して、通常フレームを、TXファイ端子131からその接続先の通信装置へ繰り返し送信させる。
 例えば、コントローラ送信制御部13は、第1のコントローラ動作モードにおいて、通常フレームを、所定の周期毎に、第1の入出力ポート11から送信するとしてもよい。
 コントローラ送信制御部13は、第2のコントローラ動作モードにおいて、通常フレームを、第1の入出力ポート11と第2の入出力ポート12から繰り返し送信する。より具体的には、コントローラ送信制御部13は、第2のコントローラ動作モードにおいて、ファイ130とファイ150とを制御して、通常フレームを、TXファイ端子131とTXファイ端子151とからそれらの接続先の通信装置へ繰り返し送信させる。
 例えば、コントローラ送信制御部13は、第2のコントローラ動作モードにおいて、通常フレームを、所定の周期毎に、第1の入出力ポート11と第2の入出力ポート12とから送信するとしてもよい。
 コントローラ送信制御部13は、第1のコントローラ動作モードで動作している場合において、第1の入出力ポート11または第2の入出力ポート12が断線ノード通知フレーム(後述)を受信すると、動作モードを第1のコントローラ動作モードから第2のコントローラ動作モードに切り替える。
 コントローラ送信制御部13は、第2のコントローラ動作モードで動作している場合において、第1の入出力ポート11または第2の入出力ポート12が断線ノード通知フレームを受信すると、動作モードを第2のコントローラ動作モードから第1のコントローラ動作モードに切り替える。
 コントローラ送信制御部13は、例えば、コントローラ10が有するプロセッサ101が、コントローラ10が有するメモリ102に記憶されるプログラムを実行することで実現されるとしてもよい。
 異常位置判定部14は、第1の入出力ポート11および第2の入出力ポート12が断線ノード通知フレームを受信した場合に、それら断線ノード通知フレームに含まれる、0以上の整数値を示すノードカウント値に基づいて、異常の発生位置を判定する。異常位置判定部14が行う動作の詳細については、後述する。
 異常位置判定部14は、例えば、コントローラ10が有するプロセッサ101が、コントローラ10が有するメモリ102に記憶されるプログラムを実行することで実現されるとしてもよい。
 異常種類判定部15は、第1の入出力ポート11および第2の入出力ポート12が断線ノード通知フレームを受信した場合に、それら断線ノード通知フレームに含まれる、スレーブ20のMACIDに基づいて、異常の種類に係る判定を行う。異常種類判定部15が行う動作の詳細については、後述する。
 異常種類判定部15は、例えば、コントローラ10が有するプロセッサ101が、コントローラ10が有するメモリ102に記憶されるプログラムを実行することで実現されるとしてもよい。
 図3は、スレーブ20の構成の一例を示すブロック図である。
 図3に示すように、スレーブ20は、第3の入出力ポート21と、第4の入出力ポート22と、スレーブ送信制御部23と、同期タイミング算出部24と、検出部25とを備える。
 第3の入出力ポート21は、送信端子TX211と受信端子RX212とを有するコネクタ210と、ファイ230とを有する。
 ファイ230は、TXファイ端子231と、RXファイ端子232とを有し、TXファイ端子231から、その接続先の通信装置に対してフレームを送信し、RXファイ端子232で、その接続先の通信装置からのフレームを受信する。TXファイ端子231は、送信端子TX211に接続し、RXファイ端子232は、受信端子RX212に接続する。
 また、ファイ230は、RXファイ端子232とその接続先の通信装置とのリンクを検出する。
 第4の入出力ポート22は、送信端子TX221と受信端子RX222とを有するコネクタ220と、ファイ250とを有する。
 ファイ250は、TXファイ端子251と、RXファイ端子252とを有し、TXファイ端子251から、その接続先の通信装置に対してフレームを送信し、RXファイ端子252で、その接続先の通信装置からのフレームを受信する。TXファイ端子251は、送信端子TX221に接続し、RXファイ端子252は、受信端子RX222に接続する。
 また、ファイ250は、RXファイ端子252とその接続先の通信装置とのリンクを検出する。
 検出部25は、第3の入出力ポート21の接続に係る異常、および、第4の入出力ポート22の接続に係る異常を検出する。より具体的には、検出部25は、ファイ230が、RXファイ端子232とその接続先の通信装置とのリンクを検出している状態から検出していない状態に変化することで、第3の入出力ポート21の接続に係る異常を検出し、ファイ250が、RXファイ端子252とその接続先の通信装置とのリンクを検出している状態から検出していない状態に変化することで、第4の入出力ポート22の接続に係る異常を検出する。
 また、検出部25は、第3の入出力ポート21の接続に係る異常の回復、および、第4の入出力ポート22の接続に係る異常の回復を検出する。より具体的には、検出部25は、ファイ230が、RXファイ端子232とその接続先の通信装置とのリンクを検出していない状態から検出している状態に変化することで、第3の入出力ポート21の接続に係る異常の回復を検出し、ファイ250が、RXファイ端子252とその接続先の通信装置とのリンクを検出していない状態から検出している状態に変化することで、第4の入出力ポート22の接続に係る異常の回復を検出する。
 検出部25は、例えば、スレーブ20が有するプロセッサ201が、スレーブ20が有するメモリ202に記憶されるプログラムを実行することで実現されるとしてもよい。
 スレーブ送信制御部23は、第1のスレーブ動作モードまたは第2のスレーブ動作モードで動作する。スレーブ送信制御部23は、初期状態において、第1のスレーブ動作モードで動作する。
 スレーブ送信制御部23は、第1のスレーブ動作モードにおいて、通常フレームを、第3の入出力ポート21と第4の入出力ポート22とのうちの一方の入出力ポートが受信すると、通常フレームを、第3の入出力ポート21と第4の入出力ポート22とのうちの他方の入出力ポートから送信する。より具体的には、スレーブ送信制御部23は、第1のスレーブ動作モードにおいて、ファイ230とファイ250とを制御して、RXファイ端子232が通常フレームを受信した場合に、通常フレームを、TXファイ端子251から送信させ、RXファイ端子252が通常フレームを受信した場合に、通常フレームを、TXファイ端子231から送信させる。なお、上記他方の入出力ポートが送信する通常フレームは、上記一方の入出力ポートが受信する通常フレームに対しファイ230とファイ250とを制御することにより得られる通常フレームである。通常フレームとして例えば、ファイ230およびファイ250の制御によって、上記受信する通常フレームがそのまま上記送信する通常フレームとなる、すなわち通常フレームがスルーとなってもよい。また、通常フレームとして例えば、ファイ230およびファイ250の制御によって、上記受信する通常フレームが変換されて上記送信する通常フレームとなってもよい。
 スレーブ送信制御部23は、第2のスレーブ動作モードにおいて、通常フレームを、第3の入出力ポート21と第4の入出力ポート22とのうちの一方の入出力ポートが受信すると、通常フレームを、その一方の入出力ポートから送信する。より具体的には、スレーブ送信制御部23は、第2のスレーブ動作モードにおいて、ファイ230とファイ250とを制御して、RXファイ端子232が通常フレームを受信した場合に、通常フレームを、TXファイ端子231から送信させ、RXファイ端子252が通常フレームを受信した場合に、通常フレームを、TXファイ端子251から送信させる。
 スレーブ送信制御部23は、第1のスレーブ動作モードで動作している場合において、検出部25が、第3の入出力ポート21の接続に係る異常、または、第4の入出力ポート22の接続に係る異常を検出したときに、動作モードを第1のスレーブ動作モードから第2のスレーブ動作モードに切り替える。それと共に、スレーブ送信制御部23は、第3の入出力ポート21と第4の入出力ポート22とから、接続状態の変化を検出した旨を示す断線ノード通知フレームの送信を試みる。より具体的には、スレーブ送信制御部23は、ファイ230とファイ250とを制御して、TXファイ端子231から断線ノード通知フレームの送信を試みさせ、TXファイ端子251から断線ノート通知フレームの送信を試みさせる。
 この際、スレーブ送信制御部23は、送信を試みる断線ノード通知フレームに、スレーブ送信制御部23を含むスレーブ20のMACIDを含ませる。また、この際、スレーブ送信制御部23は、検出部25が、第3の入出力ポート21と第4の入出力ポート22とのうちの一方の入出力ポートの接続に係る異常を検出したときに、その一方の入出力ポートから、0を示すノードカウント値を含む断線ノード通知フレームの送信を試み、他方の入出力ポートから、1を示すノードカウント値を含む断線ノード通知フレームの送信を試みる。
 スレーブ送信制御部23は、第2のスレーブ動作モードで動作している場合において、検出部25が、第3の入出力ポート21の接続に係る異常の回復、または、第4の入出力ポート22の接続に係る異常の回復を検出したときに、動作モードを第2のスレーブ動作モードから第1のスレーブ動作モードに切り替えると共に、第3の入出力ポート21と第4の入出力ポート22とから、断線ノード通知フレームを送信する。より具体的には、スレーブ送信制御部23は、ファイ230とファイ250とを制御して、TXファイ端子231から断線ノード通知フレームを送信させ、TXファイ端子251から断線ノート通知フレームを送信させる。
 この際、スレーブ送信制御部23は、送信する断線ノード通知フレームに、スレーブ送信制御部23を含むスレーブ20のMACIDを含ませる。また、この際、スレーブ送信制御部23は、検出部25が、第3の入出力ポート21と第4の入出力ポート22とのうちの一方の入出力ポートの接続に係る異常の回復を検出したときに、その一方の入出力ポートから、0を示すノードカウント値を含む断線ノード通知フレームを送信し、他方の入出力ポートから、1を示すノードカウント値を含む断線ノード通知フレームを送信する。
 スレーブ送信制御部23は、断線ノード通知フレームを、第3の入出力ポート21と第4の入出力ポート22とのうちの一方の入出力ポートが受信すると、断線ノード通知フレームを、他方の入出力ポートから送信する。より具体的には、スレーブ送信制御部23は、ファイ230とファイ250とを制御して、RXファイ端子232が断線ノード通知フレームを受信した場合に、断線ノード通知フレームを、TXファイ端子251から送信させ、RXファイ端子252が断線ノード通知フレームを受信した場合に、断線ノード通知フレームを、TXファイ端子231から送信させる。なお、上記他方の入出力ポートが送信する断線ノード通知フレームは、上記一方の入出力ポートが受信する断線ノード通知フレームに対しファイ230とファイ250とを制御することにより得られる断線ノード通知フレームである。断線ノード通知フレームとして例えば、ファイ230およびファイ250の制御によって、上記受信する断線ノード通知フレームがそのまま上記送信する断線ノード通知フレームとなる、すなわち断線ノード通知フレームがスルーとなってもよい。また断線ノード通知フレームとして、例えば、ファイ230およびファイ250の制御によって、上記受信する断線ノード通知フレームが変換されて上記送信する断線ノード通知フレームとなってもよい。
 この際、スレーブ送信制御部23は、一方の入出力ポートが受信した断線ノード通知フレームに含まれるノードカウント値に1を加えたノードカウント値を含む断線ノード通知フレームを、他方の入出力ポートから送信する。
 スレーブ送信制御部23は、第1のスレーブ動作モードで動作している場合において、第3の入出力ポート21または第4の入出力ポート22が、0を示すノードカウント値を含む断線ノード通知フレームを受信すると、動作モードを第1のスレーブ動作モードから第2のスレーブ動作モードに切り替える。
 スレーブ送信制御部23は、第2のスレーブ動作モードで動作している場合において、第3の入出力ポート21または第4の入出力ポート22が0を含むノードカウント値を含む断線ノード通知フレームを受信すると、動作モードを第2のスレーブ動作モードから第1のスレーブ動作モードに切り替える。
 スレーブ送信制御部23は、例えば、スレーブ20が有するプロセッサ201が、スレーブ20が有するメモリ202に記憶されるプログラムを実行することで実現されるとしてもよい。
 同期タイミング算出部24は、第3の入出力ポート21または第4の入出力ポート22が通常フレームを受信するタイミングに基づいて、複数のスレーブ20の全てが同期して動作する同期タイミングを示す同期タイミング信号を算出する。
 図4は、コントローラ送信制御部13が第1のコントローラ動作モードで動作し、第1のスレーブ20Aと第2のスレーブ20Bと第3のスレーブ20Cとのスレーブ送信制御部23が第1のスレーブ動作モードで動作している場合における、通常フレームの送信経路(以下、「主送信経路」とも称する)を示す模式図である。この主送信経路は、コントローラ送信制御部13とスレーブ送信制御部23とが初期状態における、通常フレームの送信経路となる。
 図4において、主送信経路は、実線の矢印で示される経路である。
 図4に示すように、主送信経路は、コントローラ10から、順に、第1のスレーブ20A、第2のスレーブ20B、第3のスレーブ20Cを経由して、再びコントローラ10に戻る送信経路となる。
 図5は、通常フレーム50の送信経路が主送信経路である場合における、コントローラ10、および、各スレーブ20における、通常フレーム50の送受信タイミングと、各スレーブ20の同期タイミング算出部24が算出する、同期タイミング信号XSYNCの動作タイミングとの一例を示すタイミングチャートである。図5において、横軸は時間tである。
 図5に示すように、各スレーブ20の同期タイミング算出部24は、互いに同期して動作する同期タイミング信号XSYNCを算出する。
 ここでは、同期タイミング算出部24は、スレーブ20の数(ここでは3)と、主送信経路における、コントローラ10からの接続順番(ここでは、第1のスレーブ20Aでは1、第2のスレーブ20Bでは2、第3のスレーブ20Cでは3)とをあらかじめ記憶し、同期タイミング信号XSYNCのパルスタイミングTを、(式1)により算出する。
 T=通常フレーム受信完了時刻
   +(全てのスレーブ20の数-送信経路における接続順)×固定遅延値
    …… (式1)
 ここで、(式1)における「送信経路における接続順」は、同期タイミング算出部24があらかじめ記憶する、主送信経路におけるコントローラ10からの接続順番となる。
 図6は、コントローラ送信制御部13が第2のコントローラ動作モードで動作し、第1のスレーブ20Aのスレーブ送信制御部23が第1のスレーブ動作モードで動作し、第2のスレーブ20Bと第3のスレーブ20Cとのスレーブ送信制御部23が第2のスレーブ動作モードで動作している場合における、通常フレームの送信経路(以下、「第1の冗長送信経路」とも称する)を示す模式図である。詳細については後述するが、この第1の冗長送信経路は、例えば、通常フレームの送信経路が主送信経路である場合において、第2のスレーブ20Bの検出部25が、第3の入出力ポート21の接続に係る異常を検出したとき、および、第3のスレーブ20Cの検出部25が、第4の入出力ポート22の接続に係る異常を検出したとき等に、主送信経路から変更されて形成される送信経路である。
 図6において、第1の冗長送信経路は、実線の矢印で示される経路である。
 図6に示すように、第1の冗長送信経路は、第1の送信経路と、第2の送信経路とからなる。第1の送信経路は、コントローラ10から、順に、第1のスレーブ20A、第2のスレーブ20B、第1のスレーブ20Aを経由して、再びコントローラ10に戻る送信経路、すなわち第2のスレーブ20Bで折り返す経路である。第2の送信経路は、コントローラ10から順に、第3のスレーブ20Cを経由して、再びコントローラ10に戻る送信経路、すなわち、第3のスレーブ20Cで折り返す経路である。
 図6に示すように、第1の冗長送信経路における、第1のスレーブ20Aと第2のスレーブ20Bとのコントローラ10からの接続順は、主送信経路における接続順から変更されていない。これに対して、第1の冗長送信経路における、第3のスレーブ20Cのコントローラ10からの接続順は、主送信経路における接続順から変更(ここでは、3から1へ変更)されている。
 図7は、通常フレーム50の送信経路が第1の冗長送信経路である場合における、コントローラ10、および、各スレーブ20における、通常フレーム50の送受信タイミングと、各スレーブ20の同期タイミング算出部24が算出する、同期タイミング信号XSYNCの動作タイミングとの一例を示すタイミングチャートである。図7において、横軸は時間tである。
 第1のスレーブ20Aと第2のスレーブ20Bとにおいて、送信経路が主送信経路から第1の冗長送信経路に変更されても、(式1)における「送信経路における接続順」は変更されない。このため、第1のスレーブ20Aと第2のスレーブ20Bとにおいて、送信経路が主送信経路から第1の冗長送信経路に変更されても、同期タイミング信号XSYNCのパルスタイミングTの算出方法は変更されない。
 一方、第3のスレーブ20Cにおいて、送信経路が主送信経路から第1の冗長送信経路に変更されると、(式1)における「送信経路における接続順」が変更される。
 これに対して、同期タイミング算出部24は、送信経路における接続順が変更された場合に、断線ノード通知フレームに含まれるノードカウント値に基づいて、「送信経路における接続順」を算出する。これにより、同期タイミング算出部24は、「送信経路における接続順」が変更されても、同期タイミング信号XSYNCのパルスタイミングTは変更されない。このように、同期タイミング算出部24は、「送信経路における接続順」が変更されても、同期タイミング信号XSYNCのパルスタイミングTは変更されないように、同期タイミング信号XSYNCのパルスタイミングTの算出方法を更新する。このため、第3のスレーブ20Cにおいて、送信経路が主送信経路から第1の冗長送信経路に変更されても、同期タイミング信号XSYNCのパルスタイミングTは変更されない。なお、同期タイミング算出部24が行う、「送信経路における接続順」が変更された場合における「送信経路における接続順」の算出については、後述する。
 同期タイミング算出部24は、例えば、スレーブ20が有するプロセッサ201が、スレーブ20が有するメモリ202に記憶されるプログラムを実行することで実現されるとしてもよい。
 [1-2.動作]
 上記構成の通信システム1が行う動作について、以下、具体例を用いて説明する。
 まず、通常フレームの送信経路が主送信経路である場合において、ケーブル30Cに、ケーブル30が断線するケーブル断線異常が発生したときに、通信システム1が行う動作(以下、「第1の動作」とも称する)について説明する。なお、ここでは、ケーブル断線異常は、ケーブルが断線する異常だけでなく、例えば、ケーブルがコネクタから外れる等の理由により、ケーブルを介した通信ができなくなる異常のことをいう。
 図8は、ケーブル30Cに、ケーブル30が断線するケーブル断線異常が発生した様子を示す模式図である。図9は、第1の動作のシーケンス図である。
 図9に示すように、ケーブル30Cにケーブル断線異常が発生すると、第3のスレーブ20Cにおいて、ファイ250は、RXファイ端子252とその接続先である第2のスレーブ20Bのファイ230のTXファイ端子231とのリンクを検出しなくなる。このため、第3のスレーブ20Cにおいて、第3のスレーブ20Cの検出部25は、第4の入出力ポート22の接続に係る異常を検出する(ステップS10A)。
 第3のスレーブ20Cの検出部25が、第4の入出力ポート22の接続に係る異常を検出すると、第3のスレーブ20Cのスレーブ送信制御部23は、動作モードを第1のスレーブ動作モードから第2のスレーブ動作モードに切り替える(ステップS20A)。
 そして、第3のスレーブ20Cのスレーブ送信制御部23は、第3の入出力ポート21と第4の入出力ポート22とから、接続状態の変化を検出した旨を示す断線ノード通知フレームの送信を試みる(ステップS30A)。
 この際、第3のスレーブ20Cのスレーブ送信制御部23は、送信を試みる断線ノード通知フレームに、スレーブ送信制御部23を含む第3のスレーブ20CのMACIDを含ませる。また、第3のスレーブ20Cのスレーブ送信制御部23は、第3の入出力ポート21から、1を示すノードカウント値を含む断線ノード通知フレームの送信を試み、第4の入出力ポート22から、0を示すノードカウント値を含む断線ノード通知フレームの送信を試みる。
 前述した通り、ケーブル30Cにケーブル断線異常が発生している。このため、第4の入出力ポート22からの断線ノード通知フレームの送信の試みは失敗する。一方で、第3の入出力ポート21からの断線ノード通知フレームの送信の試みは成功する。すなわち、第3のスレーブ20Cのスレーブ送信制御部23は、第3の入出力ポート21から、断線ノード通知フレームを送信する(ステップS40A)。
 ここで、第3のスレーブ20Cの検出部25が、第4の入出力ポート22の接続に係る異常を検出した時点において、通常フレームの送信経路は、主送信経路である。また、後述するように、ケーブル30Cにケーブル断線異常が発生したことにより、通常フレームの送信経路は、主送信経路から第1の冗長送信経路に変更される。このため、第3のスレーブ20Cにおいて、通常フレームの送信経路における、第3のスレーブ20Cのコントローラ10からの接続順が変更(ここでは、3から1へ変更)される。
 同期タイミング算出部24は、通常フレームの送信経路が、主送信経路から第1の冗長送信経路に変更されても、同期タイミング信号XSYNCのパルスタイミングTは変更されないように、(式1)における「送信経路における接続順」を算出する。より具体的には、同期タイミング算出部24は、あらかじめ記憶するスレーブ20の数(ここでは3)から、検出部25が接続に係る異常を検出した時点における、コントローラ10からの接続順番(ここでは、あらかじめ記憶する、主送信経路における、コントローラ10からの接続順番(ここでは3))を引いた値に1を加えた値(ここでは、3-3+1=1)を、(式1)における「送信経路における接続順」と算出する。
 このように、同期タイミング算出部24は、「送信経路における接続順」が変更されても、同期タイミング信号XSYNCのパルスタイミングTは変更されないように、同期タイミング信号XSYNCのパルスタイミングTの算出方法を更新する(ステップS50)。言い換えると、同期タイミング算出部24は、検出部25が、通常フレームを受信する側の入出力ポートの接続に係る異常を検出した場合に、通常フレームを次回以降、当該入出力ポートではない入出力ポートが受信するときに、複数のスレーブ20の全てが同期して動作する同期タイミングが変わらないように、同期タイミング信号XSYNCを算出する算出方法を更新する。
 一方、ケーブル30Cにケーブル断線異常が発生すると、第2のスレーブ20Bにおいて、ファイ230は、RXファイ端子232とその接続先である第3のスレーブ20Cのファイ250のTXファイ端子251とのリンクを検出しなくなる。このため、第2のスレーブ20Bにおいて、第2のスレーブ20Bの検出部25は、第3の入出力ポート21の接続に係る異常を検出する(ステップS10B)。
 第2のスレーブ20Bの検出部25が、第3の入出力ポート21の接続に係る異常を検出すると、第2のスレーブ20Bのスレーブ送信制御部23は、動作モードを第1のスレーブ動作モードから第2のスレーブ動作モードに切り替える(ステップS20B)。
 そして、第2のスレーブ20Bのスレーブ送信制御部23は、第3の入出力ポート21と第4の入出力ポート22とから、断線ノード通知フレームの送信を試みる(ステップS30B)。
 この際、第2のスレーブ20Bのスレーブ送信制御部23は、送信を試みる断線ノード通知フレームに、スレーブ送信制御部23を含む第2のスレーブ20BのMACIDを含ませる。また、第2のスレーブ20Bのスレーブ送信制御部23は、第3の入出力ポート21から、0を示すノードカウント値を含む断線ノード通知フレームの送信を試み、第4の入出力ポート22から、1を示すノードカウント値を含む断線ノード通知フレームの送信を試みる。
 前述した通り、ケーブル30Cにケーブル断線異常が発生している。このため、第3の入出力ポート21からの断線ノード通知フレームの送信の試みは失敗する。一方で、第4の入出力ポート22からの断線ノード通知フレームの送信の試みは成功する。すなわち、第2のスレーブ20Bのスレーブ送信制御部23は、第4の入出力ポート22から、断線ノード通知フレームを送信する(ステップS40B)。
 ここで、第2のスレーブ20Bの検出部25が、第3の入出力ポート21の接続に係る異常を検出した時点において、通常フレームの送信経路は、主送信経路である。また、後述するように、ケーブル30Cにケーブル断線異常が発生したことにより、通常フレームの送信経路は、主送信経路から第1の冗長送信経路に変更される。このため、第2のスレーブ20Bにおいて、通常フレームの送信経路における、第3のスレーブ20Cのコントローラ10からの接続順が変更されない。このため、第2のスレーブ20Bの同期タイミング算出部24は、同期タイミング信号XSYNCのパルスタイミングTの算出方法を更新しない。
 ステップS40Bの処理において、第2のスレーブ20Bのスレーブ送信制御部23が、第4の入出力ポート22から、断線ノード通知フレームを送信すると、第1のスレーブ20Aの第3の入出力ポート21は、その断線ノード通知フレームを受信する。
 第1のスレーブ20Aの第3の入出力ポート21が断線ノード通知フレームを受信すると、第1のスレーブ20Aのスレーブ送信制御部23は、その断線ノード通知フレームに含まれるノードカウント値(ここでは、1)に1を加えたノードカウント値(ここでは、1+1=2)を含む断線ノード通知フレームを、第4の入出力ポート22から送信する(ステップS40C)。
 ステップS40Aの処理において、第3のスレーブ20Cのスレーブ送信制御部23が、第3の入出力ポート21から、断線ノード通知フレーム(以下、「第1の断線ノード通知フレーム」とも称する)を送信すると、第2の入出力ポート12は、その第1の断線ノード通知フレームを受信する。
 ステップS40Cの処理において、第1のスレーブ20Aのスレーブ送信制御部23が、第4の入出力ポート22から、断線ノード通知フレーム(以下、「第2の断線ノード通知フレーム」とも称する)を送信すると、第1の入出力ポート11は、その第2の断線ノード通知フレームを受信する。
 第2の入出力ポート12が第1の断線ノード通知フレームを受信し、第1の入出力ポート11が第2の断線ノード通知フレームを受信すると、異常種類判定部15は、第1の断線ノード通知フレームに含まれるMACID(ここでは、第3のスレーブ20CのMACID)と、第2の断線ノード通知フレームに含まれるMACID(ここでは、第2のスレーブ20BのMACID)とに基づいて、通信システム1において生じた異常がケーブル断線異常であると判定する(ステップS60)。
 すなわち、異常種類判定部15は、第1の入出力ポート11および第2の入出力ポート12が断線ノード通知フレームを所定時間内に受信した場合において、それら断線ノード通知フレームに含まれるMACIDが互いに異なるときに、通信システム1において生じた異常がケーブル断線異常であると判定する。
 さらに、異常種類判定部15は、第1の断線ノード通知フレームに含まれるMACID(ここでは、第3のスレーブ20CのMACID)と、第2の断線ノード通知フレームに含まれるMACID(ここでは、第2のスレーブ20BのMACID)とに基づいて、ケーブル断線異常の発生位置が、第3のスレーブ20Cと第2のスレーブ20Bとの間であると判定する(ステップS70)。
 すなわち、異常種類判定部15は、第1の入出力ポート11および第2の入出力ポート12が断線ノード通知フレームを所定時間内に受信した場合において、それら断線ノード通知フレームに含まれるMACIDが互いに異なるときに、通信システム1において生じた異常の発生位置が、それらMACIDのスレーブ20の間であると判定する。
 異常種類判定部15が異常の発生位置を判定すると、コントローラ送信制御部13は、動作モードを第1のコントローラ動作モードから第2のコントローラ動作モードに切り替える(ステップS80)。
 通信システム1が行う上記第1の動作により、コントローラ送信制御部13の動作モードが、第1のコントローラ動作モードから第2のコントローラ動作モードへと変更される。また、通信システム1が行う上記第1の動作により、第3のスレーブ20Cのスレーブ送信制御部23の動作モードが、第1のスレーブ動作モードから第2のスレーブ動作モードへと変更される。また、通信システム1が行う上記第1の動作により、第2のスレーブ20Bのスレーブ送信制御部23の動作モードが、第1のスレーブ動作モードから第2のスレーブ動作モードへと変更される。これにより、通常フレームの送信経路が、主通信経路(図4参照)から、第1の冗長送信経路(図6参照)に変更される。
 このように、通信システム1は、通常フレームの送信経路が主送信経路である場合において、ケーブル30にケーブル断線異常が発生したときに、送信経路をそのケーブル断線異常が発生したケーブル30を利用しない送信経路に変更して、通常フレームを各スレーブ20に送信する。
 次に、通常フレームの送信経路が主送信経路である場合において、第2のスレーブ20BのTXファイ端子231が機能しなくなるファイ端子異常が発生したときに、通信システム1が行う動作(以下、「第2の動作」とも称する)について説明する。
 図10は、第2のスレーブ20BのTXファイ端子231に、TXファイ端子231が機能しなくなるファイ端子異常が発生した様子を示す模式図である。図11は、第2の動作のシーケンス図である。なお、ここでは、TXファイ端子が機能しなくなるファイ端子異常は、例えば、ファイの故障、TXファイ端子の接続経路に不具合が生じる等の理由により、TXファイ端子が機能しなくなる異常のことをいう。
 図11に示すように、第2のスレーブ20BのTXファイ端子231に、第2のスレーブ20BのTXファイ端子231が機能しなくなるファイ端子異常が発生すると、第3のスレーブ20Cにおいて、ファイ250は、RXファイ端子252とその接続先である第2のスレーブ20Bのファイ230のTXファイ端子231とのリンクを検出しなくなる。このため、第3のスレーブ20Cにおいて、第3のスレーブ20Cの検出部25は、第4の入出力ポート22の接続に係る異常を検出する(ステップS110)。
 第3のスレーブ20Cの検出部25が、第4の入出力ポート22の接続に係る異常を検出すると、第3のスレーブ20Cのスレーブ送信制御部23は、動作モードを第1のスレーブ動作モードから第2のスレーブ動作モードに切り替える(ステップS120)。
 そして、第3のスレーブ20Cのスレーブ送信制御部23は、第3の入出力ポート21と第4の入出力ポート22とから、断線ノード通知フレームの送信を試みる(ステップS130)。
 この際、第3のスレーブ20Cのスレーブ送信制御部23は、送信を試みる断線ノード通知フレームに、スレーブ送信制御部23を含む第3のスレーブ20CのMACIDを含ませる。また、第3のスレーブ20Cのスレーブ送信制御部23は、第3の入出力ポート21から、1を示すノードカウント値を含む断線ノード通知フレームの送信を試み、第4の入出力ポート22から、0を示すノードカウント値を含む断線ノード通知フレームの送信を試みる。
 前述した通り、第2のスレーブ20BのTXファイ端子231に、第2のスレーブ20BのTXファイ端子231が機能しなくなるファイ端子異常が発生している。しかしながら、第3のスレーブ20CのTXファイ端子251から第2のスレーブ20BのRXファイ端子232への信号の送信は可能である。このため、第4の入出力ポート22からの断線ノード通知フレームの送信の試みは成功する。すなわち、第3のスレーブ20Cのスレーブ送信制御部23は、第4の入出力ポート22から、断線ノード通知フレームを送信する(ステップS140B)。一方で、第3の入出力ポート21からの断線ノード通知フレームの送信の試みも成功する。すなわち、第3のスレーブ20Cのスレーブ送信制御部23は、第3の入出力ポート21から、断線ノード通知フレームを送信する(ステップS140A)。
 ここで、第3のスレーブ20Cの検出部25が、第4の入出力ポート22の接続に係る異常を検出した時点において、通常フレームの送信経路は、主送信経路である。また、後述するように、第2のスレーブ20BのTXファイ端子231に、第2のスレーブ20BのTXファイ端子231が機能しなくなるファイ端子異常が発生したことにより、通常フレームの送信経路は、主送信経路から第1の冗長送信経路に変更される。このため、第3のスレーブ20Cにおいて、通常フレームの送信経路における、第3のスレーブ20Cのコントローラ10からの接続順が変更(ここでは、3から1へ変更)される。
 このため、同期タイミング算出部24は、「送信経路における接続順」が変更されても、同期タイミング信号XSYNCのパルスタイミングTは変更されないように、同期タイミング信号XSYNCのパルスタイミングTの算出方法を更新する(ステップS150)。
 一方、第2のスレーブ20BのTXファイ端子231に、第2のスレーブ20BのTXファイ端子231が機能しなくなるファイ端子異常が発生しても、第2のスレーブ20Bにおいて、ファイ230は、RXファイ端子232とその接続先である第3のスレーブ20Cのファイ250のTXファイ端子251とのリンクを検出する。このため、第2のスレーブ20Bにおいて、第2のスレーブ20Bの検出部25は、第3の入出力ポート21の接続に係る異常を検出しない。
 ステップS140Bの処理において、第3のスレーブ20Cのスレーブ送信制御部23が、第4の入出力ポート22から、断線ノード通知フレームを送信すると、第2のスレーブ20Bの第3の入出力ポート21は、その断線ノード通知フレームを受信する。
 第2のスレーブ20Bの第3の入出力ポート21が断線ノード通知フレームを受信すると、第2のスレーブ20Bのスレーブ送信制御部23は、その断線ノード通知フレームに含まれるノードカウント値(ここでは、0)に1を加えたノードカウント値(ここでは、0+1=1)を含む断線ノード通知フレームを、第4の入出力ポート22から送信する(ステップS140C)。
 ここで、第2のスレーブ20Bのスレーブ送信制御部23は、0を示すノードカウント値を含む断線ノード通知フレームを受信したため、動作モードを第1のスレーブ動作モードから第2のスレーブ動作モードへと切り替える(ステップS160)。
 ステップS140Cの処理において、第2のスレーブ20Bのスレーブ送信制御部23が、第4の入出力ポート22で、断線ノード通知フレームを送信すると、第1のスレーブ20Aの第3の入出力ポート21は、その断線ノード通知フレームを受信する。
 第1のスレーブ20Aの第3の入出力ポート21が断線ノード通知フレームを受信すると、第1のスレーブ20Aのスレーブ送信制御部23は、その断線ノード通知フレームに含まれるノードカウント値(ここでは、1)に1を加えたノードカウント値(ここでは、1+1=2)を含む断線ノード通知フレームを、第4の入出力ポート22から送信する(ステップS140D)。
 ステップS140Aの処理において、第3のスレーブ20Cのスレーブ送信制御部23が、第3の入出力ポート21から、断線ノード通知フレーム(以下、「第3の断線ノード通知フレーム」とも称する)を送信すると、第2の入出力ポート12は、その第3の断線ノード通知フレームを受信する。
 ステップS140Dの処理において、第1のスレーブ20Aのスレーブ送信制御部23が、第4の入出力ポート22から、断線ノード通知フレーム(以下、「第4の断線ノード通知フレーム」とも称する)を送信すると、第1の入出力ポート11は、その第4の断線ノード通知フレームを受信する。
 第2の入出力ポート12が第3の断線ノード通知フレームを受信し、第1の入出力ポート11が第4の断線ノード通知フレームを受信すると、異常種類判定部15は、第3の断線ノード通知フレームに含まれるMACID(ここでは、第3のスレーブ20CのMACID)と、第4の断線ノード通知フレームに含まれるMACID(ここでは、第3のスレーブ20CのMACID)とに基づいて、通信システム1において生じた異常がファイ端子異常であると判定する(ステップS170)。
 すなわち、異常種類判定部15は、第1の入出力ポート11および第2の入出力ポート12が断線ノード通知フレームを所定時間内に受信した場合において、それら断線ノード通知フレームに含まれるMACIDが等しいときに、通信システム1において生じた異常がファイ端子異常であると判定する。
 異常種類判定部15が、通信システム1において生じた異常がファイ端子異常であると判定すると、異常位置判定部14は、第3の断線ノード通知フレームと第4の断線ノード通知フレームとに含まれるノードカウント値に基づいて、ファイ端子異常の発生位置が、第3のスレーブ20Cと第2のスレーブ20Bとの間であると判定する(ステップS180)。
 すなわち、異常位置判定部14は、第3の断線ノード通知フレームに含まれるノードカウント値(ここでは、1)と、第4の断線ノード通知フレームに含まれるノードカウント値(ここでは、2)とから、1を示すノードカウント値を含む断線ノード通知フレームを送信した2つのスレーブ20を特定する(ここでは、第3のスレーブ20Cと第2のスレーブ20Bとを特定する)。そして、異常位置判定部14は、ファイ端子異常の発生位置が、特定した2つのスレーブ20の間(ここでは、第3のスレーブ20Cと第2のスレーブ20Bとの間)であると判定する。
 異常位置判定部14は、例えば、スレーブ20の接続順をあらかじめ記憶し、記憶するスレーブ20の接続順とノードカウント値とから、1を示すノードカウント値を示す断線ノート通知フレームを送信した2つのスレーブ20を特定するとしてもよい。
 異常位置判定部14が異常の発生位置を判定すると、コントローラ送信制御部13は、動作モードを第1のコントローラ動作モードから第2のコントローラ動作モードに切り替える(ステップS190)。
 通信システム1が行う上記第2の動作により、コントローラ送信制御部13の動作モードが、第1のコントローラ動作モードから第2のコントローラ動作モードへと変更される。また、通信システム1が行う上記第2の動作により、第3のスレーブ20Cのスレーブ送信制御部23の動作モードが、第1のスレーブ動作モードから第2のスレーブ動作モードへと変更される。また、通信システム1が行う上記第2の動作により、第2のスレーブ20Bのスレーブ送信制御部23の動作モードが、第1のスレーブ動作モードから第2のスレーブ動作モードへと変更される。これにより、通常フレームの送信経路が、主通信経路(図4参照)から、第1の冗長送信経路(図6参照)に変更される。
 このように、通信システム1は、通常フレームの送信経路が主送信経路である場合において、TXファイ端子が機能しなくなるファイ端子異常が発生したときに、送信経路をそのファイ端子異常が発生したファイを利用しない送信経路に変更して、通常フレームを各スレーブ20に送信する。
 次に、通常フレームの送信経路が主送信経路である場合において、第2のスレーブ20BのRXファイ端子252が機能しなくなるファイ端子異常が発生したときに、通信システム1が行う動作(以下、「第3の動作」とも称する)について説明する。
 図12は、第2のスレーブ20BのRXファイ端子252に、RXファイ端子252が機能しなくなるファイ端子異常が発生した様子を示す模式図である。図13は、第3の動作のシーケンス図である。なお、ここでは、RXファイ端子が機能しなくなるファイ端子異常は、例えば、ファイの故障、RXファイ端子の接続経路に不具合が生じる等の理由により、RXファイ端子が機能しなくなる異常のことをいう。
 図13に示すように、第2のスレーブ20BのRXファイ端子252に、第2のスレーブ20BのRXファイ端子252が機能しなくなるファイ端子異常が発生すると、第2のスレーブ20Bにおいて、ファイ250は、RXファイ端子252とその接続先である第1のスレーブ20Aのファイ230のTXファイ端子231とのリンクを検出しなくなる。このため、第2のスレーブ20Bにおいて、第2のスレーブ20Bの検出部25は、第4の入出力ポート22の接続に係る異常を検出する(ステップS210)。
 第2のスレーブ20Bの検出部25が、第4の入出力ポート22の接続に係る異常を検出すると、第2のスレーブ20Bのスレーブ送信制御部23は、動作モードを第1のスレーブ動作モードから第2のスレーブ動作モードに切り替える(ステップS220)。
 そして、第2のスレーブ20Bのスレーブ送信制御部23は、第3の入出力ポート21と第4の入出力ポート22とから、断線ノード通知フレームの送信を試みる(ステップS230)。
 この際、第2のスレーブ20Bのスレーブ送信制御部23は、送信を試みる断線ノード通知フレームに、スレーブ送信制御部23を含む第2のスレーブ20BのMACIDを含ませる。また、第2のスレーブ20Bのスレーブ送信制御部23は、第3の入出力ポート21から、1を示すノードカウント値を含む断線ノード通知フレームの送信を試み、第4の入出力ポート22から、0を示すノードカウント値を含む断線ノード通知フレームの送信を試みる。
 前述した通り、第2のスレーブ20BのRXファイ端子252に、第2のスレーブ20BのRXファイ端子252が機能しなくなるファイ端子異常が発生している。しかしながら、第2のスレーブ20BのTXファイ端子251から第1のスレーブ20AのRXファイ端子232への信号の送信は可能である。このため、第4の入出力ポート22からの断線ノード通知フレームの送信の試みは成功する。すなわち、第2のスレーブ20Bのスレーブ送信制御部23は、第4の入出力ポート22から、断線ノード通知フレームを送信する(ステップS240B)。一方で、第3の入出力ポート21からの断線ノード通知フレームの送信の試みも成功する。すなわち、第2のスレーブ20Bのスレーブ送信制御部23は、第3の入出力ポート21から、断線ノード通知フレームを送信する(ステップS240A)。
 ここで、第2のスレーブ20Bの検出部25が、第4の入出力ポート22の接続に係る異常を検出した時点において、通常フレームの送信経路は、主送信経路である。また、後述するように、第2のスレーブ20BのRXファイ端子252に、第2のスレーブ20BのRXファイ端子252が機能しなくなるファイ端子異常が発生したことにより、通常フレームの送信経路は、主送信経路から第2の冗長送信経路(後述)に変更される。このため、第2のスレーブ20Bにおいて、通常フレームの送信経路における、第2のスレーブ20Bのコントローラ10からの接続順が変更される。ここでは、2から2へと、見かけ上変更されないように見えるが、この例では、たまたま変更前の接続順と変更後の接続順とが等しくなっているため、単に見かけ上変更されないように見えているに過ぎない。
 図14は、第2の冗長送信経路を示す模式図である。第2の冗長送信経路は、コントローラ送信制御部13が第2のコントローラ動作モードで動作し、第1のスレーブ20Aと第2のスレーブ20Bとのスレーブ送信制御部23が第2のスレーブ動作モードで動作し、第3のスレーブ20Cのスレーブ送信制御部23が第1のスレーブ動作モードで動作している場合における、通常フレームの送信経路である。
 図14において、第2の冗長送信経路は、実線の矢印で示される経路である。
 図14に示すように、第2の冗長送信経路は、第1の送信経路と、第2の送信経路とからなる。第1の送信経路は、コントローラ10から、順に、第1のスレーブ20Aを経由して、再びコントローラ10に戻る第1の送信経路、すなわち第1のスレーブ20Aで折り返す経路である。第2の送信経路は、コントローラ10から順に、第3のスレーブ20C、第2のスレーブ20B、第3のスレーブ20Cを経由して、再びコントローラ10に戻る送信経路、すなわち第2のスレーブ20Bで折り返す経路)とからなる送信経路である。
 再び図13に戻って、第3の動作の説明を続ける。
 第2のスレーブ20Bにおいて、同期タイミング算出部24は、通常フレームの送信経路が、主送信経路から第2の冗長送信経路に変更されても、同期タイミング信号XSYNCのパルスタイミングTは変更されないように、(式1)における「送信経路における接続順」を算出する。より具体的には、同期タイミング算出部24は、あらかじめ記憶するスレーブ20数(ここでは3)から、検出部25が接続に係る異常を検出した時点における、コントローラ10からの接続順番(ここでは、あらかじめ記憶する、主送信経路における、コントローラ10からの接続順番(ここでは2))を引いた値に1を加えた値(ここでは、3-2+1=2)を、(式1)における「送信経路における接続順」と算出する。
 このように、同期タイミング算出部24は、「送信経路における接続順」が変更されても、同期タイミング信号XSYNCのパルスタイミングTは変更されないように、同期タイミング信号XSYNCのパルスタイミングTの算出方法を更新する(ステップS250)。
 ステップS240Aの処理において、第2のスレーブ20Bのスレーブ送信制御部23が、第3の入出力ポート21から、断線ノード通知フレームを送信すると、第3のスレーブ20Cの第4の入出力ポート22は、その断線ノード通知フレームを受信する。
 第3のスレーブ20Cの第4の入出力ポート22が断線ノード通知フレームを受信すると、第3のスレーブ20Cのスレーブ送信制御部23は、その断線ノード通知フレームに含まれるノードカウント値(ここでは、1)に1を加えたノードカウント値(ここでは、1+1=2)を含む断線ノード通知フレームを、第3の入出力ポート21から送信する(ステップS240C)。
 前述したように、第2のスレーブ20BのRXファイ端子252に、第2のスレーブ20BのRXファイ端子252が機能しなくなるファイ端子異常が発生したことにより、通常フレームの送信経路は、主送信経路から第2の冗長送信経路に変更される。このため、第3のスレーブ20Cにおいて、通常フレームの送信経路における、第3のスレーブ20Cのコントローラ10からの接続順が変更(ここでは、3から1へ変更)される。
 第3のスレーブ20Cにおいて、同期タイミング算出部24は、通常フレームの送信経路が、主送信経路から第2の冗長送信経路に変更されても、同期タイミング信号XSYNCのパルスタイミングTは変更されないように、(式1)における「送信経路における接続順」を算出する。より具体的には、同期タイミング算出部24は、あらかじめ記憶するスレーブ20数(ここでは3)から、検出部25が接続に係る異常を検出した時点における、コントローラ10からの接続順番(ここでは、あらかじめ記憶する、主送信経路における、コントローラ10からの接続順番(ここでは3))を引いた値に1を加えた値(ここでは、3-3+1=1)を、(式1)における「送信経路における接続順」と算出する。
 このように、同期タイミング算出部24は、「送信経路における接続順」が変更されても、同期タイミング信号XSYNCのパルスタイミングTは変更されないように、同期タイミング信号XSYNCのパルスタイミングTの算出方法を更新する(ステップS270)。言い換えると、同期タイミング算出部24は、通常フレームを受信する側の入出力ポート(ここでは第4の入出力ポート22)で断線ノード通知フレームを受信した場合に、通常フレームを次回以降、当該入出力ポートではない入出力ポートが受信するときに、複数のスレーブ20の全てが同期して動作する同期タイミングが変わらないように、同期タイミング信号XSYNCを算出する算出方法を更新する。
 一方、第2のスレーブ20BのRXファイ端子252に、第2のスレーブ20BのRXファイ端子252が機能しなくなるファイ端子異常が発生しても、第1のスレーブ20Aにおいて、ファイ230は、RXファイ端子232とその接続先である第2のスレーブ20Bのファイ250のTXファイ端子251とのリンクを検出する。このため、第1のスレーブ20Aにおいて、第1のスレーブ20Aの検出部25は、第3の入出力ポート21の接続に係る異常を検出しない。
 ステップS240Bの処理において、第2のスレーブ20Bのスレーブ送信制御部23が、第4の入出力ポート22から、断線ノード通知フレームを送信すると、第1のスレーブ20Aの第3の入出力ポート21は、その断線ノード通知フレームを受信する。
 第1のスレーブ20Aの第3の入出力ポート21が断線ノード通知フレームを受信すると、第1のスレーブ20Aのスレーブ送信制御部23は、その断線ノード通知フレームに含まれるノードカウント値(ここでは、0)に1を加えたノードカウント値(ここでは、0+1=1)を含む断線ノード通知フレームを、第4の入出力ポート22から送信する(ステップS240D)。
 ここで、第1のスレーブ20Aのスレーブ送信制御部23は、0を示すノードカウント値を含む断線ノード通知フレームを受信したため、動作モードを第1のスレーブ動作モードから第2のスレーブ動作モードへと切り替える(ステップS260)。
 ステップS240Cの処理において、第3のスレーブ20Cのスレーブ送信制御部23が、第3の入出力ポート21から、断線ノード通知フレーム(以下、「第5の断線ノード通知フレーム」とも称する)を送信すると、第2の入出力ポート12は、その第5の断線ノード通知フレームを受信する。
 ステップS240Dの処理において、第1のスレーブ20Aのスレーブ送信制御部23が、第4の入出力ポート22から、断線ノード通知フレーム(以下、「第6の断線ノード通知フレーム」とも称する)を送信すると、第1の入出力ポート11は、その第6の断線ノード通知フレームを受信する。
 第2の入出力ポート12が第5の断線ノード通知フレームを受信し、第1の入出力ポート11が第6の断線ノード通知フレームを受信すると、異常種類判定部15は、第5の断線ノード通知フレームに含まれるMACID(ここでは、第2のスレーブ20BのMACID)と、第6の断線ノード通知フレームに含まれるMACID(ここでは、第2のスレーブ20BのMACID)とに基づいて、通信システム1において生じた異常がファイ端子異常であると判定する(ステップS280)。
 異常種類判定部15が、通信システム1において生じた異常がファイ端子異常であると判定すると、異常位置判定部14は、第5の断線ノード通知フレームと第6の断線ノード通知フレームとに含まれるノードカウント値に基づいて、ファイ端子異常の発生位置が、第2のスレーブ20Bと第1のスレーブ20Aとの間であると判定する(ステップS290)。
 すなわち、異常位置判定部14は、第5の断線ノード通知フレームに含まれるノードカウント値(ここでは、2)と、第6の断線ノード通知フレームに含まれるノードカウント値(ここでは、1)とから、1を示すノードカウント値を含む断線ノード通知フレームを送信した2つのスレーブ20を特定する(ここでは、第2のスレーブ20Bと第1のスレーブ20Aとを特定する)。そして、異常位置判定部14は、ファイ端子異常の発生位置が、特定した2つのスレーブ20の間(ここでは、第2のスレーブ20Bと第1のスレーブ20Aとの間)であると判定する。
 異常位置判定部14が異常の発生位置を判定すると、コントローラ送信制御部13は、動作モードを第1のコントローラ動作モードから第2のコントローラ動作モードに切り替える(ステップS300)。
 通信システム1が行う上記第3の動作により、コントローラ送信制御部13の動作モードが、第1のコントローラ動作モードから第2のコントローラ動作モードへと変更される。また、通信システム1が行う上記第3の動作により、第2のスレーブ20Bのスレーブ送信制御部23の動作モードが、第1のスレーブ動作モードから第2のスレーブ動作モードへと変更される。また、通信システム1が行う上記第3の動作により、第1のスレーブ20Aのスレーブ送信制御部23の動作モードが、第1のスレーブ動作モードから第2のスレーブ動作モードへと変更される。これにより、通常フレームの送信経路が、主通信経路(図4参照)から、第2の冗長送信経路(図14参照)に変更される。
 このように、通信システム1は、通常フレームの送信経路が主送信経路である場合において、RXファイ端子が機能しなくなるファイ端子異常が発生したときに、送信経路をそのファイ端子異常が発生しファイを利用しない送信経路に変更して、通常フレームを各スレーブ20に送信する。
 次に、ケーブル30Cにケーブル断線異常が発生したことに起因して、通常フレームの送信経路が第1の冗長送信経路である場合において、ケーブル30Cのケーブル断線異常が回復したときに、通信システム1が行う動作(以下、「第4の動作」とも称する)について説明する。
 図15は、ケーブル30Cのケーブル断線異常が回復した様子を示す模式図である。図16は、第4の動作のシーケンス図である。
 図16に示すように、ケーブル30Cのケーブル断線異常が回復すると、第3のスレーブ20Cにおいて、ファイ250は、RXファイ端子252とその接続先である第2のスレーブ20Bのファイ230のTXファイ端子231とのリンクを検出するようになる。このため、第3のスレーブ20Cにおいて、第3のスレーブ20Cの検出部25は、第4の入出力ポート22の接続に係る異常の回復を検出する(ステップS310A)。
 第3のスレーブ20Cの検出部25が、第4の入出力ポート22の接続に係る異常の回復を検出すると、第3のスレーブ20Cのスレーブ送信制御部23は、動作モードを第2のスレーブ動作モードから第1のスレーブ動作モードに切り替える(ステップS320A)。
 そして、第3のスレーブ20Cのスレーブ送信制御部23は、第3の入出力ポート21と第4の入出力ポート22とから、断線ノード通知フレームを送信する(ステップS340A)。
 この際、第3のスレーブ20Cのスレーブ送信制御部23は、送信する断線ノード通知フレームに、スレーブ送信制御部23を含む第3のスレーブ20CのMACIDを含ませる。
 ここで、第3のスレーブ20Cの検出部25が、第4の入出力ポート22の接続に係る異常の回復を検出した時点において、通常フレームの送信経路は、第1の冗長送信経路である。また、後述するように、ケーブル30Cのケーブル断線異常が回復したことにより、通常フレームの送信経路は、第1の冗長送信経路から主送信経路に変更される。このため、第3のスレーブ20Cにおいて、通常フレームの送信経路における、第3のスレーブ20Cのコントローラ10からの接続順が変更(ここでは、1から3へ変更)される。
 同期タイミング算出部24は、通常フレームの送信経路が、第1の冗長送信経路から主送信経路に変更されても、同期タイミング信号XSYNCのパルスタイミングTは変更されないように、(式1)における「送信経路における接続順」を算出する。より具体的には、同期タイミング算出部24は、あらかじめ記憶する、主送信経路における、コントローラ10からの接続順番(ここでは3)を、(式1)における「送信経路における接続順」と算出する。
 このように、同期タイミング算出部24は、「送信経路における接続順」が変更されても、同期タイミング信号XSYNCのパルスタイミングTは変更されないように、同期タイミング信号XSYNCのパルスタイミングTの算出方法を更新する(ステップS350)。
 一方、ケーブル30Cのケーブル断線異常が回復すると、第2のスレーブ20Bにおいて、ファイ230は、RXファイ端子232とその接続先である第3のスレーブ20Cのファイ250のTXファイ端子251とのリンクを検出するようになる。このため、第2のスレーブ20Bにおいて、第2のスレーブ20Bの検出部25は、第3の入出力ポート21の接続に係る異常の回復を検出する(ステップS310B)。
 第2のスレーブ20Bの検出部25が、第3の入出力ポート21の接続に係る異常の回復を検出すると、第2のスレーブ20Bのスレーブ送信制御部23は、動作モードを第2のスレーブ動作モードから第1のスレーブ動作モードに切り替える(ステップS320B)。
 そして、第2のスレーブ20Bのスレーブ送信制御部23は、第3の入出力ポート21と第4の入出力ポート22とから、断線ノード通知フレームを送信する(ステップS340B)。
 この際、第2のスレーブ20Bのスレーブ送信制御部23は、送信する断線ノード通知フレームに、スレーブ送信制御部23を含む第2のスレーブ20BのMACIDを含ませる。
 ここで、第2のスレーブ20Bの検出部25が、第3の入出力ポート21の接続に係る異常の回復を検出した時点において、通常フレームの送信経路は、第1の冗長送信経路である。また、後述するように、ケーブル30Cのケーブル断線異が回復したことにより、通常フレームの送信経路は、第1の冗長送信経路から主送信経路に変更される。このため、第2のスレーブ20Bにおいて、通常フレームの送信経路における、第3のスレーブ20Cのコントローラ10からの接続順が変更されない。このため、第2のスレーブ20Bの同期タイミング算出部24は、同期タイミング信号XSYNCのパルスタイミングTの算出方法を更新しない。
 ステップS340Bの処理において、第2のスレーブ20Bのスレーブ送信制御部23が、第4の入出力ポート22から、断線ノード通知フレームを送信すると、第1のスレーブ20Aの第3の入出力ポート21は、その断線ノード通知フレームを受信する。
 第1のスレーブ20Aの第3の入出力ポート21が断線ノード通知フレームを受信すると、第1のスレーブ20Aのスレーブ送信制御部23は、その断線ノード通知フレームを、第4の入出力ポート22から送信する(ステップS340C)。
 第2の入出力ポート12が第1の断線ノード通知フレームを受信し、第1の入出力ポート11が第2の断線ノード通知フレームを受信すると、コントローラ送信制御部13は、動作モードを第2のコントローラ動作モードから第1のコントローラ動作モードに切り替える(ステップS360)。
 通信システム1が行う上記第4の動作により、コントローラ送信制御部13の動作モードが、第2のコントローラ動作モードから第1のコントローラ動作モードへと変更される。また、通信システム1が行う上記第4の動作により、第3のスレーブ20Cのスレーブ送信制御部23の動作モードが、第2のスレーブ動作モードから第1のスレーブ動作モードへと変更される。また、通信システム1が行う上記第4の動作により、第2のスレーブ20Bのスレーブ送信制御部23の動作モードが、第2のスレーブ動作モードから第1のスレーブ動作モードへと変更される。これにより、通常フレームの送信経路が、第1の冗長通信経路(図6参照)から、主送信経路(図4参照)に変更される。
 このように、通信システム1は、ケーブル30Cにケーブル断線異常が発生したことに起因して、通常フレームの送信経路が第1の冗長送信経路である場合において、ケーブル30のケーブル断線異常が回復したときに、送信経路を主送信経路に変更して、通常フレームを各スレーブ20に送信する。
 以下、通信システム1の初期状態において、通信フレームの送信経路が主送信経路である場合における、スレーブ20の動作およびコントローラ10の動作について説明する。
 図17と図18とは、通信システム1の初期状態において、通信フレームの送信経路が主送信経路である場合における、スレーブ20の動作の一例を示すフローチャートである。
 通信システム1の初期状態において、スレーブ20は、接続に係る異常を検出しない(ステップS500:No)限りにおいて、かつ、断線ノード通知フレームを受信しない(ステップS515:No)限りにおいて、主送信経路上流側で通常フレームを受信する(ステップS545)と、主送信経路下流側から通常フレームを送信する(ステップS550)という処理を繰り返し行う。
 スレーブ20は、ステップS500の処理において、接続に係る異常を検出すると(ステップS500:Yes)、第3の入出力ポート21と第4の入出力ポート22との両方の入出力ポートから断線ノード通知フレームを送信する(ステップS505)。
 スレーブ20は、接続に係る異常の検出が、主送信経路の上流側の入出力ポートの接続に係る異常の検出であった場合に(ステップS510:Yes)、同期タイミング信号XSYNCのパルスタイミングTの算出方法を更新する(ステップS530)。
 スレーブ20は、ステップS515の処理において、断線ノード通知フレームを受信すると(ステップS515:Yes)、受信した断線ノード通知フレームに含まれるノードカウント値が0であるか否かを調べる(ステップS520)。
 ステップS520の処理において、ノードカウント値が0である場合において(ステップS520:Yes)、断線ノード通知フレームの受信が、主送信経路の上流側の入出力ポートによる受信であったときに(ステップS525:Yes)、スレーブ20は、同期タイミング信号XSYNCのパルスタイミングTの算出方法を更新する(ステップS530)。
 ステップS520の処理において、ノードカウント値が0でない場合に(ステップS520:No)、断線ノード通知フレームの受信が、主送信経路の上流側の入出力ポートによる受信であれば(ステップS535:Yes)、スレーブ20は、同期タイミング信号XSYNCのパルスタイミングTの算出方法を更新する(ステップS540)。
 ステップS510の処理において、接続に係る異常の検出が、主送信経路の上流側の入出力ポートの接続に係る異常の検出でなかった場合と(ステップS510:No)、ステップS525の処理において、断線ノード通知フレームの受信が、主送信経路の上流側の入出力ポートによる受信でなかった場合と(ステップS525:No)、ステップS530の処理が終了した場合とに、スレーブ20は、接続に係る異常の回復を検出しない(ステップS605:No)限りにおいて、接続に係る異常を検出していない側の入出力ポートで通常フレームを受信する(ステップS600)と、接続に係る異常を検出していない側の入出力ポートから通常フレームを送信する(ステップS625)という処理を繰り返し行う。
 スレーブ20は、ステップS605の処理において、接続に係る異常の回復を検出すると(ステップS605:Yes)、第3の入出力ポート21と第4の入出力ポート22との両方の入出力ポートから断線ノード通知フレームを送信する(ステップS610)。
 スレーブ20は、接続に係る異常の回復の検出が、主送信経路の上流側の入出力ポートの接続に係る異常の検出であった場合に(ステップS615:Yes)、同期タイミング信号XSYNCのパルスタイミングTの算出方法を更新する(ステップS620)。
 ステップS535の処理において、断線ノード通知フレームの受信が、主送信経路の上流側の入出力ポートによる受信でない場合と(ステップS535:No)、ステップS540の処理が終了した場合とに、スレーブ20は、通常フレームを受信する(ステップSS630)と、断線ノード通知フレームを受信しない(ステップS635:No)限りにおいて、受信時と異なる入出力ポートから通常フレームを送信する(ステップS650)という処理を繰り返し行う。
 ステップS635の処理において、断線ノード通知フレームを受信した場合において(ステップS635:Yes)、断線ノード通知フレームの受信が、主送信経路の上流側の入出力ポートによる受信であったときに(ステップS640:Yes)、スレーブ20は、同期タイミング信号XSYNCのパルスタイミングTの算出方法を更新する(ステップS645)。
 ステップS615の処理において、接続に係る異常の回復の検出が、主送信経路の上流側の入出力ポートの接続に係る異常の検出でなかった場合(ステップS615:No)と、ステップS640の処理において、断線ノード通知フレームの受信が、主送信経路の上流側の入出力ポートによる受信でなかった場合(ステップS640:No)と、ステップS620の処理が終了した場合と、ステップS645の処理が終了した場合とに、スレーブ20は、ステップS500の処理に進む。
 図19は、通信システム1の初期状態において、通信フレームの送信経路が主送信経路である場合における、コントローラ10の動作の一例を示すフローチャートである。
 通信システム1の初期状態において、コントローラ10は、種送信経路上流側の入出力ポートから通常フレームを送信する(ステップS700)と、第1の入出力ポート11と第2の入出力ポート12との両方の入出力ポートで断線ノード通知フレームを受信しない(ステップS705:No)限りにおいて、主送信経路下流側の入出力ポートで通常フレームを受信する(ステップS760)という処理を繰り返し行う。
 コントローラ10は、ステップS700の処理において、両方の入出力ポートで断線ノード通知フレームを受信すると(ステップS705:Yes)、受信した2つの断線ノード通知フレームに含まれるMACIDが互いに異なるか否かを調べる(ステップS710)。
 ステップS710の処理において、受信した2つの断線ノード通知フレームに含まれるMACIDが互いに異なる場合に(ステップS710:Yes)、コントローラ10は、通信システム1において生じた異常がケーブル断線異常であると判定する(ステップS715)。そして、コントローラ10は、それらMACIDに基づいて、ケーブル断線異常の発生位置が、それらMACIDのスレーブ20の間であると判定する(ステップS720)。
 ステップS710の処理において、受信した2つの断線ノード通知フレームに含まれるMACIDが互いに異ならない場合に(ステップS710:No)、コントローラ10は、通信システム1において生じた異常がファイ端子異常であると判定する(ステップS725)。そして、コントローラ10は、それら2つの断線ノード通知フレームに含まれるノードカウント値に基づいて、ファイ異常の発生位置が、1を示すノードカウント値を含む断線ノード通知フレームを送信した2つのスレーブ20の間であると判定する(ステップS730)。
 ステップS720の処理が終了した場合と、ステップS730の処理が終了した場合とに、コントローラ10は、第1の入出力ポート11と第2の入出力ポート12との両方の入出力ポートから通常フレームを送信する(ステップS735)と、断線ノード通知フレームを受信しない(ステップS740:No)限りにおいて、第1の入出力ポート11と第2の入出力ポート12との両方の入出力ポートで通常フレームを受信する(ステップS750)という処理を繰り返し行う。
 ステップS740の処理において、断線ノード通知フレームを受信すると(ステップS740:Yes)、コントローラ10は、通信システム1において生じた異常が回復したことを検出し(ステップS755)、ステップS700の処理に進む。
 [1-3.考察]
 上記構成の通信システム1によると、いずれかのスレーブ20において、検出部25が、第3の入出力ポート21の接続に係る異常、または、第4の入出力ポート22の接続に係る異常を検出すると、すなわち、ネットワークの接続に係る異常を検出すると、そのスレーブ20から、コントローラ10に向けて、断線ノード通知フレームが送信される。これにより、ネットワークの接続に係る異常が発生してから、比較的短時間で、通信システム1における通常フレームの送信経路が変更される。
 このように、通信システム1によると、ネットワークの接続に係る異常が発生してから、フレームの送信経路が変更されるまでにかかる時間を、従来よりも短縮することができる。
 また、上記構成の通信システム1によると、ネットワークの接続に係る異常の種類を判定することができる。
 また、上記構成の通信システム1によると、ネットワークの接続に係る異常の発生位置を判定することができる。
 また、上記構成の通信システム1によると、ネットワークの接続に係る異常が回復した場合に、通常フレームの送信経路を元に戻すことができる。
 (実施の形態2)
 以下、実施の形態1に係る通信システム1の一部が変更されて構成される実施の形態2に係る通信システムについて説明する。
 以下では、実施の形態2に係る通信システムについて、実施の形態1に係る通信システム1の構成要素と同様の構成要素については、既に説明済みであるとして同じ符号を振ってその詳細な説明を省略し、通信システム1との相違点を中心に説明する。
 実施の形態2に係る通信システムは、実施の形態1に係る通信システム1から、コントローラ10が実施の形態2に係るコントローラ10Aに変更されて構成される。
 図20は、実施の形態2に係るコントローラ10Aの機能構成の一例を示すブロック図である。
 図20に示すように、コントローラ10Aは、実施の形態1に係るコントローラ10から、コントローラ送信制御部13がコントローラ送信制御部13Aに変更されて構成される。
 コントローラ送信制御部13Aは、コントローラ送信制御部13が有する機能に加えて、さらに以下の機能を有する。
 すなわち、コントローラ送信制御部13Aは、実施の形態2に係る通信システムのユーザから、実施の形態2に係る通信システムにおいて、2か所以上異常が生じた場合に、通常フレームの送信を停止するか否かの設定を受け付ける。
 そして、コントローラ送信制御部13Aは、2か所以上異常が生じた場合に、通常フレームの送信を停止する旨の設定を受け付けたときにおいて、実施の形態2に係る通信システムにおいて、2か所以上異常が生じたら、通常フレームの送信を停止する。
 コントローラ送信制御部13Aは、例えば、コントローラ10Aが備える入力インターフェース(例えば、タッチパッド、ディップスイッチ等)を利用して、通常フレームの送信を停止するか否かの設定を受け付けるとしてもよい。
 また、実施の形態2に係る通信システムにおいて、コントローラ送信制御部13Aは、例えば、第1のコントローラ動作モードで動作している場合に、第1の入出力ポート11と第2の入出力ポート12とが、それぞれ断線ノード通知フレームを受信したときに、それら断線ノード通知フレームに含まれるノードカウント値の合計が、あらかじめ記憶する全てのスレーブ20の数よりも少なければ、2か所以上異常が生じていると判定してもよい。
 上記構成の実施の形態2に係る通信システムを利用するユーザは、例えば、実施の形態2に係る通信システムにおいて、1以上のスレーブ20が通常フレームを受信できないことにより不具合が生じる場合には、コントローラ送信制御部13Aに、実施の形態2に係る通信システムにおいて、2か所以上異常が生じた場合に、通常フレームの送信を停止すると設定してもよい。
 実施の形態2に係る通信システムを利用するユーザは、コントローラ送信制御部13Aに、実施の形態2に係る通信システムにおいて、2か所以上異常が生じた場合に、通常フレームの送信を停止しないと設定することで、例えば、実施の形態2に係る通信システムに含まれる複数のスレーブ20のうちの1のスレーブ20の入れ替えを、他のスレーブ20の動作を止めることなく行うことができる。
 図21は、実施の形態2に係る通信システムを利用するユーザが、複数のスレーブ20のうちの1のスレーブ20(ここでは、第3のスレーブ20C)の入れ替えを、他のスレーブ20(ここでは、第1のスレーブ20Aと第2のスレーブ20Bと第4のスレーブ20D)の動作を止めることなく行っている様子を示す模式図である。
 図21に示すように、実施の形態2に係る通信システムを利用するユーザは、ケーブル30Cから第3のスレーブ20Cの第4の入出力ポート22を取り外して、替わりに第5のスレーブ20Eの第4の入出力ポート22を接続する。また、ケーブル30Eから第3のスレーブ20Cの第3の入出力ポート21を取り外して、替わりに第4のスレーブ20Dの第3の入出力ポート21を接続する。このようにすることで、第1のスレーブ20Aと第2のスレーブ20Bと第4のスレーブ20Dとの動作を止めることなく、第3のスレーブ20Cを第5のスレーブ20Eに入れ替えることができる。
 実施の形態2に係る通信システムを利用するユーザは、コントローラ送信制御部13Aに、実施の形態2に係る通信システムにおいて、2か所以上異常が生じた場合に、通常フレームの送信を停止しないと設定することで、例えば、実施の形態2に係る通信システムに含まれる複数のスレーブ20のうちの1のスレーブ20の取り外しを、他のスレーブ20の動作を止めることなく行うことができる。
 図22は、実施の形態2に係る通信システムを利用するユーザが、複数のスレーブ20のうちの1のスレーブ20(ここでは、第3のスレーブ20C)の取り外しを、他のスレーブ20(ここでは、第1のスレーブ20Aと第2のスレーブ20Bと第4のスレーブ20D)の動作を止めることなく行っている様子を示す模式図である。
 図22に示すように、実施の形態2に係る通信システムを利用するユーザは、ケーブル30Eから第4のスレーブ20Dの第4の入出力ポート22と第3のスレーブ20Cの第3の入出力ポート21とを取り外し、ケーブル30Cから第3のスレーブ20Cの第4の入出力ポート22を取り外して、替わりに第4のスレーブ20Dの第4の入出力ポート22を接続する。このようにすることで、第1のスレーブ20Aと第2のスレーブ20Bと第4のスレーブ20Dとの動作を止めることなく、第3のスレーブ20Cを取り外すことができる。
 (実施の形態3)
 図23は、実施の形態3に係る通信システム1の構成の一例を示すブロック図である。
 図23に示すように、通信システム1は、第1の入出力ポート11と、第2の入出力ポート12とを有するコントローラ10と、各々が、第3の入出力ポート21と、第4の入出力ポート22とを有するN個のスレーブ20を備える。なお、Nは2以上の整数である。図23には、N個のスレーブ20として、第1のスレーブ20Aと、第K―1(Kは整数であり、3≦K≦N-1)のスレーブ20と、第Kのスレーブ20と、第Nのスレーブ20とが示されている。実施の形態1と同様、第1の入出力ポート11、第2の入出力ポート12、第3の入出力ポート21および第4の入出力ポート22は、ケーブル30により接続されている。すなわち、実施の形態3に係る通信システム1は、N個のスレーブ20に一般化した通信システム1の場合を表している。
 実施の形態3に係る通信システム1は、実施の形態1に係る通信システム1と同様の効果が得られる。
 (補足)
 以上、本開示の一態様に係る通信システム等について、実施の形態1、実施の形態2に基づいて説明したが、本開示は、これら実施の形態に限定されるものではない。本開示の趣旨を逸脱しない限り、当業者が思いつく各種変形をこれら実施の形態に施したものや、異なる実施の形態における構成要素を組み合わせて構築される形態も、本開示の1つまたは複数の態様の範囲内に含まれてもよい。
 本開示は、コントローラと複数のスレーブとを備える通信システム等に広く利用可能である。
 1 通信システム
 10、10A コントローラ
 11 第1の入出力ポート
 12 第2の入出力ポート
 13、13A コントローラ送信制御部
 14 異常位置判定部
 15 異常種類判定部
 20 スレーブ
 20A 第1のスレーブ
 20B 第2のスレーブ
 20C 第3のスレーブ
 20D 第4のスレーブ
 20E 第5のスレーブ
 21 第3の入出力ポート
 22 第4の入出力ポート
 23 スレーブ送信制御部
 24 同期タイミング算出部
 25 検出部
 30、30A、30B、30C、30D、30E ケーブル
 50 通常フレーム
 101、201 プロセッサ
 102、202 メモリ
 110、120、210、220 コネクタ
 111、121、211、221 送信端子TX
 112、122、212、222 受信端子RX
 130、150、230、250 ファイ
 131、151、231、251 TXファイ端子
 132、152、232、252 RXファイ端子

Claims (14)

  1.  第1の入出力ポートと、第2の入出力ポートと、コントローラ送信制御部と、を有するコントローラと、各々が、第3の入出力ポートと第4の入出力ポートと、スレーブ送信制御部と、検出部と、を有する、第1のスレーブ~第Nのスレーブ(Nは2以上の整数)とを備え、
     前記第1の入出力ポートと、前記第1のスレーブが有する前記第4の入出力ポートとが接続され、
     前記第Nのスレーブが有する前記第3の入出力ポートと、前記第2の入出力ポートとが接続され、
     任意のK(Kは2以上N以下の整数)において、第K-1のスレーブが有する前記第3の入出力ポートと、第Kのスレーブが有する前記第4の入出力ポートとが接続され、
     前記コントローラ送信制御部は、通常フレームを生成して送信し、断線ノード通知フレームを受信し、第1のコントローラ動作モードと、第2のコントローラ動作モードと、を実行し、
      前記第1のコントローラ動作モードは、前記通常フレームを、前記第1の入出力ポートから繰り返し送信し、
      前記第2のコントローラ動作モードは、前記通常フレームを、前記第1の入出力ポートと前記第2の入出力ポートとから繰り返し送信し、
     前記スレーブ送信制御部は、前記通常フレームを送信および受信し、前記断線ノード通知フレームを生成するとともに前記断線ノード通知フレームを送信および受信し、第1のスレーブ動作モードと、第2のスレーブ動作モードと、を実行し、
      前記第1のスレーブ動作モードは、前記第3の入出力ポートと前記第4の入出力ポートとのうちの一方の入出力ポートが前記通常フレームを受信すると、前記第3の入出力ポートと前記第4の入出力ポートとのうちの他方の入出力ポートから前記通常フレームを送信し、
      前記第2のスレーブ動作モードは、前記一方の入出力ポートが前記通常フレームを受信すると、前記一方の入出力ポートから前記通常フレームを送信し、
     前記検出部は、前記第3の入出力ポートの接続に係る異常、および、前記第4の入出力ポートの接続に係る異常を検出し、
     前記スレーブ送信制御部は、さらに前記第1のスレーブ動作モードで動作している場合に、前記検出部が、前記第3の入出力ポートの接続に係る異常、または、前記第4の入出力ポートの接続に係る異常を検出したとき、
      前記第1のスレーブ動作モードから前記第2のスレーブ動作モードに切り替えると共に、接続状態の変化を検出した旨を示す前記断線ノード通知フレームを生成し、前記第3の入出力ポートと前記第4の入出力ポートとから、前記断線ノード通知フレームの送信を試み、
      前記断線ノード通知フレームを前記一方の入出ポートが受信すると、前記他方の入出力ポートから前記断線ノード通知フレームを送信し、
     前記コントローラ送信制御部は、さらに
      前記第1のコントローラ動作モードで動作している場合に、前記第1の入出力ポートまたは前記第2の入出力ポートが前記断線ノード通知フレームを受信すると、前記第1のコントローラ動作モードから前記第2のコントローラ動作モードに切り替える、
     通信システム。
  2.  前記断線ノード通知フレームは、0以上の整数値を示すノードカウント値を含み、
     前記スレーブ送信制御部は、前記第1のスレーブ動作モードで動作している場合に、
      (1)前記検出部が、前記一方の入出力ポートの接続に係る異常を検出したときに、前記一方の入出力ポートから、0を示すノードカウント値を含む前記断線ノード通知フレームの送信を試み、前記他方の入出力ポートから、1を示すノードカウント値を含む前記断線ノード通知フレームの送信を試み、
      (2)前記一方の入出力ポートが、0を示すノードカウント値を含む前記断線ノード通知フレームを受信すると、前記第1のスレーブ動作モードから前記第2のスレーブ動作モードに切り替え、
     前記一方の入出ポートが前記断線ノード通知フレームを受信すると、前記断線ノード通知フレームに含まれるノードカウント値に1を加えたノードカウント値を含む前記断線ノード通知フレームを、前記他方の入出力ポートから送信し、
     前記コントローラは、前記第1の入出力ポートおよび前記第2の入出力ポートが前記断線ノード通知フレームを受信した場合に、前記第1の入出力ポートが受信した前記断線ノード通知フレームに含まれるノードカウント値と、前記第2の入出力ポートが受信した前記断線ノード通知フレームに含まれるノードカウント値とに基づいて、異常の発生位置を特定する異常位置判定部をさらに有する、
     請求項1に記載の通信システム。
  3.  前記第1のスレーブ~前記第Nのスレーブの各々は、前記第3の入出力ポートまたは前記第4の入出力ポートが通常フレームを受信するタイミングに基づいて、前記第1のスレーブ~前記第Nのスレーブが同期して動作する同期タイミングを示す同期タイミング信号を算出する同期タイミング算出部をさらに有し、
     前記同期タイミング算出部は、前記通常フレームを受信する側の入出力ポートで前記断線ノード通知フレームを受信した場合、および、前記検出部が、前記通常フレームを受信する側の入出力ポートの接続に係る異常を検出した場合に、前記通常フレームを、当該入出力ポートではない入出力ポートが受信するときに、前記同期タイミングが変わらないように、前記同期タイミング信号を算出する算出方法を更新する、
     請求項2に記載の通信システム。
  4.  前記スレーブ送信制御部は、前記第1のスレーブ動作モードで動作している場合において、前記検出部が、前記第3の入出力ポートの接続に係る異常、または、前記第4の入出力ポートの接続に係る異常を検出したときに送信を試みる前記断線ノード通知フレームに、前記スレーブ送信制御部を含むスレーブのMACIDを含ませ、
     前記コントローラは、前記第1の入出力ポートおよび前記第2の入出力ポートが前記断線ノード通知フレームを受信した場合に、前記第1の入出力ポートが受信した前記断線ノード通知フレームに含まれるMACIDと、前記第2の入出力ポートが受信した前記断線ノード通知フレームに含まれるMACIDとに基づいて、異常の種類に係る判定を行う異常種類判定部をさらに有する、
     請求項1から請求項3のいずれか一項に記載の通信システム。
  5.  前記検出部は、さらに、前記第3の入出力ポートの接続に係る異常の回復、および、前記第4の入出力ポートの接続に係る異常の回復を検出し、
     前記スレーブ送信制御部は、
     前記第2のスレーブ動作モードで動作している場合に、前記検出部が、前記第3の入出力ポートの接続に係る異常の回復、または、前記第4の入出力ポートの接続に係る異常の回復を検出したときに、動作モードを前記第2のスレーブ動作モードから前記第1のスレーブ動作モードに切り替えると共に、前記第3の入出力ポートと前記第4の入出力ポートとから前記断線ノート通知フレームを送信し、
     前記コントローラ送信制御部は、前記第2のコントローラ動作モードで動作している場合において、前記第1の入出力ポートまたは前記第2の入出力ポートが前記断線ノード通知フレームを受信すると、前記第2のコントローラ動作モードから前記第1のコントローラ動作モードに切り替える
     請求項1から請求項4のいずれか一項に記載の通信システム。
  6.  第1の入出力ポートと、
     第2の入出力ポートと、
     スレーブ送信制御部と、
     検出部と、を備え、
     前記スレーブ送信制御部は、通常フレームを送信および受信し、断線ノード通知フレームを生成するとともに前記断線ノード通知フレームを送信および受信し、第1のスレーブ動作モードと、第2のスレーブ動作モードと、を実行し、
      前記第1のスレーブ動作モードは、前記通常フレームを、前記第1の入出力ポートと前記第2の入出力ポートとのうちの一方の入出力ポートが受信すると、前記通常フレームを、前記第1の入出力ポートと前記第2の入出力ポートとのうちの他方の入出力ポートから送信し、
      前記第2のスレーブ動作モードは、前記通常フレームを、前記一方の入出力ポートが受信すると、前記通常フレームを、前記一方の入出力ポートから送信し、
     前記検出部は、前記第1の入出力ポートの接続に係る異常、および、前記第1の入出力ポートの接続に係る異常を検出し、
     前記スレーブ送信制御部は、さらに前記第1のスレーブ動作モードで動作している場合に、前記検出部が、前記第1の入出力ポートの接続に係る異常、または、前記第2の入出力ポートの接続に係る異常を検出したとき、
      前記第1のスレーブ動作モードから前記第2のスレーブ動作モードに切り替えると共に、接続状態の変化を検出した旨を示す前記断線ノード通知フレームを生成し、前記第1の入出力ポートと前記第2の入出力ポートとから前記断線ノード通知フレームの送信を試み、
     前記断線ノード通知フレームを前記一方の入出ポートが受信すると、前記断線ノード通知フレームを、前記他方の入出力ポートから送信する、
     スレーブ。
  7.  前記断線ノード通知フレームは、0以上の整数値を示すノードカウント値を含み、
     前記スレーブ送信制御部は、前記第1のスレーブ動作モードで動作している場合に、
      (1)前記検出部が、前記第1の入出力ポートの接続に係る異常を検出したときに、前記一方の入出力ポートから、0を示すノードカウント値を含む前記断線ノード通知フレームの送信を試み、前記他方の入出力ポートから、1を示すノードカウント値を含む前記断線ノード通知フレームの送信を試み、
      (2)前記一方の入出力端子が、0を示すノードカウント値を含む前記断線ノード通知フレームを受信すると、動作モードを前記第1のスレーブ動作モードから前記第2のスレーブ動作モードに切り替え、
     前記一方の入出ポートが前記断線ノード通知フレームを受信すると、前記断線ノード通知フレームに含まれるノードカウント値に1を加えたノードカウント値を含む断線ノード通知フレームを、前記他方の入出力ポートから送信する、
     請求項6に記載のスレーブ。
  8.  前記第1の入出力ポートまたは前記第2の入出力ポートが通常フレームを受信するタイミングに基づいて、同期タイミングを示す同期タイミング信号を算出する同期タイミング算出部をさらに有し、
     前記同期タイミング算出部は、通常フレームを受信する側の入出力ポートで前記断線ノード通知フレームを受信した場合、および、前記検出部が、前記通常フレームを受信する側の入出力ポートの接続に係る異常を検出した場合に、前記通常フレームを、前記入出力ポートではない入出力ポートが受信するときに、前記同期タイミングが変わらないように、前記同期タイミング信号を算出する算出方法を更新する、
     請求項7に記載のスレーブ。
  9.  前記スレーブ送信制御部は、前記第1のスレーブ動作モードで動作している場合に、
      前記検出部が、前記第1の入出力ポートの接続に係る異常、または、前記第2の入出力ポートの接続に係る異常を検出したときに、
     送信を試みる前記断線ノード通知フレームに、前記スレーブ送信制御部を含むスレーブのMACIDを含ませる、
     請求項6から請求項8のいずれか一項に記載のスレーブ。
  10.  前記検出部は、さらに、前記第1の入出力ポートの接続に係る異常の回復、および、前記第2の入出力ポートの接続に係る異常の回復を検出し、
     前記スレーブ送信制御部は、
     前記第2のスレーブ動作モードで動作している場合に、
      前記検出部が、前記第1の入出力ポートの接続に係る異常の回復、または、前記第2の入出力ポートの接続に係る異常の回復を検出したときに、
     前記第2のスレーブ動作モードから前記第1のスレーブ動作モードに切り替えると共に、前記第1の入出力ポートと前記第2の入出力ポートとから前記断線ノード通知フレームを送信する
     請求項6から請求項9のいずれか一項に記載のスレーブ。
  11.  第1の入出力ポートと、
     第2の入出力ポートと、
     コントローラ送信制御部と、を備え、
     前記コントローラ送信制御部は、通常フレームを生成して送信し、断線ノード通知フレームを受信し、第1のコントローラ動作モードと、第2のコントローラ動作モードと、を実行し、
     前記第1のコントローラ動作モードにおいて、前記通常フレームを、前記第1の入出力ポートから繰り返し送信し、
     前記第2のコントローラ動作モードにおいて、前記通常フレームを、前記第1の入出力ポートと前記第2の入出力ポートとから繰り返し送信し、
     前記第1のコントローラ動作モードで動作している場合に、前記第1の入出力ポートまたは前記第2の入出力ポートが、接続状態の変化を検出した旨を示す断線ノード通知フレームを受信すると、前記第1のコントローラ動作モードから前記第2のコントローラ動作モードに切り替える、
     コントローラ。
  12.  前記断線ノード通知フレームには、MACIDが含まれ、
     前記第1の入出力ポートおよび前記第2の入出力ポートが前記断線ノード通知フレームを受信した場合に、前記第1の入出力ポートが受信した前記断線ノード通知フレームに含まれるMACIDと、前記第2の入出力ポートが受信した前記断線ノード通知フレームに含まれるMACIDとに基づいて、異常の種類に係る判定を行う異常種類判定部をさらに有する、
     請求項11に記載のコントローラ。
  13.  前記第2のコントローラ動作モードで動作している場合において、前記第1の入出力ポートまたは前記第2の入出力ポートが、断線ノード通知フレームを受信すると、動作モードを前記第2のコントローラ動作モードから前記第1のコントローラ動作モードに切り替える、
     請求項11または請求項12に記載のコントローラ。
  14.  第1の入出力ポートと第2の入出力ポートとコントローラ送信制御部とを有するコントローラと、第3の入出力ポートと第4の入出力ポートとスレーブ送信制御部と検出部とを有する、第1のスレーブ~第Nのスレーブ(Nは2以上の整数)とを備え、
     前記第1の入出力ポートと、前記第1のスレーブにおける前記第4の入出力ポートとが接続され、前記第Nのスレーブにおける前記第3の入出力ポートと、前記第2の入出力ポートとが接続され、任意のK(Kは2以上N以下の整数)において、第K-1のスレーブにおける前記第3の入出力ポートと、第Kのスレーブにおける前記第4の入出力ポートとが接続される、通信システムが行う通信方法であって、
     前記コントローラ送信制御部において、通常フレームが生成されて送信され、断線ノード通知フレームが受信され、第1のコントローラ動作モードと第2のコントローラ動作モードが実行され、
      前記第1のコントローラ動作モードにおいて、前記通常フレームを、前記第1の入出力ポートから繰り返し送信し、
      前記第2のコントローラ動作モードにおいて、前記通常フレームを、前記第1の入出力ポートと前記第2の入出力ポートとから繰り返し送信し、
     前記第1のスレーブ~前記第Nのスレーブの各々において、
     前記スレーブ送信制御部が、
      前記第1のスレーブ動作モードにおいて、前記通常フレームを、前記第3の入出力ポートと前記第4の入出力ポートとのうちの一方の入出力ポートが受信すると、前記第3の入出力ポートと前記第4の入出力ポートとのうちの他方の入出力ポートから前記通常フレームを送信し、
      前記第2のスレーブ動作モードにおいて、前記通常フレームを、前記一方の入出力ポートが受信すると、前記一方の入出力ポートから前記通常フレームを送信し、
     前記検出部が、前記第3の入出力ポートの接続に係る異常、および、前記第4の入出力ポートの接続に係る異常を検出し、
     前記スレーブ送信制御部が、さらに前記第1のスレーブ動作モードで動作している場合に、前記検出部が、前記第3の入出力ポートの接続に係る異常、または、前記第4の入出力ポートの接続に係る異常を検出したときに、
      前記第1のスレーブ動作モードから前記第2のスレーブ動作モードに切り替えると共に、接続状態の変化を検出した旨を示す前記断線ノード通知フレームを生成し、前記第3の入出力ポートと前記第4の入出力ポートとから、前記断線ノード通知フレームの送信を試み、
     前記断線ノード通知フレームを前記一方の入出ポートが受信すると、前記他方の入出力ポートから前記断線ノード通知フレームを送信し、
     前記コントローラ送信制御部が、前記第1のコントローラ動作モードで動作している場合において、前記第1の入出力ポートまたは前記第2の入出力ポートが前記断線ノード通知フレームを受信すると、前記第1のコントローラ動作モードから前記第2のコントローラ動作モードに切り替える、
     通信方法。
PCT/JP2021/046949 2021-02-18 2021-12-20 通信システム、スレーブ、コントローラ、および、通信方法 WO2022176370A1 (ja)

Priority Applications (5)

Application Number Priority Date Filing Date Title
EP21926793.7A EP4297363A1 (en) 2021-02-18 2021-12-20 Communication system, slave, controller, and communication method
KR1020237031389A KR20230146598A (ko) 2021-02-18 2021-12-20 통신 시스템, 슬레이브, 컨트롤러, 및, 통신 방법
JP2023500580A JPWO2022176370A1 (ja) 2021-02-18 2021-12-20
CN202180093735.1A CN116888938A (zh) 2021-02-18 2021-12-20 通信系统、从属设备、控制器以及通信方法
US18/263,897 US20240106735A1 (en) 2021-02-18 2021-12-20 Communication system, slave, controller, and communication method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2021-024540 2021-02-18
JP2021024540 2021-02-18

Publications (1)

Publication Number Publication Date
WO2022176370A1 true WO2022176370A1 (ja) 2022-08-25

Family

ID=82930537

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2021/046949 WO2022176370A1 (ja) 2021-02-18 2021-12-20 通信システム、スレーブ、コントローラ、および、通信方法

Country Status (6)

Country Link
US (1) US20240106735A1 (ja)
EP (1) EP4297363A1 (ja)
JP (1) JPWO2022176370A1 (ja)
KR (1) KR20230146598A (ja)
CN (1) CN116888938A (ja)
WO (1) WO2022176370A1 (ja)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05268236A (ja) * 1992-03-19 1993-10-15 Matsushita Electric Ind Co Ltd 2重ループ型通信装置の伝送路制御方式
JP2005333505A (ja) * 2004-05-21 2005-12-02 Mitsubishi Electric Corp 二重ループ型ネットワークシステム

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102461085B (zh) 2009-06-12 2014-10-29 三菱电机株式会社 通信管理装置、通信节点以及数据通信方法

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05268236A (ja) * 1992-03-19 1993-10-15 Matsushita Electric Ind Co Ltd 2重ループ型通信装置の伝送路制御方式
JP2005333505A (ja) * 2004-05-21 2005-12-02 Mitsubishi Electric Corp 二重ループ型ネットワークシステム

Also Published As

Publication number Publication date
CN116888938A (zh) 2023-10-13
JPWO2022176370A1 (ja) 2022-08-25
KR20230146598A (ko) 2023-10-19
EP4297363A1 (en) 2023-12-27
US20240106735A1 (en) 2024-03-28

Similar Documents

Publication Publication Date Title
US8379509B2 (en) Electronic device protection systems and methods
JPH0654033A (ja) 電力節約型全2重ノード通信システム
US7864668B2 (en) Communication apparatus and path switching method
GB2444170A (en) Ethernet protection using a redundant link, with link up of a remote port being triggered using a "link status control mechanism".
JP5238500B2 (ja) データ中継システムおよびデータ中継方法
CN111064646A (zh) 基于宽带现场总线的环网冗余方法、装置及存储介质
US6683848B1 (en) Frame synchronization and fault protection for a telecommunications device
WO2022176370A1 (ja) 通信システム、スレーブ、コントローラ、および、通信方法
JPWO2022176370A5 (ja)
JP6992346B2 (ja) ネットワークシステム
JP2000261449A (ja) 干渉回避方法および無線パケット通信システム
JP2008148225A (ja) リング型ネットワークおよびリング型ネットワークのフェアネス実行プログラム
JP2002281109A (ja) 二重化方法、二重化方式及び光加入者終端装置
JPH01231450A (ja) 通信システムの同期クロック供給方式
JP4412068B2 (ja) 無瞬断切替システム及び無瞬断切替方法並びにそれに用いる通信局
JPH06327072A (ja) ディジタル網同期方式
JP3686752B2 (ja) クロック従属選択回路
JPH08265355A (ja) Lan通信システム
JP5736889B2 (ja) 伝送装置、伝送システム、経路選択方法、及び経路選択プログラム
KR100428660B1 (ko) 교환기의 핸들러 이중화 방법
JP4187480B2 (ja) クロック同期切替装置
JPH0330541A (ja) ループ式通信システム
JP3406854B2 (ja) ノード装置
JPH05219030A (ja) ネットワーク切替方式
JP2000295142A (ja) 自己診断装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21926793

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2023500580

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 18263897

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 202180093735.1

Country of ref document: CN

ENP Entry into the national phase

Ref document number: 20237031389

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 1020237031389

Country of ref document: KR

WWE Wipo information: entry into national phase

Ref document number: 2021926793

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021926793

Country of ref document: EP

Effective date: 20230918