WO2014061076A1 - Communication system and communication device - Google Patents

Communication system and communication device Download PDF

Info

Publication number
WO2014061076A1
WO2014061076A1 PCT/JP2012/076602 JP2012076602W WO2014061076A1 WO 2014061076 A1 WO2014061076 A1 WO 2014061076A1 JP 2012076602 W JP2012076602 W JP 2012076602W WO 2014061076 A1 WO2014061076 A1 WO 2014061076A1
Authority
WO
WIPO (PCT)
Prior art keywords
token
frame
communication device
communication
transfer destination
Prior art date
Application number
PCT/JP2012/076602
Other languages
French (fr)
Japanese (ja)
Inventor
幸亮 尾形
Original Assignee
三菱電機株式会社
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 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to PCT/JP2012/076602 priority Critical patent/WO2014061076A1/en
Priority to TW101146009A priority patent/TW201415835A/en
Publication of WO2014061076A1 publication Critical patent/WO2014061076A1/en

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/427Loop networks with decentralised control
    • H04L12/433Loop networks with decentralised control with asynchronous transmission, e.g. token ring, register insertion
    • 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

Definitions

  • the present invention relates to a communication system in which token passing is performed.
  • the present invention relates to improving the availability of an industrial network that performs communication between communication devices using a token passing system.
  • a token passing method is often adopted as a communication method as in Non-Patent Document 1.
  • a token frame describing a transfer destination of a data transmission right always circulates in the network. This data transmission right is called a token.
  • the communication device that has received the token frame is the transfer destination of the data transmission right, the communication device acquires the data transmission right, stores the data in the token frame, and transmits the token frame to another communication device. .
  • a plurality of communication devices having one or more ports are connected by a full-duplex communication line.
  • the connection configuration of the communication device any configuration such as a ring, a line, and a star is allowed.
  • a switching hub can be used to connect the communication device.
  • the communication device is also referred to as a station
  • the own device is referred to as the own station
  • the other device is referred to as the other station.
  • the communication device 200 when it is not necessary to distinguish between the communication device 201, the communication device 202, the communication device 203, the communication device 204, and the communication device 205, they are referred to as the communication device 200.
  • Each communication device 200 stores the number of its own station (hereinafter referred to as its own station number) and the number of the station to which the data transmission right (token) is to be transferred next (hereinafter referred to as a transfer destination station number).
  • each communication device 200 uses the code number as its own station number.
  • the local station number of the communication apparatus 201 is 201
  • the transfer destination station number is 202.
  • the communication station 202 has its own station number 202 and the transfer destination station number 203.
  • the local station number of the communication apparatus 203 is 203
  • the transfer destination station number is 204.
  • the local station number of the communication device 204 is 204, and the transfer destination station number is 205.
  • the communication station 205 has its own station number 205 and the transfer destination station number 201.
  • each communication apparatus 200 acquires the data transmission right
  • each communication apparatus 200 stores the local station number and the transfer destination station number in the token frame and transmits the token frame.
  • each communication device 200 obtains a data transmission right (token) in the order of (1) to (5). That is, the data transmission right (token) circulates in the order of the communication device 201, the communication device 202, the communication device 203, the communication device 204, the communication device 205, and the communication device 201.
  • the format of the token frame is shown in FIG.
  • the frame identifier is an identifier indicating the type of frame, and stores an identifier of a token frame.
  • the destination station number indicates the destination of the token frame, and stores a value indicating all stations. That is, the token frame is transmitted by broadcast.
  • the transmission source station number the station number of the communication apparatus 200 that is the transmission source of the token frame is stored.
  • the transmission right transfer destination station number hereinafter also simply referred to as transfer destination station number
  • the transmission data is data transmitted by the communication apparatus 200 that has acquired the data transmission right (token).
  • a checksum area for proving that the frame is not broken is at the end, but is omitted in the following description for the sake of simplicity.
  • the communication apparatus 200 includes a frame reception unit 2001, a frame transmission unit 2002, a token frame determination unit 2003, a reception data memory 2004, a token frame generation unit 2005, a transmission data memory 2006, a transfer destination station number storage register 2007, and a local station number storage register 2008. Composed.
  • the frame receiving unit 2001 receives a token frame transmitted from another station.
  • the token frame determination unit 2003 reads the transfer destination station number stored in the token frame from the other station and compares it with the value of the own station number storage register 2008. As a result of the comparison, if the two match, the token frame determination unit 2003 instructs the token frame generation unit 2005 to transmit a token frame. Further, the token frame determination unit 2003 transfers the transmission data in the received token frame to the reception data memory 2004 regardless of the comparison result.
  • the reception data memory 2004 stores transmission data in the received token frame.
  • the data stored in the reception data memory 2004 is used by a host control system connected to the communication apparatus 200.
  • the transmission data memory 2006 stores transmission data to be stored in a token frame transmitted from the own station. Data stored in the transmission data memory 2006 is written from a host control system or the like.
  • the own station number storage register 2008 stores the own station number.
  • the user who uses the communication apparatus 200 writes the own station number using an engineering tool or the like in advance.
  • the transfer destination station number storage register 2007 stores the station number of the communication apparatus 200 to which the data transmission right (token) is transferred.
  • the transfer destination station number is written in advance by the user using the communication apparatus 200 using an engineering tool or the like.
  • the token frame generation unit 2005 receives an instruction from the token frame determination unit 2003, generates a token frame to be transmitted from the local station, and transfers the generated token frame to the frame transmission unit 2002.
  • the frame transmission unit 2002 transmits the token frame transferred from the token frame generation unit 2005 to another station.
  • Token frame (transfer destination station number, own station number)
  • the token frame (transfer destination station number ⁇ own station number) is represented as a token frame (202 ⁇ 201).
  • the communication apparatus 201 transmits a token frame (transfer destination station number: 202, own station number: 201).
  • the token frame is transmitted to all stations.
  • the token frame generation unit 2005 generates a token frame (transfer destination station number: 203, own station number: 202), and the frame transmission unit 2002 transmits the token frame to all other stations.
  • the communication devices 203, 204, and 205 compare the transfer destination station number of the data transmission right with the value of the own station number storage register. The token is not sent because they do not match. However, the transmission data is transferred to the reception data memory 2004.
  • the communication devices 203, 204, and 205 acquire the data transmission right in order and transmit token frames.
  • the communication apparatus 205 transmits a token frame (transfer destination station number: 201, own station number: 205), which is received by the communication apparatus 201 and acquires a data transmission right. This completes the data transmission right.
  • the station numbers of the communication device 200 are set in ascending order or descending order (not necessarily sequential numbers) in the order of the device that obtains the data transmission right. That is, either the ascending order or descending order of the station numbers of the communication device 200 is designated as the token circulation order, and token passing is performed between the plurality of communication devices 200 according to the token circulation order. In the following, it is assumed that the token circulation order is ascending.
  • the data transmission right cannot be circulated first from the communication device 200.
  • the communication device 203 breaks down, the circulation of the data transmission right stops at the communication device 203, and thereafter other communication devices cannot communicate (FIG. 32).
  • the discontinuation and the reverse sequence are used as a method for maintaining the circulation of the data transmission right.
  • the communication device 200 in which a failure has occurred is automatically excluded from the circulation of the data transmission right by an operation called “disconnection”.
  • the communication device 200 in which a failure has occurred returns to normal due to device replacement or the like, the data transmission right circulation is automatically entered by an operation called return.
  • FIG. 33 since the communication device 203 has failed, the communication device 202 that has used the communication device 203 as the transfer destination of the data transmission right has changed the transfer destination of the data transmission right to the active communication device 204.
  • the reverse is that the communication device that temporarily changed the transfer destination of the data transmission right returns the transfer destination to the original when the communication device in which the failure occurred returns to normal due to device replacement or the like.
  • FIG. 34 In the example of FIG.
  • the communication device 202 since the communication device 203 in which the failure has occurred returns to normal, the communication device 202 that temporarily assigned the communication device 204 as the data transmission right transfer destination to the communication device 203 as the data transmission right transfer destination. It is returning. Note that the communication device that is restored by the return must have the same local station number and transfer destination station number as those at the time of the previous departure.
  • Non-Patent Document 1 CC Link-IE is an example of an industrial network that supports disassembly and reconnection.
  • one master device in the network executes disassembly and return processing.
  • the master device knows the token transfer destination station numbers of all communication devices, and manages the transfer order in a list structure.
  • the master device detects a failure of another communication device due to frame failure or the like, the master device searches the station number of the next live communication device from the list structure, and notifies the communication device of this station number information. By this notification, the communication device having the failed communication device as the transfer destination of the data transmission right can temporarily change the transfer destination of the data transmission right to the live communication device.
  • a CPU Central Processing
  • the communication device is configured to implement token passing communication that strongly requires real-time performance by using ASIC (Application Specific Integrated Circuit) or FPGA (Field-Programmable Gate Array), while disclosing and A configuration in which the return is performed by the CPU is assumed.
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the present invention has been made in view of the above points, and has as its main object to eliminate the need for list management of token transfer order.
  • a communication system includes: A communication system including a plurality of communication devices each having a device number set therein, wherein token passing is performed between the plurality of communication devices, Each communication device Have a timer to keep time, Receiving a token frame broadcast from another communication device and notifying the device number of the other communication device and the device number of the communication device to which the other communication device assigns a token; Each time a token frame is received, the timer is reset, and the device number of the communication device that is the transmission source of the received token frame that is longer than the time required for the token to make a round among the plurality of communication devices Set a time-out time, which is a time proportional to the difference between the device number and the device number of the own device, to the timer, and start counting the timer, Receiving a search frame broadcast-transmitted from a detected communication device that has detected that the communication device to which the token is transferred is not operating normally; Among the plurality of communication devices, A communication device in which a timeout due to the elapse
  • a communication device that has the earliest timeout after receiving a search frame among a plurality of communication devices detects a number notification frame that notifies the device number of the communication device as a response to the search frame. Send to communication device. For this reason, the detection communication device can change the token transfer destination communication device by the number notification frame, and does not need to manage the token transfer order list.
  • FIG. 3 is a diagram illustrating a configuration example of a communication device having a disconnection function according to the first embodiment.
  • FIG. 3 is a diagram showing a format example of a search frame according to the first embodiment.
  • FIG. 4 is a diagram showing an example of the format of an ACK frame according to the first embodiment.
  • FIG. 3 is a communication sequence diagram illustrating a method for disassembling according to the first embodiment.
  • FIG. 3 is a communication sequence diagram illustrating a method for disassembling according to the first embodiment.
  • FIG. 3 is a communication sequence diagram illustrating a method for disassembling according to the first embodiment.
  • FIG. 3 is a communication sequence diagram illustrating a method for disassembling according to the first embodiment.
  • FIG. 3 is a communication sequence diagram illustrating a method for disassembling according to the first embodiment.
  • FIG. 3 is a communication sequence diagram illustrating a method for disassembling according to the first embodiment.
  • FIG. 3 is a diagram illustrating an example of a plurality of disassembly lines according to the first embodiment.
  • FIG. 3 is a diagram illustrating an example format of an attended frame according to the first embodiment.
  • FIG. 4 is a diagram showing an example of an accept frame format according to the first embodiment.
  • 3 is a diagram illustrating a configuration example of a communication device having a reverse function according to Embodiment 1.
  • FIG. FIG. 3 is a diagram showing a state before returning according to the first embodiment.
  • FIG. 3 is a communication sequence diagram illustrating a return method according to the first embodiment.
  • FIG. 3 is a communication sequence diagram illustrating a return method according to the first embodiment.
  • FIG. 3 is a communication sequence diagram illustrating a return method according to the first embodiment.
  • FIG. 3 is a communication sequence diagram illustrating a return method according to the first embodiment.
  • FIG. 3 is a communication sequence diagram illustrating a return method according to the first embodiment.
  • FIG. 3 is a communication sequence diagram illustrating a return method according to the first embodiment.
  • FIG. 3 is a communication sequence diagram illustrating a return method according to the first embodiment.
  • FIG. 3 is a communication sequence diagram illustrating a return method according to the first embodiment.
  • FIG. FIG. 3 is a flowchart showing an operation example of the communication apparatus according to the first embodiment.
  • FIG. 3 is a flowchart showing a disconnection process of the communication device according to the first embodiment.
  • FIG. 3 is a flowchart showing a disconnection process of the communication device according to the first embodiment.
  • FIG. 3 is a flowchart showing a disconnection process of the communication device according to the first embodiment.
  • FIG. 3 is a flowchart showing a return processing of the communication apparatus according to the first embodiment.
  • FIG. 3 is a flowchart showing an operation example of the communication apparatus according to the first embodiment.
  • FIG. 3 is a diagram illustrating a hardware example of a communication device according to the first and second embodiments.
  • the figure which shows the concept of a return is a flowchart showing a return processing of the communication apparatus according to the first embodiment.
  • FIG. 3 is a flowchart showing an operation example of the communication apparatus according to the first embodiment.
  • FIG. 3 is a diagram illustrating a hardware example
  • Embodiment 1 FIG.
  • the discontinuation and return processing is distributed to each communication device, so that list management becomes unnecessary, and token passing communication, the disassembly processing, and the return processing can be realized economically by ASIC or FPGA.
  • ASIC application-specific integrated circuit
  • FPGA field-programmable gate array
  • the search frame is a communication frame transmitted by a communication device (hereinafter also referred to as a detection communication device) that has detected that a token transfer destination communication device (hereinafter also referred to as a token transfer destination communication device) is not operating normally. is there. More specifically, when the token transfer destination communication device is not operating normally, the search frame is detected in the token circulation order among the station numbers of the normal communication device group excluding the token transfer destination communication device. This is a communication frame for requesting notification of a station number (new token transfer destination station number) that follows the station number of the apparatus.
  • the ACK frame is transmitted as a response to the search frame.
  • the ACK frame is a communication frame for notifying a station number of a new token transfer destination of the detection communication device, and corresponds to an example of a number notification frame.
  • the format of the search frame is as shown in FIG. 2, and includes a frame identifier, a transmission destination station number, a destination station number, a transmission source station number, and a final station flag.
  • the frame identifier is an identifier indicating that the frame is a search frame.
  • the destination station number stores a value indicating all stations as the transmission destination of the search frame. That is, the search frame is broadcast to all stations.
  • the transmission source station number indicates the station number of the communication device that is the transmission source of the search frame.
  • the last station flag indicates whether the station number of the communication device that is the source of the search frame is greater than the station number of any other communication device, that is, the communication device that is the source of the search frame is the last in the token circulation order. Whether or not.
  • the final station flag is set to “0”, and the communication device that is the source of the search frame When the station number is the largest (when it is the last station), “1” is set in the last station flag.
  • the format of the ACK frame is as shown in FIG. 3, and is composed of a frame identifier, a destination station number, a transmission source station number, and a response destination station number.
  • the frame identifier is an identifier indicating that the frame is an ACK frame.
  • a value indicating all stations is stored as the transmission destination of the ACK frame. That is, the ACK frame is broadcast to all stations.
  • the transmission source station number indicates the station number of the communication device that is the transmission source of the ACK frame.
  • the response destination station number indicates the station number of the communication device that is the source of the search frame.
  • FIG. 1 A configuration example of the communication apparatus 100 for performing the disconnection is shown in FIG. In FIG. 1, priority is given to ease of explanation, and only the components necessary for disassembly are described, and the components for reconnection are not described. 100 exists. The components for returning will be described later.
  • a frame receiving unit 1001 receives various communication frames. Specifically, the frame receiving unit 1001 receives a token frame, a search frame, and an ACK frame.
  • the frame receiving unit 1001 corresponds to an example of a token frame receiving unit, a search frame receiving unit, and a number notification frame receiving unit.
  • the token frame determination unit 1003 reads the transmission right transfer destination station number stored in the token frame from the other station and compares it with the value of the own station number storage register 1008. As a result of the comparison, if the two match, the token frame determination unit 1003 instructs the token frame generation unit 1005 to transmit a token frame. Further, the token frame determination unit 1003 transfers the transmission data in the received token frame to the reception data memory 1004 regardless of the comparison result.
  • the token frame determination unit 1003 resets a reception watchdog timer 1007 (hereinafter referred to as reception WDT 1007) every time a token frame (both addressed to the own station and other stations) is received, and receives a timeout time. Set to WDT1007.
  • the timeout time is longer than the time required for the token to make a round among the plurality of communication devices 100, and the station number and the local station number of the communication device that is the transmission source of the token frame received by the frame reception unit 1001 This is the time proportional to the number difference.
  • the token frame determination unit 1003 corresponds to an example of a timer control unit.
  • the reception data memory 1004 stores transmission data in the received token frame.
  • the data stored in the reception data memory 1004 is used by a host control system connected to the communication apparatus 100.
  • the transmission data memory 1006 stores transmission data to be stored in a token frame transmitted from the own station. Data stored in the transmission data memory 1006 is written from an upper control system or the like.
  • the token frame generation unit 1005 receives an instruction from the token frame determination unit 1003, generates a token frame to be transmitted from the local station, and transfers the generated token frame to the frame transmission unit 1002.
  • the reception WDT 1007 is a watchdog timer that is reset by the token frame determination unit 1003 and sets a timeout time each time a token frame (both addressed to the own station and addressed to another station) is received.
  • Reception WDT 1007 corresponds to an example of a timer unit.
  • the own station number storage register 1008 stores the own station number.
  • the user who uses the communication apparatus 100 writes the own station number using an engineering tool or the like in advance.
  • the transfer destination station number storage register 1009 stores the station number (token transfer destination device number) of the communication device 100 to which the data transmission right (token) is transferred.
  • the transfer destination station number is written in advance by the user using the communication apparatus 100 using an engineering tool or the like.
  • the transfer destination station number storage register 1009 corresponds to an example of a transfer destination apparatus number storage unit.
  • the pre-release transfer destination station number storage register 1010 holds the token transfer destination station number value in a state where it has never been released (that is, holds the initial value of the transfer destination station number storage register 1009).
  • Search frame generation section 1011 generates a search frame when reception WDT 1007 times out due to the elapse of the timeout time. That is, the search frame generation unit 1011 generates a search frame when it is detected that the communication apparatus to which the token is transferred is not operating normally due to a timeout of the reception WDT 1007.
  • Search frame determination section 1012 determines whether or not a frame received from another station is a search frame. Further, the search frame determination unit 1012 receives the response waiting time by resetting the reception WDT 1007 when the frame received from another station is a search frame and the final station flag of the received search frame is “1”. Set to WDT1007. Search frame determination unit 1012 also corresponds to an example of a timer control unit.
  • the ACK frame generation unit 1013 generates an ACK frame when the search frame determination unit 1012 confirms the reception of the search frame and when the reception WDT 1007 times out.
  • the ACK frame generation unit 1013 corresponds to an example of a number notification frame generation unit.
  • the ACK frame determination unit 1014 determines whether or not an ACK frame received from another station is addressed to the own station. If the received ACK frame is addressed to the own station, the ACK frame determination unit 1014 updates the transfer destination station number in the transfer destination station number storage register 1009 to the station number notified by the ACK frame.
  • the ACK frame determination unit 1014 corresponds to an example of a transfer destination device number update unit.
  • the frame transmission unit 1002 transmits various communication frames. Specifically, the frame transmission unit 1002 transmits a token frame, a search frame, and an ACK frame.
  • the frame transmission unit 1002 corresponds to an example of a token frame transmission unit, a search frame transmission unit, and a number notification frame transmission unit.
  • the station numbers of the communication apparatus 100 are set in ascending order or descending order (not necessarily sequential numbers) in the order of the apparatus that obtains the data transmission right (token). That is, either the ascending order or descending order of the station numbers of the communication device 100 is designated as the token circulation order, and token passing is performed between the plurality of communication devices 100 according to the token circulation order. In the following, it is assumed that the token circulation order is ascending. Also, the format of the token frame is as shown in FIG.
  • FIGS. 4, 5, and 6 A case where a communication device other than the last station or the starting station is disconnected due to a failure will be described with reference to FIGS. 4, 5, and 6, a case is assumed in which the communication device 103 among the communication devices 101, 102, 103, 104, and 105 becomes unable to communicate due to a failure. 4, 5, and 6, a procedure in which the communication apparatus 102 detects a failure of the communication apparatus 103 and changes the token transfer destination from the communication apparatus 103 to the communication apparatus 104 will be described. Note that each of the communication devices 101, 102, 103, 104, and 105 has the configuration shown in FIG. The station numbers of the communication apparatuses 101, 102, 103, 104, and 105 are the same as the reference numerals.
  • the local station number of the communication apparatus 101 is 101, and the transfer destination station number is 102.
  • the communication station 102 has its own station number 102 and the transfer destination station number 103.
  • the communication station 103 has its own station number 103 and the transfer destination station number is 104.
  • the local station number of the communication apparatus 104 is 104, and the transfer destination station number is 105.
  • the local station number of the communication apparatus 105 is 105, and the transfer destination station number is 101.
  • Token frame (transfer destination station number, own station number) Further, in the drawing, the token frame (transfer destination station number ⁇ own station number) is represented as a token frame (102 ⁇ 101). Also, (1) to (5) in FIGS. 4, 5, and 6 correspond to (1) to (5) in the following description.
  • the token frame determination unit 1003 resets the reception WDT 1007. Then, a timeout time according to the following equation is set in the reception WDT 1007 (FIG. 4).
  • Timeout time fixed value x abs (token station number-own station number)
  • abs is an operation for obtaining the absolute value of the value in ().
  • the timeout time of the communication device 100 that has received the token frame is smaller as it is closer to the station number of the communication device 100 that is the transmission source of the token frame (that is, the device that obtains the data transmission right in the previous order).
  • the reception WDT 1007 is reset every time a token frame from another communication apparatus 100 is received. Further, the fixed value of the above expression is set to a sufficiently large value so that it does not time out before the next token frame arrives from another communication apparatus 100. That is, the time-out time is a time longer than the time required for a token to make a round among the plurality of communication devices 100.
  • the timeout time when receiving the token frame from the communication device 101 is 10 (10 ⁇ 1) in the communication device 102, 30 (10 ⁇ 3) in the communication device 104, and in the communication device 105. 40 (10 ⁇ 4).
  • the communication device 102 transmits a token frame (transfer destination station number: 103, transmission source station number: 102) with the communication device 103 (station number: 103) as a token transfer destination, but the communication device 103 cannot communicate due to a failure. (Fig. 4). For this reason, no token frame is transmitted from the communication device 103. Therefore, the reception WDT 1007 of the communication apparatus 102 does not reset and eventually times out. Then, the search frame generation unit 1011 of the communication apparatus 102 detects a timeout, regards that the communication apparatus 103 has left due to a failure, and searches for a subsequent (higher station number) live station (search frame (source station number)). : 102, final station flag: 0), and the frame transmission unit 1002 broadcasts the search frame.
  • a token frame transfer destination station number: 103, transmission source station number: 102
  • search frame source station number
  • search frame determination unit 1012 does not reset reception WDT 1007.
  • Communication device 102 retransmits the search frame until an ACK frame is received (FIG. 5).
  • the reception WDT 1007 of the communication device 104 and the communication device 105 is decremented without being reset, and the reception WDT 1007 of the communication device 104 eventually times out (FIG. 5). This is because when the communication device 104 and the communication device 105 receive the token frame transmitted from the communication device 102 in the procedure (2), the reception WDT 1007 of the communication device 104 sets a smaller timeout time. In FIG. 4, the timeout time when the token frame is received from the communication device 102 is 20 (10 ⁇ 2) in the communication device 104 and 30 (10 ⁇ 3) in the communication device 105. Thus, the station to which the reception WDT 1007 first times out is the station that is closest in number to the station that has failed.
  • search frame determination unit 1012 instructs ACK frame generation unit 1013 to generate an ACK frame.
  • the ACK frame generation unit 1013 generates an ACK frame (response destination station number: 102, transmission source station number: 104), and the frame transmission unit 1002 transmits the ACK frame.
  • the ACK frame determination unit 1014 determines whether or not the ACK frame is addressed to the own station with reference to the response destination station number of the ACK frame received from the communication device 104 (station number: 104). If it is addressed to a station, the token transfer destination station number in the transfer destination station number storage register 1009 is changed to the station number (station number: 104) of the transmission source of the ACK frame (FIG. 6). Further, the token frame generation unit 1005 generates a token frame (transfer destination station number: 104, transmission source station number: 102) according to the new token transfer destination station number of the transfer destination station number storage register 1009.
  • the frame transmission unit 1002 broadcasts the token frame (transfer destination station number: 104, transmission source station number: 102). Thereafter, when the data transmission right is acquired, the communication apparatus 102 generates a token frame (transfer destination station number: 104, transmission source station number: 102) and broadcasts it. Further, when the communication apparatuses 101 and 105 receive the ACK frame from the communication apparatus 104 and confirm that the received ACK frame is not addressed to the local station, the communication apparatuses 101 and 105 reset the reception WDT 1007 and set the timeout time to the reception WDT 1007 again. Set (FIG. 6).
  • the communication device 104 transmits a token frame (transfer destination station number: 105, transmission source station number: 104) to the communication device 105 (station number: 105), but the communication device 105 is unable to communicate due to a failure. Therefore, no token frame is transmitted from the communication device 105. Therefore, the reception WDT 1007 of the communication device 104 does not reset and eventually times out (FIG. 7). Then, the search frame generation unit 1011 of the communication device 104 detects a time-out, considers that the communication device 105 has left due to a failure, and searches for a subsequent live station (source frame number: 104, last station flag). : 0), and the frame transmission unit 1002 broadcasts the search frame.
  • a token frame transfer destination station number: 105, transmission source station number: 104
  • the token frame generation unit 1005 determines that the local station is at the end in the token circulation order, and finally A search frame (transmission source station number: 104, final station flag: 1) with a station flag of “1” is generated, and the frame transmission unit 1002 broadcasts this search frame (FIG. 8).
  • the search frame whose final station flag is “1” corresponds to an example of the last notification frame.
  • the communication apparatus 104 also changes the retransmission period of the search frame, and takes it long enough to cause a timeout of the reception WDT 1007 at another station (previously the period was such that no timeout occurred).
  • search frame determination unit 1012 When communication devices 101, 102, and 103 receive a search frame (source station number: 104, final station flag: 1) from communication device 104, search frame determination unit 1012 resets reception WDT 1007, and The response waiting time is set in the reception WDT 1007 with the value of (FIG. 8).
  • Response waiting time fixed value ⁇ own station number According to the above equation, a shorter response waiting time is set in the reception WDT 1007 for a communication device with a smaller station number.
  • the response waiting time of the communication device 101 is 10 (10 ⁇ 1)
  • the response waiting time of the communication device 102 is 20 (10 ⁇ 2)
  • the response waiting time of the communication device 103 is 30 (10 ⁇ 1). 3).
  • reception WDT 1007 times out first (FIG. 8).
  • ACK frame generation unit 1013 generates an ACK frame (response destination station number: 104, transmission source station number: 101), and frame transmission unit 1002 broadcasts the ACK frame.
  • the ACK frame determination unit 1014 determines whether the earliest ACK frame (here, the ACK frame from the communication device 101) is addressed to the local station, and the ACK frame is If it is addressed to the station, the token transfer destination station number in the transfer destination station number storage register 1009 is changed to the station number (station number: 101) of the transmission source of the ACK frame (FIG. 9).
  • the token frame generation unit 1005 generates a token frame (transfer destination station number: 101, transmission source station number: 104) according to the new token transfer destination station number of the transfer destination station number storage register 1009. Then, the frame transmission unit 1002 broadcasts a token frame (transfer destination station number: 101, transmission source station number: 104).
  • the communication device 104 When the data transmission right is acquired, the communication device 104 generates a token frame (transfer destination station number: 101, transmission source station number: 104), and broadcasts it. Further, when the communication apparatuses 102 and 103 receive the ACK frame from the communication apparatus 101 and confirm that the received ACK frame is not addressed to the local station, the communication apparatuses 102 and 103 reset the reception WDT 1007 and set the timeout time to the reception WDT 1007 again. Set (FIG. 8).
  • a token frame transfer destination station number: 101, transmission source station number: 104
  • the starting station (communication apparatus 101 in this example) leaves, the last station (communication apparatus 105 in this example) transmits a search frame.
  • the procedure (2) described above is performed. Since the situation is the same as above, disassembly can be performed by the same procedure as described above.
  • the attended frame is a broadcast that is broadcast from a communication device (hereinafter also referred to as an unsubscribed communication device) that is included in the communication system (network) but has not subscribed to token passing, and is notified of the station number of the unsubscribed communication device. It is a frame.
  • the accept frame is a communication frame for notifying that an unsubscribed communication device is approved to participate in token passing.
  • the format of the attended frame is as shown in FIG. 11, and is composed of a frame identifier, a destination station number, and a transmission source station number.
  • the frame identifier is an identifier indicating that the frame is an attended frame.
  • the destination station number stores a value indicating all stations as the transmission destination of the attended frame. That is, the attended frame is broadcast to all stations.
  • the transmission source station number indicates the station number of the communication apparatus 100 that is the transmission source of the attended frame.
  • the format of the accept frame is as shown in FIG. 12, and includes a frame identifier, a destination station number, a transmission source station number, and a final station flag.
  • the frame identifier is an identifier indicating that the frame is an accept frame.
  • the destination station number indicates the station number of the communication apparatus 100 that is the transmission source of the attended frame. That is, the accept frame is unicast to the transmission source of the attended frame.
  • the transmission source station number indicates the station number of the communication device that is the transmission source of the accept frame.
  • the final station flag indicates whether the station number of the communication device that is the source of the accept frame is greater than the station number of any other communication device, that is, the communication device that is the source of the accept frame is the last in the token circulation order. Whether or not.
  • the final station flag is set to “0” and the accept frame transmitting source communication device When the station number is the largest (when it is the last station), “1” is set in the last station flag.
  • FIG. 13 shows the configuration of the communication apparatus 100 for performing the reverse sequence.
  • priority is given to ease of explanation, and only the components necessary for reverse sequence are described, and the components for disconnection (FIG. 1) are not described. Are also present in the same communication apparatus 100.
  • the frame receiving unit 1001 is shown in FIG. 1 and receives various communication frames. In the reverse processing, the frame receiving unit 1001 receives a token frame, an attended frame, and an accept frame. The frame receiving unit 1001 corresponds to an example of an attended frame receiving unit.
  • the token frame determination unit 1003, reception data memory 1004, token frame generation unit 1005, transmission data memory 1006, own station number storage register 1008, transfer destination station number storage register 1009, and transfer destination station number storage register 1010 before release are shown in FIG. The description is omitted.
  • the transmission watchdog timer 1055 (hereinafter referred to as transmission WDT 1055) is a watchdog timer that is reset when the local station acquires the right to transmit data and transmits a token frame.
  • the attended frame generation unit 1051 generates an attended frame when the transmission WDT 1055 times out.
  • the attended frame determination unit 1052 determines whether a frame received from another station is an attended frame. If the received attend frame is addressed to the own station, the attend frame determination unit 1052 sets the transfer destination station number in the transfer destination station number storage register 1009 to the station number notified by the attend frame (the station number of the unsubscribed communication device). Update.
  • the attended frame determination unit 1052 corresponds to an example of a transfer destination device number update unit.
  • the accept frame generating unit 1053 generates an accept frame when reception of the attended frame is confirmed by the attended frame determining unit 1052 and an accept frame transmission condition described in the description of the return sequence described later is satisfied.
  • the accept frame determination unit 1054 determines whether an accept frame received from another station is addressed to the own station.
  • the frame transmission unit 1002 is the one shown in FIG. 1 and transmits various communication frames. Specifically, in the reverse processing, the frame transmission unit 1002 transmits a token frame, an attended frame, and an accept frame.
  • the frame transmission unit 1002 corresponds to an example of a token frame transmission unit and an accept frame transmission unit.
  • each of the communication devices 101, 102, 103, 104, and 106 has the configuration shown in FIG.
  • the station numbers of the communication apparatuses 101, 102, 103, 104, 105, and 106 are the same as the codes.
  • the method of returning is different depending on the position of the communication device to be returned.
  • the communication apparatus 103 When the communication apparatus 103 recovers from the failure, the communication apparatus 103 resets the transmission WDT 1055 and sets the timeout time to the transmission WDT 1055 (FIG. 15).
  • the timeout time of the transmission WDT 1055 is longer than the time required for the data transmission right to go around the six communication devices.
  • the transmission WDT 1055 eventually times out (FIG. 15). Then, the attended frame generating unit 1051 of the communication apparatus 103 generates an attended frame (transmission source station number: 103), and the frame transmitting unit 1002 broadcasts the attended frame. Also, the attended frame generation unit 1051 resets the transmission WDT 1055 and sets the timeout time again.
  • accept frame transmission condition ( ⁇ ) ( ⁇ 1)
  • the own station is not the final station ( ⁇ 2) Current transfer destination station number ⁇ transfer destination station number before disconnection This means that the own station is in a state where another station is disconnected.
  • the conditions of ( ⁇ 3) and ( ⁇ 4) are: This means that there is a station that has returned to the other station.
  • the communication apparatus 102 satisfies the above conditions, and the communication apparatus 102 transmits an accept frame (destination station number: 103, transmission source station number: 102). Also, the attended frame determination unit 1052 of the communication apparatus 102 rewrites the token transfer destination station number in the transfer destination station number storage register 1009 to the transmission source station number (station number: 103) of the attended frame.
  • the communication device 103 When receiving the accept frame, the communication device 103 resets the transmission WDT 1055. If the communication device 103 cannot receive the accept frame and the transmission WDT 1055 times out, it retransmits the attended frame.
  • the communication apparatus 102 When the next data transmission right is acquired, the communication apparatus 102 generates a token frame (transfer destination station number: 103, transmission source station number: 102) in accordance with the new token transfer destination station number in the transfer destination station number storage register 1009 ( FIG. 16). Then, the frame transmission unit 1002 broadcasts the token frame (transfer destination station number: 103, transmission source station number: 102).
  • the communication apparatus 103 acquires a data transmission right (FIG. 16).
  • the initial value (the transfer destination station number storage register 1010 before the release) is restored. ) Is the token transfer destination station number. For this reason, when the default transfer destination station is still leaving, the communication apparatus 103 performs the disconnection process again.
  • the communication device 106 When the communication device 106 recovers from the failure, the communication device 106 resets the transmission WDT 1055 and sets the timeout time to the transmission WDT 1055 (FIG. 17).
  • the timeout time of the transmission WDT 1055 is longer than the time required for the data transmission right to go around the six communication devices.
  • the transmission WDT 1055 eventually times out (FIG. 17). Then, the attended frame generating unit 1051 of the communication apparatus 106 generates an attended frame (transmission source station number: 106), and the frame transmitting unit 1002 broadcasts the attended frame. Also, the attended frame generation unit 1051 resets the transmission WDT 1055 and sets the timeout time again.
  • the attended frame determination unit 1052 performs a condition determination on the following accept frame transmission condition ( ⁇ ).
  • the accept frame generation unit 1053 generates an accept frame, and the frame transmission unit 1002 transmits the accept frame (FIG. 17).
  • the own station is the final station ( ⁇ 2)
  • the own station number ⁇ the transmission source station number of the received attended frame
  • the communication device 105 satisfies the above conditions, and the communication device 105 receives an accept frame (destination station number: 106, Source station number: 105) is transmitted.
  • the attended frame determination unit 1052 of the communication device 105 rewrites the token transfer destination station number in the transfer destination station number storage register 1009 to the transmission source station number (station number: 106) of the attended frame.
  • the communication device 106 When receiving the accept frame, the communication device 106 resets the transmission WDT 1055. If the accept frame cannot be received and the transmission WDT 1055 times out, the communication apparatus 106 retransmits the attended frame.
  • the communication apparatus 105 When acquiring the next data transmission right, the communication apparatus 105 generates a token frame (transfer destination station number: 106, transmission source station number: 105) according to the new token transfer destination station number in the transfer destination station number storage register 1009 ( FIG. 18). Then, the frame transmission unit 1002 broadcasts the token frame (transfer destination station number: 106, transmission source station number: 105).
  • the communication device 106 acquires the data transmission right (FIG. 18).
  • the initial value transfer destination station number storage register 1010 before release
  • the communication device 106 performs the disconnection process again.
  • the communication apparatus 101 When the communication apparatus 101 recovers from the failure, the communication apparatus 101 resets the transmission WDT 1055 and sets the timeout time to the transmission WDT 1055 (FIG. 19).
  • the timeout time of the transmission WDT 1055 is longer than the time required for the data transmission right to go around the six communication devices.
  • the transmission WDT 1055 times out (FIG. 19). Then, the attended frame generating unit 1051 of the communication apparatus 101 generates an attended frame (transmission source station number: 101), and the frame transmitting unit 1002 broadcasts the attended frame. Also, the attended frame generation unit 1051 resets the transmission WDT 1055 and sets the timeout time again.
  • the attended frame determination unit 1052 performs a condition determination on the following accept frame transmission condition ( ⁇ ).
  • the accept frame generation unit 1053 generates an accept frame, and the frame transmission unit 1002 transmits the accept frame (FIG. 19).
  • the communication apparatus 105 satisfies the above conditions, and the communication apparatus 105 transmits an accept frame (destination station number: 101, transmission source station number: 105). Also, the attended frame determination unit 1052 of the communication device 105 rewrites the token transfer destination station number in the transfer destination station number storage register 1009 to the attended frame transmission source station number (station number: 101).
  • the communication apparatus 101 Upon receiving the accept frame, the communication apparatus 101 resets the transmission WDT 1055. If the communication apparatus 101 cannot receive the accept frame and the transmission WDT 1055 times out, it retransmits the attended frame.
  • the communication device 105 When acquiring the next data transmission right, the communication device 105 generates a token frame (transfer destination station number: 101, source station number: 105) according to the new token transfer destination station number in the transfer destination station number storage register 1009 ( FIG. 20). Then, the frame transmission unit 1002 broadcasts the token frame (transfer destination station number: 101, transmission source station number: 105).
  • FIGS. 1 and 13 An operation example of the communication apparatus 100 illustrated in FIGS. 1 and 13 will be described using a flowchart. The overall operation of the communication apparatus 100 will be described with reference to FIG.
  • the frame reception unit 1001 when the frame reception unit 1001 receives a communication frame, the frame reception unit 1001 outputs the received communication frame to the token frame determination unit 1003. Then, the token frame determination unit 1003 determines whether or not the received communication frame is a token frame (S101). If the received communication frame is a token frame (YES in S101), the token frame determination unit 1003 resets the reception WDT 1007 and sets the timeout time to the reception WDT 1007 (S102). Further, the token frame determination unit 1003 determines whether or not the received token frame is a token frame addressed to the own station (S103). If the received token frame is a token frame addressed to the own station (YES in S103), the token frame generation unit 1005 is instructed to generate a token frame. Then, the token frame generation unit 1005 generates a token frame, and the frame transmission unit 1002 broadcasts the token frame (S104).
  • S101 If the received communication frame is a token frame (YES in S101), the token frame determination unit 1003 resets the reception WDT
  • the frame receiving unit 1001 has not received any token frame, attended frame, or search frame (NO in S101, NO in S105, NO in S107), and a timeout of the reception WDT 1007 occurs (YES in S108) In this case, the disassembling process (1) is performed (S109). Details of the disassembling process (1) will be described later.
  • a dissecting process (2) is performed (S110). Details of the disassembling process (2) will be described later.
  • FIG. 23 is a flowchart showing details of the disassembling process (1). As described above, when the frame receiving unit 1001 has not received any of the token frame, the attended frame, or the search frame (NO in S101, NO in S105, NO in S107), and the reception WDT 1007 times out (S108) 23), the flow of FIG. 23 starts.
  • the search frame generation unit 1011 generates a search frame whose final station flag is “0”, and the frame transmission unit 1002 broadcasts the search frame (S1091).
  • the ACK frame determination unit 1014 analyzes the received communication frame. If the received communication frame is an ACK frame for the search frame (last station flag: 0) transmitted in S1091, (YES in S1092), the ACK frame determination unit 1014 transfers the token in the transfer destination station number storage register 1009. The previous station number is changed to the station number of the transmission source of the ACK frame (S1096). Further, the token frame generation unit 1005 generates a token frame according to the new token transfer destination station number in the transfer destination station number storage register 1009, and the frame transmission unit 1002 broadcasts the token frame (S1097).
  • the frame transmission unit 1002 retransmits the search frame (last station flag: 0) (S1091) until the specified number of retransmissions is reached (S1093). If the ACK frame is not received even after the specified number of retransmissions (YES in S1093), the search frame generation unit 1011 generates a search frame with the final station flag “1”, and the frame transmission unit 1002 receives the search frame. Is broadcast (S1094).
  • the ACK frame determination unit 1014 sets the token transfer destination station number in the transfer destination station number storage register 1009 to the transmission source of the ACK frame. (S1096). Further, the token frame generation unit 1005 generates a token frame according to the new token transfer destination station number in the transfer destination station number storage register 1009, and the frame transmission unit 1002 broadcasts the token frame (S1097).
  • FIG. 24 is a flowchart showing details of the disassembling process (2). As described above, when the frame receiving unit 1001 receives a search frame (NO in S101, NO in S105, YES in S107), the flow in FIG. 23 starts.
  • the search frame determination unit 1012 compares the transmission source station number of the search frame with its own station number (S1101), and if the own station number is larger than the transmission station number of the search frame (NO in S1101), the time-out of the reception WDT 1007 When this occurs (YES in S1102), the ACK frame generation unit 1013 generates an ACK frame, and the frame transmission unit 1002 broadcasts the ACK frame (S1103).
  • the response destination station number of the ACK frame is the source station number of the search frame.
  • the frame receiving unit 1001 receives an ACK frame before the reception WDT 1007 times out (NO in S1102 and YES in S1104), the received ACK frame is not addressed to the own station, so the token frame determining unit 1003 Resets the reception WDT 1007 and sets the timeout time again (S1105).
  • the search frame determination unit 1012 If the transmission source station number of the search frame is larger than the own station number in S1101 (YES in S1101), the search frame determination unit 1012 resets the reception WDT 1007 and sets the timeout time again (S1106). Further, when the frame reception unit 1001 receives a search frame with the final station flag “1” (YES in S1107), the search frame determination unit 1012 resets the reception WDT 1007, and the procedure (3) in FIG. The response waiting time described is set (S1108). If the response waiting time set in S1108 elapses and the reception WDT 1007 times out (YES in S1109), the ACK frame generation unit 1013 generates an ACK frame, and the frame transmission unit 1002 broadcasts the ACK frame. (S1103).
  • the token frame determination unit 1003 resets the reception WDT 1007 and sets the timeout time again (S1111).
  • FIG. 25 is a flowchart showing details of the reverse processing. As described above, when the frame reception unit 1001 receives an attended frame (YES in S105), the flow in FIG. 25 starts.
  • the attended frame determination unit 1052 determines whether any of the accept frame transmission conditions ( ⁇ ), ( ⁇ ), and ( ⁇ ) is satisfied for the local station (S1061). If any one of the accept frame transmission conditions is satisfied (YES in S1061), the accept frame generation unit 1053 generates an accept frame, and the frame transmission unit 1002 unicasts the accept frame (S1062). Furthermore, the attended frame determination unit 1052 rewrites the token transfer destination station number in the transfer destination station number storage register 1009 with the transmission source station number of the attended frame (S1063).
  • FIG. 26 is a flowchart illustrating an operation example of the communication apparatus 100 that has recovered from a failure.
  • the token frame generation unit 1005 resets the transmission WDT 1055 and sets a timeout time (S201).
  • the transmission WDT 1055 times out YES in S202
  • the attended frame generating unit 1051 generates an attended frame
  • the frame transmitting unit 1002 broadcasts the attended frame (S203).
  • the attended frame generation unit 1051 resets the transmission WDT 1055 and sets a timeout time again (S204).
  • the process proceeds to S101 (S207). As a result, the communication apparatus 100 participates in token passing. On the other hand, when a timeout occurs (YES in S206), the frame transmission unit 1002 retransmits the attended frame.
  • the discontinuation and return processing are distributed to each communication device, thereby eliminating the need for intensive list management in one conventional communication device, and token passing communication.
  • Embodiment 2 Even when there are a plurality of token loops in one network, the disassembling method and the returning method described in the first embodiment are effective.
  • the communication devices 101, 102, 103, 104, 105, and 106 are connected to the same network, and the communication devices 101, 102, and 103 have one closed token circulation. A situation where the communication devices 104, 105, 106 form another closed token circuit.
  • Each communication apparatus 100 refers to the group number when receiving the token frame, and discards the received token frame when the referred group number is different from the group number of the group to which the own station belongs. This prevents data transmission rights from being obtained even if a token frame is received from another group.
  • the de-sequence and the sequence can be performed only in one closed token circuit. Returning is possible.
  • Each communication device A frame receiver for receiving a token frame transmitted from another station; A token frame determination unit that reads out the transfer destination station number stored in the token frame from another station and compares it with the value of the own station number storage register; A reception data memory for storing transmission data of the received token frame; A transmission data memory for storing transmission data stored in a token frame transmitted from the own station; A local station number storage register for storing the local station number; A transfer destination station number storage register for storing the transfer destination station number of the data transmission right; In response to an instruction from the token frame determination unit, a token frame generation unit that generates a token frame to be transmitted from the own station; A frame transmission unit for transmitting the token frame transferred from the token frame generation unit to another station; A reception watchdog timer that is a watchdog timer that is reset when a token frame is received; When the reception watchdog timer times out, a search frame generation unit that generates a search frame; A search frame determination unit that determines whether the received frame is a search frame; An
  • Each communication device A transmission watchdog timer, which is a watchdog timer that is reset when the local station transmits a token frame, When the transmission watchdog timer times out, an attended frame generator that generates an attended frame, An attended frame determination unit that determines whether the received frame is an attended frame; When the attendee frame is received, the current transfer destination station number does not match the transfer destination station number before the release, the transmission source station number of the attended frame received from the own station number is larger, and the transmission source station number of the received attendance frame An accept frame generation unit that generates an accept frame when the current transfer destination station number is larger; An accept frame determination unit for determining whether the received accept frame is addressed to the own station; We explained that we have.
  • Each communication device broadcasts a search frame when the reception watchdog timer times out, A communication device whose station number is larger than the communication device that broadcasts the search frame and the reception watchdog timer timed out first, receives the search frame, and transmits an ACK frame to the communication device that broadcasts the search frame.
  • the defective communication device is excluded from the transfer destination of the data transmission right.
  • Each communication device resets the transmission watchdog timer when it recovers from the failure, broadcasts an attended frame when the transmission watchdog timer times out,
  • the current token transfer destination station number does not match the token transfer destination station number before the release, the station number of the communication device that broadcasts the attended frame is larger than the own station number, and the station number of the communication device that broadcasts the attended frame
  • the communication device that satisfies the condition that the token transfer destination station number of its own communication device is larger receives the attend frame and sends an accept frame to the communication device that broadcasts the attend frame.
  • an arithmetic device 901 As a hardware configuration of the communication device 100, an arithmetic device 901, an external storage device 902, a main storage device 903, a communication device 904, and an input / output device 905 are connected to the bus.
  • the arithmetic device 901 is, for example, an ASIC or FPGA. Further, the arithmetic device 901 can be a CPU.
  • the external storage device 902 is, for example, a ROM (Read Only Memory), a flash memory, or a hard disk device.
  • the main storage device 903 is a RAM (Random Access Memory) or a register.
  • the communication device 904 corresponds to the physical layer of the frame reception unit 1001 and the frame transmission unit 1002.
  • the input / output device 905 is, for example, a mouse, a keyboard, a display device, or the like.
  • ⁇ unit in FIGS. 1 and 13 is a program, and the CPU executes these programs to realize the function of “ ⁇ unit”.
  • the program is normally stored in the external storage device 902, and is loaded into the main storage device 903 and sequentially read into the arithmetic device 901 and executed.
  • the configuration in FIG. 27 is merely an example of the hardware configuration of the communication apparatus 100, and the hardware configuration of the communication apparatus 100 is not limited to the configuration illustrated in FIG. 27, and may be another configuration. .
  • the processing procedure of the communication device 100 shown in the first and second embodiments can be regarded as a communication method.

Landscapes

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

Abstract

A communication system in which token passing is performed between a plurality of communication devices (100), wherein each time receiving a token frame, each of the communication devices (100) sets, in a reception WDT (1007), a time-out time that is a time longer than a time required for a token to circulate among the plurality of communication devices (100) and a time proportional to the number difference between the station number of a communication device (100) being the transmission source of the received token frame and the station number of the communication device itself. Each of the communication devices (100) receives a search frame from a detection communication device (100) that has detected that a communication device being the transfer destination of the token is not operating normally. Among the plurality of the communication devices (100), a communication device (100) in which a time-out occurred earliest after receiving the search frame generates, as a response to the search frame, an ACK frame that reports the station number of this communication device (100), and transmits the generated ACK frame to the detection communication device.

Description

通信システム及び通信装置Communication system and communication apparatus
 本発明は、トークンパッシングが行わる通信システムに関する。
 例えば、本発明は、トークンパッシング方式により通信装置間で交信を行う産業用ネットワークの可用性向上に関する。
The present invention relates to a communication system in which token passing is performed.
For example, the present invention relates to improving the availability of an industrial network that performs communication between communication devices using a token passing system.
 産業用ネットワークでは、通信方式として、非特許文献1のようにトークンパッシング方式が採用されことが多い。
 トークンパッシング方式では、データ送信権の譲渡先が記述されたトークンフレームがネットワークを常に周回している。
 このデータ送信権を、トークンという。
 そして、トークンフレームを受信した通信装置がデータ送信権の譲渡先である場合は、当該通信装置がデータ送信権を獲得し、データをトークンフレームに格納し、トークンフレームを他の通信装置に送信する。
In an industrial network, a token passing method is often adopted as a communication method as in Non-Patent Document 1.
In the token passing method, a token frame describing a transfer destination of a data transmission right always circulates in the network.
This data transmission right is called a token.
When the communication device that has received the token frame is the transfer destination of the data transmission right, the communication device acquires the data transmission right, stores the data in the token frame, and transmits the token frame to another communication device. .
 以下、トークンパッシング方式の詳細について説明する。
 1個以上のポートを持つ通信装置が複数台、全二重の通信回線で接続されているとする。
 通信装置の接続構成は、リング、ライン、スターといった任意の構成が許容される。
 また、通信装置の接続にスイッチングハブを利用することも出来る。
 以降では、説明の都合上、図28に例示するように、1台のスイッチングハブに通信装置201、202、203、204、205の5台が接続されていると想定する。
 また、以降では通信装置のことを局ともいい、自装置のことを自局、他装置のことを他局ともいう。
 また、通信装置201、通信装置202、通信装置203、通信装置204、通信装置205を区別する必要がない場合は、通信装置200と表記する。
Details of the token passing method will be described below.
It is assumed that a plurality of communication devices having one or more ports are connected by a full-duplex communication line.
As the connection configuration of the communication device, any configuration such as a ring, a line, and a star is allowed.
In addition, a switching hub can be used to connect the communication device.
Hereinafter, for convenience of explanation, it is assumed that five communication devices 201, 202, 203, 204, and 205 are connected to one switching hub as illustrated in FIG.
Further, hereinafter, the communication device is also referred to as a station, the own device is referred to as the own station, and the other device is referred to as the other station.
In addition, when it is not necessary to distinguish between the communication device 201, the communication device 202, the communication device 203, the communication device 204, and the communication device 205, they are referred to as the communication device 200.
 各通信装置200は、自局の番号(以下、自局番という)と、次にデータ送信権(トークン)を譲りたい局の番号(以下、譲渡先局番という)を記憶する。
 以下では、各通信装置200は、符号の番号を自局番とする。
 図28の例では、通信装置201の自局番は201であり、譲渡先局番は202とする。
 通信装置202の自局番は202であり、譲渡先局番は203とする。
 通信装置203の自局番は203であり、譲渡先局番は204とする。
 通信装置204の自局番は204であり、譲渡先局番は205とする。
 通信装置205の自局番は205であり、譲渡先局番は201とする。
 各通信装置200は、データ送信権を取得したときに、自局番と譲渡先局番をトークンフレームに格納してトークンフレームを送信する。
 また、図28の例では、(1)~(5)の順番に従って、各通信装置200がデータ送信権(トークン)を得る。
 すなわち、通信装置201、通信装置202、通信装置203、通信装置204、通信装置205、通信装置201の順にデータ送信権(トークン)が巡回する。
Each communication device 200 stores the number of its own station (hereinafter referred to as its own station number) and the number of the station to which the data transmission right (token) is to be transferred next (hereinafter referred to as a transfer destination station number).
Hereinafter, each communication device 200 uses the code number as its own station number.
In the example of FIG. 28, the local station number of the communication apparatus 201 is 201, and the transfer destination station number is 202.
The communication station 202 has its own station number 202 and the transfer destination station number 203.
The local station number of the communication apparatus 203 is 203, and the transfer destination station number is 204.
The local station number of the communication device 204 is 204, and the transfer destination station number is 205.
The communication station 205 has its own station number 205 and the transfer destination station number 201.
When each communication apparatus 200 acquires the data transmission right, each communication apparatus 200 stores the local station number and the transfer destination station number in the token frame and transmits the token frame.
In the example of FIG. 28, each communication device 200 obtains a data transmission right (token) in the order of (1) to (5).
That is, the data transmission right (token) circulates in the order of the communication device 201, the communication device 202, the communication device 203, the communication device 204, the communication device 205, and the communication device 201.
 トークンフレームのフォーマットを図29に示す。
 フレーム識別子は、フレームの種類を示す識別子であり、トークンフレームの識別子が格納れる。
 宛先局番には、トークンフレームの宛先が示され、全局宛を示す値が格納される。
 すなわち、トークンフレームは、ブロードキャスト送信される。
 送信元局番には、トークンフレームの送信元の通信装置200の局番が格納される。
 送信権譲渡先局番(以下、単に譲渡先局番ともいう)には、データ送信権(トークン)を譲渡する通信装置200の局番が格納される。
 送信データは、データ送信権(トークン)を取得した通信装置200が送信するデータである。
 また、フレームが壊れていないことを証明するためのチェックサム領域が末尾にあるが、説明の簡明化のため、以降の説明では割愛する。
The format of the token frame is shown in FIG.
The frame identifier is an identifier indicating the type of frame, and stores an identifier of a token frame.
The destination station number indicates the destination of the token frame, and stores a value indicating all stations.
That is, the token frame is transmitted by broadcast.
In the transmission source station number, the station number of the communication apparatus 200 that is the transmission source of the token frame is stored.
In the transmission right transfer destination station number (hereinafter also simply referred to as transfer destination station number), the station number of the communication apparatus 200 to which the data transmission right (token) is transferred is stored.
The transmission data is data transmitted by the communication apparatus 200 that has acquired the data transmission right (token).
In addition, a checksum area for proving that the frame is not broken is at the end, but is omitted in the following description for the sake of simplicity.
 次に、通信装置200の構成例を図30に示す。
 通信装置200は、フレーム受信部2001、フレーム送信部2002、トークンフレーム判定部2003、受信データメモリ2004、トークンフレーム生成部2005、送信データメモリ2006、譲渡先局番記憶レジスタ2007、自局番記憶レジスタ2008で構成される。
Next, a configuration example of the communication apparatus 200 is shown in FIG.
The communication apparatus 200 includes a frame reception unit 2001, a frame transmission unit 2002, a token frame determination unit 2003, a reception data memory 2004, a token frame generation unit 2005, a transmission data memory 2006, a transfer destination station number storage register 2007, and a local station number storage register 2008. Composed.
 フレーム受信部2001は、他局から送信されるトークンフレームを受信する。 The frame receiving unit 2001 receives a token frame transmitted from another station.
 トークンフレーム判定部2003は、他局からのトークンフレームに格納された譲渡先局番を読み出し、自局番記憶レジスタ2008の値と比較する。
 そして、比較の結果、両者が一致すれば、トークンフレーム判定部2003は、トークンフレーム生成部2005にトークンフレームの送信を指示する。
 また、トークンフレーム判定部2003は、比較の結果に関わらず、受信したトークンフレーム内の送信データを受信データメモリ2004に転送する。
The token frame determination unit 2003 reads the transfer destination station number stored in the token frame from the other station and compares it with the value of the own station number storage register 2008.
As a result of the comparison, if the two match, the token frame determination unit 2003 instructs the token frame generation unit 2005 to transmit a token frame.
Further, the token frame determination unit 2003 transfers the transmission data in the received token frame to the reception data memory 2004 regardless of the comparison result.
 受信データメモリ2004は、受信したトークンフレーム内の送信データを記憶する。
 受信データメモリ2004が記憶したデータは、通信装置200と接続した上位の制御システムなどが利用する。
The reception data memory 2004 stores transmission data in the received token frame.
The data stored in the reception data memory 2004 is used by a host control system connected to the communication apparatus 200.
 送信データメモリ2006は、自局から送信するトークンフレームに格納する送信データを記憶する。
 送信データメモリ2006が記憶するデータは、上位の制御システムなどから書き込まれる。
The transmission data memory 2006 stores transmission data to be stored in a token frame transmitted from the own station.
Data stored in the transmission data memory 2006 is written from a host control system or the like.
 自局番記憶レジスタ2008は、自局番を記憶する。
 自局番は、通信装置200を利用するユーザが事前にエンジニアリングツールなどを利用して書き込む。
The own station number storage register 2008 stores the own station number.
The user who uses the communication apparatus 200 writes the own station number using an engineering tool or the like in advance.
 譲渡先局番記憶レジスタ2007は、データ送信権(トークン)の譲渡先の通信装置200の局番を記憶する。
 譲渡先局番は、通信装置200を利用するユーザが事前にエンジニアリングツールなどを利用して書き込む。
The transfer destination station number storage register 2007 stores the station number of the communication apparatus 200 to which the data transmission right (token) is transferred.
The transfer destination station number is written in advance by the user using the communication apparatus 200 using an engineering tool or the like.
 トークンフレーム生成部2005は、トークンフレーム判定部2003からの指示を受け、自局から送信するトークンフレームを生成し、生成したトークンフレームをフレーム送信部2002へ転送する。 The token frame generation unit 2005 receives an instruction from the token frame determination unit 2003, generates a token frame to be transmitted from the local station, and transfers the generated token frame to the frame transmission unit 2002.
 フレーム送信部2002は、トークンフレーム生成部2005から転送されたトークンフレームを他局へ送信する。 The frame transmission unit 2002 transmits the token frame transferred from the token frame generation unit 2005 to another station.
 次に、トークンパッシングの手順を、図31を用いて示す。
 複数の通信装置が図31の構成で接続され、自局番及び譲渡先局番は、データ送信権が矢印の順、すなわち通信装置201、202、203、204、205の順に巡るように設定されているとする。
 また、最初にトークンを送信するのは通信装置201とする。
 以下の説明では、通信装置によって送信されるトークンフレームの内容を次のフォーマットで示す。
   トークンフレーム(譲渡先局番、自局番)
 また、図面では、トークンフレーム(202←201)のように、トークンフレーム(譲渡先局番←自局番)の形式で表記する。
Next, the token passing procedure will be described with reference to FIG.
A plurality of communication devices are connected in the configuration of FIG. 31, and the own station number and the transfer destination station number are set so that the data transmission right goes around in the order of the arrows, that is, in the order of the communication devices 201, 202, 203, 204, 205. And
Further, the communication apparatus 201 first transmits a token.
In the following description, the contents of the token frame transmitted by the communication device are shown in the following format.
Token frame (transfer destination station number, own station number)
In the drawing, the token frame (transfer destination station number ← own station number) is represented as a token frame (202 ← 201).
(1)通信装置201は、トークンフレーム(譲渡先局番:202、自局番:201)を送信する。
 トークンフレームは、全局に送信される。
(1) The communication apparatus 201 transmits a token frame (transfer destination station number: 202, own station number: 201).
The token frame is transmitted to all stations.
(2)通信装置202では、フレーム受信部2001が、通信装置201からのトークンフレーム(譲渡先局番:202、自局番:201)を受信すると、トークンフレーム判定部2003が、トークンフレームの譲渡先局番(=202)と自局番記憶レジスタ2008の値(=202)を比較する。
 両者は一致するので、通信装置202は、データ送信権を獲得するので、トークンフレーム判定部2003は、トークンフレーム生成部2005にトークンフレームの送信を指示する。
 また、トークンフレーム判定部2003は、受信データメモリ2004にトークンフレーム内の送信データを転送する。
(2) In the communication apparatus 202, when the frame reception unit 2001 receives the token frame (transfer destination station number: 202, own station number: 201) from the communication apparatus 201, the token frame determination unit 2003 displays the token frame transfer destination station number. (= 202) and the value (= 202) of the local station number storage register 2008 are compared.
Since the two match, the communication apparatus 202 acquires the right to transmit data, and the token frame determination unit 2003 instructs the token frame generation unit 2005 to transmit a token frame.
In addition, the token frame determination unit 2003 transfers the transmission data in the token frame to the reception data memory 2004.
(3)通信装置202では、トークンフレーム生成部2005が、トークンフレーム(譲渡先局番:203、自局番:202)を生成し、フレーム送信部2002がトークンフレームを他の全局に送信する。 (3) In the communication device 202, the token frame generation unit 2005 generates a token frame (transfer destination station number: 203, own station number: 202), and the frame transmission unit 2002 transmits the token frame to all other stations.
(4)一方、通信装置203、204、205では、トークンフレーム(譲渡先局番:202、自局番:201)を受信すると、データ送信権の譲渡先局番と自局番記憶レジスタの値を比較するが、一致しないためトークンの送信はしない。
 ただし、送信データは受信データメモリ2004に転送する。
(4) On the other hand, when receiving the token frame (transfer destination station number: 202, own station number: 201), the communication devices 203, 204, and 205 compare the transfer destination station number of the data transmission right with the value of the own station number storage register. The token is not sent because they do not match.
However, the transmission data is transferred to the reception data memory 2004.
(5)以降同様に、通信装置203、204、205が順にデータ送信権を獲得し、トークンフレームを送信していく。
 最後に、通信装置205はトークンフレーム(譲渡先局番:201、自局番:205)を送信し、これを通信装置201が受信してデータ送信権を獲得する。
 これにて、データ送信権が一巡する。
(5) Similarly, the communication devices 203, 204, and 205 acquire the data transmission right in order and transmit token frames.
Finally, the communication apparatus 205 transmits a token frame (transfer destination station number: 201, own station number: 205), which is received by the communication apparatus 201 and acquires a data transmission right.
This completes the data transmission right.
 なお、通信装置200の局番は、データ送信権を得る装置順に、昇順または降順とする(連番ではなくてもよい)。
 つまり、通信装置200の局番の昇順及び降順のいずれかがトークン巡回順序として指定され、トークン巡回順序に従って複数の通信装置200の間でトークンパッシングが行われる。
 以降では、トークン巡回順序を昇順と想定する。
Note that the station numbers of the communication device 200 are set in ascending order or descending order (not necessarily sequential numbers) in the order of the device that obtains the data transmission right.
That is, either the ascending order or descending order of the station numbers of the communication device 200 is designated as the token circulation order, and token passing is performed between the plurality of communication devices 200 according to the token circulation order.
In the following, it is assumed that the token circulation order is ascending.
 通信装置200が障害によりトークンフレームを送信不能となった場合、その通信装置200から先にデータ送信権が巡らなくなる。
 例えば、通信装置203が故障した場合、データ送信権の循環は通信装置203でストップし、以降他の通信装置が通信できなくなる(図32)。
When the communication device 200 becomes unable to transmit a token frame due to a failure, the data transmission right cannot be circulated first from the communication device 200.
For example, when the communication device 203 breaks down, the circulation of the data transmission right stops at the communication device 203, and thereafter other communication devices cannot communicate (FIG. 32).
 このような状況において、データ送信権の循環を維持する手法として、解列及び復列が用いられる。
 解列と呼ばれる操作により、障害の発生した通信装置200を自動的にデータ送信権の循環から除外する。
 また、障害の発生した通信装置200が装置交換などで正常に戻った場合に、復列と呼ばれる操作により、自動的にデータ送信権の循環に参入する。
In such a situation, as a method for maintaining the circulation of the data transmission right, the discontinuation and the reverse sequence are used.
The communication device 200 in which a failure has occurred is automatically excluded from the circulation of the data transmission right by an operation called “disconnection”.
In addition, when the communication device 200 in which a failure has occurred returns to normal due to device replacement or the like, the data transmission right circulation is automatically entered by an operation called return.
 具体的には、解列とは、故障した通信装置をデータ送信権の譲渡先としていた通信装置が、データ送信権の譲渡先を生きている(稼動中の)通信装置宛に一時的に代えることである(図33)。
 図33の例では、通信装置203が故障したため、通信装置203をデータ送信権の譲渡先としていた通信装置202が、データ送信権の譲渡先を稼動中である通信装置204に変更している。
 また、復列とは、障害の発生した通信装置が装置交換などで正常に戻った場合に、一時的にデータ送信権の譲渡先を変更していた通信装置が、譲渡先を元に戻すことである(図34)。
 図34の例では、故障の発生した通信装置203が正常に戻ったため、一時的に通信装置204をデータ送信権の譲渡先としていた通信装置202が、データ送信権の譲渡先を通信装置203に戻している。
 なお、復列により復帰する通信装置は、先の離脱時と同じ自局番及び譲渡先局番が設定されている必要がある。
Specifically, the disconnection means that a communication device having a failed communication device as a transfer destination of the data transmission right temporarily changes the transfer destination of the data transmission right to a live (operating) communication device. (FIG. 33).
In the example of FIG. 33, since the communication device 203 has failed, the communication device 202 that has used the communication device 203 as the transfer destination of the data transmission right has changed the transfer destination of the data transmission right to the active communication device 204.
In addition, the reverse is that the communication device that temporarily changed the transfer destination of the data transmission right returns the transfer destination to the original when the communication device in which the failure occurred returns to normal due to device replacement or the like. (FIG. 34).
In the example of FIG. 34, since the communication device 203 in which the failure has occurred returns to normal, the communication device 202 that temporarily assigned the communication device 204 as the data transmission right transfer destination to the communication device 203 as the data transmission right transfer destination. It is returning.
Note that the communication device that is restored by the return must have the same local station number and transfer destination station number as those at the time of the previous departure.
 解列及び復列をサポートする産業用ネットワークとしては、非特許文献1のCC Link-IEが挙げられる。
 CC Link-IEでは、ネットワーク中の1台のマスタ装置が、解列及び復列の処理を実行する。
 マスタ装置は、全ての通信装置のトークン譲渡先局番を知っており、譲渡していく順序をリスト構造で管理している。
 そして、マスタ装置が他の通信装置の障害をフレーム不達などで検知し、マスタ装置がリスト構造から次の生きている通信装置の局番を検索し、この局番情報を通信装置に通知する。
 この通知により、故障した通信装置をデータ送信権の譲渡先としていた通信装置は、データ送信権の譲渡先を生きている通信装置宛に一時的に代えることができる。
Non-Patent Document 1 CC Link-IE is an example of an industrial network that supports disassembly and reconnection.
In the CC Link-IE, one master device in the network executes disassembly and return processing.
The master device knows the token transfer destination station numbers of all communication devices, and manages the transfer order in a list structure.
Then, the master device detects a failure of another communication device due to frame failure or the like, the master device searches the station number of the next live communication device from the list structure, and notifies the communication device of this station number information.
By this notification, the communication device having the failed communication device as the transfer destination of the data transmission right can temporarily change the transfer destination of the data transmission right to the live communication device.
 このように、マスタ装置が解列及び復列を集中的に実施する方式では、マスタ装置がデータ送信権の譲渡順序をリスト管理する必要があるので、処理を実行するデバイスとしてはCPU(Central Processing Unit)が向いている。
 もしCPUを採用する場合、通信装置の構成としては、リアルタイム性を強く要求されるトークンパッシング通信をASIC(Application Specific Integrated Circuit)やFPGA(Field-Programmable Gate Array)で実施し、一方で解列及び復列をCPUで実施する構成が想定される。
As described above, in the method in which the master device centrally performs the disassembly and reversion, since the master device needs to manage the transfer order of the data transmission right in a list, a CPU (Central Processing) is used as a device that executes processing. (Unit).
If a CPU is adopted, the communication device is configured to implement token passing communication that strongly requires real-time performance by using ASIC (Application Specific Integrated Circuit) or FPGA (Field-Programmable Gate Array), while disclosing and A configuration in which the return is performed by the CPU is assumed.
 コスト削減の観点では、通信装置をCPUレス化し、トークンパッシング通信と解列復列を1個のASICやFPGAに実装する方が望ましい。
 しかし、トークンパッシング通信と解列復列を1個のASICやFPGAで実現する場合、リスト管理に多数のレジスタが必要となるため、回路面積の点で好ましくない。
From the viewpoint of cost reduction, it is desirable to make the communication device CPU-less and to implement token passing communication and sequence return in one ASIC or FPGA.
However, when the token passing communication and the sequence return are realized by one ASIC or FPGA, a large number of registers are required for list management, which is not preferable in terms of circuit area.
 本発明は、上記の点に鑑みたものであり、トークンの譲渡順序のリスト管理を不要にすることを主な目的とする。 The present invention has been made in view of the above points, and has as its main object to eliminate the need for list management of token transfer order.
 本発明に係る通信システムは、
 装置番号が各々に設定されている複数の通信装置が含まれ、前記複数の通信装置の間でトークンパッシングが行われる通信システムであって、
 各通信装置は、
 計時を行うタイマを有し、
 他の通信装置からブロードキャスト送信された、当該他の通信装置の装置番号と、当該他の通信装置がトークンを譲渡する通信装置の装置番号とを通知するトークンフレームを受信し、
 トークンフレームを受信する度に、前記タイマをリセットし、前記複数の通信装置の間でトークンが一巡するのに要する時間よりも大きな時間であって受信したトークンフレームの送信元の通信装置の装置番号と自装置の装置番号との番号差に比例する時間であるタイムアウト時間を前記タイマに設定し、前記タイマの計時を開始させ、
 トークンの譲渡先の通信装置が正常に動作していないことを検知した検知通信装置からブロードキャスト送信されたサーチフレームを受信し、
 前記複数の通信装置の中で、
 前記サーチフレームを受信した後にタイムアウト時間の経過によるタイムアウトが最も早く発生した通信装置が、
 前記サーチフレームに対する応答として、当該通信装置の装置番号を通知する番号通知フレームを生成し、
 生成した番号通知フレームを前記検知通信装置に送信することを特徴とする。
A communication system according to the present invention includes:
A communication system including a plurality of communication devices each having a device number set therein, wherein token passing is performed between the plurality of communication devices,
Each communication device
Have a timer to keep time,
Receiving a token frame broadcast from another communication device and notifying the device number of the other communication device and the device number of the communication device to which the other communication device assigns a token;
Each time a token frame is received, the timer is reset, and the device number of the communication device that is the transmission source of the received token frame that is longer than the time required for the token to make a round among the plurality of communication devices Set a time-out time, which is a time proportional to the difference between the device number and the device number of the own device, to the timer, and start counting the timer,
Receiving a search frame broadcast-transmitted from a detected communication device that has detected that the communication device to which the token is transferred is not operating normally;
Among the plurality of communication devices,
A communication device in which a timeout due to the elapse of a timeout time has occurred after receiving the search frame,
As a response to the search frame, generate a number notification frame that notifies the device number of the communication device,
The generated number notification frame is transmitted to the detection communication device.
 本発明によれば、複数の通信装置の中で、サーチフレームを受信した後にタイムアウトが最も早く発生した通信装置が、サーチフレームに対する応答として、当該通信装置の装置番号を通知する番号通知フレームを検知通信装置に送信する。
 このため、検知通信装置は、番号通知フレームによって、トークンの譲渡先の通信装置を変更することができ、トークンの譲渡順序のリストを管理する必要がない。
According to the present invention, a communication device that has the earliest timeout after receiving a search frame among a plurality of communication devices detects a number notification frame that notifies the device number of the communication device as a response to the search frame. Send to communication device.
For this reason, the detection communication device can change the token transfer destination communication device by the number notification frame, and does not need to manage the token transfer order list.
実施の形態1に係る解列機能を持つ通信装置の構成例を示す図。FIG. 3 is a diagram illustrating a configuration example of a communication device having a disconnection function according to the first embodiment. 実施の形態1に係るサーチフレームのフォーマット例を示す図。FIG. 3 is a diagram showing a format example of a search frame according to the first embodiment. 実施の形態1に係るACKフレームのフォーマット例を示す図。FIG. 4 is a diagram showing an example of the format of an ACK frame according to the first embodiment. 実施の形態1に係る解列方法を示す通信シーケンス図。FIG. 3 is a communication sequence diagram illustrating a method for disassembling according to the first embodiment. 実施の形態1に係る解列方法を示す通信シーケンス図。FIG. 3 is a communication sequence diagram illustrating a method for disassembling according to the first embodiment. 実施の形態1に係る解列方法を示す通信シーケンス図。FIG. 3 is a communication sequence diagram illustrating a method for disassembling according to the first embodiment. 実施の形態1に係る解列方法を示す通信シーケンス図。FIG. 3 is a communication sequence diagram illustrating a method for disassembling according to the first embodiment. 実施の形態1に係る解列方法を示す通信シーケンス図。FIG. 3 is a communication sequence diagram illustrating a method for disassembling according to the first embodiment. 実施の形態1に係る解列方法を示す通信シーケンス図。FIG. 3 is a communication sequence diagram illustrating a method for disassembling according to the first embodiment. 実施の形態1に係る複数台の解列の例を示す図。FIG. 3 is a diagram illustrating an example of a plurality of disassembly lines according to the first embodiment. 実施の形態1に係るアテンドフレームのフォーマット例を示す図。FIG. 3 is a diagram illustrating an example format of an attended frame according to the first embodiment. 実施の形態1に係るアクセプトフレームのフォーマット例を示す図。FIG. 4 is a diagram showing an example of an accept frame format according to the first embodiment. 実施の形態1に係る復列機能を持つ通信装置の構成例を示す図。3 is a diagram illustrating a configuration example of a communication device having a reverse function according to Embodiment 1. FIG. 実施の形態1に係る復列前の状態を示す図。FIG. 3 is a diagram showing a state before returning according to the first embodiment. 実施の形態1に係る復列方法を示す通信シーケンス図。FIG. 3 is a communication sequence diagram illustrating a return method according to the first embodiment. 実施の形態1に係る復列方法を示す通信シーケンス図。FIG. 3 is a communication sequence diagram illustrating a return method according to the first embodiment. 実施の形態1に係る復列方法を示す通信シーケンス図。FIG. 3 is a communication sequence diagram illustrating a return method according to the first embodiment. 実施の形態1に係る復列方法を示す通信シーケンス図。FIG. 3 is a communication sequence diagram illustrating a return method according to the first embodiment. 実施の形態1に係る復列方法を示す通信シーケンス図。FIG. 3 is a communication sequence diagram illustrating a return method according to the first embodiment. 実施の形態1に係る復列方法を示す通信シーケンス図。FIG. 3 is a communication sequence diagram illustrating a return method according to the first embodiment. 実施の形態2に係るトークン巡回路のグルーピングを示す図。The figure which shows grouping of the token circuit which concerns on Embodiment 2. FIG. 実施の形態1に係る通信装置の動作例を示すフローチャート図。FIG. 3 is a flowchart showing an operation example of the communication apparatus according to the first embodiment. 実施の形態1に係る通信装置の解列処理を示すフローチャート図。FIG. 3 is a flowchart showing a disconnection process of the communication device according to the first embodiment. 実施の形態1に係る通信装置の解列処理を示すフローチャート図。FIG. 3 is a flowchart showing a disconnection process of the communication device according to the first embodiment. 実施の形態1に係る通信装置の復列処理を示すフローチャート図。FIG. 3 is a flowchart showing a return processing of the communication apparatus according to the first embodiment. 実施の形態1に係る通信装置の動作例を示すフローチャート図。FIG. 3 is a flowchart showing an operation example of the communication apparatus according to the first embodiment. 実施の形態1及び2に係る通信装置のハードウェア例を示す図。FIG. 3 is a diagram illustrating a hardware example of a communication device according to the first and second embodiments. 通信装置の接続例を示す図。The figure which shows the example of a connection of a communication apparatus. トークンフレームのフォーマット例を示す図。The figure which shows the example of a format of a token frame. 通信装置の構成例を示す図。The figure which shows the structural example of a communication apparatus. トークンパッシングによる通信シーケンス例を示す図。The figure which shows the example of a communication sequence by token passing. 通信装置の故障時のトークンパッシングの例を示す図。The figure which shows the example of the token passing at the time of failure of a communication apparatus. 解列の概念を示す図。The figure which shows the concept of a disassembly. 復列の概念を示す図。The figure which shows the concept of a return.
 実施の形態1.
 本実施の形態では、解列及び復列の処理を各通信装置に分散させることで、リスト管理を不要にし、トークンパッシング通信と解列処理及び復列処理をASICまたはFPGAで経済的に実現できる仕組みを説明する。
 以下では、主に、従来技術との差異を説明する。
Embodiment 1 FIG.
In the present embodiment, the discontinuation and return processing is distributed to each communication device, so that list management becomes unnecessary, and token passing communication, the disassembly processing, and the return processing can be realized economically by ASIC or FPGA. Explain how it works.
In the following, differences from the prior art will be mainly described.
 まず、解列の方法から説明する。
 解列では、トークンフレームの他に、サーチフレーム及びACKフレームという通信フレームを利用する。
 サーチフレームは、トークンの譲渡先の通信装置(以下、トークン譲渡先通信装置ともいう)が正常に動作していないことを検知した通信装置(以下、検知通信装置ともいう)が送信する通信フレームである。
 より具体的には、サーチフレームは、トークン譲渡先通信装置が正常に動作していない場合に、トークン譲渡先通信装置を除いた正常な通信装置群の局番号の中でトークン巡回順序において検知通信装置の局番号の次にあたる局番号(新たなトークン譲渡先の局番号)の通知を要求する通信フレームである。
 ACKフレームは、サーチフレームに対する応答として送信される。
 ACKフレームは、検知通信装置の新たなトークン譲渡先の局番号を通知する通信フレームであり、番号通知フレームの例に相当する。
First, the method of disassembling will be described.
In the sequence, communication frames such as a search frame and an ACK frame are used in addition to the token frame.
The search frame is a communication frame transmitted by a communication device (hereinafter also referred to as a detection communication device) that has detected that a token transfer destination communication device (hereinafter also referred to as a token transfer destination communication device) is not operating normally. is there.
More specifically, when the token transfer destination communication device is not operating normally, the search frame is detected in the token circulation order among the station numbers of the normal communication device group excluding the token transfer destination communication device. This is a communication frame for requesting notification of a station number (new token transfer destination station number) that follows the station number of the apparatus.
The ACK frame is transmitted as a response to the search frame.
The ACK frame is a communication frame for notifying a station number of a new token transfer destination of the detection communication device, and corresponds to an example of a number notification frame.
 サーチフレームのフォーマットは図2の通りで、フレーム識別子、送信先局番、宛先局番、送信元局番、最終局フラグで構成される。
 フレーム識別子は、フレームがサーチフレームであることを示す識別子である。
 宛先局番には、サーチフレームの送信先として全局宛を示す値が格納される。
 つまり、サーチフレームは、全局にブロードキャストされる。
 送信元局番には、サーチフレームの送信元の通信装置の局番が示される。
 最終局フラグには、サーチフレームの送信元の通信装置の局番が他のいずれの通信装置の局番よりも大きいか否か、すなわち、サーチフレームの送信元の通信装置がトークン巡回順序において最後尾にあたるか否かが示される。
 サーチフレームの送信元の通信装置の局番よりも大きい局番の他局がある場合(最終局ではない場合)は、最終局フラグには「0」が設定され、サーチフレームの送信元の通信装置の局番が最も大きい場合(最終局である場合)は、最終局フラグには「1」が設定される。
The format of the search frame is as shown in FIG. 2, and includes a frame identifier, a transmission destination station number, a destination station number, a transmission source station number, and a final station flag.
The frame identifier is an identifier indicating that the frame is a search frame.
The destination station number stores a value indicating all stations as the transmission destination of the search frame.
That is, the search frame is broadcast to all stations.
The transmission source station number indicates the station number of the communication device that is the transmission source of the search frame.
The last station flag indicates whether the station number of the communication device that is the source of the search frame is greater than the station number of any other communication device, that is, the communication device that is the source of the search frame is the last in the token circulation order. Whether or not.
If there is another station with a station number larger than the station number of the communication device that is the source of the search frame (if it is not the last station), the final station flag is set to “0”, and the communication device that is the source of the search frame When the station number is the largest (when it is the last station), “1” is set in the last station flag.
 次に、ACKフレームのフォーマットは図3の通りで、フレーム識別子、宛先局番、送信元局番、応答先局番で構成される。
 フレーム識別子は、フレームがACKフレームであることを示す識別子である。
 宛先局番には、ACKフレームの送信先として全局宛を示す値が格納される。
 つまり、ACKフレームは、全局にブロードキャストされる。
 送信元局番には、ACKフレームの送信元の通信装置の局番が示される。
 応答先局番には、サーチフレームの送信元の通信装置の局番が示される。
Next, the format of the ACK frame is as shown in FIG. 3, and is composed of a frame identifier, a destination station number, a transmission source station number, and a response destination station number.
The frame identifier is an identifier indicating that the frame is an ACK frame.
In the destination station number, a value indicating all stations is stored as the transmission destination of the ACK frame.
That is, the ACK frame is broadcast to all stations.
The transmission source station number indicates the station number of the communication device that is the transmission source of the ACK frame.
The response destination station number indicates the station number of the communication device that is the source of the search frame.
 解列を行うための通信装置100の構成例を図1に示す。
 なお、図1では説明しやすさを優先し、解列に必要な構成要素のみ記載し、復列のための構成要素を記載していないが、実際は復列のための構成要素も同じ通信装置100内に存在する。
 復列のための構成要素は後述する。
A configuration example of the communication apparatus 100 for performing the disconnection is shown in FIG.
In FIG. 1, priority is given to ease of explanation, and only the components necessary for disassembly are described, and the components for reconnection are not described. 100 exists.
The components for returning will be described later.
 図1において、フレーム受信部1001は、各種通信フレームを受信する。
 具体的には、フレーム受信部1001は、トークンフレーム、サーチフレーム、ACKフレームを受信する。
 フレーム受信部1001は、トークンフレーム受信部、サーチフレーム受信部及び番号通知フレーム受信部の例に相当する。
In FIG. 1, a frame receiving unit 1001 receives various communication frames.
Specifically, the frame receiving unit 1001 receives a token frame, a search frame, and an ACK frame.
The frame receiving unit 1001 corresponds to an example of a token frame receiving unit, a search frame receiving unit, and a number notification frame receiving unit.
 トークンフレーム判定部1003は、他局からのトークンフレームに格納された送信権譲渡先局番を読み出し、自局番記憶レジスタ1008の値と比較する。
 そして、比較の結果、両者が一致すれば、トークンフレーム判定部1003は、トークンフレーム生成部1005にトークンフレームの送信を指示する。
 また、トークンフレーム判定部1003は、比較の結果に関わらず、受信したトークンフレーム内の送信データを受信データメモリ1004に転送する。
 また、トークンフレーム判定部1003は、トークンフレーム(自局宛て、他局宛ての両方)の受信の度に、受信ウォッチドッグタイマ1007(以下、受信WDT1007と表記する)をリセットし、タイムアウト時間を受信WDT1007に設定する。
 タイムアウト時間は、複数の通信装置100の間でトークンが一巡するのに要する時間よりも大きな時間であってフレーム受信部1001により受信されたトークンフレームの送信元の通信装置の局番号と自局番号との番号差に比例する時間である。
 トークンフレーム判定部1003は、タイマ制御部の例に相当する。
The token frame determination unit 1003 reads the transmission right transfer destination station number stored in the token frame from the other station and compares it with the value of the own station number storage register 1008.
As a result of the comparison, if the two match, the token frame determination unit 1003 instructs the token frame generation unit 1005 to transmit a token frame.
Further, the token frame determination unit 1003 transfers the transmission data in the received token frame to the reception data memory 1004 regardless of the comparison result.
The token frame determination unit 1003 resets a reception watchdog timer 1007 (hereinafter referred to as reception WDT 1007) every time a token frame (both addressed to the own station and other stations) is received, and receives a timeout time. Set to WDT1007.
The timeout time is longer than the time required for the token to make a round among the plurality of communication devices 100, and the station number and the local station number of the communication device that is the transmission source of the token frame received by the frame reception unit 1001 This is the time proportional to the number difference.
The token frame determination unit 1003 corresponds to an example of a timer control unit.
 受信データメモリ1004は、受信したトークンフレーム内の送信データを記憶する。
 受信データメモリ1004が記憶したデータは、通信装置100と接続した上位の制御システムなどが利用する。
The reception data memory 1004 stores transmission data in the received token frame.
The data stored in the reception data memory 1004 is used by a host control system connected to the communication apparatus 100.
 送信データメモリ1006は、自局から送信するトークンフレームに格納する送信データを記憶する。
 送信データメモリ1006が記憶するデータは、上位の制御システムなどから書き込まれる。
The transmission data memory 1006 stores transmission data to be stored in a token frame transmitted from the own station.
Data stored in the transmission data memory 1006 is written from an upper control system or the like.
 トークンフレーム生成部1005は、トークンフレーム判定部1003からの指示を受け、自局から送信するトークンフレームを生成し、生成したトークンフレームをフレーム送信部1002へ転送する。 The token frame generation unit 1005 receives an instruction from the token frame determination unit 1003, generates a token frame to be transmitted from the local station, and transfers the generated token frame to the frame transmission unit 1002.
 受信WDT1007は、トークンフレーム(自局宛て、他局宛ての両方)の受信の度に、トークンフレーム判定部1003によりリセットされ、タイムアウト時間が設定されるウォッチドッグタイマである。
 受信WDT1007は、タイマ部の例に相当する。
The reception WDT 1007 is a watchdog timer that is reset by the token frame determination unit 1003 and sets a timeout time each time a token frame (both addressed to the own station and addressed to another station) is received.
Reception WDT 1007 corresponds to an example of a timer unit.
 自局番記憶レジスタ1008は、自局番を記憶する。
 自局番は、通信装置100を利用するユーザが事前にエンジニアリングツールなどを利用して書き込む。
The own station number storage register 1008 stores the own station number.
The user who uses the communication apparatus 100 writes the own station number using an engineering tool or the like in advance.
 譲渡先局番記憶レジスタ1009は、データ送信権(トークン)の譲渡先の通信装置100の局番(トークン譲渡先装置番号)を記憶する。
 譲渡先局番は、通信装置100を利用するユーザが事前にエンジニアリングツールなどを利用して書き込む。
 譲渡先局番記憶レジスタ1009は、譲渡先装置番号記憶部の例に相当する。
The transfer destination station number storage register 1009 stores the station number (token transfer destination device number) of the communication device 100 to which the data transmission right (token) is transferred.
The transfer destination station number is written in advance by the user using the communication apparatus 100 using an engineering tool or the like.
The transfer destination station number storage register 1009 corresponds to an example of a transfer destination apparatus number storage unit.
 解列前譲渡先局番記憶レジスタ1010は、1度も解列していない状態でのトークンの譲渡先の局番の値を保持する(つまり、譲渡先局番記憶レジスタ1009の初期値を保持する)。 The pre-release transfer destination station number storage register 1010 holds the token transfer destination station number value in a state where it has never been released (that is, holds the initial value of the transfer destination station number storage register 1009).
 サーチフレーム生成部1011は、タイムアウト時間の経過により受信WDT1007がタイムアウトすると、サーチフレームを生成する。
 つまり、サーチフレーム生成部1011は、受信WDT1007のタイムアウトによりトークンの譲渡先の通信装置が正常に動作していないことが検知された際に、サーチフレームを生成する。
Search frame generation section 1011 generates a search frame when reception WDT 1007 times out due to the elapse of the timeout time.
That is, the search frame generation unit 1011 generates a search frame when it is detected that the communication apparatus to which the token is transferred is not operating normally due to a timeout of the reception WDT 1007.
 サーチフレーム判定部1012は、他局から受信したフレームがサーチフレームか否かを判定する。
 また、サーチフレーム判定部1012は、他局から受信したフレームがサーチフレームであり、受信したサーチフレームの最終局フラグが「1」である場合に、受信WDT1007をリセットして、応答待機時間を受信WDT1007に設定する。
 サーチフレーム判定部1012も、タイマ制御部の例に相当する。
Search frame determination section 1012 determines whether or not a frame received from another station is a search frame.
Further, the search frame determination unit 1012 receives the response waiting time by resetting the reception WDT 1007 when the frame received from another station is a search frame and the final station flag of the received search frame is “1”. Set to WDT1007.
Search frame determination unit 1012 also corresponds to an example of a timer control unit.
 ACKフレーム生成部1013は、サーチフレーム判定部1012によりサーチフレームの受信が確認され、更に、受信WDT1007のタイムアウトが発生した際に、ACKフレームを生成する。
 ACKフレーム生成部1013は、番号通知フレーム生成部の例に相当する。
The ACK frame generation unit 1013 generates an ACK frame when the search frame determination unit 1012 confirms the reception of the search frame and when the reception WDT 1007 times out.
The ACK frame generation unit 1013 corresponds to an example of a number notification frame generation unit.
 ACKフレーム判定部1014は、他局から受信したACKフレームが自局宛か否かを判定する。
 そして、受信したACKフレームが自局宛てであれば、ACKフレーム判定部1014は譲渡先局番記憶レジスタ1009の譲渡先局番を、ACKフレームで通知された局番号に更新する。
 ACKフレーム判定部1014は、譲渡先装置番号更新部の例に相当する。
The ACK frame determination unit 1014 determines whether or not an ACK frame received from another station is addressed to the own station.
If the received ACK frame is addressed to the own station, the ACK frame determination unit 1014 updates the transfer destination station number in the transfer destination station number storage register 1009 to the station number notified by the ACK frame.
The ACK frame determination unit 1014 corresponds to an example of a transfer destination device number update unit.
 フレーム送信部1002は、各種通信フレームを送信する。
 具体的には、フレーム送信部1002は、トークンフレーム、サーチフレーム、ACKフレームを送信する。
 フレーム送信部1002は、トークンフレーム送信部、サーチフレーム送信部及び番号通知フレーム送信部の例に相当する。
The frame transmission unit 1002 transmits various communication frames.
Specifically, the frame transmission unit 1002 transmits a token frame, a search frame, and an ACK frame.
The frame transmission unit 1002 corresponds to an example of a token frame transmission unit, a search frame transmission unit, and a number notification frame transmission unit.
 本実施の形態においても、通信装置100の局番は、データ送信権(トークン)を得る装置順に、昇順または降順とする(連番ではなくてもよい)。
 つまり、通信装置100の局番の昇順及び降順のいずれかがトークン巡回順序として指定され、トークン巡回順序に従って複数の通信装置100の間でトークンパッシングが行われる。
 以降では、トークン巡回順序を昇順と想定する。
 また、トークンフレームのフォーマットも図29に示す通りである。
Also in the present embodiment, the station numbers of the communication apparatus 100 are set in ascending order or descending order (not necessarily sequential numbers) in the order of the apparatus that obtains the data transmission right (token).
That is, either the ascending order or descending order of the station numbers of the communication device 100 is designated as the token circulation order, and token passing is performed between the plurality of communication devices 100 according to the token circulation order.
In the following, it is assumed that the token circulation order is ascending.
Also, the format of the token frame is as shown in FIG.
 以下、図1の通信装置100が解列を行うシーケンスを説明する。
 シーケンスは、次の2種類の状況に応じて異なる。
(A)最終局(生きている局のうち、最も局番が大きい局)または始発局(生きている局のうち、最も局番が小さい局)以外の通信装置が故障で離脱した場合(図4、5、6)
(B)最終局が故障で離脱した場合、または始発局が故障で離脱した場合(図7、8、9)
 なお、自局が最終局かどうかは、自局の自局番が譲渡先局番より大きいかどうかにより判断する。
 自局番が譲渡先局番より大きければ最終局と判断する。
 以下、状況(A)及び(B)のそれぞれで解列を行うシーケンスを説明する。
Hereinafter, a sequence in which the communication apparatus 100 in FIG.
The sequence differs depending on the following two types of situations.
(A) When a communication device other than the last station (the station with the largest station number among the living stations) or the first station (the station with the smallest station number among the living stations) leaves due to a failure (FIG. 4, 5, 6)
(B) When the last station leaves due to a failure or when the first station leaves due to a failure (FIGS. 7, 8, 9)
Whether or not the own station is the final station is determined based on whether or not the own station number of the own station is larger than the transfer destination station number.
If the own station number is larger than the transfer destination station number, it is determined as the last station.
Hereinafter, a sequence for performing the separation in each of the situations (A) and (B) will be described.
(A)最終局または始発局以外の通信装置が故障で離脱した場合
 図4、5、6を用いて説明する。
 図4、5、6では、通信装置101、102、103、104、105のうち通信装置103が障害で交信不能となった場合を想定する。
 また、図4、5、6では、通信装置102が通信装置103の障害を検知して、トークンの譲渡先を通信装置103から通信装置104へ変更する手順を説明する。
 なお、通信装置101、102、103、104、105の各々は、図1に示す構成を有する。
 また、通信装置101、102、103、104、105の局番は、符号と同じである。
 すなわち、通信装置101の自局番は101であり、譲渡先局番は102とする。
 通信装置102の自局番は102であり、譲渡先局番は103とする。
 通信装置103の自局番は103であり、譲渡先局番は104とする。
 通信装置104の自局番は104であり、譲渡先局番は105とする。
 通信装置105の自局番は105であり、譲渡先局番は101とする。
 通信装置101、102、103、104、105を区別する必要がない場合は、通信装置100と表記する。
(A) A case where a communication device other than the last station or the starting station is disconnected due to a failure will be described with reference to FIGS.
4, 5, and 6, a case is assumed in which the communication device 103 among the communication devices 101, 102, 103, 104, and 105 becomes unable to communicate due to a failure.
4, 5, and 6, a procedure in which the communication apparatus 102 detects a failure of the communication apparatus 103 and changes the token transfer destination from the communication apparatus 103 to the communication apparatus 104 will be described.
Note that each of the communication devices 101, 102, 103, 104, and 105 has the configuration shown in FIG.
The station numbers of the communication apparatuses 101, 102, 103, 104, and 105 are the same as the reference numerals.
In other words, the local station number of the communication apparatus 101 is 101, and the transfer destination station number is 102.
The communication station 102 has its own station number 102 and the transfer destination station number 103.
The communication station 103 has its own station number 103 and the transfer destination station number is 104.
The local station number of the communication apparatus 104 is 104, and the transfer destination station number is 105.
The local station number of the communication apparatus 105 is 105, and the transfer destination station number is 101.
When it is not necessary to distinguish between the communication devices 101, 102, 103, 104, and 105, they are expressed as the communication device 100.
 以下の説明では、通信装置100によって送信されるトークンフレームの内容を次のフォーマットで示す。
   トークンフレーム(譲渡先局番、自局番)
 また、図面では、トークンフレーム(102←101)のように、トークンフレーム(譲渡先局番←自局番)の形式で表記する。
 また、図4、5、6における(1)~(5)は、以下の説明の(1)~(5)に対応する。
In the following description, the contents of the token frame transmitted by the communication apparatus 100 are shown in the following format.
Token frame (transfer destination station number, own station number)
Further, in the drawing, the token frame (transfer destination station number ← own station number) is represented as a token frame (102 ← 101).
Also, (1) to (5) in FIGS. 4, 5, and 6 correspond to (1) to (5) in the following description.
(1)通信装置102では、フレーム受信部1001が、通信装置101からのトークンフレーム(譲渡先局番:102、送信元局番:101)を受信すると、トークンフレーム判定部1003が受信WDT1007をリセットするとともに、下記式に従ったタイムアウト時間を受信WDT1007にセットする(図4)。
 タイムアウト時間=固定値×abs(トークンの送信元局番-自局番)
 上記式において、absは、()内の値の絶対値を求める演算である。
 上記式により、トークンフレームを受信した通信装置100のタイムアウト時間は、トークンフレームの送信元の通信装置100の局番と近いほど(すなわちデータ送信権を得るのが前の順番になる装置ほど)、小さい値に設定される(意図は手順(4)で後述する)。
 受信WDT1007は、他の通信装置100からのトークンフレームを受信するたびにリセットされる。
 また、上記式の固定値は、他の通信装置100から次のトークンフレームが届く前にタイムアウトしない程度に、十分大きな値としておく。
 つまり、タイムアウト時間は、複数の通信装置100の間でトークンが一巡するのに要する時間よりも大きな時間である。
 図4では、通信装置101からのトークンフレームを受信した際のタイムアウト時間は、通信装置102では10(10×1)であり、通信装置104では30(10×3)であり、通信装置105では40(10×4)である。
(1) In the communication apparatus 102, when the frame reception unit 1001 receives the token frame (transfer destination station number: 102, transmission source station number: 101) from the communication apparatus 101, the token frame determination unit 1003 resets the reception WDT 1007. Then, a timeout time according to the following equation is set in the reception WDT 1007 (FIG. 4).
Timeout time = fixed value x abs (token station number-own station number)
In the above formula, abs is an operation for obtaining the absolute value of the value in ().
According to the above formula, the timeout time of the communication device 100 that has received the token frame is smaller as it is closer to the station number of the communication device 100 that is the transmission source of the token frame (that is, the device that obtains the data transmission right in the previous order). (The intention is described later in step (4)).
The reception WDT 1007 is reset every time a token frame from another communication apparatus 100 is received.
Further, the fixed value of the above expression is set to a sufficiently large value so that it does not time out before the next token frame arrives from another communication apparatus 100.
That is, the time-out time is a time longer than the time required for a token to make a round among the plurality of communication devices 100.
In FIG. 4, the timeout time when receiving the token frame from the communication device 101 is 10 (10 × 1) in the communication device 102, 30 (10 × 3) in the communication device 104, and in the communication device 105. 40 (10 × 4).
(2)通信装置102は、通信装置103(局番:103)をトークン譲渡先とするトークンフレーム(譲渡先局番:103、送信元局番:102)を送信するが、通信装置103は障害で交信不能となっている(図4)。
 このため、通信装置103からトークンフレームが送信されることはない。
 したがって、通信装置102の受信WDT1007はリセットされることなく、やがてタイムアウトとなる。
 すると、通信装置102のサーチフレーム生成部1011がタイムアウトを検知し、通信装置103が故障で離脱したと見なして、後続の(より局番が大きい)生きている局を探すためサーチフレーム(送信元局番:102、最終局フラグ:0)を生成し、フレーム送信部1002がサーチフレームをブロードキャストする。
 ここで、通信装置102以外の通信装置が先にタイムアウトする可能性が危惧される。
 しかし、通信装置102の送信したトークンフレームによって通信装置102以外の通信装置の受信WDT1007は一斉にリセットされるため、トークンフレームの送信前から計時してきた通信装置102の受信WDT1007が必ず最初にタイムアウトする。
(2) The communication device 102 transmits a token frame (transfer destination station number: 103, transmission source station number: 102) with the communication device 103 (station number: 103) as a token transfer destination, but the communication device 103 cannot communicate due to a failure. (Fig. 4).
For this reason, no token frame is transmitted from the communication device 103.
Therefore, the reception WDT 1007 of the communication apparatus 102 does not reset and eventually times out.
Then, the search frame generation unit 1011 of the communication apparatus 102 detects a timeout, regards that the communication apparatus 103 has left due to a failure, and searches for a subsequent (higher station number) live station (search frame (source station number)). : 102, final station flag: 0), and the frame transmission unit 1002 broadcasts the search frame.
Here, there is a concern that a communication device other than the communication device 102 may time out first.
However, since the reception WDTs 1007 of communication devices other than the communication device 102 are simultaneously reset by the token frame transmitted by the communication device 102, the reception WDT 1007 of the communication device 102 that has timed before the transmission of the token frame always times out first. .
(3)通信装置102以外の通信装置のフレーム受信部1001が通信装置102からのサーチフレームを受信すると、サーチフレーム判定部1012がサーチフレームの内容を判別し、サーチフレームの送信元局番(=102)が自局番より大きい場合は受信WDT1007をリセットする(図4)。
 これにより、タイムアウトを起こさない。
 具体的には、通信装置101(自局番:101)では受信WDT1007をリセットする。
 サーチフレームの目的は、通信装置102が後続の(より局番が大きい)生きている局を探すことだから、通信装置101は通信装置102からサーチフレームを受信しても解列を試行してはいけない。
 一方、サーチフレームの送信元局番が自局番より小さい場合(具体的には通信装置104と通信装置105)のサーチフレーム判定部1012は、受信WDT1007をリセットしない。
 なお、通信装置102は、ACKフレームを受信するまでは、サーチフレームの再送を行う(図5)。
(3) When the frame reception unit 1001 of a communication device other than the communication device 102 receives a search frame from the communication device 102, the search frame determination unit 1012 determines the content of the search frame, and the search frame transmission source station number (= 102) ) Is larger than the own station number, the reception WDT 1007 is reset (FIG. 4).
This will not cause a timeout.
Specifically, the communication apparatus 101 (own station number: 101) resets the reception WDT 1007.
Since the purpose of the search frame is for the communication device 102 to search for a subsequent live station (having a larger station number), the communication device 101 should not try to disconnect even if it receives the search frame from the communication device 102. .
On the other hand, when the transmission frame number of the search frame is smaller than the own station number (specifically, communication device 104 and communication device 105), search frame determination unit 1012 does not reset reception WDT 1007.
Communication device 102 retransmits the search frame until an ACK frame is received (FIG. 5).
(4)通信装置104及び通信装置105の受信WDT1007はリセットされることなくデクリメントされていき、やがて通信装置104の受信WDT1007が先にタイムアウトとなる(図5)。
 なぜなら、手順(2)で通信装置104と通信装置105が通信装置102の送信したトークンフレームを受信したとき、通信装置104の受信WDT1007の方が小さい値のタイムアウト時間が設定されるからである。
 図4では、通信装置102からのトークンフレームを受信した際のタイムアウト時間は、通信装置104では20(10×2)であり、通信装置105では30(10×3)である。
 このように、受信WDT1007が最初にタイムアウトする局は、障害を起こした局から番号的に最も近い局となる。
 そして通信装置104では、受信WDT1007のタイムアウトかつ他局からのサーチフレーム受信済の条件を満たすと、サーチフレーム判定部1012がACKフレーム生成部1013にACKフレームの生成を指示する。
 ACKフレーム生成部1013は、ACKフレーム(応答先局番:102、送信元局番:104)を生成し、フレーム送信部1002がACKフレームを送信する。
(4) The reception WDT 1007 of the communication device 104 and the communication device 105 is decremented without being reset, and the reception WDT 1007 of the communication device 104 eventually times out (FIG. 5).
This is because when the communication device 104 and the communication device 105 receive the token frame transmitted from the communication device 102 in the procedure (2), the reception WDT 1007 of the communication device 104 sets a smaller timeout time.
In FIG. 4, the timeout time when the token frame is received from the communication device 102 is 20 (10 × 2) in the communication device 104 and 30 (10 × 3) in the communication device 105.
Thus, the station to which the reception WDT 1007 first times out is the station that is closest in number to the station that has failed.
In communication apparatus 104, when the time-out of reception WDT 1007 and the condition for receiving a search frame from another station are satisfied, search frame determination unit 1012 instructs ACK frame generation unit 1013 to generate an ACK frame.
The ACK frame generation unit 1013 generates an ACK frame (response destination station number: 102, transmission source station number: 104), and the frame transmission unit 1002 transmits the ACK frame.
(5)通信装置102では、通信装置104(局番:104)から受信したACKフレームの応答先局番を参照して自局宛てであるかどうかをACKフレーム判定部1014が判定し、ACKフレームが自局宛だった場合に、譲渡先局番記憶レジスタ1009のトークン譲渡先の局番をACKフレームの送信元の局番(局番:104)に変える(図6)。
 また、トークンフレーム生成部1005は、譲渡先局番記憶レジスタ1009の新たなトークン譲渡先局番に従い、トークンフレーム(譲渡先局番:104、送信元局番:102)を生成する。
 そして、フレーム送信部1002がトークンフレーム(譲渡先局番:104、送信元局番:102)をブロードキャストする。
 以降も、通信装置102では、データ送信権を獲得すると、トークンフレーム(譲渡先局番:104、送信元局番:102)を生成し、ブロードキャスト送信する。
 また、通信装置101、105は、通信装置104からのACKフレームを受信し、受信したACKフレームが自局宛てはないことを確認すると、受信WDT1007をリセットして、再び、タイムアウト時間を受信WDT1007に設定する(図6)。
(5) In the communication device 102, the ACK frame determination unit 1014 determines whether or not the ACK frame is addressed to the own station with reference to the response destination station number of the ACK frame received from the communication device 104 (station number: 104). If it is addressed to a station, the token transfer destination station number in the transfer destination station number storage register 1009 is changed to the station number (station number: 104) of the transmission source of the ACK frame (FIG. 6).
Further, the token frame generation unit 1005 generates a token frame (transfer destination station number: 104, transmission source station number: 102) according to the new token transfer destination station number of the transfer destination station number storage register 1009.
Then, the frame transmission unit 1002 broadcasts the token frame (transfer destination station number: 104, transmission source station number: 102).
Thereafter, when the data transmission right is acquired, the communication apparatus 102 generates a token frame (transfer destination station number: 104, transmission source station number: 102) and broadcasts it.
Further, when the communication apparatuses 101 and 105 receive the ACK frame from the communication apparatus 104 and confirm that the received ACK frame is not addressed to the local station, the communication apparatuses 101 and 105 reset the reception WDT 1007 and set the timeout time to the reception WDT 1007 again. Set (FIG. 6).
(B)最終局が故障で離脱した場合、または始発局が故障で離脱した場合
 最終局が離脱した場合を想定し、図7、8、9を用いて説明する。
 図7、8、9では、通信装置101、102、103、104、105のうち通信装置105が障害で交信不能となった場合を想定する。
 そして、図7、8、9では、通信装置104が通信装置105の障害を検知して、トークンの譲渡先を通信装置105から通信装置101へ変更する手順を説明する。
 なお、図7、8、9における(1)~(5)は、以下の説明の(1)~(5)に対応する。
(B) When the last station leaves due to failure, or when the first station leaves due to failure Assuming the case where the last station leaves, explanation will be given with reference to FIGS.
7, 8, and 9, it is assumed that the communication device 105 out of the communication devices 101, 102, 103, 104, and 105 becomes unable to communicate due to a failure.
7, 8, and 9, a procedure in which the communication apparatus 104 detects a failure of the communication apparatus 105 and changes the token transfer destination from the communication apparatus 105 to the communication apparatus 101 will be described.
Note that (1) to (5) in FIGS. 7, 8, and 9 correspond to (1) to (5) in the following description.
(1)通信装置104は、通信装置105(局番:105)宛にトークンフレーム(譲渡先局番:105、送信元局番:104)を送信するが、通信装置105は障害で交信不能となっているため、通信装置105からトークンフレームが送信されることはない。
 したがって、通信装置104の受信WDT1007はリセットされることなく、やがてタイムアウトとなる(図7)。
 すると、通信装置104のサーチフレーム生成部1011がタイムアウトを検知し、通信装置105が故障で離脱したと見なして、後続の生きている局を探すためサーチフレーム(送信元局番:104、最終局フラグ:0)を生成し、フレーム送信部1002がサーチフレームをブロードキャストする。
(1) The communication device 104 transmits a token frame (transfer destination station number: 105, transmission source station number: 104) to the communication device 105 (station number: 105), but the communication device 105 is unable to communicate due to a failure. Therefore, no token frame is transmitted from the communication device 105.
Therefore, the reception WDT 1007 of the communication device 104 does not reset and eventually times out (FIG. 7).
Then, the search frame generation unit 1011 of the communication device 104 detects a time-out, considers that the communication device 105 has left due to a failure, and searches for a subsequent live station (source frame number: 104, last station flag). : 0), and the frame transmission unit 1002 broadcasts the search frame.
(2)しかし、現時点では通信装置104より局番の小さい通信装置101、102、103しか生存しておらず、通信装置101、102、103は通信装置104からサーチフレームを受信しても受信WDT1007をリセットするのみである。
 従って、通信装置101、102、103のいずれもACKフレームを返さない。
 そこで、通信装置104は、サーチフレームを規定回数再送してもACKフレームが返ってこない場合(図7)、トークンフレーム生成部1005は、自局がトークン巡回順序において最後尾にあたると判断し、最終局フラグが「1」であるサーチフレーム(送信元局番:104、最終局フラグ:1)を生成し、フレーム送信部1002が、このサーチフレームをブロードキャストする(図8)。
 この最終局フラグが「1」であるサーチフレームは、最後尾通知フレームの例に相当する。
 通信装置104は、また、サーチフレームの再送周期も変更し、他局で受信WDT1007のタイムアウトが発生する程度に長くとる(これまではタイムアウトが発生しないような周期としていた)。
(2) However, at present, only the communication devices 101, 102, and 103 having a station number smaller than that of the communication device 104 are alive, and the communication devices 101, 102, and 103 receive the reception WDT 1007 even if the search frame is received from the communication device 104. It only resets.
Therefore, none of the communication devices 101, 102, and 103 returns an ACK frame.
Therefore, when the communication device 104 does not return an ACK frame even if the search frame is retransmitted a specified number of times (FIG. 7), the token frame generation unit 1005 determines that the local station is at the end in the token circulation order, and finally A search frame (transmission source station number: 104, final station flag: 1) with a station flag of “1” is generated, and the frame transmission unit 1002 broadcasts this search frame (FIG. 8).
The search frame whose final station flag is “1” corresponds to an example of the last notification frame.
The communication apparatus 104 also changes the retransmission period of the search frame, and takes it long enough to cause a timeout of the reception WDT 1007 at another station (previously the period was such that no timeout occurred).
(3)通信装置101、102、103は、通信装置104からサーチフレーム(送信元局番:104、最終局フラグ:1)を受信すると、サーチフレーム判定部1012が、受信WDT1007をリセットし、下記式の値で応答待機時間を受信WDT1007に設定する(図8)。
 応答待機時間=固定値×自局番
 上記式により、受信WDT1007には局番の小さい通信装置ほど短い値の応答待機時間が設定される。
 図8では、通信装置101の応答待機時間は10(10×1)であり、通信装置102の応答待機時間は20(10×2)であり、通信装置103の応答待機時間は30(10×3)である。
(3) When communication devices 101, 102, and 103 receive a search frame (source station number: 104, final station flag: 1) from communication device 104, search frame determination unit 1012 resets reception WDT 1007, and The response waiting time is set in the reception WDT 1007 with the value of (FIG. 8).
Response waiting time = fixed value × own station number According to the above equation, a shorter response waiting time is set in the reception WDT 1007 for a communication device with a smaller station number.
In FIG. 8, the response waiting time of the communication device 101 is 10 (10 × 1), the response waiting time of the communication device 102 is 20 (10 × 2), and the response waiting time of the communication device 103 is 30 (10 × 1). 3).
(4)その後、局番の最も小さい通信装置(本例では通信装置101)で、一番先に受信WDT1007のタイムアウトが発生する(図8)。
 受信WDT1007がタイムアウトした通信装置101では、ACKフレーム生成部1013が、ACKフレーム(応答先局番:104、送信元局番:101)を生成し、フレーム送信部1002がACKフレームをブロードキャストする。
(4) After that, in the communication device with the smallest station number (communication device 101 in this example), the reception WDT 1007 times out first (FIG. 8).
In communication apparatus 101 in which reception WDT 1007 times out, ACK frame generation unit 1013 generates an ACK frame (response destination station number: 104, transmission source station number: 101), and frame transmission unit 1002 broadcasts the ACK frame.
(5)通信装置104では、ACKフレーム判定部1014が、一番先に到着したACKフレーム(ここでは、通信装置101からのACKフレーム)が自局宛てであるかを判定し、ACKフレームが自局宛だった場合に、譲渡先局番記憶レジスタ1009のトークン譲渡先の局番をACKフレームの送信元の局番(局番:101)に変える(図9)。
 トークンフレーム生成部1005は、譲渡先局番記憶レジスタ1009の新たなトークン譲渡先局番に従い、トークンフレーム(譲渡先局番:101、送信元局番:104)を生成する。
 そして、フレーム送信部1002がトークンフレーム(譲渡先局番:101、送信元局番:104))をブロードキャストする。
 以降も、通信装置104では、データ送信権を獲得すると、トークンフレーム(譲渡先局番:101、送信元局番:104)を生成し、ブロードキャスト送信する。
 また、通信装置102、103は、通信装置101からのACKフレームを受信し、受信したACKフレームが自局宛てはないことを確認すると、受信WDT1007をリセットして、再び、タイムアウト時間を受信WDT1007に設定する(図8)。
(5) In the communication device 104, the ACK frame determination unit 1014 determines whether the earliest ACK frame (here, the ACK frame from the communication device 101) is addressed to the local station, and the ACK frame is If it is addressed to the station, the token transfer destination station number in the transfer destination station number storage register 1009 is changed to the station number (station number: 101) of the transmission source of the ACK frame (FIG. 9).
The token frame generation unit 1005 generates a token frame (transfer destination station number: 101, transmission source station number: 104) according to the new token transfer destination station number of the transfer destination station number storage register 1009.
Then, the frame transmission unit 1002 broadcasts a token frame (transfer destination station number: 101, transmission source station number: 104).
Thereafter, when the data transmission right is acquired, the communication device 104 generates a token frame (transfer destination station number: 101, transmission source station number: 104), and broadcasts it.
Further, when the communication apparatuses 102 and 103 receive the ACK frame from the communication apparatus 101 and confirm that the received ACK frame is not addressed to the local station, the communication apparatuses 102 and 103 reset the reception WDT 1007 and set the timeout time to the reception WDT 1007 again. Set (FIG. 8).
 以上により、離脱した最終局のみ除外するように、解列ができた。 As a result of the above, we have been able to disconnect from the last station that has left.
 また、始発局(本例では通信装置101)が離脱した場合、最終局(本例では通信装置105)がサーチフレームを送信することになるが、この場合も上記で説明した手順の(2)と同様な状況となるため、上記と同様の手順により解列が可能である。 Further, when the starting station (communication apparatus 101 in this example) leaves, the last station (communication apparatus 105 in this example) transmits a search frame. In this case as well, the procedure (2) described above is performed. Since the situation is the same as above, disassembly can be performed by the same procedure as described above.
 なお、局番の連続する通信装置が複数台離脱した場合(図10)でも、解列は可能である。
 この場合、1台の通信装置が解列を複数回行ってもよい。
Note that even when a plurality of communication devices with consecutive station numbers are disconnected (FIG. 10), disconnection is possible.
In this case, one communication device may perform the disconnection a plurality of times.
 次に、復列の方法を説明する。
 復列では、トークンフレームの他に、アテンドフレーム及びアクセプトフレームという通信フレームを利用する。
 アテンドフレームは、通信システム(ネットワーク)に含まれるがトークンパッシングに加入していない通信装置(以下、未加入通信装置ともいう)からブロードキャスト送信される、未加入通信装置の局番号が通知される通信フレームである。
 また、アクセプトフレームは、未加入通信装置のトークンパッシングへの加入を承認することを通知する通信フレームである。
Next, a method for returning will be described.
In the reverse sequence, communication frames such as an attend frame and an accept frame are used in addition to the token frame.
The attended frame is a broadcast that is broadcast from a communication device (hereinafter also referred to as an unsubscribed communication device) that is included in the communication system (network) but has not subscribed to token passing, and is notified of the station number of the unsubscribed communication device. It is a frame.
The accept frame is a communication frame for notifying that an unsubscribed communication device is approved to participate in token passing.
 アテンドフレームのフォーマットは図11の通りで、フレーム識別子、宛先局番、送信元局番で構成される。
 フレーム識別子は、フレームがアテンドフレームであることを示す識別子である。
 宛先局番には、アテンドフレームの送信先として全局宛を示す値が格納される。
 つまり、アテンドフレームは、全局にブロードキャストされる。
 送信元局番には、アテンドフレームの送信元の通信装置100の局番が示される。
The format of the attended frame is as shown in FIG. 11, and is composed of a frame identifier, a destination station number, and a transmission source station number.
The frame identifier is an identifier indicating that the frame is an attended frame.
The destination station number stores a value indicating all stations as the transmission destination of the attended frame.
That is, the attended frame is broadcast to all stations.
The transmission source station number indicates the station number of the communication apparatus 100 that is the transmission source of the attended frame.
 次に、アクセプトフレームのフォーマットは図12の通りで、フレーム識別子、宛先局番、送信元局番、最終局フラグで構成される。
 フレーム識別子は、フレームがアクセプトフレームであることを示す識別子である。
 宛先局番には、アテンドフレームの送信元の通信装置100の局番が示される。
 つまり、アクセプトフレームは、アテンドフレームの送信元にユニキャストされる。
 送信元局番には、アクセプトフレームの送信元の通信装置の局番が示される。
 最終局フラグには、アクセプトフレームの送信元の通信装置の局番が他のいずれの通信装置の局番よりも大きいか否か、すなわち、アクセプトフレームの送信元の通信装置がトークン巡回順序において最後尾にあたるか否かが示される。
 アクセプトフレームの送信元の通信装置の局番よりも大きい局番の他局がある場合(最終局ではない場合)は、最終局フラグには「0」が設定され、アクセプトフレームの送信元の通信装置の局番が最も大きい場合(最終局である場合)は、最終局フラグには「1」が設定される。
Next, the format of the accept frame is as shown in FIG. 12, and includes a frame identifier, a destination station number, a transmission source station number, and a final station flag.
The frame identifier is an identifier indicating that the frame is an accept frame.
The destination station number indicates the station number of the communication apparatus 100 that is the transmission source of the attended frame.
That is, the accept frame is unicast to the transmission source of the attended frame.
The transmission source station number indicates the station number of the communication device that is the transmission source of the accept frame.
The final station flag indicates whether the station number of the communication device that is the source of the accept frame is greater than the station number of any other communication device, that is, the communication device that is the source of the accept frame is the last in the token circulation order. Whether or not.
If there is another station with a station number larger than the station number of the accepting frame transmission source communication device (if it is not the last station), the final station flag is set to “0” and the accept frame transmitting source communication device When the station number is the largest (when it is the last station), “1” is set in the last station flag.
 復列を行うための通信装置100の構成を図13に示す。
 なお、図13では説明しやすさを優先し、復列に必要な構成要素のみ記載し、解列のための構成要素(図1)を記載していないが、実際は解列のための構成要素も同じ通信装置100内に存在する。
FIG. 13 shows the configuration of the communication apparatus 100 for performing the reverse sequence.
In FIG. 13, priority is given to ease of explanation, and only the components necessary for reverse sequence are described, and the components for disconnection (FIG. 1) are not described. Are also present in the same communication apparatus 100.
 フレーム受信部1001は、図1に示したものであり、各種通信フレームを受信する。
 復列の処理では、フレーム受信部1001はトークンフレーム、アテンドフレーム及びアクセプトフレームを受信する。
 なお、フレーム受信部1001は、アテンドフレーム受信部の例に相当する。
The frame receiving unit 1001 is shown in FIG. 1 and receives various communication frames.
In the reverse processing, the frame receiving unit 1001 receives a token frame, an attended frame, and an accept frame.
The frame receiving unit 1001 corresponds to an example of an attended frame receiving unit.
 トークンフレーム判定部1003、受信データメモリ1004、トークンフレーム生成部1005、送信データメモリ1006、自局番記憶レジスタ1008、譲渡先局番記憶レジスタ1009、解列前譲渡先局番記憶レジスタ1010は、図1に示したものと同じであり、説明を省略する。 The token frame determination unit 1003, reception data memory 1004, token frame generation unit 1005, transmission data memory 1006, own station number storage register 1008, transfer destination station number storage register 1009, and transfer destination station number storage register 1010 before release are shown in FIG. The description is omitted.
 送信ウォッチドッグタイマ1055(以下、送信WDT1055と表記する)は、自局がデータ送信権を獲得し、トークンフレームを送信するとリセットされるウォッチドッグタイマである。 The transmission watchdog timer 1055 (hereinafter referred to as transmission WDT 1055) is a watchdog timer that is reset when the local station acquires the right to transmit data and transmits a token frame.
 アテンドフレーム生成部1051は、送信WDT1055がタイムアウトすると、アテンドフレームを生成する。 The attended frame generation unit 1051 generates an attended frame when the transmission WDT 1055 times out.
 アテンドフレーム判定部1052は、他局から受信したフレームがアテンドフレームか否かを判定する。
 そして、受信したアテンドフレームが自局宛てであれば、アテンドフレーム判定部1052は譲渡先局番記憶レジスタ1009の譲渡先局番を、アテンドフレームで通知された局番号(未加入通信装置の局番号)に更新する。
 アテンドフレーム判定部1052は、譲渡先装置番号更新部の例に相当する。
The attended frame determination unit 1052 determines whether a frame received from another station is an attended frame.
If the received attend frame is addressed to the own station, the attend frame determination unit 1052 sets the transfer destination station number in the transfer destination station number storage register 1009 to the station number notified by the attend frame (the station number of the unsubscribed communication device). Update.
The attended frame determination unit 1052 corresponds to an example of a transfer destination device number update unit.
 アクセプトフレーム生成部1053は、アテンドフレーム判定部1052によりアテンドフレームの受信が確認され、後述の復列手順の説明で述べるアクセプトフレーム送信条件を満たすときにアクセプトフレームを生成する。 The accept frame generating unit 1053 generates an accept frame when reception of the attended frame is confirmed by the attended frame determining unit 1052 and an accept frame transmission condition described in the description of the return sequence described later is satisfied.
 アクセプトフレーム判定部1054は、他局から受信したアクセプトフレームが自局宛か否かを判定する。 The accept frame determination unit 1054 determines whether an accept frame received from another station is addressed to the own station.
 フレーム送信部1002は、図1に示したものであり、各種通信フレームを送信する。
 具体的には、復列処理では、フレーム送信部1002は、トークンフレーム、アテンドフレーム及びアクセプトフレームを送信する。
 フレーム送信部1002は、トークンフレーム送信部及びアクセプトフレーム送信部の例に相当する。
The frame transmission unit 1002 is the one shown in FIG. 1 and transmits various communication frames.
Specifically, in the reverse processing, the frame transmission unit 1002 transmits a token frame, an attended frame, and an accept frame.
The frame transmission unit 1002 corresponds to an example of a token frame transmission unit and an accept frame transmission unit.
 以下、図14のように、通信装置101、102、103、104、105、106の6台のうち、通信装置101、103、104、106が解列されている場合を想定し、復列の方法を説明する。
 通信装置101、102、103、104、105、106の各々は、図13に示す構成を有する。
 また、通信装置101、102、103、104、105、106の局番は、符号と同じである。
 復列の方法は、復帰する通信装置の位置に応じて異なる。
Hereinafter, assuming that the communication devices 101, 103, 104, and 106 are disconnected from the six communication devices 101, 102, 103, 104, 105, and 106, as shown in FIG. A method will be described.
Each of the communication devices 101, 102, 103, 104, 105, 106 has the configuration shown in FIG.
The station numbers of the communication apparatuses 101, 102, 103, 104, 105, and 106 are the same as the codes.
The method of returning is different depending on the position of the communication device to be returned.
(A)最終局以外の通信装置が、復帰した通信装置を復列する場合(図15、16)
(B)最終局あるいは解列によって最終局となった通信装置が、自分より局番の大きい通信装置を復列する場合(図17、18)
(C)最終局あるいは解列によって最終局となった通信装置が、自分より局番の小さい通信装置を復列する場合(図19、20)
 以下、それぞれについて復列の方法を説明する。
(A) When a communication device other than the last station restores the restored communication device (FIGS. 15 and 16)
(B) When the communication device that has become the final station due to the last station or disconnection returns a communication device having a larger station number than itself (FIGS. 17 and 18)
(C) A case where a communication device that has become the last station due to the last station or disconnection returns a communication device having a station number smaller than itself (FIGS. 19 and 20).
Hereinafter, the method of returning will be described for each.
(A)最終局以外の通信装置が、復帰した通信装置を復列する場合
 図15、16のように、通信装置103が復帰し、通信装置102が復列処理を実行する場合を想定する。
 なお、図15、16における(1)~(6)は、以下の説明の(1)~(6)に対応する。
(A) When a communication device other than the last station restores the restored communication device As shown in FIGS. 15 and 16, it is assumed that the communication device 103 is restored and the communication device 102 executes the restoration process.
Note that (1) to (6) in FIGS. 15 and 16 correspond to (1) to (6) in the following description.
(1)通信装置103は、障害から復帰すると送信WDT1055をリセットして、タイムアウト時間を送信WDT1055に設定する(図15)。
 送信WDT1055のタイムアウト時間は、データ送信権が6台の通信装置を一巡する時間よりも長く取る。
(1) When the communication apparatus 103 recovers from the failure, the communication apparatus 103 resets the transmission WDT 1055 and sets the timeout time to the transmission WDT 1055 (FIG. 15).
The timeout time of the transmission WDT 1055 is longer than the time required for the data transmission right to go around the six communication devices.
(2)通信装置103宛にはデータ送信権が巡ってこないので、やがて送信WDT1055がタイムアウトする(図15)。
 すると、通信装置103のアテンドフレーム生成部1051がアテンドフレーム(送信元局番:103)を生成し、フレーム送信部1002がアテンドフレームをブロードキャストする。
 また、アテンドフレーム生成部1051は、送信WDT1055をリセットして、再度、タイムアウト時間を設定する。
(2) Since the data transmission right does not reach the communication device 103, the transmission WDT 1055 eventually times out (FIG. 15).
Then, the attended frame generating unit 1051 of the communication apparatus 103 generates an attended frame (transmission source station number: 103), and the frame transmitting unit 1002 broadcasts the attended frame.
Also, the attended frame generation unit 1051 resets the transmission WDT 1055 and sets the timeout time again.
(3)通信装置103以外の通信装置では、アテンドフレームを受信すると、アテンドフレーム判定部1052が以下のアクセプトフレーム送信条件(α)についての条件判定を行い、条件を満たすと自局宛てのアテンドフレームと判断し、アクセプトフレーム生成部1053がアクセプトフレームを生成し、フレーム送信部1002がアクセプトフレームを送信する(図15)。
 アクセプトフレーム送信条件(α):
(α1)自局が最終局でない
(α2)現在の譲渡先局番≠解列前の譲渡先局番
  これは、自局が他局を解列した状態にあることを意味する。
(α3)自局番<受信したアテンドフレームの送信元局番
(α4)受信したアテンドフレームの送信元局番<現在の譲渡先局番
  (α3)と(α4)の条件は、自局と現在のトークン譲渡先の局との間に、復帰した局がいることを意味する。
(3) When a communication device other than the communication device 103 receives an attended frame, the attended frame determination unit 1052 performs a condition determination on the following accept frame transmission condition (α). The accept frame generation unit 1053 generates an accept frame, and the frame transmission unit 1002 transmits the accept frame (FIG. 15).
Accept frame transmission condition (α):
(Α1) The own station is not the final station (α2) Current transfer destination station number ≠ transfer destination station number before disconnection This means that the own station is in a state where another station is disconnected.
(Α3) own station number <source station number of received attended frame (α4) source station number of received attended frame <current transfer destination station number The conditions of (α3) and (α4) are: This means that there is a station that has returned to the other station.
 本例では、通信装置102が上記条件を満たし、通信装置102が、アクセプトフレーム(宛先局番:103、送信元局番:102)を送信する。
 また、通信装置102のアテンドフレーム判定部1052は、譲渡先局番記憶レジスタ1009のトークン譲渡先の局番をアテンドフレームの送信元局番(局番:103)に書き換える。
In this example, the communication apparatus 102 satisfies the above conditions, and the communication apparatus 102 transmits an accept frame (destination station number: 103, transmission source station number: 102).
Also, the attended frame determination unit 1052 of the communication apparatus 102 rewrites the token transfer destination station number in the transfer destination station number storage register 1009 to the transmission source station number (station number: 103) of the attended frame.
(4)通信装置103は、アクセプトフレームを受信すると送信WDT1055をリセットする。
 通信装置103は、もしアクセプトフレームを受信できず、送信WDT1055がタイムアウトしたら、アテンドフレームを再送する。
(4) When receiving the accept frame, the communication device 103 resets the transmission WDT 1055.
If the communication device 103 cannot receive the accept frame and the transmission WDT 1055 times out, it retransmits the attended frame.
(5)通信装置102は、次のデータ送信権獲得時に、譲渡先局番記憶レジスタ1009の新たなトークン譲渡先局番に従い、トークンフレーム(譲渡先局番:103、送信元局番:102)を生成する(図16)。
 そして、フレーム送信部1002がトークンフレーム(譲渡先局番:103、送信元局番:102)をブロードキャストする。
(5) When the next data transmission right is acquired, the communication apparatus 102 generates a token frame (transfer destination station number: 103, transmission source station number: 102) in accordance with the new token transfer destination station number in the transfer destination station number storage register 1009 ( FIG. 16).
Then, the frame transmission unit 1002 broadcasts the token frame (transfer destination station number: 103, transmission source station number: 102).
(6)次に、通信装置103がデータ送信権を獲得する(図16)。
 ここで、通信装置103が離脱前に解列を実行しており、譲渡先局番記憶レジスタ1009が初期値から書き換わっていた場合でも、復帰後は初期値(解列前譲渡先局番記憶レジスタ1010の値)の局番がトークン譲渡先局番となる。
 そのため、初期設定の譲渡先局が依然離脱中の場合は、通信装置103は、再度解列の処理を行う。
(6) Next, the communication apparatus 103 acquires a data transmission right (FIG. 16).
Here, even when the communication device 103 executes the disconnection before leaving and the transfer destination station number storage register 1009 is rewritten from the initial value, the initial value (the transfer destination station number storage register 1010 before the release) is restored. ) Is the token transfer destination station number.
For this reason, when the default transfer destination station is still leaving, the communication apparatus 103 performs the disconnection process again.
(B)最終局あるいは解列によって最終局となった通信装置が、自分より局番の大きい通信装置を復列する場合
 図17、18のように、通信装置106が復帰し、通信装置105が復列処理を実行する場合を想定する。
 なお、図17、18における(1)~(6)は、以下の説明の(1)~(6)に対応する。
(B) When the communication device that has become the final station due to the last station or disconnection returns a communication device having a larger station number than itself, as shown in FIGS. 17 and 18, the communication device 106 returns and the communication device 105 recovers. Assume that column processing is executed.
Note that (1) to (6) in FIGS. 17 and 18 correspond to (1) to (6) in the following description.
(1)通信装置106は、障害から復帰すると送信WDT1055をリセットして、タイムアウト時間を送信WDT1055に設定する(図17)。
 送信WDT1055のタイムアウト時間は、データ送信権が6台の通信装置を一巡する時間よりも長く取る。
(1) When the communication device 106 recovers from the failure, the communication device 106 resets the transmission WDT 1055 and sets the timeout time to the transmission WDT 1055 (FIG. 17).
The timeout time of the transmission WDT 1055 is longer than the time required for the data transmission right to go around the six communication devices.
(2)通信装置106宛にはデータ送信権が巡ってこないので、やがて送信WDT1055がタイムアウトする(図17)。
 すると、通信装置106のアテンドフレーム生成部1051がアテンドフレーム(送信元局番:106)を生成し、フレーム送信部1002がアテンドフレームをにブロードキャスト送信する。
 また、アテンドフレーム生成部1051は、送信WDT1055をリセットして、再度、タイムアウト時間を設定する。
(2) Since the data transmission right does not go to the communication device 106, the transmission WDT 1055 eventually times out (FIG. 17).
Then, the attended frame generating unit 1051 of the communication apparatus 106 generates an attended frame (transmission source station number: 106), and the frame transmitting unit 1002 broadcasts the attended frame.
Also, the attended frame generation unit 1051 resets the transmission WDT 1055 and sets the timeout time again.
(3)通信装置106以外の通信装置では、アテンドフレームを受信すると、アテンドフレーム判定部1052が以下のアクセプトフレーム送信条件(β)についての条件判定を行い、条件を満たすと自局宛てのアテンドフレームと判断し、アクセプトフレーム生成部1053がアクセプトフレームを生成し、フレーム送信部1002がアクセプトフレームを送信する(図17)。
 アクセプトフレーム送信条件(β):
(β1)自局が最終局である
(β2)自局番<受信したアテンドフレームの送信元局番
 本例では、通信装置105が上記条件を満たし、通信装置105が、アクセプトフレーム(宛先局番:106、送信元局番:105)を送信する。
 また、通信装置105のアテンドフレーム判定部1052は、譲渡先局番記憶レジスタ1009のトークン譲渡先の局番をアテンドフレームの送信元局番(局番:106)に書き換える。
(3) When a communication device other than the communication device 106 receives an attended frame, the attended frame determination unit 1052 performs a condition determination on the following accept frame transmission condition (β). The accept frame generation unit 1053 generates an accept frame, and the frame transmission unit 1002 transmits the accept frame (FIG. 17).
Accept frame transmission condition (β):
(Β1) The own station is the final station (β2) The own station number <the transmission source station number of the received attended frame In this example, the communication device 105 satisfies the above conditions, and the communication device 105 receives an accept frame (destination station number: 106, Source station number: 105) is transmitted.
Also, the attended frame determination unit 1052 of the communication device 105 rewrites the token transfer destination station number in the transfer destination station number storage register 1009 to the transmission source station number (station number: 106) of the attended frame.
(4)通信装置106は、アクセプトフレームを受信すると送信WDT1055をリセットする。
 もしアクセプトフレームを受信できず、送信WDT1055がタイムアウトしたら、通信装置106は、アテンドフレームを再送する。
(4) When receiving the accept frame, the communication device 106 resets the transmission WDT 1055.
If the accept frame cannot be received and the transmission WDT 1055 times out, the communication apparatus 106 retransmits the attended frame.
(5)通信装置105は、次のデータ送信権獲得時に、譲渡先局番記憶レジスタ1009の新たなトークン譲渡先局番に従い、トークンフレーム(譲渡先局番:106、送信元局番:105)を生成する(図18)。
 そして、フレーム送信部1002がトークンフレーム(譲渡先局番:106、送信元局番:105)をブロードキャストする。
(5) When acquiring the next data transmission right, the communication apparatus 105 generates a token frame (transfer destination station number: 106, transmission source station number: 105) according to the new token transfer destination station number in the transfer destination station number storage register 1009 ( FIG. 18).
Then, the frame transmission unit 1002 broadcasts the token frame (transfer destination station number: 106, transmission source station number: 105).
(6)次に、通信装置106がデータ送信権を獲得する(図18)。
 ここで、通信装置106が離脱前に解列を実行しており、譲渡先局番記憶レジスタ1009が初期値から書き換わっていた場合でも、復帰後は初期値(解列前譲渡先局番記憶レジスタ1010の値)の局番がトークン譲渡先局番となる。
 そのため、初期設定の譲渡先局が依然離脱中の場合は、通信装置106は、再度解列の処理を行う。
(6) Next, the communication device 106 acquires the data transmission right (FIG. 18).
Here, even if the communication device 106 has been disconnected before leaving, and the transfer destination station number storage register 1009 has been rewritten from the initial value, the initial value (transfer destination station number storage register 1010 before release) is restored. ) Is the token transfer destination station number.
For this reason, when the default transfer destination station is still leaving, the communication device 106 performs the disconnection process again.
(C)最終局あるいは解列によって最終局となった通信装置が、自分より局番の小さい通信装置を復列する場合
 図19、20のように、通信装置101が復帰し、通信装置105が復列処理を実行する場合を想定する。
 なお、図19、20における(1)~(5)は、以下の説明の(1)~(5)に対応する。
(C) When the communication device that has become the final station due to the last station or disconnection returns a communication device having a station number smaller than that of itself, as shown in FIGS. Assume that column processing is executed.
Note that (1) to (5) in FIGS. 19 and 20 correspond to (1) to (5) in the following description.
(1)通信装置101は、障害から復帰すると送信WDT1055をリセットして、タイムアウト時間を送信WDT1055に設定する(図19)。
 送信WDT1055のタイムアウト時間は、データ送信権が6台の通信装置を一巡する時間よりも長く取る。
(1) When the communication apparatus 101 recovers from the failure, the communication apparatus 101 resets the transmission WDT 1055 and sets the timeout time to the transmission WDT 1055 (FIG. 19).
The timeout time of the transmission WDT 1055 is longer than the time required for the data transmission right to go around the six communication devices.
(2)通信装置101宛にはデータ送信権が巡ってこないので、やがて送信WDT1055がタイムアウトする(図19)。
 すると、通信装置101のアテンドフレーム生成部1051がアテンドフレーム(送信元局番:101)を生成し、フレーム送信部1002がアテンドフレームをブロードキャストする。
 また、アテンドフレーム生成部1051は、送信WDT1055をリセットして、再度、タイムアウト時間を設定する。
(2) Since the right to transmit data does not reach the communication device 101, the transmission WDT 1055 times out (FIG. 19).
Then, the attended frame generating unit 1051 of the communication apparatus 101 generates an attended frame (transmission source station number: 101), and the frame transmitting unit 1002 broadcasts the attended frame.
Also, the attended frame generation unit 1051 resets the transmission WDT 1055 and sets the timeout time again.
(3)通信装置101以外の通信装置では、アテンドフレームを受信すると、アテンドフレーム判定部1052が以下のアクセプトフレーム送信条件(γ)についての条件判定を行い、条件を満たすと自局宛てのアテンドフレームと判断し、アクセプトフレーム生成部1053がアクセプトフレームを生成し、フレーム送信部1002がアクセプトフレームを送信する(図19)。
 アクセプトフレーム送信条件(γ):
(γ1)自局が最終局である
(γ2)受信したアテンドフレームの送信元局番<自局のトークン譲渡先局番
(3) When a communication device other than the communication device 101 receives an attended frame, the attended frame determination unit 1052 performs a condition determination on the following accept frame transmission condition (γ). The accept frame generation unit 1053 generates an accept frame, and the frame transmission unit 1002 transmits the accept frame (FIG. 19).
Accept frame transmission condition (γ):
(Γ1) The local station is the final station (γ2) The transmission source station number of the received attended frame <the token transfer destination station number of the local station
 本例では、通信装置105が上記条件を満たし、通信装置105がアクセプトフレーム(宛先局番:101、送信元局番:105)を送信する。
 また、通信装置105のアテンドフレーム判定部1052は、譲渡先局番記憶レジスタ1009のトークン譲渡先の局番をアテンドフレームの送信元局番(局番:101)に書き換える。
In this example, the communication apparatus 105 satisfies the above conditions, and the communication apparatus 105 transmits an accept frame (destination station number: 101, transmission source station number: 105).
Also, the attended frame determination unit 1052 of the communication device 105 rewrites the token transfer destination station number in the transfer destination station number storage register 1009 to the attended frame transmission source station number (station number: 101).
(4)通信装置101は、アクセプトフレームを受信すると送信WDT1055をリセットする。
 通信装置101は、もしアクセプトフレームを受信できず、送信WDT1055がタイムアウトしたら、アテンドフレームを再送する。
(4) Upon receiving the accept frame, the communication apparatus 101 resets the transmission WDT 1055.
If the communication apparatus 101 cannot receive the accept frame and the transmission WDT 1055 times out, it retransmits the attended frame.
(5)通信装置105は、次のデータ送信権獲得時に、譲渡先局番記憶レジスタ1009の新たなトークン譲渡先局番に従い、トークンフレーム(譲渡先局番:101、送信元局番:105)を生成する(図20)。
 そして、フレーム送信部1002がトークンフレーム(譲渡先局番:101、送信元局番:105)をブロードキャストする。
(5) When acquiring the next data transmission right, the communication device 105 generates a token frame (transfer destination station number: 101, source station number: 105) according to the new token transfer destination station number in the transfer destination station number storage register 1009 ( FIG. 20).
Then, the frame transmission unit 1002 broadcasts the token frame (transfer destination station number: 101, transmission source station number: 105).
 次に、図1及び図13に示した通信装置100の動作例をフローチャートを用いて説明する。
 図22を用いて、通信装置100の全体の動作を説明する。
Next, an operation example of the communication apparatus 100 illustrated in FIGS. 1 and 13 will be described using a flowchart.
The overall operation of the communication apparatus 100 will be described with reference to FIG.
 まず、フレーム受信部1001が、通信フレームを受信した際に、受信した通信フレームをトークンフレーム判定部1003に出力する。
 そして、トークンフレーム判定部1003は、受信した通信フレームがトークンフレームであるか否かを判断する(S101)。
 受信した通信フレームがトークンフレームであれば(S101でYES)、トークンフレーム判定部1003は受信WDT1007をリセットし、タイムアウト時間を受信WDT1007に設定する(S102)。
 更に、トークンフレーム判定部1003は、受信したトークンフレームが自局宛てのトークンフレームであるか否かを判断する(S103)。
 受信したトークンフレームが自局宛てのトークンフレームであれば(S103でYES)、トークンフレーム生成部1005にトークンフレームの生成を指示する。
 そして、トークンフレーム生成部1005がトークンフレームを生成し、フレーム送信部1002がトークンフレームをブロードキャストする(S104)。
First, when the frame reception unit 1001 receives a communication frame, the frame reception unit 1001 outputs the received communication frame to the token frame determination unit 1003.
Then, the token frame determination unit 1003 determines whether or not the received communication frame is a token frame (S101).
If the received communication frame is a token frame (YES in S101), the token frame determination unit 1003 resets the reception WDT 1007 and sets the timeout time to the reception WDT 1007 (S102).
Further, the token frame determination unit 1003 determines whether or not the received token frame is a token frame addressed to the own station (S103).
If the received token frame is a token frame addressed to the own station (YES in S103), the token frame generation unit 1005 is instructed to generate a token frame.
Then, the token frame generation unit 1005 generates a token frame, and the frame transmission unit 1002 broadcasts the token frame (S104).
 一方、フレーム受信部1001が受信した通信フレームがトークンフレームではなく(S101でNO)、アテンドフレームの場合(S105でYES)は、復列処理が行われる(S106)。
 復列処理の詳細は後述する。
On the other hand, when the communication frame received by the frame receiving unit 1001 is not a token frame (NO in S101) and is an attended frame (YES in S105), a return process is performed (S106).
Details of the return processing will be described later.
 また、フレーム受信部1001がトークンフレーム、アテンドフレーム、サーチフレームのいずれも受信しておらず(S101でNO、S105でNO、S107でNO)、受信WDT1007のタイムアウトが発生した場合(S108でYES)は、解列処理(1)が行われる(S109)。
 解列処理(1)の詳細は後述する。
Further, when the frame receiving unit 1001 has not received any token frame, attended frame, or search frame (NO in S101, NO in S105, NO in S107), and a timeout of the reception WDT 1007 occurs (YES in S108) In this case, the disassembling process (1) is performed (S109).
Details of the disassembling process (1) will be described later.
 また、フレーム受信部1001がサーチフレームを受信した場合(S101でNO、S105でNO、S107でYES)は、解列処理(2)が行われる(S110)。
 解列処理(2)の詳細は後述する。
Further, when the frame receiving unit 1001 receives a search frame (NO in S101, NO in S105, YES in S107), a dissecting process (2) is performed (S110).
Details of the disassembling process (2) will be described later.
 図23は、解列処理(1)の詳細を示すフローチャートである。
 前述のように、フレーム受信部1001がトークンフレーム、アテンドフレーム、サーチフレームのいずれも受信しておらず(S101でNO、S105でNO、S107でNO)、受信WDT1007のタイムアウトが発生した場合(S108でYES)に、図23のフローが開始する。
FIG. 23 is a flowchart showing details of the disassembling process (1).
As described above, when the frame receiving unit 1001 has not received any of the token frame, the attended frame, or the search frame (NO in S101, NO in S105, NO in S107), and the reception WDT 1007 times out (S108) 23), the flow of FIG. 23 starts.
 まず、サーチフレーム生成部1011が、最終局フラグが「0」のサーチフレームを生成し、フレーム送信部1002が当該サーチフレームをブロードキャストする(S1091)。
 次に、フレーム受信部1001が通信フレームを受信しときに、受信した通信フレームをACKフレーム判定部1014が解析する。
 そして、受信した通信フレームが、S1091で送信したサーチフレーム(最終局フラグ:0)に対するACKフレームである場合(S1092でYES)は、ACKフレーム判定部1014が、譲渡先局番記憶レジスタ1009のトークン譲渡先の局番をACKフレームの送信元の局番に変える(S1096)。
 また、トークンフレーム生成部1005が、譲渡先局番記憶レジスタ1009の新たなトークン譲渡先局番に従い、トークンフレームを生成し、フレーム送信部1002がトークンフレームをブロードキャストする(S1097)。
First, the search frame generation unit 1011 generates a search frame whose final station flag is “0”, and the frame transmission unit 1002 broadcasts the search frame (S1091).
Next, when the frame reception unit 1001 receives a communication frame, the ACK frame determination unit 1014 analyzes the received communication frame.
If the received communication frame is an ACK frame for the search frame (last station flag: 0) transmitted in S1091, (YES in S1092), the ACK frame determination unit 1014 transfers the token in the transfer destination station number storage register 1009. The previous station number is changed to the station number of the transmission source of the ACK frame (S1096).
Further, the token frame generation unit 1005 generates a token frame according to the new token transfer destination station number in the transfer destination station number storage register 1009, and the frame transmission unit 1002 broadcasts the token frame (S1097).
 一方、ACKフレームを受信しない場合(S1092でNO)は、規定の再送回数に達するまで(S1093)、フレーム送信部1002はサーチフレーム(最終局フラグ:0)を再送する(S1091)。
 規定回数の再送を行ってもACKフレームを受信しない場合(S1093でYES)は、サーチフレーム生成部1011が、最終局フラグが「1」のサーチフレームを生成し、フレーム送信部1002が当該サーチフレームをブロードキャストする(S1094)。
 フレーム受信部1001が、サーチフレーム(最終局フラグ:1)に対するACKフレームを受信すると(S1095)、ACKフレーム判定部1014は、譲渡先局番記憶レジスタ1009のトークン譲渡先の局番をACKフレームの送信元の局番に変える(S1096)。
 また、トークンフレーム生成部1005が、譲渡先局番記憶レジスタ1009の新たなトークン譲渡先局番に従い、トークンフレームを生成し、フレーム送信部1002がトークンフレームをブロードキャストする(S1097)。
On the other hand, when an ACK frame is not received (NO in S1092), the frame transmission unit 1002 retransmits the search frame (last station flag: 0) (S1091) until the specified number of retransmissions is reached (S1093).
If the ACK frame is not received even after the specified number of retransmissions (YES in S1093), the search frame generation unit 1011 generates a search frame with the final station flag “1”, and the frame transmission unit 1002 receives the search frame. Is broadcast (S1094).
When the frame reception unit 1001 receives an ACK frame for the search frame (last station flag: 1) (S1095), the ACK frame determination unit 1014 sets the token transfer destination station number in the transfer destination station number storage register 1009 to the transmission source of the ACK frame. (S1096).
Further, the token frame generation unit 1005 generates a token frame according to the new token transfer destination station number in the transfer destination station number storage register 1009, and the frame transmission unit 1002 broadcasts the token frame (S1097).
 図24は、解列処理(2)の詳細を示すフローチャートである。
 前述のように、フレーム受信部1001がサーチフレームを受信した場合(S101でNO、S105でNO、S107でYES)に、図23のフローが開始する。
FIG. 24 is a flowchart showing details of the disassembling process (2).
As described above, when the frame receiving unit 1001 receives a search frame (NO in S101, NO in S105, YES in S107), the flow in FIG. 23 starts.
 まず、サーチフレーム判定部1012が、サーチフレームの送信元局番と自局番とを比較し(S1101)、自局番がサーチフレームの送信元局番よりも大きい場合(S1101でNO)は、受信WDT1007のタイムアウトが発生した際(S1102でYES)に、ACKフレーム生成部1013がACKフレームを生成し、フレーム送信部1002がACKフレームをブロードキャストする(S1103)。
 ACKフレームの応答先局番は、サーチフレームの送信元局番である。
First, the search frame determination unit 1012 compares the transmission source station number of the search frame with its own station number (S1101), and if the own station number is larger than the transmission station number of the search frame (NO in S1101), the time-out of the reception WDT 1007 When this occurs (YES in S1102), the ACK frame generation unit 1013 generates an ACK frame, and the frame transmission unit 1002 broadcasts the ACK frame (S1103).
The response destination station number of the ACK frame is the source station number of the search frame.
 一方、受信WDT1007のタイムアウトが発生する前にフレーム受信部1001がACKフレームを受信した場合(S1102でNO、S1104でYES)は、受信したACKフレームは自局宛てではないので、トークンフレーム判定部1003が受信WDT1007をリセットし、再びタイムアウト時間を設定する(S1105)。 On the other hand, if the frame receiving unit 1001 receives an ACK frame before the reception WDT 1007 times out (NO in S1102 and YES in S1104), the received ACK frame is not addressed to the own station, so the token frame determining unit 1003 Resets the reception WDT 1007 and sets the timeout time again (S1105).
 また、S1101の判断において、サーチフレームの送信元局番が自局番よりも大きい場合(S1101でYES)は、サーチフレーム判定部1012が、受信WDT1007をリセットし、再びタイムアウト時間を設定する(S1106)。
 また、フレーム受信部1001が、最終局フラグが「1」のサーチフレームを受信した場合(S1107でYES)は、サーチフレーム判定部1012が、受信WDT1007をリセットし、図8の手順(3)で説明した応答待機時間を設定する(S1108)。
 そして、S1108で設定した応答待機時間が経過して受信WDT1007のタイムアウトが発生した場合(S1109でYES)は、ACKフレーム生成部1013がACKフレームを生成し、フレーム送信部1002がACKフレームをブロードキャストする(S1103)。
 一方、フレーム受信部1001が、サーチフレーム(最終局フラグ:1)を受信することなく、ACKフレームを受信した場合(S1107でNO、S1110でYES)は、受信したACKフレームは自局宛てではないので、トークンフレーム判定部1003が受信WDT1007をリセットし、再びタイムアウト時間を設定する(S1111)。
If the transmission source station number of the search frame is larger than the own station number in S1101 (YES in S1101), the search frame determination unit 1012 resets the reception WDT 1007 and sets the timeout time again (S1106).
Further, when the frame reception unit 1001 receives a search frame with the final station flag “1” (YES in S1107), the search frame determination unit 1012 resets the reception WDT 1007, and the procedure (3) in FIG. The response waiting time described is set (S1108).
If the response waiting time set in S1108 elapses and the reception WDT 1007 times out (YES in S1109), the ACK frame generation unit 1013 generates an ACK frame, and the frame transmission unit 1002 broadcasts the ACK frame. (S1103).
On the other hand, when the frame receiving unit 1001 receives an ACK frame without receiving a search frame (last station flag: 1) (NO in S1107, YES in S1110), the received ACK frame is not addressed to the own station. Therefore, the token frame determination unit 1003 resets the reception WDT 1007 and sets the timeout time again (S1111).
 図25は、復列処理の詳細を示すフローチャートである。
 前述のように、フレーム受信部1001がアテンドフレームを受信した場合(S105でYES)に、図25のフローが開始する。
FIG. 25 is a flowchart showing details of the reverse processing.
As described above, when the frame reception unit 1001 receives an attended frame (YES in S105), the flow in FIG. 25 starts.
 まず、アテンドフレーム判定部1052が自局についてアクセプトフレーム送信条件(α)、(β)、(γ)のいずれかが成立するかを判断する(S1061)。
 いずれかのアクセプトフレーム送信条件が成立した場合(S1061でYES)に、アクセプトフレーム生成部1053がアクセプトフレームを生成し、フレーム送信部1002がアクセプトフレームをユニキャストする(S1062)。
 更に、アテンドフレーム判定部1052が、譲渡先局番記憶レジスタ1009のトークン譲渡先の局番をアテンドフレームの送信元局番に書き換える(S1063)。
First, the attended frame determination unit 1052 determines whether any of the accept frame transmission conditions (α), (β), and (γ) is satisfied for the local station (S1061).
If any one of the accept frame transmission conditions is satisfied (YES in S1061), the accept frame generation unit 1053 generates an accept frame, and the frame transmission unit 1002 unicasts the accept frame (S1062).
Furthermore, the attended frame determination unit 1052 rewrites the token transfer destination station number in the transfer destination station number storage register 1009 with the transmission source station number of the attended frame (S1063).
 図26は、故障から復帰した通信装置100の動作例を示すフローチャートである。 FIG. 26 is a flowchart illustrating an operation example of the communication apparatus 100 that has recovered from a failure.
 まず、トークンフレーム生成部1005が、送信WDT1055をリセットし、タイムアウト時間を設定する(S201)。
 そして、送信WDT1055のタイムアウトが発生すると(S202でYES)、アテンドフレーム生成部1051がアテンドフレームを生成し、フレーム送信部1002がアテンドフレームをブロードキャスト送信する(S203)。
 また、アテンドフレーム生成部1051は、送信WDT1055をリセットして、再度、タイムアウト時間を設定する(S204)。
First, the token frame generation unit 1005 resets the transmission WDT 1055 and sets a timeout time (S201).
When the transmission WDT 1055 times out (YES in S202), the attended frame generating unit 1051 generates an attended frame, and the frame transmitting unit 1002 broadcasts the attended frame (S203).
Further, the attended frame generation unit 1051 resets the transmission WDT 1055 and sets a timeout time again (S204).
 タイムアウトが発生する前にフレーム受信部1001がアクセプトフレームを受信し、受信したアクセプトフレームが自局宛てであることをアクセプトフレーム判定部1054が確認した場合は、S101の処理に移行する(S207)。
 これにより、当該通信装置100はトークンパッシングに参加する。
 一方、タイムアウトが発生した場合(S206でYES)は、フレーム送信部1002がアテンドフレームを再送する。
If the frame receiving unit 1001 receives the accept frame before the time-out occurs and the accept frame determining unit 1054 confirms that the received accept frame is addressed to the own station, the process proceeds to S101 (S207).
As a result, the communication apparatus 100 participates in token passing.
On the other hand, when a timeout occurs (YES in S206), the frame transmission unit 1002 retransmits the attended frame.
 このように、本実施の形態によれば、解列及び復列の処理を各通信装置に分散させることで、従来の1台の通信装置での集中的なリスト管理を不要にし、トークンパッシング通信と解列処理及び復列処理をASICまたはFPGAで経済的に実現できるようになる。 As described above, according to the present embodiment, the discontinuation and return processing are distributed to each communication device, thereby eliminating the need for intensive list management in one conventional communication device, and token passing communication. In addition, it is possible to economically realize the disassembling process and the returning process by ASIC or FPGA.
 実施の形態2.
 1つのネットワーク内でトークン巡回路が複数ある場合でも、実施の形態1で説明した解列手法及び復列手法が有効である。
 トークン巡回路が複数ある状況とは、例えば図21のように通信装置101、102、103、104、105、106が同一ネットワークに接続され、通信装置101、102、103が1つの閉じたトークン巡回路を形成し、一方で、通信装置104、105、106が別の閉じたトークン巡回路を形成するといった状況である。
Embodiment 2. FIG.
Even when there are a plurality of token loops in one network, the disassembling method and the returning method described in the first embodiment are effective.
For example, as shown in FIG. 21, the communication devices 101, 102, 103, 104, 105, and 106 are connected to the same network, and the communication devices 101, 102, and 103 have one closed token circulation. A situation where the communication devices 104, 105, 106 form another closed token circuit.
 トークン巡回路が複数混在する場合は、トークンフレームにはグループ番号領域が存在し、閉じたトークン巡回路それぞれに異なるグループ番号が割り振られる(図21)。
 各通信装置100はトークンフレームを受信するとグループ番号を参照し、参照したグループ番号が自局が属するグループのグループ番号と異なる場合に、受信したトークンフレームを破棄する。
 これにより、他のグループからトークンフレームを受信してもデータ送信権を得ないようにしている。
When a plurality of token circuits are mixed, a group number area exists in the token frame, and a different group number is assigned to each closed token circuit (FIG. 21).
Each communication apparatus 100 refers to the group number when receiving the token frame, and discards the received token frame when the referred group number is different from the group number of the group to which the own station belongs.
This prevents data transmission rights from being obtained even if a token frame is received from another group.
 このようなネットワークでも、解列及び復列の処理においてフレーム(サーチフレーム、ACKフレーム、アテンドフレーム、アクセプトフレーム)のグループ番号も参照することで、1つの閉じたトークン巡回路内だけで解列及び復列が可能である。 Even in such a network, by referring to a group number of a frame (search frame, ACK frame, attended frame, and accept frame) in the process of de-sequence and re-sequence, the de-sequence and the sequence can be performed only in one closed token circuit. Returning is possible.
 以上、実施の形態1及び2では、
 1個以上のポートを持つ通信装置が複数台、全二重の通信回線で接続されており、
 トークンフレームがネットワークを常に周回しており、トークンフレームを取り込んだ通信装置がデータ送信権を獲得し、データをトークンフレームに含ませて他の通信装置に送信するトークンパッシング方式をデータ交信の手段として採用しているネットワークを説明した。
As described above, in the first and second embodiments,
Multiple communication devices with one or more ports are connected via a full-duplex communication line.
As a means of data communication, a token passing system in which a token frame circulates around the network at all times, a communication device that captures the token frame acquires the right to transmit data, includes data in the token frame, and transmits it to other communication devices. Explained the adopted network.
 そして、実施の形態1及び2では、
 各通信装置が、
 他局から送信されるトークンフレームを受信するフレーム受信部と、
 他局からのトークンフレームに格納された譲渡先局番を読み出し、自局番記憶レジスタの値と比較するトークンフレーム判定部と、
 受信したトークンフレームの送信データを記憶する受信データメモリと、
 自局から送信するトークンフレームに格納する送信データを記憶する送信データメモリと、
 自局番を記憶する自局番記憶レジスタと、
 データ送信権の譲渡先局番を記憶する譲渡先局番記憶レジスタと、
 トークンフレーム判定部からの指示を受け、自局から送信するトークンフレームを生成するトークンフレーム生成部と、
 トークンフレーム生成部から転送されたトークンフレームを他局へ送信するフレーム送信部と、
 トークンフレームを受信するとリセットされるウォッチドッグタイマである受信ウォッチドッグタイマと、
 受信ウォッチドッグタイマがタイムアウトすると、サーチフレームを生成するサーチフレーム生成部と、
 受信したフレームがサーチフレームか否か判定するサーチフレーム判定部と、
 サーチフレーム受信かつ受信ウォッチドッグタイマのタイムアウトの条件で、ACKフレームを生成するACKフレーム生成部と、
 受信したACKフレームが自局宛か判定するACKフレーム判定部と、
 譲渡先局番記憶レジスタの初期設定値を保持する解列前譲渡先局番記憶レジスタと、
を備えることを説明した。
In the first and second embodiments,
Each communication device
A frame receiver for receiving a token frame transmitted from another station;
A token frame determination unit that reads out the transfer destination station number stored in the token frame from another station and compares it with the value of the own station number storage register;
A reception data memory for storing transmission data of the received token frame;
A transmission data memory for storing transmission data stored in a token frame transmitted from the own station;
A local station number storage register for storing the local station number;
A transfer destination station number storage register for storing the transfer destination station number of the data transmission right;
In response to an instruction from the token frame determination unit, a token frame generation unit that generates a token frame to be transmitted from the own station;
A frame transmission unit for transmitting the token frame transferred from the token frame generation unit to another station;
A reception watchdog timer that is a watchdog timer that is reset when a token frame is received;
When the reception watchdog timer times out, a search frame generation unit that generates a search frame;
A search frame determination unit that determines whether the received frame is a search frame;
An ACK frame generation unit that generates an ACK frame under the search frame reception and reception watchdog timer timeout conditions;
An ACK frame determination unit for determining whether the received ACK frame is addressed to the own station;
Pre-release transfer destination station number storage register holding the initial setting value of the transfer destination station number storage register;
We explained that we have.
 また、実施の形態1及び2では、
 各通信装置が、
 自局がトークンフレームを送信するとリセットされるウォッチドッグタイマである送信ウォッチドッグタイマと、
 送信ウォッチドッグタイマがタイムアウトすると、アテンドフレームを生成するアテンドフレーム生成部と、
 受信したフレームがアテンドフレームか否か判定するアテンドフレーム判定部と、
 アテンドフレーム受信時、現在の譲渡先局番が解列前の譲渡先局番と一致せず、かつ自局番より受信したアテンドフレームの送信元局番の方が大きく、かつ受信したアテンドフレームの送信元局番より現在の譲渡先局番の方が大きい場合に、アクセプトフレームを生成するアクセプトフレーム生成部と、
 受信したアクセプトフレームが自局宛か判定するアクセプトフレーム判定部と、
を備えることを説明した。
In the first and second embodiments,
Each communication device
A transmission watchdog timer, which is a watchdog timer that is reset when the local station transmits a token frame,
When the transmission watchdog timer times out, an attended frame generator that generates an attended frame,
An attended frame determination unit that determines whether the received frame is an attended frame;
When the attendee frame is received, the current transfer destination station number does not match the transfer destination station number before the release, the transmission source station number of the attended frame received from the own station number is larger, and the transmission source station number of the received attendance frame An accept frame generation unit that generates an accept frame when the current transfer destination station number is larger;
An accept frame determination unit for determining whether the received accept frame is addressed to the own station;
We explained that we have.
 また、実施の形態1及び2では、
 各通信装置は、受信ウォッチドッグタイマがタイムアウトすると、サーチフレームをブロードキャストし、
 サーチフレームをブロードキャストした通信装置よりも局番が大きく、かつ受信ウォッチドッグタイマが最初にタイムアウトした通信装置は、サーチフレームを受信し、サーチフレームをブロードキャストした通信装置宛てにACKフレームを送信することで、以降、不具合の通信装置をデータ送信権の譲渡先から除外することを説明した。
In the first and second embodiments,
Each communication device broadcasts a search frame when the reception watchdog timer times out,
A communication device whose station number is larger than the communication device that broadcasts the search frame and the reception watchdog timer timed out first, receives the search frame, and transmits an ACK frame to the communication device that broadcasts the search frame. Hereinafter, it has been described that the defective communication device is excluded from the transfer destination of the data transmission right.
 また、実施の形態1及び2では、
 各通信装置は、不具合から復帰すると、送信ウォッチドッグタイマをリセットし、送信ウォッチドッグタイマがタイムアウトすると、アテンドフレームをブロードキャストし、
 現在のトークン譲渡先局番が解列前のトークン譲渡先局番と一致せず、かつ自局番よりもアテンドフレームをブロードキャストした通信装置の局番の方が大きく、かつアテンドフレームをブロードキャストした通信装置の局番よりも自通信装置のトークン譲渡先局番の方が大きいという条件を満たす通信装置は、アテンドフレームを受信し、アテンドフレームをブロードキャストした通信装置宛てにアクセプトフレームを送信することで、以降、トークン譲渡先を不具合から復帰した通信装置に変更することを説明した。
In the first and second embodiments,
Each communication device resets the transmission watchdog timer when it recovers from the failure, broadcasts an attended frame when the transmission watchdog timer times out,
The current token transfer destination station number does not match the token transfer destination station number before the release, the station number of the communication device that broadcasts the attended frame is larger than the own station number, and the station number of the communication device that broadcasts the attended frame The communication device that satisfies the condition that the token transfer destination station number of its own communication device is larger receives the attend frame and sends an accept frame to the communication device that broadcasts the attend frame. Explained changing to a communication device that has recovered from a problem.
 最後に、実施の形態1及び2に示した通信装置100のハードウェア構成例を図27を参照して説明する。
 通信装置100のハードウェア構成としては、バスに、演算装置901、外部記憶装置902、主記憶装置903、通信装置904、入出力装置905が接続されている。
Finally, a hardware configuration example of the communication apparatus 100 shown in the first and second embodiments will be described with reference to FIG.
As a hardware configuration of the communication device 100, an arithmetic device 901, an external storage device 902, a main storage device 903, a communication device 904, and an input / output device 905 are connected to the bus.
 演算装置901は、例えば、ASICまたはFPGAである。
 また、演算装置901を、CPUとすることもできる。
 外部記憶装置902は、例えばROM(Read Only Memory)やフラッシュメモリ、ハードディスク装置である。
 主記憶装置903は、RAM(Random Access Memory)やレジスタであり、受信データメモリ1004、送信データメモリ1006、自局番記憶レジスタ1008、譲渡先局番記憶レジスタ1009、解列前譲渡先局番記憶レジスタ1010に対応する。
 通信装置904は、フレーム受信部1001及びフレーム送信部1002の物理層に対応する。
 入出力装置905は、例えばマウス、キーボード、ディスプレイ装置等である。
The arithmetic device 901 is, for example, an ASIC or FPGA.
Further, the arithmetic device 901 can be a CPU.
The external storage device 902 is, for example, a ROM (Read Only Memory), a flash memory, or a hard disk device.
The main storage device 903 is a RAM (Random Access Memory) or a register. Correspond.
The communication device 904 corresponds to the physical layer of the frame reception unit 1001 and the frame transmission unit 1002.
The input / output device 905 is, for example, a mouse, a keyboard, a display device, or the like.
 図1及び図13の「~部」は、例えばASICまたはFPGAの回路及び配線により実現される。
 また、演算装置901がCPUの場合は、図1及び図13の「~部」はプログラムであり、CPUがこれらプログラムを実行して「~部」の機能を実現する。
 プログラムは、通常は外部記憶装置902に記憶されており、主記憶装置903にロードされた状態で、順次演算装置901に読み込まれ、実行される。
 また、実施の形態1及び2の説明において、「~の判断」、「~の判定」、「~の抽出」、「~の検知」、「~の設定」、「~の登録」、「~の選択」、「~の更新」、「~の生成」、「~の入力」、「~の出力」等として説明している処理の結果を示す情報やデータや信号値や変数値が主記憶装置903にファイルとして記憶されている。
 また、暗号鍵・復号鍵や乱数値やパラメータが、主記憶装置903にファイルとして記憶されてもよい。
1 to 13 is realized by, for example, an ASIC or FPGA circuit and wiring.
When the arithmetic unit 901 is a CPU, “˜unit” in FIGS. 1 and 13 is a program, and the CPU executes these programs to realize the function of “˜unit”.
The program is normally stored in the external storage device 902, and is loaded into the main storage device 903 and sequentially read into the arithmetic device 901 and executed.
In the description of the first and second embodiments, “determining”, “determining”, “extracting”, “detecting”, “setting of”, “registering”, “ Information, data, signal values, and variable values that indicate the results of the processing described as “selection of”, “update of”, “generation of”, “input of”, “output of”, etc. It is stored as a file in the device 903.
Further, the encryption key / decryption key, random number value, and parameter may be stored in the main storage device 903 as a file.
 なお、図27の構成は、あくまでも通信装置100のハードウェア構成の一例を示すものであり、通信装置100のハードウェア構成は図27に記載の構成に限らず、他の構成であってもよい。 The configuration in FIG. 27 is merely an example of the hardware configuration of the communication apparatus 100, and the hardware configuration of the communication apparatus 100 is not limited to the configuration illustrated in FIG. 27, and may be another configuration. .
 また、実施の形態1及び2に示す通信装置100の処理手順を、通信方法として捉えることもできる。 Also, the processing procedure of the communication device 100 shown in the first and second embodiments can be regarded as a communication method.
 100 通信装置、101 通信装置、102 通信装置、103 通信装置、104 通信装置、105 通信装置、106 通信装置、1001 フレーム受信部、1002 フレーム送信部、1003 トークンフレーム判定部、1004 受信データメモリ、1005 トークンフレーム生成部、1006 送信データメモリ、1007 受信WDT、1008 自局番記憶レジスタ、1009 譲渡先局番記憶レジスタ、1010 解列前譲渡先局番記憶レジスタ、1011 サーチフレーム生成部、1012 サーチフレーム判定部、1013 ACKフレーム生成部、1014 ACKフレーム判定部、1051 アテンドフレーム生成部、1052 アテンドフレーム判定部、1053 アクセプトフレーム生成部、1054 アクセプトフレーム判定部、1055 送信WDT。 100 communication device, 101 communication device, 102 communication device, 103 communication device, 104 communication device, 105 communication device, 106 communication device, 1001 frame reception unit, 1002 frame transmission unit, 1003 token frame determination unit, 1004 received data memory, 1005 Token frame generation unit, 1006 transmission data memory, 1007 reception WDT, 1008 own station number storage register, 1009 transfer destination station number storage register, 1010 transfer destination station number storage register before release, 1011 search frame generation unit, 1012 search frame determination unit, 1013 ACK frame generation unit, 1014 ACK frame determination unit, 1051 attended frame generation unit, 1052 attended frame determination unit, 1053 accept frame generation unit, 10 4 accept frame determination unit, 1055 transmission WDT.

Claims (16)

  1.  装置番号が各々に設定されている複数の通信装置が含まれ、前記複数の通信装置の間でトークンパッシングが行われる通信システムであって、
     各通信装置は、
     計時を行うタイマを有し、
     他の通信装置からブロードキャスト送信された、当該他の通信装置の装置番号と、当該他の通信装置がトークンを譲渡する通信装置の装置番号とを通知するトークンフレームを受信し、
     トークンフレームを受信する度に、前記タイマをリセットし、前記複数の通信装置の間でトークンが一巡するのに要する時間よりも大きな時間であって受信したトークンフレームの送信元の通信装置の装置番号と自装置の装置番号との番号差に比例する時間であるタイムアウト時間を前記タイマに設定し、前記タイマの計時を開始させ、
     トークンの譲渡先の通信装置が正常に動作していないことを検知した検知通信装置からブロードキャスト送信されたサーチフレームを受信し、
     前記複数の通信装置の中で、
     前記サーチフレームを受信した後にタイムアウト時間の経過によるタイムアウトが最も早く発生した通信装置が、
     前記サーチフレームに対する応答として、当該通信装置の装置番号を通知する番号通知フレームを生成し、
     生成した番号通知フレームを前記検知通信装置に送信することを特徴とする通信システム。
    A communication system including a plurality of communication devices each having a device number set therein, wherein token passing is performed between the plurality of communication devices,
    Each communication device
    Have a timer to keep time,
    Receiving a token frame broadcast from another communication device and notifying the device number of the other communication device and the device number of the communication device to which the other communication device assigns a token;
    Each time a token frame is received, the timer is reset, and the device number of the communication device that is the transmission source of the received token frame that is longer than the time required for the token to make a round among the plurality of communication devices Set a time-out time, which is a time proportional to the difference between the device number and the device number of the own device, to the timer, and start counting the timer,
    Receiving a search frame broadcast-transmitted from a detected communication device that has detected that the communication device to which the token is transferred is not operating normally;
    Among the plurality of communication devices,
    A communication device in which a timeout due to the elapse of a timeout time has occurred after receiving the search frame,
    As a response to the search frame, generate a number notification frame that notifies the device number of the communication device,
    A communication system, wherein the generated number notification frame is transmitted to the detection communication device.
  2.  前記通信システムは、
     装置番号の昇順及び降順のいずれかがトークン巡回順序として指定され、前記トークン巡回順序に従って前記複数の通信装置の間でトークンパッシングが行われる通信システムであり、
     各通信装置は、
     前記通信システム内で正常に動作している正常通信装置群の装置番号の中で前記トークン巡回順序において自装置の装置番号の次にあたる装置番号をトークン譲渡先装置番号として記憶する譲渡先装置番号記憶部を有し、
     前記トークン譲渡先装置番号が設定されている通信装置がトークンの譲渡先であることを通知するトークンフレームを生成し、生成したトークンフレームをブロードキャスト送信し、
     トークンの譲渡先であるトークン譲渡先通信装置が正常に動作していない場合に、前記トークン譲渡先通信装置を除いた新たな正常通信装置群の装置番号の中で前記トークン巡回順序において自装置の装置番号の次にあたる装置番号の通知を要求するサーチフレームを生成し、生成したサーチフレームをブロードキャスト送信し、
     前記新たな正常通信装置群の装置番号の中で前記トークン巡回順序において自装置の装置番号の次にあたる装置番号が設定されている通信装置から前記サーチフレームに対する応答として送信された、当該通信装置の装置番号を通知する番号通知フレームを受信し、
     前記番号通知フレームで通知された装置番号を新たなトークン譲渡先装置番号として前記譲渡先装置番号記憶部に書込み、
     前記新たなトークン譲渡先装置番号が前記譲渡先装置番号記憶部に書き込まれた後は、前記新たなトークン譲渡先装置番号が設定されている通信装置がトークンの譲渡先であることを通知するトークンフレームを生成し、生成したトークンフレームをブロードキャスト送信することを特徴とする請求項1に記載の通信システム。
    The communication system is:
    Either ascending order or descending order of device numbers is designated as a token circulation order, and a token communication is performed between the plurality of communication devices according to the token circulation order,
    Each communication device
    A transfer destination device number storage that stores, as a token transfer destination device number, a device number next to the device number of its own device in the token circulation order among the device numbers of normal communication device groups operating normally in the communication system Part
    Generating a token frame for notifying that the communication device in which the token transfer destination device number is set is a token transfer destination, and broadcasting the generated token frame;
    When the token transfer destination communication device that is the token transfer destination is not operating normally, the token transfer destination communication device is excluded from the device numbers of the new normal communication device group excluding the token transfer destination communication device. Generate a search frame for requesting notification of the device number next to the device number, broadcast the generated search frame,
    Among the device numbers of the new normal communication device group, the communication device that has been transmitted as a response to the search frame from a communication device in which a device number that is next to the device number of its own device in the token circulation order is set. Receive a number notification frame to notify the device number,
    Write the device number notified in the number notification frame to the transfer destination device number storage unit as a new token transfer destination device number,
    After the new token transfer destination device number is written in the transfer destination device number storage unit, a token for notifying that the communication device in which the new token transfer destination device number is set is the token transfer destination The communication system according to claim 1, wherein a frame is generated, and the generated token frame is broadcast.
  3.  装置番号が各々に設定されている複数の通信装置が含まれ、装置番号の昇順及び降順のいずれかがトークン巡回順序として指定され、前記トークン巡回順序に従って前記複数の通信装置の間でトークンパッシングが行われる通信システムであって、
     各通信装置は、
     前記通信システム内で正常に動作している正常通信装置群の装置番号の中で前記トークン巡回順序において自装置の装置番号の次にあたる装置番号をトークン譲渡先装置番号として記憶する譲渡先装置番号記憶部を有し、
     前記トークン譲渡先装置番号が設定されている通信装置がトークンの譲渡先であることを通知するトークンフレームを生成し、生成したトークンフレームをブロードキャスト送信し、
     前記通信システムに含まれるが前記トークンパッシングに加入していない未加入通信装置からブロードキャスト送信された、前記未加入通信装置の装置番号が通知されるアテンドフレームを受信し、
     前記アテンドフレームを受信した場合に、前記正常通信装置群の装置番号の中で自装置の装置番号が前記トークン巡回順序において最後尾にあたるか否かを判断し、自装置の装置番号が最後尾にあたらない場合に、前記未加入通信装置の装置番号が自装置の装置番号と前記トークン譲渡先装置番号との間の装置番号であるか否かを判断し、前記未加入通信装置の装置番号が自装置の装置番号と前記トークン譲渡先装置番号との間の装置番号である場合に、前記未加入通信装置の装置番号を新たなトークン譲渡先装置番号として前記譲渡先装置番号記憶部に書き込み、
     前記新たなトークン譲渡先装置番号が前記譲渡先装置番号記憶部に書き込まれた後は、前記新たなトークン譲渡先装置番号が設定されている通信装置がトークンの譲渡先であることを通知するトークンフレームを生成し、生成したトークンフレームをブロードキャスト送信することを特徴とする通信システム。
    A plurality of communication devices each including a device number are included, and either ascending order or descending order of device numbers is designated as a token circulation order, and token passing is performed between the plurality of communication devices according to the token circulation order. A communication system to be performed,
    Each communication device
    A transfer destination device number storage that stores, as a token transfer destination device number, a device number next to the device number of its own device in the token circulation order among the device numbers of normal communication device groups operating normally in the communication system Part
    Generating a token frame for notifying that the communication device in which the token transfer destination device number is set is a token transfer destination, and broadcasting the generated token frame;
    Receiving an attended frame that is broadcast from an unsubscribed communication device that is included in the communication system but has not subscribed to the token passing, in which the device number of the unsubscribed communication device is notified;
    When the attended frame is received, it is determined whether the device number of the own device is the last in the token circulation order among the device numbers of the normal communication device group, and the device number of the own device is the last. If not, it is determined whether the device number of the unsubscribed communication device is a device number between the device number of the own device and the token transfer destination device number, and the device number of the unsubscribed communication device is When it is a device number between the device number of its own device and the token transfer destination device number, the device number of the unsubscribed communication device is written in the transfer destination device number storage unit as a new token transfer destination device number,
    After the new token transfer destination device number is written in the transfer destination device number storage unit, a token for notifying that the communication device in which the new token transfer destination device number is set is the token transfer destination A communication system that generates a frame and broadcasts the generated token frame.
  4.  各通信装置は、
     前記正常通信装置群の装置番号の中で自装置の装置番号が前記トークン巡回順序において最後尾にあたる場合に、
     前記未加入通信装置の装置番号が自装置の装置番号よりも前記トークン巡回順序において後の順番の装置番号である場合、及び、前記未加入通信装置の装置番号が前記トークン譲渡先装置番号よりも前記トークン巡回順序において前の順番の装置番号である場合の少なくともいずれかにおいて、前記未加入通信装置の装置番号を新たなトークン譲渡先装置番号として前記譲渡先装置番号記憶部に書き込むことを特徴とする請求項3に記載の通信システム。
    Each communication device
    When the device number of the own device is the last in the token circulation order among the device numbers of the normal communication device group,
    When the device number of the unsubscribed communication device is a device number that is later in the token circulation order than the device number of the own device, and the device number of the unsubscribed communication device is more than the token transfer destination device number The device number of the unsubscribed communication device is written in the transfer destination device number storage unit as a new token transfer destination device number in at least one of the case where the device number is the previous device number in the token circulation order, The communication system according to claim 3.
  5.  装置番号が各々に設定されている複数の通信装置が含まれ、前記複数の通信装置の間でトークンパッシングが行われる通信システム、に含まれる通信装置であって、
     計時を行うタイマ部と、
     他の通信装置からブロードキャスト送信された、当該他の通信装置の装置番号と、当該他の通信装置がトークンを譲渡する通信装置の装置番号とを通知するトークンフレームを受信するトークンフレーム受信部と、
     前記トークンフレーム受信部によりトークンフレームが受信される度に、前記タイマ部をリセットし、前記複数の通信装置の間でトークンが一巡するのに要する時間よりも大きな時間であって前記トークンフレーム受信部により受信されたトークンフレームの送信元の通信装置の装置番号と自装置の装置番号との番号差に比例する時間であるタイムアウト時間を前記タイマ部に設定し、前記タイマ部の計時を開始させるタイマ制御部と、
     トークンの譲渡先の通信装置が正常に動作していないことを検知した検知通信装置からブロードキャスト送信されたサーチフレームを受信するサーチフレーム受信部と、
     前記サーチフレーム受信部によりサーチフレームが受信された後、前記タイマ部において前記タイムアウト時間の経過によるタイムアウトが発生した際に、前記サーチフレームに対する応答として、自装置の装置番号を通知する番号通知フレームを生成する番号通知フレーム生成部と、
     前記番号通知フレーム生成部により生成された番号通知フレームを前記検知通信装置に送信する番号通知フレーム送信部とを有することを特徴とする通信装置。
    A communication device included in a communication system including a plurality of communication devices each having a device number set therein and performing token passing between the plurality of communication devices,
    A timer unit for timing,
    A token frame receiving unit that receives a token frame that is broadcast from another communication device and notifies the device number of the other communication device and the device number of the communication device to which the other communication device assigns a token;
    Each time a token frame is received by the token frame receiving unit, the timer unit is reset, and the token frame receiving unit is longer than a time required for a token to make a round among the plurality of communication devices. A timer that sets a timeout time in the timer unit that is proportional to the number difference between the device number of the communication device that is the transmission source of the token frame received by the device and the device number of the own device, and starts the time measurement of the timer unit A control unit;
    A search frame receiving unit that receives a search frame broadcast-transmitted from a detection communication device that has detected that the communication device to which the token is transferred is not operating normally;
    After a search frame is received by the search frame receiving unit, when a time-out occurs due to the elapse of the time-out time in the timer unit, a number notification frame for notifying the device number of its own device as a response to the search frame A number notification frame generation unit to generate,
    A communication apparatus, comprising: a number notification frame transmission unit that transmits the number notification frame generated by the number notification frame generation unit to the detection communication device.
  6.  前記タイマ制御部は、
     前記トークンフレーム受信部により受信されたトークンフレームの送信元の通信装置の装置番号と自装置の装置番号との番号差が小さいほど短いタイムアウト時間を前記タイマ部に設定することを特徴とする請求項5に記載の通信装置。
    The timer control unit
    The shorter timeout time is set in the timer unit as a difference between a device number of a communication device that is a transmission source of the token frame received by the token frame receiving unit and a device number of the own device is smaller. 5. The communication device according to 5.
  7.  前記通信装置は、
     装置番号の昇順及び降順のいずれかがトークン巡回順序として指定され、前記トークン巡回順序に従って前記複数の通信装置の間でトークンパッシングが行われる通信システムに含まれ、
     前記サーチフレーム受信部は、
     前記検知通信装置の装置番号が示されるサーチフレームを受信し、
     前記タイマ制御部は、
     前記サーチフレーム受信部によりサーチフレームが受信された場合に、前記サーチフレームに示される前記検知通信装置の装置番号が自装置の装置番号よりも前記トークン巡回順序において前の順番の装置番号であるか後の順番の装置番号であるかを判断し、
     前記検知通信装置の装置番号が自装置の装置番号よりも後の順番の装置番号である場合に、前記タイマ部をリセットし、
     前記検知通信装置の装置番号が自装置の装置番号よりも前の順番の装置番号である場合に、前記タイマ部をリセットせずに、前記タイマ部に計時を継続させることを特徴とする請求項5又は6に記載の通信装置。
    The communication device
    Either ascending order or descending order of apparatus numbers is designated as a token circulation order, and included in a communication system in which token passing is performed between the plurality of communication apparatuses according to the token circulation order,
    The search frame receiver
    Receiving a search frame indicating a device number of the detection communication device;
    The timer control unit
    When a search frame is received by the search frame receiving unit, whether the device number of the detection communication device indicated in the search frame is the device number of the previous order in the token circulation order than the device number of the own device Judge whether it is the device number of the later order,
    When the device number of the detection communication device is a device number in an order later than the device number of its own device, the timer unit is reset,
    The device according to claim 1, wherein when the device number of the detection communication device is a device number in an order prior to the device number of its own device, the timer unit keeps timing without resetting the timer unit. The communication device according to 5 or 6.
  8.  前記サーチフレーム受信部は、
     前記検知通信装置が前記サーチフレームに対していずれの通信装置からも番号通知フレームを受信しなかった場合に、前記検知通信装置からブロードキャスト送信された、前記通信システム内で正常に動作している正常通信装置群の装置番号の中で前記検知通信装置の装置番号が前記トークン巡回順序において最後尾にあたることを通知する最後尾通知フレームを受信し、
     前記タイマ制御部は、
     前記サーチフレーム受信部により最後尾通知フレームが受信された場合に、前記タイマ部をリセットし、自装置の装置番号に対応させた時間を応答待機時間として前記タイマ部に設定し、前記タイマ部の計時を開始させ、
     前記番号通知フレーム生成部は、
     前記タイマ部において前記応答待機時間の経過によるタイムアウトが発生した際に、前記最後尾通知フレームに対する応答として、自装置の装置番号を通知する番号通知フレームを生成し、
     前記番号通知フレーム送信部は、
     前記番号通知フレーム生成部により生成された前記最後尾通知フレームに対する番号通知フレームを前記検知通信装置に送信することを特徴とする請求項7に記載の通信装置。
    The search frame receiver
    When the detection communication device does not receive a number notification frame from any communication device in response to the search frame, the normal transmission that is broadcast from the detection communication device and operates normally in the communication system Receiving a tail notification frame for notifying that the device number of the detection communication device is the tail in the token circulation order among the device numbers of the communication device group;
    The timer control unit
    When the last notification frame is received by the search frame reception unit, the timer unit is reset, and a time corresponding to the device number of the own device is set in the timer unit as a response waiting time. Start timing,
    The number notification frame generation unit includes:
    When a timeout occurs due to the elapse of the response waiting time in the timer unit, a number notification frame for notifying the device number of the own device is generated as a response to the last notification frame,
    The number notification frame transmission unit includes:
    The communication device according to claim 7, wherein a number notification frame for the tail notification frame generated by the number notification frame generation unit is transmitted to the detection communication device.
  9.  前記タイマ制御部は、
     自装置の装置番号が前記トークン巡回順序において先頭の装置番号に近いほど短い応答待機時間を前記タイマ部に設定することを特徴とする請求項8に記載の通信装置。
    The timer control unit
    9. The communication apparatus according to claim 8, wherein a shorter response waiting time is set in the timer unit as the apparatus number of the own apparatus is closer to the first apparatus number in the token circulation order.
  10.  装置番号が各々に設定されている複数の通信装置が含まれ、装置番号の昇順及び降順のいずれかがトークン巡回順序として指定され、前記トークン巡回順序に従って前記複数の通信装置の間でトークンパッシングが行われる通信システム、に含まれる通信装置であって、
     前記通信システム内で正常に動作している正常通信装置群の装置番号の中で前記トークン巡回順序において自装置の装置番号の次にあたる装置番号をトークン譲渡先装置番号として記憶する譲渡先装置番号記憶部と、
     前記トークン譲渡先装置番号が設定されている通信装置がトークンの譲渡先であることを通知するトークンフレームを生成するトークンフレーム生成部と、
     前記トークンフレーム生成部により生成されたトークンフレームをブロードキャスト送信するトークンフレーム送信部と、
     トークンの譲渡先であるトークン譲渡先通信装置が正常に動作していない場合に、前記トークン譲渡先通信装置を除いた新たな正常通信装置群の装置番号の中で前記トークン巡回順序において自装置の装置番号の次にあたる装置番号の通知を要求するサーチフレームを生成するサーチフレーム生成部と、
     前記サーチフレーム生成部により生成されたサーチフレームをブロードキャスト送信するサーチフレーム送信部と、
     前記新たな正常通信装置群の装置番号の中で前記トークン巡回順序において自装置の装置番号の次にあたる装置番号が設定されている通信装置から前記サーチフレームに対する応答として送信された、当該通信装置の装置番号を通知する番号通知フレームを受信する番号通知フレーム受信部と、
     前記番号通知フレームで通知された装置番号を新たなトークン譲渡先装置番号として前記譲渡先装置番号記憶部に書き込む譲渡先装置番号更新部とを有し、
     前記トークンフレーム生成部は、
     前記譲渡先装置番号更新部により前記新たなトークン譲渡先装置番号が前記譲渡先装置番号記憶部に書き込まれた後は、前記新たなトークン譲渡先装置番号が設定されている通信装置がトークンの譲渡先であることを通知するトークンフレームを生成することを特徴とする通信装置。
    A plurality of communication devices each including a device number are included, and either ascending order or descending order of device numbers is designated as a token circulation order, and token passing is performed between the plurality of communication devices according to the token circulation order. A communication device included in a communication system to be performed,
    A transfer destination device number storage that stores, as a token transfer destination device number, a device number next to the device number of its own device in the token circulation order among the device numbers of normal communication device groups operating normally in the communication system And
    A token frame generation unit that generates a token frame for notifying that the communication device in which the token transfer destination device number is set is a token transfer destination;
    A token frame transmission unit for broadcasting the token frame generated by the token frame generation unit;
    When the token transfer destination communication device that is the token transfer destination is not operating normally, the token transfer destination communication device is excluded from the device numbers of the new normal communication device group excluding the token transfer destination communication device. A search frame generator for generating a search frame for requesting notification of a device number corresponding to the device number;
    A search frame transmission unit that broadcasts a search frame generated by the search frame generation unit;
    Among the device numbers of the new normal communication device group, the communication device that has been transmitted as a response to the search frame from a communication device in which a device number that is next to the device number of its own device in the token circulation order is set. A number notification frame receiving unit for receiving a number notification frame for notifying a device number;
    A transfer destination device number update unit that writes the device number notified in the number notification frame as a new token transfer destination device number in the transfer destination device number storage unit;
    The token frame generation unit
    After the new token transfer destination device number is written in the transfer destination device number storage unit by the transfer destination device number update unit, the communication device to which the new token transfer destination device number is set transfers tokens. A communication apparatus that generates a token frame notifying that it is ahead.
  11.  前記サーチフレーム生成部は、
     前記番号通知フレーム受信部が、いずれの通信装置からも番号通知フレームを受信しない場合に、前記新たな正常通信装置群の装置番号の中で自装置の装置番号が前記トークン巡回順序において最後尾にあたると判断し、
     前記新たな正常通信装置群の装置番号の中で自装置の装置番号が前記トークン巡回順序において最後尾にあたることを通知する最後尾通知フレームを生成し、
     前記サーチフレーム送信部は、
     前記サーチフレーム生成部により生成された最後尾通知フレームをブロードキャスト送信し、
     前記番号通知フレーム受信部は、
     前記新たな正常通信装置群の装置番号の中で前記トークン巡回順序において先頭にあたる装置番号が設定されている通信装置から前記最後尾通知フレームに対する応答として送信された、当該通信装置の装置番号を通知する番号通知フレームを受信し、
     前記譲渡先装置番号更新部は、
     前記最後尾通知フレームに対する番号通知フレームで通知された装置番号を新たなトークン譲渡先装置番号として前記譲渡先装置番号記憶部に書き込むことを特徴とする請求項10に記載の通信装置。
    The search frame generator is
    When the number notification frame receiving unit does not receive a number notification frame from any communication device, the device number of the own device is the last in the token circulation order among the device numbers of the new normal communication device group. Judging
    Generating a tail notification frame for notifying that the device number of the own device is the tail in the token circulation order among the device numbers of the new normal communication device group;
    The search frame transmission unit
    Broadcast transmission of the last notification frame generated by the search frame generation unit,
    The number notification frame receiving unit,
    The device number of the communication device transmitted as a response to the last notification frame is notified from the communication device in which the device number corresponding to the head in the token circulation order is set among the device numbers of the new normal communication device group Receive the number notification frame to
    The transfer destination device number update unit,
    11. The communication apparatus according to claim 10, wherein the apparatus number notified in the number notification frame for the last notification frame is written in the transfer destination apparatus number storage unit as a new token transfer destination apparatus number.
  12.  前記通信装置は、更に、
     他の通信装置からブロードキャスト送信された、当該他の通信装置の装置番号と、当該他の通信装置がトークンを譲渡する通信装置の装置番号とを通知するトークンフレームを受信するトークンフレーム受信部と、
     計時を行うタイマ部と、
     前記トークンフレーム受信部によりトークンフレームが受信される度に、前記タイマ部をリセットし、前記複数の通信装置の間でトークンが一巡するのに要する時間よりも大きな時間であって前記トークンフレーム受信部により受信されたトークンフレームの送信元の通信装置の装置番号と自装置の装置番号との番号差に比例する時間であるタイムアウト時間を前記タイマ部に設定し、前記タイマ部の計時を開始させるタイマ制御部とを有し、
     前記サーチフレーム生成部は、
     前記タイマ部において前記タイムアウト時間が経過してタイムアウトが発生した際に、前記トークン譲渡先通信装置が正常に動作していないことを検知し、前記サーチフレームを生成することを特徴とする請求項10又は11に記載の通信装置。
    The communication device further includes:
    A token frame receiving unit that receives a token frame that is broadcast from another communication device and notifies the device number of the other communication device and the device number of the communication device to which the other communication device assigns a token;
    A timer unit for timing,
    Each time a token frame is received by the token frame receiving unit, the timer unit is reset, and the token frame receiving unit is longer than a time required for a token to make a round among the plurality of communication devices. A timer that sets a timeout time in the timer unit that is proportional to the number difference between the device number of the communication device that is the transmission source of the token frame received by the device and the device number of the own device, and starts the time measurement of the timer unit A control unit,
    The search frame generator is
    11. The search frame is generated by detecting that the token transfer destination communication apparatus is not operating normally when the timeout occurs after the timeout period elapses in the timer unit. Or the communication apparatus of 11.
  13.  前記タイマ制御部は、
     前記トークンフレーム受信部により受信されたトークンフレームの送信元の通信装置の装置番号と自装置の装置番号との番号差が小さいほど短いタイムアウト時間を前記タイマ部に設定することを特徴とする請求項12に記載の通信装置。
    The timer control unit
    The shorter timeout time is set in the timer unit as a difference between a device number of a communication device that is a transmission source of the token frame received by the token frame receiving unit and a device number of the own device is smaller. 12. The communication device according to 12.
  14.  装置番号が各々に設定されている複数の通信装置が含まれ、装置番号の昇順及び降順のいずれかがトークン巡回順序として指定され、前記トークン巡回順序に従って前記複数の通信装置の間でトークンパッシングが行われる通信システム、に含まれる通信装置であって、
     前記通信システム内で正常に動作している正常通信装置群の装置番号の中で前記トークン巡回順序において自装置の装置番号の次にあたる装置番号をトークン譲渡先装置番号として記憶する譲渡先装置番号記憶部と、
     前記トークン譲渡先装置番号が設定されている通信装置がトークンの譲渡先であることを通知するトークンフレームを生成するトークンフレーム生成部と、
     前記トークンフレーム生成部により生成されたトークンフレームをブロードキャスト送信するトークンフレーム送信部と、
     前記通信システムに含まれるが前記トークンパッシングに加入していない未加入通信装置からブロードキャスト送信された、前記未加入通信装置の装置番号が通知されるアテンドフレームを受信するアテンドフレーム受信部と、
     前記アテンドフレーム受信部によりアテンドフレームが受信された場合に、前記正常通信装置群の装置番号の中で自装置の装置番号が前記トークン巡回順序において最後尾にあたるか否かを判断し、自装置の装置番号が最後尾にあたらない場合に、前記未加入通信装置の装置番号が自装置の装置番号と前記トークン譲渡先装置番号との間の装置番号であるか否かを判断し、前記未加入通信装置の装置番号が自装置の装置番号と前記トークン譲渡先装置番号との間の装置番号である場合に、前記未加入通信装置の装置番号を新たなトークン譲渡先装置番号として前記譲渡先装置番号記憶部に書き込む譲渡先装置番号更新部とを有し、
     前記トークンフレーム生成部は、
     前記譲渡先装置番号更新部により前記新たなトークン譲渡先装置番号が前記譲渡先装置番号記憶部に書き込まれた後は、前記新たなトークン譲渡先装置番号が設定されている通信装置がトークンの譲渡先であることを通知するトークンフレームを生成することを特徴とする通信装置。
    A plurality of communication devices each including a device number are included, and either ascending order or descending order of device numbers is designated as a token circulation order, and token passing is performed between the plurality of communication devices according to the token circulation order. A communication device included in a communication system to be performed,
    A transfer destination device number storage that stores, as a token transfer destination device number, a device number next to the device number of its own device in the token circulation order among the device numbers of normal communication device groups operating normally in the communication system And
    A token frame generation unit that generates a token frame for notifying that the communication device in which the token transfer destination device number is set is a token transfer destination;
    A token frame transmission unit for broadcasting the token frame generated by the token frame generation unit;
    An attended frame reception unit that receives an attended frame that is broadcast from a non-participating communication device that is included in the communication system but has not subscribed to the token passing and that is notified of a device number of the unsubscribed communication device;
    When an attended frame is received by the attended frame receiving unit, it is determined whether the device number of the own device is the last in the token circulation order among the device numbers of the normal communication device group, and If the device number is not at the end, it is determined whether the device number of the unsubscribed communication device is a device number between the device number of the own device and the token transfer destination device number, and When the device number of the communication device is a device number between the device number of the own device and the token transfer destination device number, the transfer destination device is set with the device number of the unsubscribed communication device as a new token transfer destination device number. A transfer destination device number update unit for writing to the number storage unit,
    The token frame generation unit
    After the new token transfer destination device number is written in the transfer destination device number storage unit by the transfer destination device number update unit, the communication device to which the new token transfer destination device number is set transfers tokens. A communication apparatus that generates a token frame notifying that it is ahead.
  15.  前記譲渡先装置番号更新部は、
     前記正常通信装置群の装置番号の中で自装置の装置番号が前記トークン巡回順序において最後尾にあたる場合に、
     前記未加入通信装置の装置番号が自装置の装置番号よりも前記トークン巡回順序において後の順番の装置番号である場合、及び、前記未加入通信装置の装置番号が前記トークン譲渡先装置番号よりも前記トークン巡回順序において前の順番の装置番号である場合の少なくともいずれかにおいて、前記未加入通信装置の装置番号を新たなトークン譲渡先装置番号として前記譲渡先装置番号記憶部に書き込むことを特徴とする請求項14に記載の通信装置。
    The transfer destination device number update unit,
    When the device number of the own device is the last in the token circulation order among the device numbers of the normal communication device group,
    When the device number of the non-participating communication device is a device number subsequent to the device number of the own device in the token circulation order, and the device number of the unsubscribed communication device is more than the token transfer destination device number The device number of the unsubscribed communication device is written in the transfer destination device number storage unit as a new token transfer destination device number in at least one of the case where the device number is the previous device number in the token circulation order, The communication device according to claim 14.
  16.  前記通信装置は、更に、
     前記譲渡先装置番号更新部が、前記未加入通信装置の装置番号を新たなトークン譲渡先装置番号として前記譲渡先装置番号記憶部に書き込む場合に、前記未加入通信装置の前記トークンパッシングへの加入を承認することを通知するアクセプトフレームを生成するアクセプトフレーム生成部と、
     前記アクセプトフレーム生成部により生成されたアクセプトフレームを前記未加入通信装置に送信するアクセプトフレーム送信部とを有することを特徴とする請求項14又は15に記載の通信装置。
    The communication device further includes:
    When the transfer destination device number update unit writes the device number of the unsubscribed communication device as a new token transfer destination device number in the transfer destination device number storage unit, the unsubscribed communication device joins the token passing. An accept frame generation unit for generating an accept frame for notifying that the
    The communication device according to claim 14, further comprising an accept frame transmission unit configured to transmit the accept frame generated by the accept frame generation unit to the non-participating communication device.
PCT/JP2012/076602 2012-10-15 2012-10-15 Communication system and communication device WO2014061076A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/JP2012/076602 WO2014061076A1 (en) 2012-10-15 2012-10-15 Communication system and communication device
TW101146009A TW201415835A (en) 2012-10-15 2012-12-07 Communication system and communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2012/076602 WO2014061076A1 (en) 2012-10-15 2012-10-15 Communication system and communication device

Publications (1)

Publication Number Publication Date
WO2014061076A1 true WO2014061076A1 (en) 2014-04-24

Family

ID=50487666

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/076602 WO2014061076A1 (en) 2012-10-15 2012-10-15 Communication system and communication device

Country Status (2)

Country Link
TW (1) TW201415835A (en)
WO (1) WO2014061076A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015226244A (en) * 2014-05-29 2015-12-14 ファナック株式会社 Control device capable of reducing communication cycle time

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6182548A (en) * 1984-09-28 1986-04-26 Sumitomo Electric Ind Ltd Token sending-out determining method
JPS61224537A (en) * 1985-03-29 1986-10-06 Hitachi Ltd Transmission right managing system of ring network
JPS61253950A (en) * 1985-05-07 1986-11-11 Canon Inc Network control system
JPH01298833A (en) * 1988-05-27 1989-12-01 Fuji Electric Co Ltd Token protection system in token passing transmission
JPH02230840A (en) * 1989-03-03 1990-09-13 Hitachi Ltd Test method for network address
JPH05292104A (en) * 1992-04-13 1993-11-05 Shinko Electric Co Ltd Data communication system empolyoing token passing system
JPH11205365A (en) * 1998-01-16 1999-07-30 Fuji Electric Co Ltd Token passing type data transfer system
JPH11220473A (en) * 1998-02-02 1999-08-10 Mitsubishi Electric Corp Data transmission system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6182548A (en) * 1984-09-28 1986-04-26 Sumitomo Electric Ind Ltd Token sending-out determining method
JPS61224537A (en) * 1985-03-29 1986-10-06 Hitachi Ltd Transmission right managing system of ring network
JPS61253950A (en) * 1985-05-07 1986-11-11 Canon Inc Network control system
JPH01298833A (en) * 1988-05-27 1989-12-01 Fuji Electric Co Ltd Token protection system in token passing transmission
JPH02230840A (en) * 1989-03-03 1990-09-13 Hitachi Ltd Test method for network address
JPH05292104A (en) * 1992-04-13 1993-11-05 Shinko Electric Co Ltd Data communication system empolyoing token passing system
JPH11205365A (en) * 1998-01-16 1999-07-30 Fuji Electric Co Ltd Token passing type data transfer system
JPH11220473A (en) * 1998-02-02 1999-08-10 Mitsubishi Electric Corp Data transmission system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015226244A (en) * 2014-05-29 2015-12-14 ファナック株式会社 Control device capable of reducing communication cycle time
US9674288B2 (en) 2014-05-29 2017-06-06 Fanuc Corporation Controller capable of reducing communication cycle time

Also Published As

Publication number Publication date
TW201415835A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
US7372859B2 (en) Self-checking pair on a braided ring network
TWI572166B (en) Process to operate a communication device
JP2008141525A (en) Two-way communication circuit, two-way communication system and communication method of two-way communication circuit
US9025432B2 (en) Optimization for trill LAN hellos
JP5365234B2 (en) Token error detection / recovery method between terminal devices
WO2014061076A1 (en) Communication system and communication device
US10409666B2 (en) Method and device for generating an output data stream
JP2007251334A (en) Network system and broadcast processing method therefor
JP2016082363A (en) Communication apparatus, information processing apparatus, information processing system, and control method of communication apparatus
JP2008252192A (en) Frame repeating device and communication network system
JP2006319381A (en) Method for transmitting urgent message
JP2009224866A (en) Failure detector, failure detection system and failure detection method of stack configuration, and program
JP2012010216A (en) Interruption system, host device and peripheral device
JP6042549B2 (en) How to run a computer network
US20150281121A1 (en) Transmitter, transmission system, and recording medium
JP6478244B2 (en) Communication interface device
WO2023093065A1 (en) Data transmission method, computing device, and computing system
CN108616375B (en) Method and circuit for transmitting data in specified period based on AS5643 protocol
JP4220430B2 (en) Redundant network control system
JP2018117241A (en) Communication device, master device and communication control method
KR102146729B1 (en) Broadcast output system and method
JP2010183307A (en) Change detection/restoration system of network configuration
JP7122824B2 (en) Network setting device and network setting system
JP2006262117A (en) Switch system and loop transfer method
JP5396870B2 (en) Broadcast communication method between terminal devices

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: 12886524

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12886524

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP