WO2013125027A1 - Communication device, communication method and program - Google Patents

Communication device, communication method and program Download PDF

Info

Publication number
WO2013125027A1
WO2013125027A1 PCT/JP2012/054556 JP2012054556W WO2013125027A1 WO 2013125027 A1 WO2013125027 A1 WO 2013125027A1 JP 2012054556 W JP2012054556 W JP 2012054556W WO 2013125027 A1 WO2013125027 A1 WO 2013125027A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
transmission
frame
failure
size
Prior art date
Application number
PCT/JP2012/054556
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/054556 priority Critical patent/WO2013125027A1/en
Priority to JP2012539098A priority patent/JP5183829B1/en
Priority to CN201280070626.9A priority patent/CN104137487B/en
Priority to TW101121276A priority patent/TWI498697B/en
Publication of WO2013125027A1 publication Critical patent/WO2013125027A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/34Flow control; Congestion control ensuring sequence integrity, e.g. using sequence numbers

Definitions

  • the present invention relates to a technique for transmitting data.
  • data transmission in an FA (Factory Automation) network will be described.
  • a factory line is one that produces products continuously. Therefore, the factory line has a function of automatically manufacturing a product by operating a plurality of devices in cooperation with each other.
  • one control device controller
  • a plurality of machine tools slave
  • the connection between the devices is an Ethernet (registered trademark) -based daisy chain connection, and exchanges information in units of communication frames (hereinafter also simply referred to as “frames”). Communication between non-adjacent nodes is realized by relay.
  • the linked operation of the devices is realized by communication between the controller and the slave.
  • the controller gives a control instruction to a plurality of slaves. More specifically, the controller transmits a control instruction to the slave at the adjacent position, and the slave next to the controller further transfers the control instruction to the adjacent slave. Propagate control instructions.
  • Each slave operates according to instructions from the controller, and returns a control result to the controller. Also in the case of a control result response, the control result response reaches the controller through transfer between slaves.
  • the controller receives the control result from each slave, determines the next instruction, and gives the next instruction to each slave.
  • the controller and slave periodically repeat the above operation.
  • products can be manufactured by automatically operating a plurality of devices in cooperation with each other. In order to control a device with high accuracy, it is necessary to perform control communication between the controller and the slave in a short cycle.
  • the FA network has a function of safely stopping other devices when a device fails (hereinafter referred to as “fault management”).
  • the slave in which the failure has occurred performs failure notification (hereinafter referred to as “failure notification”) to the controller and other slaves.
  • the failure notification frame (failure frame) is also relayed between adjacent nodes in the same manner as the frame for control communication, and reaches the controller and all other slaves. Controllers and slaves that have received the fault frame are safely stopped.
  • the failure notification frame failure frame
  • Controllers and slaves that have received the fault frame are safely stopped.
  • all the devices included in the FA network can be safely stopped.
  • it is necessary to perform control communication in a short cycle and it is necessary to perform failure notification in a short time for failure management.
  • the failure frame is preferentially transmitted by controlling the order of frames to be transmitted according to the priority, thereby realizing failure notification in a short time.
  • a frame relayed by a node is divided into a priority relay frame and a non-priority relay frame, a frame transmitted from the own node is divided into a priority transmission frame and a non-priority transmission frame, and a buffer for each frame (a total of four Buffer), and the node transmits each frame according to the priority order between frames.
  • a priority relay frame, a priority transmission frame, a non-priority relay frame, and a non-priority transmission frame are in descending order of priority.
  • a failure frame relayed by a node is a priority relay frame of Patent Document 1
  • a failure frame transmitted from the node is a priority transmission frame of Patent Document 1
  • these failure frames (priority relay)
  • a failure frame can be transmitted with priority over a control frame, and failure notification in a short time can be realized.
  • Patent Document 1 has the following problems.
  • FIG. 43 is a diagram for explaining a problem in the method of Patent Document 1.
  • FIG. 43 shows, as an example, the transmission / reception status of communication frames in an FA network composed of three nodes.
  • A, B, and C represent control frames transmitted from the node 1
  • E represents a failure frame transmitted from the node 2.
  • a control frame A, a control frame B, and a control frame C are sequentially transmitted.
  • the node 2 receives the control frame from the node 1, stores the received control frame in a predetermined buffer, and transfers the received control frame to the node 3.
  • a failure occurs in the node 2 while the node 2 is transmitting the control frame A to the node 3, and it is necessary to transmit the failure frame E.
  • the node 2 transmits the failure frame E to the node 3 after completing the transmission of the control frame A, and then transmits the control frame B and the control frame C.
  • Patent Document 1 when a failure occurs during transmission of a control frame, the completion of transmission of the control frame being transmitted is waited, and then the failure frame is transmitted. For example, if a failure occurs immediately after starting to transmit a control frame, transmission of the failure frame is delayed by the amount of transmission of one control frame.
  • the present invention has been made in view of these points, and when specific data to be transmitted with priority during transmission of a communication frame is newly generated, the specific data can be transmitted efficiently and quickly.
  • the main object is to enable early transmission of data that has not been transmitted when specific data is generated.
  • the communication device is A data transmission unit that sequentially transmits data to be transmitted in one communication frame from the top;
  • the data type of untransmitted untransmitted data is analyzed at the time of generation of the specific data, and the specific data is A transmission determining unit for determining whether to transmit before the untransmitted data;
  • the transmission determining unit determines to transmit the specific data before the untransmitted data, the specific data is transmitted before the untransmitted data, and the transmission of the specific data is completed
  • An order control unit that controls the transmission order of the specific data and the non-transmitted data so that transmission of the non-transmitted data is started,
  • the data transmitter is When the transmission determining unit determines to transmit the specific data before the untransmitted data, the specific data is transmitted before the untransmitted data based on the transmission order control by the sequence control unit. The transmission after the transmission of the specific data is started from the untransmitted data.
  • FIG. 3 shows an overview of a communication method according to the first embodiment.
  • FIG. 3 shows a configuration example of a communication apparatus according to the first embodiment.
  • FIG. 3 shows a configuration example of a communication frame according to the first embodiment.
  • FIG. 4 is a diagram showing a control frame including failure data according to the first embodiment.
  • FIG. 6 is a diagram showing a failure frame according to the first embodiment.
  • FIG. 3 is a diagram showing an outline of a data restoration method according to the first embodiment.
  • FIG. 3 is a diagram illustrating a configuration example of a transmission frame generation unit according to the first embodiment.
  • FIG. 3 is a diagram illustrating a configuration example of a reception data reconstruction unit according to the first embodiment.
  • FIG. 3 is a flowchart showing an operation example at the time of frame reception according to the first embodiment.
  • FIG. 3 is a flowchart showing an operation example at the time of data generation according to the first embodiment.
  • FIG. 3 is a flowchart showing an operation example at the time of frame transmission according to the first embodiment.
  • FIG. 3 is a flowchart showing an operation example at the time of frame transmission according to the first embodiment.
  • FIG. 3 is a flowchart showing an operation example at the time of frame transmission according to the first embodiment.
  • FIG. 4 is a flowchart showing an operation example of divided frame transmission processing according to the first embodiment.
  • FIG. 6 is a flowchart showing an operation example of failure frame transmission processing according to the first embodiment.
  • FIG. 4 is a diagram illustrating a configuration example of a communication device according to a second embodiment.
  • FIG. 6 is a flowchart showing an operation procedure of the communication apparatus according to the second embodiment.
  • the flowchart figure which shows the process at the time of the header reception state which concerns on Embodiment 2.
  • FIG. The flowchart figure which shows the process at the time of the control reception state which concerns on Embodiment 2.
  • FIG. The flowchart figure which shows the process at the time of the interruption failure reception state which concerns on Embodiment 2.
  • FIG. The flowchart figure which shows the process at the time of the fault reception state which concerns on Embodiment 2.
  • FIG. 1 The flowchart figure which shows the process at the time of the self-device transmission state which concerns on Embodiment 2.
  • FIG. 2 The flowchart figure which shows the process at the time of the own apparatus self-apparatus state and self-apparatus relay state which concerns on Embodiment 2.
  • FIG. 2 The flowchart figure which shows the process at the time of the own apparatus division state which concerns on Embodiment 2.
  • FIG. 2 The flowchart figure which shows the process at the time of the relay transmission state which concerns on Embodiment 2.
  • FIG. 1 The flowchart figure which shows the process at the time of the relay division
  • FIG. 9 is a flowchart showing processing in a relay failure state according to the second embodiment.
  • the flowchart figure which shows the process at the time of the own apparatus fault state which concerns on Embodiment 2.
  • FIG. 9 is a flowchart showing output processing of the external input / output device according to the second embodiment.
  • the flowchart figure which shows the process at the time of the reception standby state which concerns on Embodiment 2.
  • FIG. The figure which shows the state transition at the time of the frame reception which concerns on Embodiment 2.
  • FIG. which shows the state transition at the time of the frame transmission which concerns on Embodiment 2.
  • FIG. FIG. 3 is a diagram illustrating a hardware configuration example of a communication device according to the first and second embodiments.
  • Embodiments 1 and 2 described below an example will be described in which a failure notification time is shortened by interrupting a failure frame in a control frame while keeping the control communication cycle short.
  • the number of communication devices that perform control frame transmission is one on the network at the same time, and the transmission of fault frames is a control frame. It is assumed to be once per communication cycle. In the FA network, the same restriction is often imposed in order to maintain the periodicity of control communication.
  • FIG. 1 shows the transmission / reception status of communication frames in an FA network composed of three communication devices (node 1, node 2, and node 3), as in FIG.
  • A, B, and C represent control frames transmitted from the communication device (node 1).
  • E represents failure data transmitted from the communication device (node 2).
  • the failure data E is data for notifying the occurrence of a failure, and includes the payload portion of the failure frame described with reference to FIG. 43 and a predetermined delimiter.
  • the failure data E is data to be transmitted with priority over the control data in the control frame.
  • a control frame A, a control frame B, and a control frame C are sequentially transmitted from the communication device (node 1).
  • the communication device (node 2) receives the control frame from the communication device (node 1), stores the received control frame in a predetermined buffer, and transfers the received control frame to the communication device (node 3).
  • the communication device (node 2) interrupts transmission of control data (control data A ′), starts transmission of failure data E, and transmits failure data E as part of the control frame A.
  • FIG. FIG. 2 shows a configuration example of the communication apparatus 100 according to the present embodiment.
  • the communication device 100 receives the frame from the communication device 200 and transmits the frame to the communication device 300.
  • the communication device 200 is an example of an external device.
  • the frames transmitted from the communication apparatus 100 to the communication apparatus 300 are a frame received from the communication apparatus 200 and a frame generated by the communication apparatus 100.
  • the communication device 100 inserts the failure data generated by the communication device 100 into the control frame received from the communication device 200, and transmits the control frame from the communication device 200 into which the failure data generated by the communication device 100 is inserted. It may be transmitted to 300.
  • the communication device 100 inserts the failure data received from the communication device 200 into the control frame received from the communication device 200, and transmits the control frame from the communication device 200 into which the failure data received from the communication device 200 is inserted. It may be transmitted to 300. Also, the communication device 100 inserts the failure data received from the communication device 200 into the control frame generated by the communication device 100, and communicates the control frame generated by the communication device 100 into which the failure data received from the communication device 200 is inserted. It may be transmitted to the device 300. Further, the communication device 100 inserts the failure data generated by the communication device 100 into the control frame generated by the communication device 100 and communicates the control frame generated by the communication device 100 into which the failure data generated by the communication device 100 is inserted. It may be transmitted to the device 300. 2 shows a configuration example of the communication device 100, the communication device 200 and the communication device 300 also have the configuration shown in FIG.
  • the control unit 101 controls the operation of each element 102 to 107 described later.
  • the frame receiving unit 102 receives a frame from the communication device 200.
  • the frame receiving unit 102 corresponds to an example of a data receiving unit.
  • the reception data distribution unit 103 transfers the frame received by the frame reception unit 102 to a reception data reconstruction unit 104 and a transmission frame generation unit 106 described later. Also, the reception data distribution unit 103 determines the type of frame received by the frame reception unit 102, and if the frame received by the frame reception unit 102 is a failure frame described later, the transmission frame generation unit 106 described later receives a failure frame. Notify receipt of.
  • the reception data reconstruction unit 104 extracts control data for control communication from the frame received by the frame reception unit 102, and reconstructs the control data. Details of the received data reconstruction unit 104 will be described later.
  • the data generation unit 105 generates a frame (data) to be transmitted from the frame transmission unit 107. If the generated frame is a fault frame, the data generation unit 105 notifies the transmission frame generation unit 106 of the generation of the fault frame.
  • the transmission frame generation unit 106 receives the frame received by the frame reception unit 102 from the reception data distribution unit 103, and also receives the frame generated by the data generation unit 105 and generates a frame to be transmitted from the frame transmission unit 107. .
  • the transmission frame generation unit 106 also includes a failure included in the failure frame when the reception data distribution unit 103 is notified of the reception of the failure frame or when the data generation unit 105 is notified of the generation of the failure frame. A frame is generated so that data is transmitted from the frame transmission unit 107 with priority. Details of the transmission frame generation unit 106 will be described later.
  • the frame transmission unit 107 transmits a frame to the communication device 300. More specifically, the frame transmission unit 107 transmits data to be transmitted in one frame in order from the top.
  • the frame transmission unit 107 corresponds to an example of a data transmission unit.
  • FIG. 3 shows a template for all frames.
  • the frame 1000 includes a frame header 1010 and frame data 1020.
  • the frame header 1010 includes a frame type 1011 and a frame size 1012.
  • the frame type 1011 indicates the type of the frame 1000, and there are three types of the frame 1000: a control frame, a divided frame, and a failure frame.
  • the control frame is a frame including control data.
  • the divided frame is a frame including data (control data, failure data) pushed out from the control frame due to failure data included in the control frame.
  • the failure frame is a frame including failure data.
  • the frame size 1012 is a frame size for detecting completion of reception of the frame 1000.
  • the frame size 1012 shows the data size of the entire frame 1000.
  • the three types of frames have a frame type 1011, a frame size 1012, and frame data 1020 in common.
  • Frame headers 1010 having a frame type 1011 indicating a control frame are referred to as control frame headers 2010 and 3010.
  • a frame header 1010 having a frame type 1011 indicating a divided frame is referred to as a divided frame header 4010, 5010.
  • a frame header 1010 having a frame type 1011 indicating a failure frame is referred to as a failure frame header 6010.
  • the three types of frames have frame data 1020 having different configurations.
  • the components of the frame data 1020 are the control data 2020, the pre-failure division control data 3020, the delimiters 3030 and 5020, the fault data 3040, 5030 and 6020, the post-failure division control data 3050, and the split control pushed out of the frame Data 4020.
  • the control frame includes a control frame 2000 that does not include failure data and a control frame 3000 that includes failure data.
  • a control frame 2000 that does not include failure data 2010 is a control frame header and 2020 is control data.
  • the control frame 2000 that does not include failure data remains the control frame received by the frame receiving unit 102 and the control frame generated by the data generating unit 105.
  • 3010 is a control frame header
  • 3020 is division control data before failure occurrence
  • 3030 is a delimiter for detecting the range of failure data
  • Reference numeral 3040 denotes failure data
  • reference numeral 3050 denotes post-failure division control data.
  • a delimiter 3030 and failure data 3040 are inserted into the control frame received by the frame reception unit 102 and the control frame generated by the data generation unit 105 in the frame transmission unit 107.
  • the control frame header 3010 is the same as the control frame header 2010 of the control frame 2000 that does not include failure data. In other words, the control frame header 3010 has not changed from the control frame header of the control frame before the delimiter 3030 and the failure data 3040 are inserted.
  • the divided frames include a divided frame 4000 that does not include failure data and a divided frame 5000 that includes failure data. Note that the frame transmission unit 107 generates both the divided frame 4000 not including the failure data and the divided frame 5000 including the failure data.
  • 4010 is a divided frame header, and 4020 is divided control data pushed out of the frame.
  • the delimiter 3030 and the failure data 3040 are inserted into the control frame.
  • the division control data 4020 is included.
  • a divided frame 5000 including failure data 5010 is a divided frame header, 5020 is a delimiter, and 5030 is failure data.
  • a new delimiter 3030 and the failure data 3040 are inserted into the control frame including the delimiter 5020 and the failure data 5030 at the end, and the portion ( Delimiter 5020 and failure data 5030).
  • failure frame 6000 6010 is a failure frame header, and 6020 is failure data.
  • the failure frame 6000 is a failure frame received by the frame reception unit 102 and a failure frame generated by the data generation unit 105. It should be noted that no other fault data is inserted into the fault frame 6000.
  • the frame header has a predetermined size
  • the delimiter has a predetermined size
  • the failure data has a predetermined size.
  • the size of the control frame is variable. However, as described above, even when the failure data and the delimiter are inserted into the control frame (FIG. 5), the size of the control frame after the insertion of the failure data and the delimiter is maintained at the original size. For this reason, data corresponding to the data size of the delimiter and the failure data is pushed out, and the pushed-out data is transmitted in divided frames (FIGS. 6 and 7). Further, the frame type, the frame size, and the position of the frame data from the top of the frame are determined in advance.
  • data is exchanged in word units between the communication device 100, the communication device 200, and the communication device 300.
  • One word is the same size as the delimiter.
  • the communication device 100 inserts failure data into the control frame according to the following rules.
  • rule When failure data occurs during transmission of a control frame, and the data type of the data located at the beginning of untransmitted untransmitted data (head untransmitted data) at the time of failure data generation is not a priority type (that is, When the head untransmitted data is control data), the communication apparatus 100 immediately starts transmitting the delimiter and the failure data (that is, the delimiter and the failure data are transmitted prior to the control data that is the head untransmitted data). .
  • the data type of the head untransmitted data is the priority type (that is, when the head untransmitted data is fault data)
  • the communication device 100 completes the transmission of the fault data including the head untransmitted data.
  • “when failure data occurs” includes both when the communication device 100 receives a failure frame from the communication device 200 and when the data generation unit 105 in the communication device 100 generates a failure frame.
  • the control frame being transmitted by the communication apparatus 100 is either a control frame received by the frame reception unit 102 from the communication apparatus 200 or a control frame generated by the data generation unit 105 of the communication apparatus 100.
  • the pushed-out data is transmitted as a divided frame following the control frame.
  • control frame 3000 including the failure data shown in FIG. 5 will be described with reference to FIGS.
  • FIG. 9 shows an example in which failure data is inserted into a control frame 2000a that does not include failure data.
  • the control frame header is represented as “control”, and the control data is represented as “A”.
  • the divided frame header is described as “divided”.
  • the untransmitted head data at the time when the failure data occurs is the control data, so the communication device 100 immediately starts transmitting the failure data E (delimiter and failure data).
  • the failure data E is transmitted as shown in the control frame 3000a.
  • the delimiter and failure data are combined into failure data E. 10 to 12, the failure data E is written, but the failure data E is a combination of a delimiter and failure data as in FIG.
  • the communication device 100 transmits the control data A that has not been transmitted. Since the failure data E is inserted, a part of the untransmitted control data A cannot be included in the control frame 3000a. For this reason, the communication apparatus 100 transmits some control data that could not be included in the control frame 3000a in the divided frame 4000a. As a result, the failure data E, the control data A (1/3) before insertion of the failure data E, and the control data A (2/3) after insertion of the failure data E are transmitted in the same control frame 3000a. The extruded control data A (3/3) is transmitted in the divided frame 4000a.
  • FIG. 10 shows an example in which new failure data E1 is inserted into the control frame 3000b including the failure data E0.
  • a part of the control data A (control data A (3/3)) pushed out from the control frame 3000b because the failure data E0 is inserted is included in the subsequent divided frame 4000b.
  • the communication device 100 since the untransmitted head data at the time when the failure data occurs is the control data A (1/3), the communication device 100 immediately starts transmitting the failure data E1.
  • the transmission of the failure data E1 starts in the middle of the control data A (1/3), and after the transmission of the failure data E1, the communication apparatus 100 determines that the untransmitted part of the control data A (1/3) and the failure Data E0 and control data A after the failure data E0 are transmitted in the control frame 3000c. Since the failure data E1 is inserted, a part of the control data A cannot be included in the control frame 3000c. For this reason, the communication apparatus 100 transmits a part of control data that could not be included in the control frame 3000c in the divided frame 4000c. In addition, after transmitting the divided frame 4000c, the communication device 100 transmits the divided frame 4000b as the divided frame 4000d.
  • the failure data E1 the control data A (1/5) before the failure data E1 is inserted
  • the control data A (2/5) after the failure data E1 is inserted the failure data E0
  • the failure data E0 the failure data E0.
  • the control data A (3/5) after is transmitted in the same control frame 3000c
  • the extruded control data A (4/5) is transmitted in the divided frame 4000c
  • the control data A (5 in the divided frame 4000b is further transmitted.
  • / 5 is transmitted in the divided frame 4000d.
  • FIG. 11 shows an example in which new failure data E1 is inserted into the control frame 3000e including the failure data E0.
  • a part of the control data A (control data A (3/3)) pushed out from the control frame 3000e because the failure data E0 is inserted is included in the subsequent divided frame 4000e.
  • the communication device 100 since the untransmitted head data at the time when the failure data occurs is the control data A (2/3), the communication device 100 immediately starts transmitting the failure data E1.
  • transmission of the failure data E1 starts in the middle of the control data A (2/3), and after the transmission of the failure data E1, the communication apparatus 100 controls the untransmitted portion of the control data A (2/3) as a control frame. Transmit at 3000f.
  • the control frame 3000f also includes control data A (1/5), failure data E0, and control data A (2/5) transmitted before the occurrence of the failure data. Since the failure data E1 is inserted, a part of the control data A (2/3) cannot be included in the control frame 3000f. For this reason, the communication apparatus 100 transmits some control data that could not be included in the control frame 3000f in the divided frame 4000f. In addition, after transmitting the divided frame 4000f, the communication device 100 transmits the divided frame 4000e as the divided frame 4000g. As a result, the control data A (1/5), the failure data E0, the control data A (2/5), the failure data E1, and the control data A (3/5) after insertion of the failure data E1 are the same. The control data A (4/5) transmitted and transmitted in the control frame 3000f is transmitted in the divided frame 4000f, and further, the control data A (5/5) in the divided frame 4000e is transmitted in the divided frame 4000g.
  • FIG. 12 shows an example in which new failure data E1 is inserted into the control frame 3000h including the failure data E0.
  • Part of the control data A (control data A (3/3)) pushed out from the control frame 3000h because the failure data E0 is inserted is included in the subsequent divided frame 4000h.
  • the communication apparatus 100 since the untransmitted head data at the time when the failure data occurs is the failure data E0, the communication apparatus 100 waits for the completion of the transmission of the failure data E0 and starts transmitting the failure data E1.
  • the control frame 3000i also includes control data A (1/5) transmitted before the failure data E0. Since the failure data E1 is inserted, a part of the control data A (2/3) cannot be included in the control frame 3000i.
  • the communication apparatus 100 transmits some control data that could not be included in the control frame 3000i in the divided frame 4000i.
  • the communication device 100 transmits the divided frame 4000h as the divided frame 4000j.
  • the control data A (1/4), the failure data E0, the failure data E1, and the control data A (2/4) after the insertion of the failure data E1 are transmitted and pushed out in the same control frame 3000i.
  • Control data A (3/4) is transmitted in divided frame 4000i
  • control data A (4/4) of divided frame 4000h is transmitted in divided frame 4000j.
  • FIG. 14 illustrates an internal configuration example of the transmission frame generation unit 106.
  • the transmission frame generation unit 106 is roughly divided into a transmission buffer unit 110 and a frame generation management unit 120.
  • the control unit 101 and the received data reconstruction unit 104 are not shown.
  • the failure frame buffer unit 111 stores the failure frame transferred from the reception data distribution unit 103 and the failure frame generated by the data generation unit 105 using a FIFO (First-In First-Out) method. To do.
  • the fault frame buffer unit 111 stores the entire fault frame including the fault frame header.
  • the control frame buffer unit 112 includes a control frame transferred from the received data distribution unit 103 (both a control frame including failure data and a control frame not including failure data) and a control frame generated by the data generation unit 105. Then, the divided frames transferred from the reception data distribution unit 103 (both divided frames including failure data and divided frames not including failure data) are accumulated by the FIFO method.
  • the control frame buffer unit 112 accumulates the entire control frame including the control frame header, and accumulates the entire divided frame including the divided frame header.
  • the transmission determination unit 121 determines the data type (control of the head untransmitted data) when failure data (an example of specific data) occurs before the frame transmission unit 107 completes data transmission. Data or failure data) and determine whether failure data is transmitted before untransmitted data. That is, if the head untransmitted data is control data, the transmission determining unit 121 determines to transmit the failure data prior to the head untransmitted data (control data). On the other hand, if the head untransmitted data is failure data, the transmission determining unit 121 determines to transmit new failure data after the failure data including the head untransmitted data is transmitted. Note that the transmission determination unit 121 can detect the occurrence of failure data based on a notification from the reception data distribution unit 103 or the data generation unit 105. In addition, the transmission determination unit 121 stores a data size of failure data in advance.
  • the sequence control unit 122 reads the data in the control frame buffer unit 112 word by word, and outputs the read one-word data to the frame transmission unit 107 unless the transmission determination unit 121 detects the occurrence of failure data. .
  • the order control unit 122 reads the data in the failure frame buffer unit 111 word by word until the predetermined data size of the failure data is reached, and reads 1
  • the word data is output to the frame transmission unit 107. That is, the sequence control unit 122 outputs the data in the control frame buffer unit 112 when the transmission determination unit 121 detects the occurrence of failure data while outputting the data in the control frame buffer unit 112 to the frame transmission unit 107.
  • the order control unit 122 controls the transmission order of the failure data and the control data so that the failure data is transmitted first.
  • the remaining data size counting unit 123 counts the remaining transmittable data size (hereinafter referred to as “transmittable remaining size”) and the remaining frame data size (hereinafter referred to as “frame remaining size”).
  • the remaining transmittable size is the remaining data size that can be transmitted in the current control frame. That is, the remaining transmittable size is data obtained by subtracting the data size (default data size) of the control frame header 2010 from the data size described in the frame size 1012 (FIG. 3) of the control frame header 2010 (FIG. 4). This is a value obtained by subtracting the total size of the data size of the transmitted control data and the data size of the transmitted fault data (inserted fault data) from the size (data size of the control data 2020).
  • the remaining frame size is the data size of untransmitted control data among the control data included in the current control frame. That is, the remaining frame size is a data size obtained by subtracting the data size (default data size) of the control frame header 2010 from the data size described in the frame size 1012 (FIG. 3) of the control frame header 2010 (FIG. 4). This is a value obtained by subtracting the data size of the transmitted control data from (the data size of the control data 2020). If the remaining transmittable size at the time of occurrence of the failure data is equal to or greater than the sum of the data size of the failure data and the data size of the delimiter, the transmission determining unit 121 transmits the failure data in the current control frame. decide.
  • the transmission determining unit 121 determines that the failure data is not the current control frame. And decide to transmit in subsequent frames.
  • FIG. 15 shows an internal configuration example of the reception data reconstruction unit 104.
  • the received data reconstruction unit 104 is roughly divided into a reconstruction buffer unit 130 and a reconstruction management unit 140.
  • the control unit 101, the data generation unit 105, the transmission frame generation unit 106, and the frame transmission unit 107 are not shown.
  • the failure frame buffer unit 131 accumulates the failure frame transferred from the reception data distribution unit 103 by the FIFO method.
  • the fault frame buffer unit 131 stores the entire fault frame including the fault frame header.
  • the control frame buffer unit 132 includes a control frame (both a control frame including failure data and a control frame not including failure data) and a divided frame (a divided frame including failure data) transferred from the reception data distribution unit 103. Both of the divided data not including the failure data) are accumulated by the FIFO method. Note that the control frame buffer unit 132 accumulates the entire control frame including the control frame header and accumulates the entire divided frame including the divided frame header.
  • the data extraction unit 141 reads data from the control frame buffer unit 132. If the read data is control data, the control data is transferred to the control data stack 144 (an example of a divided data storage unit). If the pushed and read data is fault data, the fault data is pushed to the fault data stack 145.
  • the data size counting unit 142 counts the cumulative value of the data size of the control data stored in the control data stack 144, and calculates the cumulative value of the data size of the fault data stored in the fault data stack 145. Count.
  • the data restoration unit 143 derives the data size of the control data by subtracting the data size of the control frame header from the data size described in the frame size of the control frame header of the control frame.
  • the cumulative value of the data size counted by the data size counting unit 142 reaches the data size of the derived control data, the control data is restored using the control data stored in the control data stack 144. To do. That is, when one piece of control data included in one control frame is divided into a plurality of partial data due to the insertion of failure data, the data restoration unit 143 determines the control data before division from the frame size of the control frame header.
  • the data restoration unit 143 is stored in the failure data stack 145 when the cumulative value of the data size counted by the data size counting unit 142 reaches the data size (default size) of the failure data. The original failure data is restored using the existing failure data.
  • FIG. 13 shows the operation principle of the reception data reconstruction unit 104.
  • the communication apparatus 100 receives the control frame 3000l and the divided frame 4000l as a result of the failure data E1 being inserted into the control frame 3000k in the communication apparatus 200. Further, it is assumed that the communication apparatus 100 receives the divided frame 4000l subsequent to the control frame 3000k as the divided frame 4000m.
  • the data size of control data A before division (the total size of control data A (1/4) to A (4/4)) can be derived from the frame size of the control frame header of control frame 3000l. is there.
  • the received data distribution unit 103 of the communication apparatus 100 transfers the control frame 3000l, the divided frame 4000l, and the divided frame 4000m to the received data reconstruction unit 104.
  • the control frame buffer unit 132 transmits these frames. accumulate.
  • the data extraction unit 141 reads data from the control frame buffer unit 132 from the head of the control frame 3000l.
  • the data restoration unit 143 derives the data size of the control data from the data size described in the frame size, and the data size of the derived control data is the data Register in the size counting unit 142.
  • the data extraction unit 141 sequentially reads data in the control frame 3000l, and pushes it to the control data stack 144 if the read data is control data, and pushes it to the fault data stack 145 if it is fault data.
  • the data size counting unit 142 counts the data size in the control data stack 144 and the data size in the failure data stack 145. Since the data next to the delimiter is fault data, the data extraction unit 141 determines that the read data is control data until the delimiter appears. After the delimiter appears and after reading the data size (predetermined size) of the failure data, the data extraction unit 141 determines that the control data has been read again.
  • the data extraction unit 141 reads the data of the divided frame 4000l and the data of the divided frame 4000m, and pushes the read data to the control data stack 144 or the failure data stack 145. Then, when the data size of the control data stack 144 reaches the data size registered in the data size counting unit 142, the divided control data A (1/4) to (4) stored in the control data stack 144 are stored. The original control data A before division is restored using A (4/4). Similarly, when the data size of the fault data stack 145 reaches the default data size of the fault data, fault data E0 (1/2) and E0 (2/2) stored in the fault data stack 145 ) To restore the original failure data E0 before the division.
  • the frame receiving unit 102 receives a frame from the communication device 200 (step S151), and stores the received frame in a predetermined reception buffer.
  • the reception data distribution unit 103 checks the frame header (frame type) in the reception buffer and determines the type of the frame (steps S152 and S153). If the frame type is a control frame or a divided frame, the received data distribution unit 103 transfers the control frame or the divided frame to the control frame buffer unit 112 and the control frame buffer unit 132, and the control frame buffer unit 112 and the control frame buffer The control frame or the divided frame is stored in the unit 132 (step S154). If the frame type is a fault frame, the reception data distribution unit 103 notifies the transmission determination unit 121 of the reception of the fault data (step S155), and the fault frame is sent to the fault frame buffer unit 111 and the fault frame buffer unit 131. The fault frame is stored in the fault frame buffer unit 111 and the fault frame buffer unit 131 (step S156).
  • the data generation unit 105 When the data is generated, if the generated data is failure data (step S201), the data generation unit 105 notifies the transmission determination unit 121 of the generation of failure data (step S202). In addition, the data generation unit 105 generates a failure frame by adding a failure frame header to the failure data, transfers the generated failure frame to the failure frame buffer unit 111, and stores the failure frame in the failure frame buffer unit 111 ( Step S203). On the other hand, if the generated data is control data (step S201), the data generation unit 105 generates a control frame by adding a control frame header to the control data, and transfers the generated control frame to the control frame buffer unit 112. Then, the control frame is stored in the control frame buffer unit 112 (step S204).
  • control is performed. It is determined whether or not there is a control frame in the frame buffer unit 112 (step S302). If there is no control frame in the control frame buffer unit 112 (NO in step S302), the process returns to step S301.
  • the order control unit 122 reads data for one word of the control frame from the control frame buffer unit 112 according to an instruction from the transmission determination unit 121. (Step S303).
  • the order control unit 122 determines the type of the read data (step S304), and if the read data is a control frame header, sets the remaining frame size and the remaining transmittable size in a predetermined storage area. To do. More specifically, the order control unit 122 sets values obtained by subtracting the size of the frame header from the size described in the frame size in the control frame header as the remaining frame size and the remaining transmittable size. On the other hand, if the data read in step S303 is a delimiter, the failure data continues after the delimiter, so the order control unit 122 sets the remaining failure size in a predetermined storage area (step S306). The order control unit 122 sets a default data size of failure data as the remaining failure size.
  • step S303 If the data read in step S303 is neither a control frame header nor a delimiter, the sequence control unit 122 decrements the remaining failure size when the remaining failure size is one word or more (YES in step S307) ( In step S308, the remaining frame size and the remaining transmittable size are decremented (step S309). On the other hand, when the failure remaining size is 0 (NO in step S307), only the frame remaining size and the transmittable remaining size are decremented (step S309). Next, the sequence control unit 122 transmits the data read in step S303 to the frame transmission unit 107.
  • the transmission determining unit 121 checks the values of the remaining frame size and the remaining transmittable size (step S311). If the remaining frame size is 0 and the transmittable remaining size is 0, or if the remaining frame size is 1 word or more and the transmittable remaining size is 1 word or more, the process returns to step S301. If the remaining frame size is 0 and the transmittable remaining size is 0, it means that the control data contained in one control frame is transmitted as it is in one control frame without inserting fault data. To do. If the remaining frame size is 1 word or more and the remaining transmittable size is 1 word or more, part of the control data included in one control frame remains untransmitted, and This means that the data size that can be transmitted remains in the control frame.
  • step S312 a transmission process of a divided frame is performed (step S312).
  • the divided frame transmission process will be described later with reference to FIG. Note that the remaining frame size is 1 word or more and the remaining transmittable size is 0 because a part of the control data included in one control frame is because a delimiter and failure data are inserted. It means that it was pushed out and could not be transmitted in that control frame.
  • step S301 when the transmission determination unit 121 receives a notification that failure data has occurred from the reception data distribution unit 103 or the data generation unit 105 (YES in step S301), the transmission determination unit 121 determines that the remaining size that can be transmitted. It is confirmed whether there is any (step S401 in FIG. 19). If there is a remaining size that can be transmitted (YES in step S401), the transmission determining unit 121 checks whether there is a remaining failure size (step S402). If there is a failure remaining size (YES in step S402), it means that there is currently failure data being transmitted, so the transmission of the failure data currently being transmitted is completed before the step of FIG. The failure data notified in S301 is inserted into the control frame.
  • step S402 corresponds to the state where the failure data E1 has occurred during the transmission of the failure data E0 shown in FIG.
  • the sequence control unit 122 reads out data for one word of the control frame (remaining failure data being transmitted) from the control frame buffer unit 112 in accordance with an instruction from the transmission determination unit 121 (step S403).
  • the order control unit 122 decrements the remaining frame size, the remaining transmittable size, and the remaining failure size (step S404). Thereafter, the processes in steps S401 to S404 are repeated until the remaining failure size becomes zero.
  • step S402 When it is determined in step S402 that the remaining failure size is 0 (NO in step S402), the transmission determining unit 121 checks whether there is a sufficient remaining transmittable size for transmitting failure data (FIG. 20). Step S501). That is, if the remaining transmittable size is equal to or larger than the default data size of the failure data and the delimiter, YES is determined in step S501, and if it is less than the additional value, NO is determined in step S501. If the remaining transmittable size is sufficient (YES in step S501), the order control unit 122 reads data for one word of the fault frame from the fault frame buffer unit 111 according to an instruction from the transmission determination unit 121, and reads the read data. It outputs to the frame transmission part 107 (step S502).
  • the order control unit 122 In the first reading from the failure frame buffer unit 111, since the failure frame header is read, the order control unit 122 does not output the read failure frame header to the frame transmission unit 107, but instead uses a delimiter as the frame transmission unit. It outputs to 107. Next, the order control unit 122 decrements the remaining size that can be transmitted (step S503). Next, the transmission determination unit 121 confirms whether or not all of the failure data has been output to the frame transmission unit 107 (step S504). If there is failure data that has not been output, the processing of steps S502 to S504 is repeated. It is. If all the failure data has been output to the frame transmission unit 107, the process proceeds to step S311 in FIG. Since the transmission determining unit 121 stores the default data size of failure data, it can determine whether or not the order control unit 122 has read all of the failure data from the failure frame buffer unit 111.
  • step S501 If it is determined in step S501 that the remaining size that can be transmitted is not sufficient (NO in step S501), the failure data notified in step S301 in FIG. 18 cannot be transmitted in the current control frame. After the frame transmission is completed, it is transmitted as a fault frame. For this reason, after completing the process of transmitting the current control frame in steps S505 to S507, the process of transmitting a fault frame is performed in step S508.
  • step S ⁇ b> 5055 in response to an instruction from the transmission determination unit 121, the order control unit 122 reads data for one word of the control frame from the control frame buffer unit 112 and transmits the read data to the frame transmission unit 107.
  • step S506 the order control unit 122 decrements the remaining frame size and the remaining transmittable size.
  • step S507 the transmission determining unit 121 confirms the values of the remaining frame size and the remaining transmittable size. If the remaining frame size is 0 and the remaining transmittable size is 0, a failure frame transmission process is performed in step S508. The failure frame transmission process will be described later with reference to FIG. When the failure frame transmission process ends, the process proceeds to step S301 in FIG. If the remaining frame size is 1 word or more and the remaining transmittable size is 1 word or more, the process returns to step S505.
  • step S509 If the remaining frame size is 1 word or more and the remaining transmittable size is 0, a failure frame transmission process is performed in step S509, and a divided frame transmission process is performed in step S510.
  • the divided frame transmission process will be described later with reference to FIG. After completion of the divided frame transmission process, a fault frame transmission process is performed in step S508.
  • step S401 of FIG. 19 when it is determined in step S401 of FIG. 19 that there is no remaining size that can be transmitted (NO in step S401), the transmission of one control frame for the data size has been completed.
  • the failure data notified in S301 is not inserted into the control frame but transmitted as a failure frame.
  • the transmission determining unit 121 confirms whether or not there is a remaining frame size (step S405). If there is no remaining frame size, a transmission process of a faulty frame is performed in step S508 (step S406). On the other hand, if there is a remaining frame size, there is control data or failure data that was included in one control frame but could not be transmitted in that control frame. Therefore, in step S407, a failure frame transmission process is performed. In step S408, a divided frame transmission process is performed.
  • the transmission determining unit 121 generates a divided frame header, and the order control unit 122 outputs the divided frame header to the frame transmitting unit 107 (step S601).
  • the order control unit 122 reads data for one word of the control frame from the control frame buffer unit 112, and outputs the read data to the frame transmission unit 107 (step S602).
  • the sequence control unit 122 decrements the remaining frame size.
  • the transmission determining unit 121 checks whether or not there is a remaining frame size (step S603). If there is a remaining frame size, the processing of steps S601 to S603 is performed until the remaining frame size becomes zero. Repeated. If the remaining frame size becomes 0, all the pushed-out data has been transmitted in divided frames.
  • the order control unit 122 reads data for one word of a fault frame from the fault frame buffer unit 111, and transmits the read data to the frame transmission unit 107 (step S701).
  • the transmission determination unit 121 confirms whether or not all of the failure data has been output to the frame transmission unit 107 (step S702). If there is failure data that has not been output, the processing of steps S701 and S702 is repeated. It is. As described above, since the transmission determining unit 121 stores the default data size of the failure data, it is determined whether the order control unit 122 has read all of the failure data from the failure frame buffer unit 111. Can do.
  • the communication apparatus 100 interrupts the failure notification in the control frame, so that the period of the control communication remains short. Time can be shortened.
  • FIG. 1 a communication device 100 having a configuration different from that of the first embodiment will be described.
  • Communication device 100 according to the present embodiment is different in configuration from that of the first embodiment, and the operation procedure is different from that shown in the first embodiment, but the basic operation principle is the same. is there. That is, also in this embodiment, when trouble data occurs during transmission of the control frame, the trouble data is inserted into the control frame and transmitted, and the data pushed out by the trouble data insertion is divided into frames. Then, the control frame is transmitted. Therefore, also in the present embodiment, the control frame and the divided frame are transmitted in the form shown in FIGS. Also in the present embodiment, data is restored based on the principle shown in FIG.
  • FIG. 23 shows a configuration example of the communication apparatus 100 according to the present embodiment.
  • the communication device 100 is also referred to as its own device.
  • the communication device 200 and the communication device 300 also have the configuration example shown in FIG.
  • the reception port 800 receives the frame 1000 from the communication device 200 and outputs it to the reception data distribution device 801 word by word.
  • the received data distribution device 801 analyzes the received data and, according to the received contents, the header buffer 803, the reconstruction buffer 805, the relay data buffer 811, the relay header buffer 804, the relay failure buffer 812, the relay failure header buffer 808, the external Predetermined information is sent to the input / output device 813 (hereinafter also referred to as CPU).
  • the input / output device 813 hereinafter also referred to as CPU.
  • the reception data distribution device 801 stores the size of the frame header in advance, stores the size of the failure data in advance, stores the size of the failure frame in advance, and sets the size of the delimiter in advance. I keep it.
  • the reception data distribution device 801 calculates the frame data size of the control frame (hereinafter referred to as control data size) by subtracting the frame header size from the frame size indicated by the control frame header.
  • the reception data distribution device 801 calculates the frame data size of the divided frame (hereinafter referred to as the divided data size) by subtracting the size of the frame header 1010 from the frame size 1012 of the divided frame headers 4010 and 5010.
  • the reception data distribution device 801 calculates the frame data size of the fault frame (hereinafter referred to as fault data size) by subtracting the size of the frame header 1010 from the frame size 1012 of the fault frame header 6010.
  • the reception data distribution device 801 requests the reception counter 802 to clear the frame from the reception port 800 when the means for detecting the head of the frame 1000 (not shown in FIG. 23) detects the head of the frame 1000. 1000 is received word by word.
  • the reception counter 802 measures the frame header size in response to a request from the reception data distribution device 801. When the reception counter 802 is less than the size of the frame header 1010, the reception data distribution device 801 receives the received 1 Write a word to the header buffer 803.
  • the reception data distribution device 801 reconstructs the control frame header from the relay header buffer 804. Write to the buffer 805 and write the control data size to the relay failure remaining size counter 809 and the reconfiguration counter 807. If the header buffer 803 stores the divided frame headers 4010 and 5010, the reception data distribution device 801 writes the divided frame header to the relay header buffer 804 and sets the divided data size to the relay remaining size counter 806. Write. If the failure buffer header 6010 is stored in the header buffer 803, the reception data distribution device 801 writes the failure frame header in the relay failure header buffer 808, and stores the control data size in the relay failure remaining size counter 809. When the interrupt counter 810 is 0, the internal reception interrupt flag is invalidated. When the interrupt counter 810 is other than 0, the internal reception interrupt flag is validated.
  • the reception counter 802 is larger than the size of the frame header 1010, the reception counter 802 is less than the frame size of the frame header 1010 stored in the header buffer 803, the reception interrupt flag is invalid, and the reception counter 800 has received from the reception port 800
  • the received data distribution device 801 performs the following operation. That is, when the above condition is satisfied, if the header buffer 803 stores the control frame header or the divided frame header, the reception data distribution device 801 converts one word received from the reception port 800 into relay data. Write to the buffer 811 and the reconstruction buffer 805, and request the decrement to the reconstruction counter 807. On the other hand, when the above condition is satisfied, if the failure frame header 6010 is stored in the header buffer 803, the reception data distribution device 801 stores one word received from the reception port 800 in the relay failure buffer 812. Write.
  • reception counter 802 is larger than the size of the frame header 1010, the reception counter 802 is less than the frame size 1012 of the frame header 1010 stored in the header buffer 803, the reception interrupt flag is invalid, and the reception port 800
  • the received data distribution device 801 writes the size of the fault data in the interrupt counter 810 and writes the fault frame type and the fault frame size in the relay fault header buffer 808 when one word received from the delimiter 3030 is received.
  • the reception data distribution device 801 writes one word received from the reception port 800 to the relay failure buffer 812 and requests the interrupt counter 810 to decrement.
  • the reception data distribution device 801 requests the reception counter 802 to clear.
  • the reception data distribution device 801 outputs a control data reception completion signal to the external output device.
  • the reception counter 802 mainly measures the number of received data words in response to a request from the reception data distribution device 801.
  • the reception counter 802 clears the internal value when requested by the reception data distribution device 801.
  • the reception counter 802 increments an internal value when requested by the reception data distribution device 801.
  • the reception counter 802 outputs an internal value when read from the reception data distribution device 801.
  • the header buffer 803 stores the frame header 1010 of the received frame.
  • the header buffer 803 stores the frame header when the frame header is written from the reception data distribution device 801.
  • the header buffer 803 outputs a frame header to the reception data distribution device 801 when read by the reception data distribution device 801.
  • the header buffer 803 outputs a frame header to the external input / output device 813 when read to the external input / output device 813.
  • the relay header buffer 804 stores the received control frame header, and outputs the information of the control frame headers 2010 and 3010 to the relay division header generation device 814 and the relay interrupt availability determination device 815.
  • the relay header buffer 804 stores the control frame headers 2010 and 3010 when the control frame headers 2010 and 3010 are written from the reception data distribution device 801.
  • the relay header buffer 804 outputs the control frame headers 2010 and 3010 to the relay division header generation device 814 when read to the relay division header generation device 814.
  • the relay header buffer 804 outputs the control frame headers 2010 and 3010 to the relay interrupt enable / disable determining device 815 when read by the relay interrupt enable / disable determining device 815. Further, the relay header buffer 804 outputs the control frame headers 2010 and 3010 to the transmission data selection device 816 when read by the transmission data selection device 816.
  • the reconfiguration buffer 805 stores the pre-failure split control data 3020, the post-failure split control data 3050, and the split control data 4020 pushed out of the frame, and restores the control data 2.
  • the reconfiguration buffer 805 stores the control data when the control data is written from the reception data distribution device 801, and outputs the control data to the external input / output device 813 when read by the external input / output device 813.
  • the relay remaining size counter 806 measures the number of untransmitted words in the control frame or divided frame to be relayed.
  • the relay remaining size counter 806 sets the control data size as a count value.
  • the relay remaining size counter 806 sets the relay data size as a count value when the relay data size is written in the reception data distribution device 801.
  • the relay remaining size counter 806 decrements the count value when requested by the transmission data selection device 816.
  • the relay remaining size counter 806 outputs the count value to the relay division header generation device 814 when read to the relay division header generation device 814.
  • the relay remaining size counter 806 outputs the count value to the relay interrupt enable / disable determining device 815 when read by the relay interrupt enable / disable determining device 815.
  • the reconfiguration counter 807 measures the number of unreceived control data and detects the completion of reception of control data.
  • the reconfiguration counter 807 clears the internal value when requested by the reception data distribution device 801.
  • the reconfiguration counter 807 decrements the count value when requested by the reception data distribution device 801 and outputs an internal value when requested by the reception data distribution device 801.
  • the relay failure header buffer 808 stores the received failure frame header 6010 and outputs it to the transmission data selection device.
  • the relay failure header buffer 808 stores a failure frame header 6010 when written from the reception data distribution device 801. Further, the relay failure header buffer 808 outputs a failure frame header 6010 to the transmission data selection device 816 when read by the transmission data selection device 816.
  • the relay failure remaining size counter 809 measures the number of untransmitted words of the received failure data in response to a request from the transmission data selection device 816.
  • the relay failure remaining size counter 809 sets the failure data size as a count value when written from the reception data distribution device 801.
  • the relay failure remaining size counter 809 decrements the count value when requested by the transmission data selection device 816.
  • the interrupt counter 810 measures the number of received words of failure data included in the control frame in response to a request from the received data distribution device 801.
  • the interrupt counter 810 When requested by the reception data distribution device 801, the interrupt counter 810 sets an internal value to a predetermined failure data size. The interrupt counter 810 decrements the internal value when requested by the reception data distribution device 801. The interrupt counter 810 outputs an internal value to the reception data distribution device 801 when read from the reception data distribution device 801.
  • the relay data buffer 811 stores the received control frame and frame data 1020 of the divided frames, and outputs them to the transmission data selection device 816.
  • the relay data buffer 811 stores the frame data 1020 of the control frame or the frame data 1020 of the divided frame when written from the reception data distribution device 801.
  • the relay data buffer 811 outputs the frame data 1020 of the control frame or the frame data 1020 of the divided frame to the transmission data selection device 816 when read by the transmission data selection device 816.
  • the relay failure buffer 812 stores the received failure data 28 and outputs it to the transmission data selection device 816.
  • the relay failure buffer 812 stores failure data when written from the reception data distribution device 801. Further, the relay failure buffer 812 outputs failure data to the transmission data selection device 816 when read by the transmission data selection device 816.
  • the external input / output device 813 (CPU) writes a frame to 817 to 822 at an arbitrary timing, and reads data from the reconfiguration buffer 805 at an arbitrary timing.
  • the external input / output device 813 writes the control frame header 2010 in its own device header buffer 817 at an arbitrary timing. Also, the external input / output device 813 writes the value of the control frame size in the own device remaining size counter 818 at an arbitrary timing. Further, the external input / output device 813 writes the frame data 1020 of the control frame in its own device data buffer 819 at an arbitrary timing. Further, the external input / output device 813 writes the failure frame header 6010 in the own device failure header buffer 820 at an arbitrary timing. In addition, the external input / output device 813 writes the value of the frame size of the fault frame 6000 in its own fault remaining size counter 821 at an arbitrary timing. Also, the external input / output device 813 writes the failure frame 6000 data in the own device failure buffer 822 at an arbitrary timing. The external input / output device 813 reads data from the reconfiguration buffer 805 at an arbitrary timing.
  • the relay divided header generation device 814 When the relay frame (the frame received from the communication device 200) is divided, the relay divided header generation device 814 generates divided frame headers 4010 and 5010 and outputs them to the transmission data selection device 816.
  • the relay division header generation device 814 outputs the division frame header to the transmission data selection device 816 when requested by the transmission data selection device 816.
  • the frame size indicates a value read from the relay remaining size counter 806, and the frame type indicates a divided frame.
  • the relay interrupt availability determination device 815 outputs to the transmission data selection device 816 whether or not failure data can be interrupted in the relay frame being transmitted.
  • the relay interrupt availability determination device 815 reads the count value from the relay remaining size counter 806 when requested by the transmission data selection device 816. The relay interrupt availability determination device 815 then determines the count value. (N is a natural number) and ⁇ (Delimiter size) + (Failure data size) ⁇ * (n) ⁇ (Count value above) If there is n satisfying the relationship, valid is output to the transmission data selection device 816, otherwise invalid is output.
  • the transmission data selection device 816 has a relay failure header buffer 808, a relay failure buffer 812, an own device failure header buffer 820, an own device failure buffer 822, a relay header buffer 804, a relay data buffer 811, and an own device header buffer according to priority. 817, the data read from any one of the own device data buffer 819 and the delimiter output device 823 is output to the transmission port 824.
  • the transmission data selection device 816 stores the size of the frame header 1010 in advance, stores the size of the failure data in advance, and requests the transmission counter 825 to increment when outputting one word to the transmission port 824. And the transmission data selection apparatus 816 performs the state transition shown below.
  • the “relay failure state” is a state in which a failure frame received from the communication device 200 is transmitted.
  • the “own device transmission state” is a state in which a control frame is transmitted from the external input / output device 813 of the communication device 100 (own device).
  • “Own device own device status” refers to failure data from the external input / output device 813 of the communication device 100 (own device) during transmission of a control frame from the external input / output device 813 of the communication device 100 (own device). It is in a state to interrupt and transmit.
  • the “own device relay state” is a state in which the failure data received from the communication device 200 is interrupted and transmitted during the transmission of the control frame from the external input / output device 813 of the communication device 100 (own device).
  • the “own device split state” is the control data included in the control frame from the external input / output device 813 of the communication device 100 (self device), and the control data pushed out by interruption of the fault data is divided. This is a state in which the frame is transmitted.
  • the “own device failure state” is a state in which a failure frame is transmitted from the external input / output device 813 of the communication device 100 (self device).
  • the “relay transmission state” is a state in which a control frame received from the communication apparatus 200 is transmitted.
  • the “relay own device state” is a state in which failure data from the external input / output device 813 of the communication device 100 (own device) is interrupted and transmitted during the transmission of the control frame received from the communication device 200.
  • the “relay relay state” is a state in which the failure data received from the communication device 200 is interrupted and transmitted while the control frame received from the communication device 200 is being transmitted.
  • the “relay division state” is a state in which the control data included in the control frame received from the communication apparatus 200 and pushed out by interruption of the failure data is transmitted in the divided frame.
  • the state transition pattern is as shown in FIG. Details of the state transition of the transmission data selection device 816 will be described below.
  • the value of the relay failure remaining size counter 809 is 0, and The value of the own device failure remaining size counter 821 is 1 or more, and When the output of the own device interruptability determination device 826 is valid, Transitions to its own device state.
  • the value of the relay failure remaining size counter 809 is 1 or more, and The value of the own device failure remaining size counter 821 is 0, and When the output of the relay interrupt availability determination device 815 is valid, Transition to the local device relay state.
  • the value of the transmission counter 825 is equal to the frame size 1012 of its own device header buffer 817, and When the value of the own device remaining size counter 818 is 0, Transition to the transmission standby state.
  • the value of the transmission counter 825 is equal to the frame size 1012 of its own device header buffer 817, and When the value of the device remaining size counter 818 is 1 or more, Transition to its own device split state.
  • the value of the transmission counter 825 is equal to the frame size 1012 of its own device header buffer 817, and When the value of the device remaining size counter 818 is 1 or more, Transition to its own device split state.
  • Relay transmission status and The value of the relay failure remaining size counter 809 is 0, and The value of the own device failure remaining size counter 821 is 1 or more, and When the output of the relay interrupt availability determination device 815 is valid, Transition to the relay local device state.
  • Relay transmission status and The value of the relay failure remaining size counter 809 is 1 or more, and When the output of the relay interrupt availability determination device 815 is valid, Transition to relay relay state.
  • the value of the transmission counter 825 is equal to the frame size 1012 of the relay header buffer 804, and When the value of the relay remaining size counter 806 is 0, Transition to the transmission standby state.
  • the value of the transmission counter 825 is equal to the frame size 1012 of the relay header buffer 804, and When the value of the relay remaining size counter 806 is 1 or more, Transition to the relay split state.
  • the value of the transmission counter 825 is equal to the frame size 1012 of the relay header buffer 804, and When the value of the relay remaining size counter 806 is 1 or more, Transition to the relay split state.
  • Delimiters 3030 and 5020 are output from the delimiter output device 823 to the transmission port 824, When the value of the relay failure remaining size counter 809 is smaller than the size of the failure data, One word is output from the relay failure buffer 812 to the transmission port 824, A decrement is requested to the relay failure remaining transmission counter 825.
  • Relay transmission status When the value of the transmission counter 825 is less than the size of the frame header 1010, 1 word is output from the relay header buffer 804 to the transmission port 824, When the value of the transmission counter 825 is equal to or larger than the size of the frame header 1010, 1 word is output from the relay data buffer 811 to the transmission port 824, Request decrement from the relay remaining size counter 806, When the value of the transmission counter 825 is equal to the frame size 1012 of the relay failure header buffer 808, the transmission counter 825 is requested to clear.
  • the relay is in its own device state, and When the value of the own device failure remaining size counter 821 is equal to the size of the failure data, Delimiters 3030 and 5020 are output from the delimiter output device 823 to the transmission port 824, When the value of the own device failure remaining size counter 821 is smaller than the size of the failure data, One word is output from the own device failure buffer 322 to the transmission port 824, Decrement is requested from the own device failure remaining size counter 821.
  • Relay failure condition When the value of the transmission counter 825 is less than the size of the frame header 1010, 1 word is output from the relay failure header buffer 808 to the transmission port 824, When the value of the transmission counter 825 is equal to or larger than the size of the frame header 1010, 1 word is output from the relay data buffer 811 to the transmission port 824, Request decrement from the relay remaining size counter 806, When the value of the transmission counter 825 is equal to the frame size of the relay failure header buffer 808, the transmission counter 825 is requested to clear.
  • the own device header buffer 817 stores the control frame header 2010 input from the external input / output device 813 and outputs information of the control frame header 2010 to the transmission data selection device 816.
  • the own device header buffer 817 stores the control frame header 2010 when written from the external input / output device 813. Also, the own device header buffer 817 outputs the control frame header 2010 to the own device divided header generation device 827 when read to the own device division header generation device 827. Also, the own device header buffer 817 outputs the control frame header 2010 to the own device interrupt enable / disable determining device 826 when read to the own device interrupt enable / disable determining device 826. Also, the own device header buffer 817 outputs the control frame header 2010 to the transmission data selection device 816 when read by the transmission data selection device 816.
  • the own device remaining size counter 818 measures the number of untransmitted words in the control frame or divided frame of the own device in response to a request from the transmission data selection device 816.
  • the own device remaining size counter 818 sets the control data size as a count value when written from the external input / output device 813.
  • the own device remaining size counter 818 decrements the count value when requested by the transmission data selection device 816.
  • the own device remaining size counter 818 outputs a count value to the own device divided header generation device 827 when read by the own device division header generation device 827.
  • the own device remaining size counter 818 outputs a count value to the own device interrupt enable / disable determining device 826 when read to the own device interrupt enable / disable determining device 826.
  • the own device data buffer 819 stores the frame data 1020 of the control frame among the frames written from the external input / output device 813 and outputs it to the transmission data selection device 816.
  • the own device data buffer 819 stores the control data when written from the external input / output device 813.
  • the local device data buffer 819 outputs control data to the transmission data selection device 816 when read by the transmission data selection device 816.
  • the own device failure header buffer 820 stores the failure frame header 6010 written from the external input / output device, and outputs it to the transmission data selection device.
  • the local device failure header buffer 820 stores the failure frame header 6010 when written from the external input / output device 813. Also, the own device failure header buffer 820 outputs a failure frame header 6010 to the transmission data selection device 816 when read by the transmission data selection device 816.
  • the own device failure remaining size counter 821 measures the number of untransmitted words of failure data written from the external input / output device in response to a request from the transmission data selection device 816.
  • the own device failure remaining size counter 821 sets the value of the failure data size as a count value when written from the external input / output device 813. Also, the own device failure remaining size counter 821 decrements the count value when requested by the transmission data selection device 816. Further, the own device failure remaining size counter 821 outputs a count value to the transmission data selection device 816 when read by the transmission data selection device 816.
  • the own device failure buffer 822 stores the failure data 28 among the data written from the external input / output device and outputs it to the transmission data selection device 816.
  • the own device failure buffer 822 stores the failure data 28 when written from the external input / output device 813. Also, the own device failure buffer 822 outputs a failure frame header 6010 to the transmission data selection device 816 when read by the transmission data selection device 816.
  • the delimiter output device 823 stores the delimiters 3030 and 5020 in advance, and when read from the transmission data selection device 816, outputs the delimiters 3030 and 5020 stored in advance to the transmission data selection device 816.
  • the transmission port 824 receives data one word at a time from the transmission data selection device 816 and transmits a frame to the communication device 300.
  • the transmission counter 825 measures the number of words of transmission data in response to a request from the transmission data selection device 816.
  • the transmission counter 825 When receiving a request from the transmission data selection device 816, the transmission counter 825 clears the internal value. The transmission counter 825 increments an internal value when receiving a request from the transmission data selection device 816. Also, the transmission counter 825 outputs an internal value to the transmission data selection device 816 when read from the transmission data selection device 816.
  • the own device interrupt availability determination device 826 outputs to the transmission data selection device 816 whether or not failure data can be interrupted in the own device frame (frame generated in the communication device 100) being transmitted.
  • the own device interrupt availability determination device 826 When requested by the transmission data selection device 816, the own device interrupt availability determination device 826 reads the count value from the own device remaining size counter 818. In addition, the self-device interrupt enable / disable determination device 826 determines the count value. (N is a natural number) and ⁇ (Delimiter size) + (Failure data size) ⁇ * (n) ⁇ (Count value above) If n exists that satisfies the relationship Valid is output to the transmission data selection device 816, otherwise invalid is output.
  • the own device division header generation device 827 generates divided frame headers 4010 and 5010 when the own device frame is divided, and outputs it to the transmission data selection device 816.
  • the own device division header generation device 827 When requested by the transmission data selection device 816, the own device division header generation device 827 outputs the divided frame header to the transmission data selection device 816.
  • the frame size 1012 indicates a value read from the own device remaining size counter 818
  • the frame type 1011 indicates a divided frame.
  • FIG. 24 is a flowchart showing an operation procedure of the communication apparatus 100.
  • the communication device 100 is provided with a plurality of states, and state transition is performed based on the reception status of frames, the occurrence status of failure data, and the like.
  • the state transition pattern at the time of frame reception is as shown in FIG.
  • the state transition pattern at the time of frame transmission is as shown in FIG.
  • the communication apparatus 100 corresponds to the operation for each operation clock. That is, each process of S2, S11, S20, S26, S30, S39, S54, S58, S61, S95, S67, S82, S86, S89, S101, and S111 is an operation performed with one clock.
  • the reception data distribution device 801 confirms the state of the reception data distribution device 801 (step S1).
  • step S1 When the reception data distribution device 801 is in the header reception state, processing when the reception data distribution device 801 is in the header reception state (denoted as “processing in the header reception state” in the drawing) is performed (step S2). . Processing when the reception data distribution device 801 is in the header reception state will be described with reference to FIG.
  • the reception data distribution device 801 When the reception data distribution device 801 is in the header reception state, the reception data distribution device 801 stores the received one word in the relay header buffer 804 and requests the reception counter 802 to increment (step S3). Also, the reception data distribution device 801 checks whether the value of the reception counter 802 matches the frame size 1012 of the header buffer 803 (step S4).
  • step S4 when the value of the reception counter 802 matches the frame size 1012 of the header buffer 803, the reception data distribution device 801 checks whether the frame type 1011 of the header buffer 803 indicates a faulty frame (step S5). ).
  • step S5 when the frame type 1011 of the header buffer 803 indicates a failure frame, the received data distribution device 801 checks whether the frame type 1011 of the header buffer 803 indicates a control frame (step S6).
  • step S6 when the frame type 1011 of the header buffer 803 indicates a control frame, the reception data distribution device 801 clears the reconfiguration buffer 805 and sets the value of the frame size 1012 of the header buffer 803 in the reconfiguration counter 807. (Step S7).
  • the reception data distribution device 801 reads the frame header 1010 from the header buffer 803 and writes it in the relay header buffer 804. Also, the reception data distribution device 801 sets the value of the frame size 1012 of the header buffer 803 in the relay remaining size counter 806, and transitions to the control reception state (step S8). This completes the processing when the received data distribution device 801 is in the header reception state.
  • step S6 when the frame type 1011 of the header buffer 803 does not indicate a control frame, the reception data distribution device 801 checks whether the frame type 1011 of the header buffer 803 is a divided frame (step S9).
  • step S9 when the frame type 1011 of the header buffer 803 indicates a divided frame, the reception data distribution device 801 performs the process of step S8.
  • step S9 when the frame type 1011 of the header buffer 803 does not indicate a divided frame, the processing when the reception data distribution device 801 is in the header reception state ends.
  • step S5 when the frame type 1011 of the header buffer 803 does not indicate a failure frame, the reception data distribution device 801 reads the frame header from the header buffer 803 and writes it in the relay failure header buffer 808. Also, the reception data distribution device 801 writes the size of the frame data to the relay failure remaining size counter 809, and transitions to the failure reception state (step S10).
  • step S106 When the processing when the reception data distribution device 801 is in the header reception state is finished, the output processing of the external input / output device 813 (step S106) is performed. Details of the output processing (step S106) of the external input / output device 813 will be described later with reference to FIG.
  • the received data distribution device 801 checks whether one word received from the communication device 200 is other than the delimiter 5020 (step S12).
  • step S12 when the received data distribution device 801 receives one word other than the delimiter 5020 from the communication device 200, the received data distribution device 801 writes the received one word in the reconfiguration buffer 805, and decrements the reconfiguration counter 807. Is requested (step S13). Also, the received data distribution device 801 checks whether the value of the reconfiguration counter 807 is 1 or more (step S14).
  • step S14 when the reconfiguration counter 807 has a value of 1 or more, the reception data distribution device 801 writes one word received from the communication device 200 in the relay data buffer 811 and requests the reception counter 802 to increment (step S14). S15). Also, the reception data distribution device 801 confirms whether the value of the reception counter 802 is equal to the value of the frame size 1012 of the header buffer 803 (step S16).
  • step S16 when the value of the reception counter 802 is equal to the value of the frame size 1012 of the header buffer 803, the reception data distribution device 801 transitions to a reception standby state (step S17). Also, the reception data distribution device 801 requests the reception counter 802 to clear, and ends the process when the reception data distribution device 801 is in the control reception state.
  • step S16 when the value of the reception counter 802 is different from the value of the frame size 1012 of the header buffer 803, the processing when the reception data distribution device 801 is in the control reception state ends.
  • step S14 when the value of the reconstruction counter 807 is 0, the reception data distribution device 801 outputs an interrupt indicating reception of a control frame to the external input / output device 813 (step S18), and performs the processing from step S15. To do.
  • step S12 when one word received by the reception data distribution device 801 from the communication device 200 is the delimiter 5020, the reception data distribution device 801 reads the frame header 1010 from the header buffer 803 and writes it into the relay failure buffer 812, and interrupt failure occurs.
  • the process transits to the reception state (step S19), and the process when the reception data distribution device 801 is in the control reception state is terminated.
  • processing in the interrupt failure reception state (denoted as “processing in the interrupt failure reception state” in the drawing) will be described with reference to FIG.
  • the reception data distribution device 801 writes one word received from the communication device 200 to the relay failure buffer 812 (step S21), requests the interrupt counter 810 to increment, and requests the reception counter 802 to increment (step S21). .
  • the reception data distribution device 801 confirms whether the value of the interrupt counter 810 is equal to a predetermined size of failure data (step S22).
  • step S22 when the value of the interrupt counter 810 is predetermined and equal to the size of the failure data, the reception data distribution device 801 checks whether the value of the reception counter 802 is equal to the frame size 1012 of the header buffer 803 ( Step S23).
  • step S23 when the value of the reception counter 802 is equal to the value of the frame size 1012 of the header buffer 803, the reception data distribution device 801 transitions to the reception standby state (step S24), and processing when it is in the interrupt failure reception state Exit.
  • step S23 when the value of the reception data distribution device 801 is different from the value of the frame size 1012 of the header buffer 803, the reception data distribution device 801 transits to the control reception state (step S25).
  • step S22 when the value of the interrupt counter 810 is predetermined and different from the size of the fault data, the process in the interrupt fault reception state is ended.
  • processing in fault reception state in the drawing, expressed as “processing in fault reception state”.
  • the reception data distribution device 801 writes one word received from the communication device 200 in the relay failure buffer 812, and requests the reception counter 802 to increment (step S26). Also, the reception data distribution device 801 confirms whether the value of the reception counter 802 is equal to the value of the frame size 1012 of the header buffer 803 (step S27).
  • step S27 when the value of the reception counter 802 is equal to the value of the frame size 1012 of the header buffer 803, the reception data distribution device 801 requests the reception counter 802 to clear, and the relay failure buffer 812 receives from the communication device 200.
  • One word is written, transition to the reception standby state (step S28), and the processing when the reception data distribution device 801 is in the fault reception state is terminated.
  • step S27 when the value of the reception counter 802 is different from the value of the frame size 1012 of the header buffer 803, the reception data distribution device 801 transits to the reception standby state, and the reception data distribution device 801 is in the failure reception state. The process ends.
  • the transmission data selection device 816 checks whether the value of the relay failure remaining size counter 809 is 0 (step S31).
  • step S31 when the value of the relay failure remaining size counter 809 is 0, the transmission data selection device 816 checks whether the value of the own device failure remaining size counter 821 is 0 (step S32).
  • step S32 when the value of the own device failure remaining size counter 821 is 0, the transmission data selection device 816 checks whether the value of the relay remaining size counter 806 is 0 (step S33).
  • step S33 when the value of the relay remaining size counter 806 is 0, the transmission data selection device 816 checks whether the value of its own device remaining size counter 818 is 0 (step S34).
  • step S34 when the value of the own device remaining size counter 818 is 0, the transmission data selection device 816 transitions to its own device transmission state (step S35), and performs processing when the transmission data selection device 816 is in the transmission standby state. finish.
  • step S34 when the value of the own device remaining size counter 818 is other than 0, the processing when the transmission data selection device 816 is in the transmission standby state is terminated.
  • step S33 when the value of the remaining relay size counter 806 is other than 0, the transmission data selection device 816 transits to the relay state (step S36), and the processing when the transmission data selection device 816 is in the transmission standby state is terminated. .
  • step S32 when the value of the own device failure remaining size counter 821 is other than 0, the transmission data selection device 816 transits to the own device failure state (step S37), and the transmission data selection device 816 is in the transmission standby state. The process ends.
  • step S31 when the value of the relay failure remaining size counter 809 is other than 0, the transmission data selection device 816 transits to the relay failure notification state (step S38), and the transmission data selection device 816 is in the transmission standby state. The process ends.
  • the transmission data selection device 816 checks whether the value of the transmission counter 825 is equal to or smaller than the size of the frame header 1010 (step S40).
  • step S40 when the value of the transmission counter 825 is equal to or smaller than the size of the frame header 1010, the transmission data selection device 816 outputs one word from the own device header buffer 817 to the transmission port 824 and requests the transmission counter 825 to increment. Then, the processing when the transmission data selection device 816 is in its own device transmission state is terminated (step S41).
  • step S40 when the value of the transmission counter 825 is larger than the size of the frame header 1010, the transmission data selection device 816 checks whether the value of the relay failure remaining size counter 809 is 0 (step S42).
  • step S42 the transmission data selection device 816 checks whether the value of the own device failure remaining size counter 821 is 0 (step S43).
  • step S43 when the value of the own device failure remaining size counter 821 is 0, the transmission data selection device 816 checks whether the value of the transmission counter 825 is different from the value of the frame size 1012 of the own device header buffer 817 (step S44). ).
  • step S44 when the value of the transmission counter 825 is different from the value of the frame size 1012 of the own apparatus header buffer 817, the transmission data selection apparatus 816 outputs one word from the own apparatus data buffer 819 to the transmission port 824, Decrement is requested from the remaining size counter 818 and increment is requested from the transmission counter 825 (step S45), and the processing when the transmission data selection device 816 is in its own device transmission state is terminated.
  • step S44 when the value of the transmission counter 825 is equal to the value of the frame size 1012 of the own device header buffer 817, the transmission data selection device 816 requests the transmission counter 825 to clear (step S46), and the own device remaining size counter. It is checked whether the value 818 is 0 (step S47).
  • step S47 when the value of the own device remaining size counter 818 is 0, the transmission data selection device 816 requests the transmission counter 825 to clear, transitions to a transmission standby state (step S48), and the transmission data selection device 816 The processing in the local device transmission state is terminated.
  • step S48 when the value of the own device remaining size counter 818 is other than 0, the transmission data selection device 816 transits to the own device division state (step S49), and the transmission data selection device 816 is in the own device transmission state. The process ends.
  • step S43 when the value of the own device failure remaining size counter 821 is not 0, the transmission data selection device 816 confirms the output of the own device interruptability determination device 826 (step S50).
  • step S50 when the output of the own device interruptability determination device 826 is not valid, the transmission data selection device 816 performs processing from step S44.
  • step S50 when the output of the own device interrupt availability determination device 826 is valid, the transmission data selection device 816 outputs the delimiter from the delimiter output device 823 to the transmission port 824, and transits to the own device own device interrupt state ( Step S51), the processing when the transmission data selection device 816 is in its own device transmission state is terminated.
  • step S42 when the value of the relay failure remaining transmission counter 825 is not 0, the transmission data selection device 816 confirms the output of the own device interruptability determination device 826 (step S52).
  • step S52 when the output of the own device interruptability determination device 826 is invalid, the transmission data selection device 816 performs processing from step S43.
  • step S52 when the output of the own device interrupt availability determination device 826 is valid, the transmission data selection device 816 outputs the delimiters 3030 and 5020 from the delimiter output device 823 to the transmission port 824, and transitions to the own device relay interrupt state. (Step S53).
  • the transmission data selection device 816 checks whether the value of the relay failure remaining size counter 809 is 0 or more (step S55).
  • step S55 when the value of the relay failure remaining size counter 809 is 0 or more, the transmission data selection device 816 outputs one word from the relay failure buffer 812 to the transmission port 824, requests the transmission counter 825 to increment, The relay failure remaining transmission counter 825 is requested to decrement (step S56), and the processing when the transmission data selection device 816 is in its own device relay state is terminated.
  • step S56 When the value of the relay failure remaining size counter 809 is 0 in step S56, the transmission data selection device 816 transitions to its own device transmission state (step S57), and when the transmission data selection device 816 is in its own device relay state. Terminate the process.
  • the transmission data selection device 816 confirms whether the value of its own device failure remaining size counter 821 is 0 or more (step S59).
  • step S59 when the value of the own device failure remaining size counter 821 is 0 or more, the transmission data selection device 816 outputs one word from the own device failure buffer 822 to the transmission port 824, and requests the transmission counter 825 to increment. Then, the own device failure remaining size counter 821 is requested to decrement (step S60), and the processing when the transmission data selecting device 816 is in the own device own device state is terminated.
  • step S59 when the value of the own device failure remaining size counter 821 is 0, the transmission data selection device 816 transits to the own device transmission state (step S57), and the transmission data selection device 816 is in the own device own device state. The processing at a certain time is terminated.
  • the transmission data selection device 816 checks whether the value of the transmission counter 825 is smaller than the size of the frame header 1010 (step S62).
  • step S62 when the value of the transmission counter 825 is smaller than the size of the frame header 1010, the transmission data selection device 816 outputs one word from its own device split header generation device 827 to the transmission port 824, and increments the transmission counter 825. Request (step S63), and the process when the transmission data selection device 816 is in its own device split state is terminated.
  • step S62 when the value of the transmission counter 825 is equal to or larger than the size of the frame header 1010, the transmission data selection device 816 checks whether the value of its own device remaining size counter 818 is greater than 0 (step S64).
  • step S64 when the value of the own device remaining size counter 818 is larger than 0, the transmission data selection device 816 outputs one word from the own device data buffer 819 to the transmission port 824, and decrements the own device remaining size counter 818.
  • the transmission is requested, the transmission counter 825 is requested to increment (step S65), and the processing when the transmission data selection device 816 is in its own device division state is terminated.
  • step S64 when the value of the own device remaining size counter 818 is 0, the transmission data selection device 816 requests the transmission counter 825 to clear, transitions to a transmission standby state (step S66), and the transmission data selection device 816. Terminates the process when is in its own device split state.
  • the transmission data selection device 816 checks whether the value of the transmission counter 825 is equal to or smaller than the size of the frame header 1010 (step S68).
  • step S68 when the value of the transmission counter 825 is equal to or smaller than the size of the frame header 1010, the transmission data selection device 816 outputs one word from the relay header buffer 804 to the transmission port 824, requests the transmission counter 825 to increment, The process when the transmission data selection device 816 is in the relay transmission state is terminated (step S69).
  • step S68 when the value of the transmission counter 825 is larger than the size of the frame header 1010, the transmission data selection device 816 checks whether the value of the relay failure remaining size counter 809 is 0 (step S70).
  • step S70 the transmission data selection device 816 checks whether the value of the own device failure remaining size counter 821 is 0 (step S71).
  • step S71 when the value of the own device failure remaining size counter 821 is 0, the transmission data selection device 816 checks whether the value of the transmission counter 825 is different from the value of the frame size 1012 of the relay header buffer 804 (step S72). .
  • step S72 when the value of the transmission counter 825 is different from the value of the frame size 1012 of the relay header buffer 804, the transmission data selection device 816 outputs one word from the relay data buffer 811 to the transmission port 824, and the relay remaining size counter. Decrement is requested to 806, increment is requested to the transmission counter 825 (step S73), and the process when the transmission data selection device 816 is in the relay transmission state is terminated.
  • step S72 when the value of the transmission counter 825 is equal to the value of the frame size 1012 of the relay header buffer 804, the transmission data selection device 816 requests the transmission counter 825 to clear (step S74). It is checked whether the value is 0 (step S75).
  • step S75 when the value of the relay remaining size counter 806 is 0, the transmission data selection device 816 requests the transmission counter 825 to clear, transitions to a transmission standby state (step S76), and the transmission data selection device 816 performs relay transmission. The process when it is in a state is terminated.
  • step S75 when the value of the remaining relay size counter 806 is other than 0, the transmission data selection device 816 transitions to the relay division state (step S77), and performs processing when the transmission data selection device 816 is in the relay transmission state. finish.
  • step S71 when the value of the own device failure remaining size counter 821 is not 0, the transmission data selection device 816 confirms the output of the relay interrupt availability determination device 815 (step S78).
  • step S78 when the output of the relay interrupt availability determination device 815 is not valid, the transmission data selection device 816 performs processing from step S72.
  • step S78 when the output of the relay interrupt availability determination device 815 is valid, the transmission data selection device 816 outputs the delimiter 3030 from the delimiter output device 823 to the transmission port 824, and transits to the relay own device interrupt state (step S78). S79), the processing when the transmission data selection device 816 is in the relay transmission state is terminated.
  • step S70 when the value of the relay failure remaining size counter 809 is not 0, the transmission data selection device 816 confirms the output of the relay interrupt availability determination device 815 (step S80).
  • step S80 when the output of the relay interrupt availability determination device 815 is invalid, the transmission data selection device 816 performs the processing from step S71.
  • step S80 when the output of the relay interrupt availability determination device 815 is valid, the transmission data selection device 816 outputs the delimiter 3030 from the delimiter output device 823 to the transmission port 824, and transits to the relay relay interrupt state (step S81). ), The processing when the transmission data selection device 816 is in the relay transmission state is terminated.
  • the transmission data selection device 816 checks whether the value of the relay failure remaining size counter 809 is 0 or more (step S83).
  • step S83 when the value of the relay failure remaining size counter 809 is 0 or more, the transmission data selection device 816 outputs one word from the relay failure buffer 812 to the transmission port 824, requests the transmission counter 825 to increment, The relay failure remaining size counter 809 is requested to decrement (step S84), and the process when the transmission data selection device 816 is in the relay relay state is terminated.
  • step S83 when the value of the remaining relay failure size counter 809 is 0, the transmission data selection device 816 transits to the relay transmission state (step S85), and processing when the transmission data selection device 816 is in the relay relay state. Exit.
  • the transmission data selection device 816 confirms whether the value of its own device failure remaining size counter 821 is 0 or more (step S87).
  • step S87 when the value of the own device failure remaining size counter 821 is 0 or more, the transmission data selection device 816 outputs one word from the own device failure buffer 822 to the transmission port 824, and requests the transmission counter 825 to increment. Then, the own device failure remaining transmission counter 825 is requested to decrement (step S88), and the processing when the transmission data selection device 816 is in the relay own device state is terminated.
  • step S87 when the value of the own device failure remaining size counter 821 is 0, the transmission data selection device 816 transits to the relay transmission state (step S88), and the transmission data selection device 816 is in the relay own device state. The process ends.
  • the transmission data selection device 816 checks whether the value of the transmission counter 825 is smaller than the size of the frame header 1010 (step S90).
  • step S90 when the value of the transmission counter 825 is smaller than the size of the frame header 1010, the transmission data selection device 816 outputs one word from the relay division header generation device 814 to the transmission port 824 and requests the transmission counter 825 to increment. (Step S91), and the process when the transmission data selection device 816 is in the relay division state is terminated.
  • step S90 when the value of the transmission counter 825 is equal to or larger than the size of the frame header 1010, the transmission data selection device 816 checks whether the value of the relay remaining size counter 806 is larger than 0 (step S92).
  • step S92 when the value of the relay remaining size counter 806 is greater than 0, the transmission data selection device 816 outputs one word from the relay data buffer 811 to the transmission port 824, requests the relay remaining size counter 806 to decrement, The transmission counter 825 is requested to increment (step S93), and the processing when the transmission data selection device 816 is in the relay division state is terminated.
  • step S92 when the value of the relay remaining size counter 806 is 0, the transmission data selection device 816 requests the transmission counter 825 to clear, transitions to a transmission standby state (step S94), and the transmission data selection device 816 relays. The process in the split state is terminated.
  • processing in a relay failure state (in the drawing, expressed as “processing in a relay failure state”) will be described with reference to FIG.
  • the transmission data selection device 816 checks whether the value of the transmission counter 825 is smaller than the size of the frame header 1010 (step S96).
  • step S96 when the value of the transmission counter 825 is smaller than the size of the frame header 1010, the transmission data selection device 816 outputs one word from the relay failure header buffer 808 to the transmission port 824, and requests the transmission counter 825 to decrement. (Step S97), the processing when the transmission data selection device 816 is in the relay failure state is terminated.
  • step S96 when the value of the transmission counter 825 is equal to or larger than the size of the frame header 1010, the transmission data selection device 816 checks whether the value of the relay remaining size counter 806 is larger than 0 (step S98).
  • step S98 when the value of the relay failure remaining size counter 809 is larger than 0, the transmission data selection device 816 outputs one word from the relay failure buffer 812 to the transmission port 824, and requests the relay failure remaining size counter 809 to decrement. Then, the transmission counter 825 is requested to increment (step S99), and the processing when the transmission data selection device 816 is in the relay failure state is terminated.
  • step S98 when the value of the relay failure remaining transmission counter 825 is 0, the transmission data selection device 816 requests the transmission counter 825 to clear, transits to the transmission standby state (step S100), and the transmission data selection device 816 Terminates the processing when the relay failure state occurs.
  • the transmission data selection device 816 checks whether the value of the transmission counter 825 is smaller than the size of the frame header 1010 (step S101).
  • step S96 when the value of the transmission counter 825 is smaller than the size of the frame header 1010, the transmission data selection device 816 outputs one word from the own device failure header buffer 820 to the transmission port 824, and requests the transmission counter 825 to decrement. (Step S102), the processing when the transmission data selection device 816 is in its own device failure state is terminated.
  • step S101 when the value of the transmission counter 825 is equal to or larger than the size of the frame header 1010, the transmission data selection device 816 checks whether the value of the own device failure remaining size counter 821 is larger than 0 (step S103).
  • step S103 when the value of the own device failure remaining size counter 821 is larger than 0, the transmission data selection device 816 outputs one word from the own device failure buffer 822 to the transmission port 824, and sends it to the own device failure remaining size counter 821.
  • the decrement is requested, the increment is requested to the transmission counter 825 (step S104), and the process when the transmission data selection device 816 is in its own device failure state is terminated.
  • step S105 when the value of the own device failure remaining size counter 821 is 0, the transmission data selection device 816 requests the transmission counter 825 to clear, and the transmission data selection device 816 transitions to the transmission standby state (step S105). The processing when the transmission data selection device 816 is in its own device failure state is terminated.
  • step S30 When the processing in step S30, step S39, step S54, step S58, step S61, step S95, step S67, step S82, step S86, step S89, or step S101 is completed, the external input / output device 813 performs output processing. To implement. This process will be described with reference to FIG.
  • the external input / output device 813 confirms whether itself (the external input / output device 813) outputs the fault data and the fault frame header 6010 (step S107).
  • step S107 when the external input / output device 813 outputs the failure data and the failure frame header 6010, the external input / output device 813 writes the failure frame header 6010 in the own device failure header buffer 820 and stores the failure data in the own device.
  • Writing to the failure buffer 822 step S108), it is confirmed whether itself (external input / output device 813) outputs the control data 2020 and the control frame header 2010 (step S109).
  • step S107 when the external input / output device 813 does not output the failure data and the failure frame header 6010, the processing of step S109 is performed.
  • step S109 when the external input / output device 813 is outputting the control data 2020 and the control frame header 2010, the external input / output device 813 writes the control frame header 2010 in its own device header buffer 817, and the control data 2020 is stored in itself.
  • step S110 Writing to the device data buffer 819 (step S110), the output processing of the external input / output device 813 is terminated.
  • step S109 when the external input / output device 813 does not output the control data 2020 and the control frame header 2010, the output processing of the external input / output device 813 is terminated.
  • the reception data distribution device 801 checks whether one word has been received from the reception port 800 (step S112).
  • step S112 when receiving one word from the reception port 800, the reception data distribution device 801 transitions to the header reception state (S113).
  • step S112 when one word is not received from the reception port 800, the reception data distribution device 801 ends the processing when the reception data distribution device 801 is in the reception standby state.
  • the communication apparatus 100 interrupts the failure notification in the control frame so that the period of the control communication remains short. Can be shortened.
  • the communication apparatus which concerns on this Embodiment is It has a reception port that receives frames from other devices and outputs them to the reception frame distribution device, About received frames (hereinafter referred to as relay frames) A relay header buffer for storing received frame headers; A relay data buffer for storing received frame data; About the frame to notify the received failure (hereinafter referred to as failure frame) A relay failure header buffer for storing the received failure frame header; A relay failure buffer for storing received failure frame data; The received relay frame header is sorted and stored in the relay header buffer, the received relay frame data is sorted and stored in the relay data buffer, the received fault frame header is sorted in the relay fault header buffer, and the received fault frame data is sorted in the relay fault buffer. It has been described that a receiving frame sorting device for storing is provided.
  • the communication device is About the frame input from the external input / output device (hereinafter referred to as its own device frame) A self-device header buffer for storing a header of the self-device frame; Own device data buffer for storing own device frame data; About failure frames input from external I / O devices (hereinafter referred to as own device failure frames) Own device failure header buffer for storing the own device failure frame header; Own device failure buffer for storing own device failure frame data, Select the data to be transmitted from the relay header buffer, relay data buffer, relay failure header buffer, relay failure buffer, local device header buffer, local device data buffer, local device failure header buffer, or local device failure buffer for each word, and transmit It has a transmission data selection device that transmits from the port to other devices,
  • the communication device is It has been described that the failure data is transmitted from the transmission data selection device by interrupting the frame being transmitted.
  • the communication device is It has been described that a transmission data selection device is provided that reads a delimiter indicating the head of failure data interrupting a frame being transmitted from a delimiter output device and transmits the delimiter.
  • the communication device is The value of the reception counter that counts the number of received words, An interrupt counter value that counts the number of words of fault data in the received frame, Output of the header buffer that stores the received header, The value of the interrupt counter that counts the number of words of fault data received; It has been described that the reception frame distribution device has a reception frame distribution device that switches the storage destination of the received word based on the delimiter detection function of the reception frame distribution device itself.
  • the communication device is The size of the own device frame being transmitted by the transmission data selection device itself, Transmission data that controls the position at which fault data is interrupted in the local frame being transmitted, based on the value of the transmission counter that counts the number of transmitted words and the output of the local apparatus interrupt enable / disable determination device that outputs whether the fault data can be transmitted Having described a selection device.
  • the communication device is Based on the size of the relay frame being transmitted by the transmission data selection device itself, the value of the transmission counter, and the output of the relay interrupt availability determination device that outputs whether the failure data can be transmitted, the position where the failure data is interrupted in the frame being transmitted is determined. It has been described that a transmission data selection device to be controlled is included.
  • the communication device is Based on the value of the transmission counter and the self-device remaining size counter that counts the number of words in the frame data of the transmitted self-device frame, it is added to the frame data pushed out by interrupting the failure data into the self-device frame being transmitted. It has been described that the apparatus has a self-partition header generation apparatus that outputs a frame header (hereinafter referred to as a self-partition header).
  • the communication device is A frame header that is added to the frame data that is pushed out by interrupting failure data in the relay frame that is being transmitted, based on the value of the transmission counter and the remaining relay size counter that counts the number of words in the frame data of the transmitted relay frame It has been described that a relay split header generation device that outputs (hereinafter referred to as a relay split header) is provided.
  • the communication device has a transmission data selection device that transmits the frame data pushed out by interrupting fault data into the own device frame being transmitted from the own device data buffer following the own device division header.
  • the communication device is It has been described that a transmission data selection device that transmits frame data pushed out by interrupting failure data into a relay frame being transmitted from the relay data buffer is transmitted following the relay division header.
  • the communication device is A reconstruction buffer for storing the split data; It has a reconstruction counter that counts the number of received divided data, It has been described that there is a function of reconfiguring the divided data and outputting the data before the failure data is interrupted to the external device in accordance with the reading of the external device.
  • the communication apparatus that performs communication using the FA network has been described as an example.
  • the methods described so far can be applied to communication apparatuses that perform communication using other types of networks.
  • the use of the method described so far is not limited to a communication device that performs communication on the FA network.
  • FIG. 42 is a diagram illustrating an example of hardware resources of the communication devices 100, 200, and 300 described in the first and second embodiments. 42 is merely an example of the hardware configuration of the communication devices 100, 200, and 300, and the hardware configuration of the communication devices 100, 200, and 300 is not limited to the configuration illustrated in FIG. Other configurations may be used.
  • the communication devices 100, 200, and 300 include a CPU 911 (also referred to as a central processing unit, a central processing unit, a processing unit, an arithmetic unit, a microprocessor, a microcomputer, and a processor) that executes a program.
  • the CPU 911 is connected to, for example, a ROM (Read Only Memory) 913, a RAM (Random Access Memory) 914, a communication board 915, a display device 901, a keyboard 902, a mouse 903, and a magnetic disk device 920 via a bus 912. Control hardware devices.
  • the CPU 911 may be connected to an FDD 904 (Flexible Disk Drive), a compact disk device 905 (CDD), a printer device 906, and a scanner device 907.
  • FDD 904 Flexible Disk Drive
  • CDD compact disk device
  • printer device 906 printer device 907
  • scanner device 907 a storage device such as an SSD (Solid State Drive), an optical disk device, or a memory card (registered trademark) read / write device may be used.
  • the RAM 914 is an example of a volatile memory.
  • the storage media of the ROM 913, the FDD 904, the CDD 905, and the magnetic disk device 920 are an example of a nonvolatile memory. These are examples of the storage device.
  • the “ ⁇ buffer” and “ ⁇ buffer unit” described in the first and second embodiments are realized by the RAM 914 or the like, for example.
  • a communication board 915, a keyboard 902, a mouse 903, a scanner device 907, and the like are examples of input devices.
  • the communication board 915, the display device 901, the printer device 906, and the like are examples of output devices.
  • the communication board 915 is connected to the communication path.
  • the magnetic disk device 920 stores an operating system 921 (OS), a window system 922, a program group 923, and a file group 924.
  • the programs in the program group 923 are executed by the CPU 911 using the operating system 921 and the window system 922.
  • the RAM 914 temporarily stores at least part of the operating system 921 program and application programs to be executed by the CPU 911.
  • the RAM 914 stores various data necessary for processing by the CPU 911.
  • the ROM 913 stores a BIOS (Basic Input Output System) program
  • the magnetic disk device 920 stores a boot program.
  • BIOS Basic Input Output System
  • the BIOS program in the ROM 913 and the boot program in the magnetic disk device 920 are executed, and the operating system 921 is activated by the BIOS program and the boot program.
  • the program group 923 stores programs that execute the functions described as “ ⁇ unit” and “ ⁇ device” in the description of the first and second embodiments.
  • the program is read and executed by the CPU 911.
  • Information, data, signal values, variable values, and parameters stored in a storage medium such as a disk or memory are read out to the main memory or cache memory by the CPU 911 via a read / write circuit.
  • the read information, data, signal value, variable value, and parameter are used for CPU operations such as extraction, search, reference, comparison, calculation, calculation, processing, editing, output, printing, and display.
  • Information, data, signal values, variable values, and parameters are stored in the main memory, registers, cache memory, and buffers during the CPU operations of extraction, search, reference, comparison, calculation, processing, editing, output, printing, and display. It is temporarily stored in a memory or the like.
  • the arrows in the flowcharts described in the first and second embodiments mainly indicate input / output of data and signals.
  • Data and signal values are recorded in a storage medium such as a memory of the RAM 914, a flexible disk of the FDD 904, a compact disk of the CDD 905, a magnetic disk of the magnetic disk device 920, other optical disks, mini disks, and DVDs.
  • Data and signals are transmitted online via a bus 912, signal lines, cables, or other transmission media.
  • Firmware and software are stored as programs in a storage medium such as a magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, and a DVD.
  • the program is read by the CPU 911 and executed by the CPU 911. That is, the program causes the computer to function as “ ⁇ unit” and “ ⁇ device” in the first and second embodiments.
  • the procedures and methods of “ ⁇ unit” and “ ⁇ apparatus” of the first and second embodiments are executed by a computer.
  • the communication devices 100, 200, and 300 shown in the first and second embodiments have a display as an output device such as a CPU as a processing device, a memory as a storage device, a magnetic disk, a keyboard as an input device, a mouse, a communication board, and the like.
  • a computer including a device, a communication board, and the like.
  • the functions indicated as “ ⁇ unit” and “ ⁇ device” are realized by using these processing devices, storage devices, input devices, and output devices.
  • 100 communication device 101 control unit, 102 frame reception unit, 103 received data distribution unit, 104 received data reconstruction unit, 105 data generation unit, 106 transmission frame generation unit, 107 frame transmission unit, 110 transmission buffer unit, 111 failure Frame buffer unit, 112 Control frame buffer unit, 120 Frame generation management unit, 121 Transmission determination unit, 122 Sequence control unit, 123 Remaining data size count unit, 130 Reconfiguration buffer unit, 131 Fault frame buffer unit, 132 Control frame buffer Unit, 140 reconfiguration management unit, 141 data extraction unit, 142 data size count unit, 143 data restoration unit, 144 control data stack, 145 fault data stack, 200 communication device, 300 communication device 800 reception port, 801 reception data distribution device, 802 reception counter, 803 header buffer, 804 relay header buffer, 805 reconfiguration buffer, 806 relay remaining size counter, 807 reconfiguration counter, 808 relay failure header buffer, 809 relay failure remaining size Counter, 810 interrupt counter, 811 relay data buffer, 812 relay failure buffer, 813 external input / output device, 814 relay split header generation device

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

When a failure has occurred during transmission of control data (A) to a communication device (node 3), a communication device (node 2) interrupts the transmission of the control data (control data A'), starts transmission of failure data (E) that reports the failure, and after the transmission of the failure data (E), resumes the transmission of the control data (A) from where the interruption was made (control data A'').

Description

通信装置及び通信方法及びプログラムCOMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
 本発明は、データを送信する技術に関する。
 以下では、一例として、FA(Factory Automation)ネットワークでのデータ送信を説明する。
The present invention relates to a technique for transmitting data.
In the following, as an example, data transmission in an FA (Factory Automation) network will be described.
 工場のラインは連続して製品を製造するものである。
 そこで、工場のラインには自動的に複数の機器を連携して動作させて製品を製造する機能がある。
 FAにおける機器の連携動作を実現する方法としてFAネットワークがある。
 FAネットワークでは1台の制御装置(コントローラ)と複数台の工作装置(スレーブ)を用いる。
 機器間の接続はイーサネット(登録商標)ベースのデイジーチェーン接続であり、通信フレーム(以下、単に「フレーム」ともいう)単位で情報をやり取りする。
 隣接しないノード間の通信は中継により実現される。
A factory line is one that produces products continuously.
Therefore, the factory line has a function of automatically manufacturing a product by operating a plurality of devices in cooperation with each other.
There is an FA network as a method for realizing the cooperative operation of devices in the FA.
In the FA network, one control device (controller) and a plurality of machine tools (slave) are used.
The connection between the devices is an Ethernet (registered trademark) -based daisy chain connection, and exchanges information in units of communication frames (hereinafter also simply referred to as “frames”).
Communication between non-adjacent nodes is realized by relay.
 機器の連携した動作は、コントローラとスレーブが通信することで実現される。
 まず、コントローラは複数のスレーブに制御の指示を与える。
 より具体的には、コントローラは、隣の位置のスレーブに制御指示を送信し、コントローラの隣のスレーブが更に隣のスレーブに制御指示を転送し、以降、同様の手順を繰り返し、順次、各スレーブに制御指示を伝播させる。
 各スレーブは、コントローラの指示に従って稼動し、コントローラに制御結果を応答する。
 制御結果の応答の場合も、スレーブ間の転送を通じてコントローラに制御結果の応答が到達する。
 コントローラは、各スレーブから制御結果を受け取り、次の指示を決定し、各スレーブに次の指示を与える。
 コントローラとスレーブは上記の動作を周期的に繰り返す。
 以上のように自動的に複数の機器を連携して動作させ、製品を製造することができる。
 高精度に機器を制御するためにはコントローラとスレーブとの間で短い周期で制御のための通信を行う必要がある。
The linked operation of the devices is realized by communication between the controller and the slave.
First, the controller gives a control instruction to a plurality of slaves.
More specifically, the controller transmits a control instruction to the slave at the adjacent position, and the slave next to the controller further transfers the control instruction to the adjacent slave. Propagate control instructions.
Each slave operates according to instructions from the controller, and returns a control result to the controller.
Also in the case of a control result response, the control result response reaches the controller through transfer between slaves.
The controller receives the control result from each slave, determines the next instruction, and gives the next instruction to each slave.
The controller and slave periodically repeat the above operation.
As described above, products can be manufactured by automatically operating a plurality of devices in cooperation with each other.
In order to control a device with high accuracy, it is necessary to perform control communication between the controller and the slave in a short cycle.
 FAネットワークには、機器を連携して動作させて製品を製造する機能の他に、機器の故障時に他の機器を安全に停止させる機能(以下、「障害管理」という)がある。
 この機能を実現するために、故障が発生したスレーブはコントローラと他のスレーブに故障の通知(以下、「障害通知」という)を実施する。
 障害通知のフレーム(障害フレーム)も、制御通信のためのフレームと同様に、隣り合うノード間で中継されて、コントローラ及び全ての他のスレーブに到達する。
 障害フレームを受け取ったコントローラとスレーブは安全に停止する。
 以上により、機器の故障が発生した際に、FAネットワークに含まれる全ての機器が安全に停止することができる。
 このように、FAネットワークでは短い周期で制御通信を行う必要があるとともに、障害管理のために、短時間で障害通知を実施する必要がある。
In addition to the function of manufacturing devices by operating devices in cooperation with each other, the FA network has a function of safely stopping other devices when a device fails (hereinafter referred to as “fault management”).
In order to realize this function, the slave in which the failure has occurred performs failure notification (hereinafter referred to as “failure notification”) to the controller and other slaves.
The failure notification frame (failure frame) is also relayed between adjacent nodes in the same manner as the frame for control communication, and reaches the controller and all other slaves.
Controllers and slaves that have received the fault frame are safely stopped.
As described above, when a device failure occurs, all the devices included in the FA network can be safely stopped.
As described above, in the FA network, it is necessary to perform control communication in a short cycle, and it is necessary to perform failure notification in a short time for failure management.
 この点につき、従来技術では、優先度に従って送信するフレームの順番を制御することで障害フレームを優先して送信して、短時間での障害通知を実現している。 In this regard, in the prior art, the failure frame is preferentially transmitted by controlling the order of frames to be transmitted according to the priority, thereby realizing failure notification in a short time.
 例えば、特許文献1では、ノードが中継するフレームを優先中継フレームと非優先中継フレームに分け、自ノードから送信するフレームを優先送信フレームと非優先送信フレームに分け、フレームごとのバッファ(合計4つのバッファ)を設け、ノードが、フレーム間の優先度の順序に従って各フレームを送信する。
 優先度は高い順に優先中継フレーム、優先送信フレーム、非優先中継フレーム、非優先送信フレームである。
 非優先中継フレームがバッファに溜まった場合、非優先送信フレームのバッファへの入力を抑制することでバッファ溢れを防ぐ。
For example, in Patent Document 1, a frame relayed by a node is divided into a priority relay frame and a non-priority relay frame, a frame transmitted from the own node is divided into a priority transmission frame and a non-priority transmission frame, and a buffer for each frame (a total of four Buffer), and the node transmits each frame according to the priority order between frames.
A priority relay frame, a priority transmission frame, a non-priority relay frame, and a non-priority transmission frame are in descending order of priority.
When non-priority relay frames accumulate in the buffer, buffer overflow is prevented by suppressing input of non-priority transmission frames to the buffer.
 特許文献1の技術をFAネットワークに適用すると、ノードが中継する障害フレームを特許文献1の優先中継フレームとし、ノードから送信する障害フレームを特許文献1の優先送信フレームとし、これら障害フレーム(優先中継フレーム、優先送信フレーム)を制御通信のための制御フレーム(非優先中継フレーム、非優先送信フレーム)に優先して送信することで、短時間での障害通知を実現することができる。 When the technique of Patent Document 1 is applied to an FA network, a failure frame relayed by a node is a priority relay frame of Patent Document 1, a failure frame transmitted from the node is a priority transmission frame of Patent Document 1, and these failure frames (priority relay) By transmitting the frame and the priority transmission frame) in preference to the control frame (non-priority relay frame and non-priority transmission frame) for control communication, it is possible to realize failure notification in a short time.
特開2002-353970号公報JP 2002-353970 A
 以上のように、特許文献1の方式をFAネットワークに適用すると、障害フレームを制御フレームに優先して送信することができ、短時間での障害通知を実現することができる。 As described above, when the method of Patent Document 1 is applied to an FA network, a failure frame can be transmitted with priority over a control frame, and failure notification in a short time can be realized.
 しかしながら、特許文献1の方式では、以下の課題がある。 However, the method of Patent Document 1 has the following problems.
 図43は、特許文献1の方式での課題を説明する図である。
 図43は、一例として、3つのノードで構成されるFAネットワークでの通信フレームの送受信状況を示している。
 図43において、A、B及びCは、ノード1から送信される制御フレームを表し、Eはノード2から送信される障害フレームを表している。
FIG. 43 is a diagram for explaining a problem in the method of Patent Document 1.
FIG. 43 shows, as an example, the transmission / reception status of communication frames in an FA network composed of three nodes.
In FIG. 43, A, B, and C represent control frames transmitted from the node 1, and E represents a failure frame transmitted from the node 2.
 ノード1からは、順に、制御フレームA、制御フレームB、制御フレームCが送信される。
 ノード2では、ノード1からの制御フレームを受信し、受信した制御フレームを所定のバッファに格納し、受信した制御フレームをノード3に転送する。
 ここで、ノード2が制御フレームAをノード3に送信している途中でノード2において障害が発生し、障害フレームEを送信する必要が生じたとする。
 特許文献1では、ノード2は、制御フレームAの送信を完了してから、障害フレームEをノード3に送信し、その後制御フレームB、制御フレームCを送信する。
From the node 1, a control frame A, a control frame B, and a control frame C are sequentially transmitted.
The node 2 receives the control frame from the node 1, stores the received control frame in a predetermined buffer, and transfers the received control frame to the node 3.
Here, it is assumed that a failure occurs in the node 2 while the node 2 is transmitting the control frame A to the node 3, and it is necessary to transmit the failure frame E.
In Patent Document 1, the node 2 transmits the failure frame E to the node 3 after completing the transmission of the control frame A, and then transmits the control frame B and the control frame C.
 このように、特許文献1では、制御フレームの送信中に障害が発生した場合に、送信中の制御フレームの送信完了を待ち、その後障害フレームの送信を行う。
 例えば、制御フレームを送信し始めた直後に障害が発生すると、障害フレームの送信は制御フレーム1フレームを送信する分、遅れてしまう。
As described above, in Patent Document 1, when a failure occurs during transmission of a control frame, the completion of transmission of the control frame being transmitted is waited, and then the failure frame is transmitted.
For example, if a failure occurs immediately after starting to transmit a control frame, transmission of the failure frame is delayed by the amount of transmission of one control frame.
 この発明は、これらの点に鑑みたものであり、通信フレームの送信中に優先して送信すべき特定のデータが新たに発生した場合に、この特定のデータを効率的かつ早期に送信できるようにし、また、特定データの発生時点で未送信であったデータの送信も早期に完了できるようにすることを主な目的とする。 The present invention has been made in view of these points, and when specific data to be transmitted with priority during transmission of a communication frame is newly generated, the specific data can be transmitted efficiently and quickly. In addition, the main object is to enable early transmission of data that has not been transmitted when specific data is generated.
 本発明に係る通信装置は、
 1つの通信フレームで送信するデータを、先頭から順に送信するデータ送信部と、
 前記データ送信部がデータの送信を完了する前に特定のデータが新たに発生した場合に、前記特定のデータの発生時点で未送信の未送信データのデータ種別を解析し、前記特定のデータを前記未送信データの前に送信するか否かを決定する送信決定部と、
 前記送信決定部が前記特定のデータを前記未送信データの前に送信するよう決定した場合に、前記特定のデータが前記未送信データの前に送信され、前記特定のデータの送信が完了した後の送信が前記未送信データから開始されるように、前記特定のデータと前記未送信データの送信順序を制御する順序制御部とを有し、
 前記データ送信部は、
 前記送信決定部が前記特定のデータを前記未送信データの前に送信するよう決定した場合に、前記順序制御部による送信順序の制御に基づき、前記特定のデータを前記未送信データの前に送信し、前記特定のデータの送信が完了した後の送信を前記未送信データから開始することを特徴とする。
The communication device according to the present invention is
A data transmission unit that sequentially transmits data to be transmitted in one communication frame from the top;
When specific data is newly generated before the data transmission unit completes data transmission, the data type of untransmitted untransmitted data is analyzed at the time of generation of the specific data, and the specific data is A transmission determining unit for determining whether to transmit before the untransmitted data;
When the transmission determining unit determines to transmit the specific data before the untransmitted data, the specific data is transmitted before the untransmitted data, and the transmission of the specific data is completed An order control unit that controls the transmission order of the specific data and the non-transmitted data so that transmission of the non-transmitted data is started,
The data transmitter is
When the transmission determining unit determines to transmit the specific data before the untransmitted data, the specific data is transmitted before the untransmitted data based on the transmission order control by the sequence control unit. The transmission after the transmission of the specific data is started from the untransmitted data.
 本発明によれば、特定のデータを未送信データの前に送信するため、特定のデータを効率的かつ早期に送信することができ、また、特定のデータの送信が完了した後の送信を未送信データから開始するため、未送信データの送信も早期に完了できる。 According to the present invention, since specific data is transmitted before untransmitted data, specific data can be transmitted efficiently and early, and transmission after completion of transmission of specific data is not performed. Since transmission data is started, transmission of untransmitted data can be completed early.
実施の形態1に係る通信方法の概要を示す図。FIG. 3 shows an overview of a communication method according to the first embodiment. 実施の形態1に係る通信装置の構成例を示す図。FIG. 3 shows a configuration example of a communication apparatus according to the first embodiment. 実施の形態1に係る通信フレームの構成例を示す図。FIG. 3 shows a configuration example of a communication frame according to the first embodiment. 実施の形態1に係る障害データを含まない制御フレームを示す図。The figure which shows the control frame which does not contain the failure data which concerns on Embodiment 1. FIG. 実施の形態1に係る障害データを含む制御フレームを示す図。FIG. 4 is a diagram showing a control frame including failure data according to the first embodiment. 実施の形態1に係る障害データを含まない分割フレームを示す図。The figure which shows the division | segmentation frame which does not contain the failure data which concerns on Embodiment 1. FIG. 実施の形態1に係る障害データを含まない分割フレームを示す図。The figure which shows the division | segmentation frame which does not contain the failure data which concerns on Embodiment 1. FIG. 実施の形態1に係る障害フレームを示す図。FIG. 6 is a diagram showing a failure frame according to the first embodiment. 実施の形態1に係る障害データの制御フレームへの挿入例を示す図。The figure which shows the example of insertion to the control frame of the failure data which concerns on Embodiment 1. FIG. 実施の形態1に係る障害データの制御フレームへの挿入例を示す図。The figure which shows the example of insertion to the control frame of the failure data which concerns on Embodiment 1. FIG. 実施の形態1に係る障害データの制御フレームへの挿入例を示す図。The figure which shows the example of insertion to the control frame of the failure data which concerns on Embodiment 1. FIG. 実施の形態1に係る障害データの制御フレームへの挿入例を示す図。The figure which shows the example of insertion to the control frame of the failure data which concerns on Embodiment 1. FIG. 実施の形態1に係るデータ復元方法の概要を示す図。FIG. 3 is a diagram showing an outline of a data restoration method according to the first embodiment. 実施の形態1に係る送信フレーム生成部の構成例を示す図。FIG. 3 is a diagram illustrating a configuration example of a transmission frame generation unit according to the first embodiment. 実施の形態1に係る受信データ再構成部の構成例を示す図。FIG. 3 is a diagram illustrating a configuration example of a reception data reconstruction unit according to the first embodiment. 実施の形態1に係るフレーム受信時の動作例を示すフローチャート図。FIG. 3 is a flowchart showing an operation example at the time of frame reception according to the first embodiment. 実施の形態1に係るデータ生成時の動作例を示すフローチャート図。FIG. 3 is a flowchart showing an operation example at the time of data generation according to the first embodiment. 実施の形態1に係るフレーム送信時の動作例を示すフローチャート図。FIG. 3 is a flowchart showing an operation example at the time of frame transmission according to the first embodiment. 実施の形態1に係るフレーム送信時の動作例を示すフローチャート図。FIG. 3 is a flowchart showing an operation example at the time of frame transmission according to the first embodiment. 実施の形態1に係るフレーム送信時の動作例を示すフローチャート図。FIG. 3 is a flowchart showing an operation example at the time of frame transmission according to the first embodiment. 実施の形態1に係る分割フレーム送信処理の動作例を示すフローチャート図。FIG. 4 is a flowchart showing an operation example of divided frame transmission processing according to the first embodiment. 実施の形態1に係る障害フレーム送信処理の動作例を示すフローチャート図。FIG. 6 is a flowchart showing an operation example of failure frame transmission processing according to the first embodiment. 実施の形態2に係る通信装置の構成例を示す図。FIG. 4 is a diagram illustrating a configuration example of a communication device according to a second embodiment. 実施の形態2に係る通信装置の動作手順を示すフローチャート図。FIG. 6 is a flowchart showing an operation procedure of the communication apparatus according to the second embodiment. 実施の形態2に係るヘッダ受信状態時の処理を示すフローチャート図。The flowchart figure which shows the process at the time of the header reception state which concerns on Embodiment 2. FIG. 実施の形態2に係る制御受信状態時の処理を示すフローチャート図。The flowchart figure which shows the process at the time of the control reception state which concerns on Embodiment 2. FIG. 実施の形態2に係る割込み障害受信状態時の処理を示すフローチャート図。The flowchart figure which shows the process at the time of the interruption failure reception state which concerns on Embodiment 2. FIG. 実施の形態2に係る障害受信状態時の処理を示すフローチャート図。The flowchart figure which shows the process at the time of the fault reception state which concerns on Embodiment 2. FIG. 実施の形態2に係る送信待機状態時の処理を示すフローチャート図。The flowchart figure which shows the process at the time of the transmission standby state which concerns on Embodiment 2. FIG. 実施の形態2に係る自装置送信状態時の処理を示すフローチャート図。The flowchart figure which shows the process at the time of the self-device transmission state which concerns on Embodiment 2. FIG. 実施の形態2に係る自装置自装置状態時及び自装置中継状態時の処理を示すフローチャート図。The flowchart figure which shows the process at the time of the own apparatus self-apparatus state and self-apparatus relay state which concerns on Embodiment 2. FIG. 実施の形態2に係る自装置分割状態時の処理を示すフローチャート図。The flowchart figure which shows the process at the time of the own apparatus division state which concerns on Embodiment 2. FIG. 実施の形態2に係る中継送信状態時の処理を示すフローチャート図。The flowchart figure which shows the process at the time of the relay transmission state which concerns on Embodiment 2. FIG. 実施の形態2に係る中継自装置状態時及び中継中継状態時の処理を示すフローチャート図。The flowchart figure which shows the process at the time of the relay own apparatus state which concerns on Embodiment 2, and a relay relay state. 実施の形態2に係る中継分割状態時の処理を示すフローチャート図。The flowchart figure which shows the process at the time of the relay division | segmentation state which concerns on Embodiment 2. FIG. 実施の形態2に係る中継障害状態時の処理を示すフローチャート図。FIG. 9 is a flowchart showing processing in a relay failure state according to the second embodiment. 実施の形態2に係る自装置障害状態時の処理を示すフローチャート図。The flowchart figure which shows the process at the time of the own apparatus fault state which concerns on Embodiment 2. FIG. 実施の形態2に係る外部入出力装置の出力処理を示すフローチャート図。FIG. 9 is a flowchart showing output processing of the external input / output device according to the second embodiment. 実施の形態2に係る受信待機状態時の処理を示すフローチャート図。The flowchart figure which shows the process at the time of the reception standby state which concerns on Embodiment 2. FIG. 実施の形態2に係るフレーム受信時の状態遷移を示す図。The figure which shows the state transition at the time of the frame reception which concerns on Embodiment 2. FIG. 実施の形態2に係るフレーム送信時の状態遷移を示す図。The figure which shows the state transition at the time of the frame transmission which concerns on Embodiment 2. FIG. 実施の形態1及び2に係る通信装置のハードウェア構成例を示す図。FIG. 3 is a diagram illustrating a hardware configuration example of a communication device according to the first and second embodiments. 従来の通信方法の概要を示す図。The figure which shows the outline | summary of the conventional communication method.
 以下に示す実施の形態1及び2では、制御フレームに障害フレームを割り込ませることで制御通信の周期が短いままに、障害通知の時間を短縮する例を説明する。
 なお、実施の形態1及び2では、制約として、制御通信の周期性を維持するために、制御フレームの送信を実施する通信装置はネットワーク上で同時に1つとし、かつ障害フレームの送信は制御フレームの通信の1周期に1回までとする。
 FAネットワークにおいても制御通信の周期性を維持するために、同様の制約を課す場合が多い。
In Embodiments 1 and 2 described below, an example will be described in which a failure notification time is shortened by interrupting a failure frame in a control frame while keeping the control communication cycle short.
In the first and second embodiments, as a restriction, in order to maintain the periodicity of control communication, the number of communication devices that perform control frame transmission is one on the network at the same time, and the transmission of fault frames is a control frame. It is assumed to be once per communication cycle.
In the FA network, the same restriction is often imposed in order to maintain the periodicity of control communication.
 ここで、図1を参照して、実施の形態1及び2におけるフレームの送信手順を概説する。
 図1は、図43と同様に、3つの通信装置(ノード1、ノード2、ノード3)で構成されるFAネットワークでの通信フレームの送受信状況を示している。
 図1において、A、B及びCは、通信装置(ノード1)から送信される制御フレームを表している。
 なお、Eは通信装置(ノード2)から送信される障害データを表している。
 障害データEは、障害の発生を通知するデータであり、図43で説明した障害フレームのペイロード部分と、所定のデリミタで構成される。
 また、障害データEは、制御フレーム内の制御データよりも優先して送信すべきデータである。
Here, with reference to FIG. 1, a frame transmission procedure in the first and second embodiments will be outlined.
FIG. 1 shows the transmission / reception status of communication frames in an FA network composed of three communication devices (node 1, node 2, and node 3), as in FIG.
In FIG. 1, A, B, and C represent control frames transmitted from the communication device (node 1).
Note that E represents failure data transmitted from the communication device (node 2).
The failure data E is data for notifying the occurrence of a failure, and includes the payload portion of the failure frame described with reference to FIG. 43 and a predetermined delimiter.
The failure data E is data to be transmitted with priority over the control data in the control frame.
 通信装置(ノード1)からは、順に、制御フレームA、制御フレームB、制御フレームCが送信される。
 通信装置(ノード2)では、通信装置(ノード1)からの制御フレームを受信し、受信した制御フレームを所定のバッファに格納し、受信した制御フレームを通信装置(ノード3)に転送する。
 ここで、通信装置(ノード2)が制御フレームAを通信装置(ノード3)に送信している途中で通信装置(ノード2)において障害が発生し、障害データEを送信する必要が生じたとする。
 実施の形態1及び2では、通信装置(ノード2)は、制御データの送信を中断し(制御データA’)、障害データEの送信を開始し、制御フレームAの一部として障害データEをノード3に送信する。
 そして、通信装置(ノード2)は、障害データEの送信を完了したら、バッファに格納されている制御フレームAを用いて、送信が中断した位置から制御データの送信を開始する(制御データA’’)。
A control frame A, a control frame B, and a control frame C are sequentially transmitted from the communication device (node 1).
The communication device (node 2) receives the control frame from the communication device (node 1), stores the received control frame in a predetermined buffer, and transfers the received control frame to the communication device (node 3).
Here, it is assumed that a failure occurs in the communication device (node 2) while the communication device (node 2) is transmitting the control frame A to the communication device (node 3), and it becomes necessary to transmit the failure data E. .
In the first and second embodiments, the communication device (node 2) interrupts transmission of control data (control data A ′), starts transmission of failure data E, and transmits failure data E as part of the control frame A. Transmit to node 3.
When the communication device (node 2) completes the transmission of the failure data E, the communication device (node 2) starts transmitting the control data from the position where the transmission is interrupted using the control frame A stored in the buffer (control data A ′). ').
 上述のように、特許文献1(図43)では、制御フレームの送信中に障害が発生した場合に、制御フレームの送信を完了した後に、障害フレームの送信を行う。
 これに対して、実施の形態1及び2(図1)では、障害データを制御フレームに挿入し、制御フレームの一部として障害データを送信し、障害データの送信後に、制御フレームの残存分のデータのみを送信する。
 これにより、制御フレームの送信中に障害データが発生した場合に、障害データを効率的かつ早期に送信できる。
 このように、実施の形態1及び2の方式によれば、制御通信の周期が短いままに、障害通知の時間を短縮することができる。
As described above, in Patent Document 1 (FIG. 43), when a failure occurs during transmission of a control frame, transmission of the failure frame is performed after transmission of the control frame is completed.
On the other hand, in Embodiments 1 and 2 (FIG. 1), the failure data is inserted into the control frame, the failure data is transmitted as a part of the control frame, and the remaining portion of the control frame is transmitted after the failure data is transmitted. Send data only.
As a result, when failure data occurs during transmission of the control frame, the failure data can be transmitted efficiently and early.
As described above, according to the systems of the first and second embodiments, it is possible to reduce the failure notification time while keeping the control communication cycle short.
 実施の形態1.
 図2は、本実施の形態に係る通信装置100の構成例を示す。
 通信装置100は、通信装置200からフレームを受信し、通信装置300にフレームを送信する。
 通信装置100にとって、通信装置200は外部装置の例である。
 通信装置100が通信装置300に送信するフレームは、通信装置200から受信したフレームと、通信装置100が生成したフレームである。
 また、通信装置100は、通信装置200から受信した制御フレームに通信装置100が生成した障害データを挿入し、通信装置100が生成した障害データが挿入された通信装置200からの制御フレームを通信装置300に送信する場合もある。
 また、通信装置100は、通信装置200から受信した制御フレームに通信装置200から受信した障害データを挿入し、通信装置200から受信した障害データが挿入された通信装置200からの制御フレームを通信装置300に送信する場合もある。
 また、通信装置100は、通信装置100が生成した制御フレームに通信装置200から受信した障害データを挿入し、通信装置200から受信した障害データが挿入された通信装置100が生成した制御フレームを通信装置300に送信する場合もある。
 また、通信装置100は、通信装置100が生成した制御フレームに通信装置100が生成した障害データを挿入し、通信装置100が生成した障害データが挿入された通信装置100が生成した制御フレームを通信装置300に送信する場合もある。
 なお、図2では、通信装置100の構成例を示しているが、通信装置200及び通信装置300も図1に示す構成を有する。
Embodiment 1 FIG.
FIG. 2 shows a configuration example of the communication apparatus 100 according to the present embodiment.
The communication device 100 receives the frame from the communication device 200 and transmits the frame to the communication device 300.
For the communication device 100, the communication device 200 is an example of an external device.
The frames transmitted from the communication apparatus 100 to the communication apparatus 300 are a frame received from the communication apparatus 200 and a frame generated by the communication apparatus 100.
Further, the communication device 100 inserts the failure data generated by the communication device 100 into the control frame received from the communication device 200, and transmits the control frame from the communication device 200 into which the failure data generated by the communication device 100 is inserted. It may be transmitted to 300.
Further, the communication device 100 inserts the failure data received from the communication device 200 into the control frame received from the communication device 200, and transmits the control frame from the communication device 200 into which the failure data received from the communication device 200 is inserted. It may be transmitted to 300.
Also, the communication device 100 inserts the failure data received from the communication device 200 into the control frame generated by the communication device 100, and communicates the control frame generated by the communication device 100 into which the failure data received from the communication device 200 is inserted. It may be transmitted to the device 300.
Further, the communication device 100 inserts the failure data generated by the communication device 100 into the control frame generated by the communication device 100 and communicates the control frame generated by the communication device 100 into which the failure data generated by the communication device 100 is inserted. It may be transmitted to the device 300.
2 shows a configuration example of the communication device 100, the communication device 200 and the communication device 300 also have the configuration shown in FIG.
 制御部101は、後述する102~107の各要素の動作を制御する。 The control unit 101 controls the operation of each element 102 to 107 described later.
 フレーム受信部102は、通信装置200からフレームを受信する。
 フレーム受信部102はデータ受信部の例に相当する。
The frame receiving unit 102 receives a frame from the communication device 200.
The frame receiving unit 102 corresponds to an example of a data receiving unit.
 受信データ分配部103は、フレーム受信部102が受信したフレームを、後述する受信データ再構成部104と送信フレーム生成部106に転送する。
 また、受信データ分配部103は、フレーム受信部102が受信したフレームの種類を判別し、フレーム受信部102が受信したフレームが後述する障害フレームであれば、後述する送信フレーム生成部106に障害フレームの受信を通知する。
The reception data distribution unit 103 transfers the frame received by the frame reception unit 102 to a reception data reconstruction unit 104 and a transmission frame generation unit 106 described later.
Also, the reception data distribution unit 103 determines the type of frame received by the frame reception unit 102, and if the frame received by the frame reception unit 102 is a failure frame described later, the transmission frame generation unit 106 described later receives a failure frame. Notify receipt of.
 受信データ再構成部104は、フレーム受信部102が受信したフレームから制御通信のための制御データを抽出して、制御データを再構成する。
 なお、受信データ再構成部104の詳細は、後述する。
The reception data reconstruction unit 104 extracts control data for control communication from the frame received by the frame reception unit 102, and reconstructs the control data.
Details of the received data reconstruction unit 104 will be described later.
 データ生成部105は、フレーム送信部107から送信させるフレーム(データ)を生成する。
 また、データ生成部105は、生成したフレームが障害フレームであれば、送信フレーム生成部106に障害フレームの生成を通知する。
The data generation unit 105 generates a frame (data) to be transmitted from the frame transmission unit 107.
If the generated frame is a fault frame, the data generation unit 105 notifies the transmission frame generation unit 106 of the generation of the fault frame.
 送信フレーム生成部106は、受信データ分配部103よりフレーム受信部102が受信したフレームを入力し、また、データ生成部105が生成したフレームを入力し、フレーム送信部107から送信させるフレームを生成する。
 また、送信フレーム生成部106は、受信データ分配部103から障害フレームの受信が通知された場合、又はデータ生成部105から障害フレームの生成が通知された場合に、障害フレームに含まれている障害データを優先してフレーム送信部107から送信させるようにフレームを生成する。
 送信フレーム生成部106の詳細は、後述する。
The transmission frame generation unit 106 receives the frame received by the frame reception unit 102 from the reception data distribution unit 103, and also receives the frame generated by the data generation unit 105 and generates a frame to be transmitted from the frame transmission unit 107. .
The transmission frame generation unit 106 also includes a failure included in the failure frame when the reception data distribution unit 103 is notified of the reception of the failure frame or when the data generation unit 105 is notified of the generation of the failure frame. A frame is generated so that data is transmitted from the frame transmission unit 107 with priority.
Details of the transmission frame generation unit 106 will be described later.
 フレーム送信部107は、通信装置300にフレームを送信する。
 より具体的には、フレーム送信部107は、1つのフレームで送信するデータを、先頭から順に送信する。
 フレーム送信部107は、データ送信部の例に相当する。
The frame transmission unit 107 transmits a frame to the communication device 300.
More specifically, the frame transmission unit 107 transmits data to be transmitted in one frame in order from the top.
The frame transmission unit 107 corresponds to an example of a data transmission unit.
 次に、通信装置100、通信装置200、通信装置300の間で送受信されるフレームのフレームフォーマットを説明する。 Next, the frame format of frames transmitted and received between the communication device 100, the communication device 200, and the communication device 300 will be described.
 図3は、全てのフレームのひな形を示す。
 フレーム1000は、フレームヘッダ1010とフレームデータ1020で構成される。
 フレームヘッダ1010は、フレームタイプ1011とフレームサイズ1012で構成される。
 フレームタイプ1011は、フレーム1000の種類を示しフレーム1000の種類には制御フレーム、分割フレーム、障害フレームの3種類がある。
 制御フレームは、制御データが含まれるフレームである。
 分割フレームは、制御フレームに障害データが含まれることにより、制御フレームから押し出されたデータ(制御データ、障害データ)が含まれるフレームである。
 障害フレームは、障害データが含まれるフレームである。
 フレームサイズ1012は、フレーム1000の受信完了を検出するためのフレームサイズである。
 フレームサイズ1012には、フレーム1000全体のデータサイズが示されている。
FIG. 3 shows a template for all frames.
The frame 1000 includes a frame header 1010 and frame data 1020.
The frame header 1010 includes a frame type 1011 and a frame size 1012.
The frame type 1011 indicates the type of the frame 1000, and there are three types of the frame 1000: a control frame, a divided frame, and a failure frame.
The control frame is a frame including control data.
The divided frame is a frame including data (control data, failure data) pushed out from the control frame due to failure data included in the control frame.
The failure frame is a frame including failure data.
The frame size 1012 is a frame size for detecting completion of reception of the frame 1000.
The frame size 1012 shows the data size of the entire frame 1000.
 以下、図4~図8を参照して、3種類のフレームを説明する。
 3種類のフレームは共通してフレームタイプ1011とフレームサイズ1012とフレームデータ1020を持つ。
 制御フレームを示すフレームタイプ1011を持つフレームヘッダ1010を制御フレームヘッダ2010、3010と呼ぶ。
 分割フレームを示すフレームタイプ1011を持つフレームヘッダ1010を分割フレームヘッダ4010、5010と呼ぶ。
 障害フレームを示すフレームタイプ1011を持つフレームヘッダ1010を障害フレームヘッダ6010と呼ぶ。
 3種類のフレームは、それぞれ構成の異なるフレームデータ1020を持つ。
 フレームデータ1020の構成要素となるのは制御データ2020、障害発生前分割制御データ3020、デリミタ3030、5020、障害データ3040、5030、6020、障害発生後分割制御データ3050、フレームから押し出された分割制御データ4020である。
Hereinafter, the three types of frames will be described with reference to FIGS.
The three types of frames have a frame type 1011, a frame size 1012, and frame data 1020 in common.
Frame headers 1010 having a frame type 1011 indicating a control frame are referred to as control frame headers 2010 and 3010.
A frame header 1010 having a frame type 1011 indicating a divided frame is referred to as a divided frame header 4010, 5010.
A frame header 1010 having a frame type 1011 indicating a failure frame is referred to as a failure frame header 6010.
The three types of frames have frame data 1020 having different configurations.
The components of the frame data 1020 are the control data 2020, the pre-failure division control data 3020, the delimiters 3030 and 5020, the fault data 3040, 5030 and 6020, the post-failure division control data 3050, and the split control pushed out of the frame Data 4020.
 次に、図4及び図5を参照して、制御フレームのフレームフォーマットを説明する。
 制御フレームには、障害データを含まない制御フレーム2000と障害データを含む制御フレーム3000がある。
Next, the frame format of the control frame will be described with reference to FIGS.
The control frame includes a control frame 2000 that does not include failure data and a control frame 3000 that includes failure data.
 図4に示すように、障害データを含まない制御フレーム2000において、2010は制御フレームヘッダであり、2020は制御データである。
 障害データを含まない制御フレーム2000は、フレーム受信部102が受信した制御フレーム、データ生成部105が生成した制御フレームのままである。
As shown in FIG. 4, in a control frame 2000 that does not include failure data, 2010 is a control frame header and 2020 is control data.
The control frame 2000 that does not include failure data remains the control frame received by the frame receiving unit 102 and the control frame generated by the data generating unit 105.
 図5に示すように、障害データを含む制御フレーム3000において、3010は制御フレームヘッダであり、3020は障害発生前分割制御データであり、3030は障害データの範囲を検出するためのデリミタであり、3040は障害データであり、3050は障害発生後分割制御データである。
 障害データを含む制御フレーム3000は、フレーム受信部102が受信した制御フレーム、データ生成部105が生成した制御フレームに、フレーム送信部107においてデリミタ3030と障害データ3040とが挿入されている。
 なお、制御フレームヘッダ3010は、障害データを含まない制御フレーム2000の制御フレームヘッダ2010と同じものである。
 換言すれば、制御フレームヘッダ3010は、デリミタ3030と障害データ3040とが挿入される前の制御フレームの制御フレームヘッダから変化していない。
As shown in FIG. 5, in the control frame 3000 including failure data, 3010 is a control frame header, 3020 is division control data before failure occurrence, 3030 is a delimiter for detecting the range of failure data, Reference numeral 3040 denotes failure data, and reference numeral 3050 denotes post-failure division control data.
In the control frame 3000 including failure data, a delimiter 3030 and failure data 3040 are inserted into the control frame received by the frame reception unit 102 and the control frame generated by the data generation unit 105 in the frame transmission unit 107.
The control frame header 3010 is the same as the control frame header 2010 of the control frame 2000 that does not include failure data.
In other words, the control frame header 3010 has not changed from the control frame header of the control frame before the delimiter 3030 and the failure data 3040 are inserted.
 次に、図6及び図7を参照して、分割フレームのフレームフォーマットを説明する。
 分割フレームには、障害データを含まない分割フレーム4000と障害データを含む分割フレーム5000がある。
 なお、障害データを含まない分割フレーム4000と障害データを含む分割フレーム5000のいずれも、フレーム送信部107により生成される。
Next, the frame format of the divided frames will be described with reference to FIGS.
The divided frames include a divided frame 4000 that does not include failure data and a divided frame 5000 that includes failure data.
Note that the frame transmission unit 107 generates both the divided frame 4000 not including the failure data and the divided frame 5000 including the failure data.
 図6に示すように、障害データを含まない分割フレーム4000において、4010は分割フレームヘッダであり、4020はフレームから押し出された分割制御データである。
 障害データを含まない分割フレーム4000は、図5に示すように、制御フレームにデリミタ3030と障害データ3040とが挿入されたために、制御フレームから押し出された部分(制御データ)を、フレームから押し出された分割制御データ4020として含む。
As shown in FIG. 6, in a divided frame 4000 that does not include failure data, 4010 is a divided frame header, and 4020 is divided control data pushed out of the frame.
As shown in FIG. 5, in the divided frame 4000 not including the failure data, the delimiter 3030 and the failure data 3040 are inserted into the control frame. The division control data 4020 is included.
 図7に示すように、障害データを含む分割フレーム5000において、5010は分割フレームヘッダであり、5020はデリミタであり、5030は障害データである。
 障害データを含む分割フレーム5000は、最後尾にデリミタ5020と障害データ5030が含まれている制御フレームに、新たなデリミタ3030と障害データ3040とが挿入されたために、制御フレームから押し出された部分(デリミタ5020と障害データ5030)を含む。
As shown in FIG. 7, in a divided frame 5000 including failure data, 5010 is a divided frame header, 5020 is a delimiter, and 5030 is failure data.
In the divided frame 5000 including the failure data, a new delimiter 3030 and the failure data 3040 are inserted into the control frame including the delimiter 5020 and the failure data 5030 at the end, and the portion ( Delimiter 5020 and failure data 5030).
 次に、図8を参照して、障害フレームのフレームフォーマットを説明する。
 障害フレーム6000において、6010は障害フレームヘッダであり、6020は障害データである。
 障害フレーム6000は、フレーム受信部102が受信した障害フレーム、データ生成部105が生成した障害フレームである。
 なお、障害フレーム6000には、他の障害データが挿入されることはない。
Next, the frame format of the failure frame will be described with reference to FIG.
In the failure frame 6000, 6010 is a failure frame header, and 6020 is failure data.
The failure frame 6000 is a failure frame received by the frame reception unit 102 and a failure frame generated by the data generation unit 105.
It should be noted that no other fault data is inserted into the fault frame 6000.
 なお、図4~図8のフレームフォーマットにおいて、フレームヘッダは予め定められたサイズであり、デリミタも予め定められたサイズであり、障害データも予め定められたサイズである。
 制御フレームのサイズは可変である。
 但し、前述したように、制御フレームに障害データとデリミタが挿入された場合(図5)でも、障害データとデリミタ挿入後の制御フレームのサイズは、当初のサイズのまま維持される。
 このため、デリミタと障害データのデータサイズ分のデータが押し出されることになり、押し出されたデータが分割フレーム(図6、図7)にて送信される。
 また、フレームタイプとフレームサイズとフレームデータのフレームの先頭からの位置は予め定められている。
4 to 8, the frame header has a predetermined size, the delimiter has a predetermined size, and the failure data has a predetermined size.
The size of the control frame is variable.
However, as described above, even when the failure data and the delimiter are inserted into the control frame (FIG. 5), the size of the control frame after the insertion of the failure data and the delimiter is maintained at the original size.
For this reason, data corresponding to the data size of the delimiter and the failure data is pushed out, and the pushed-out data is transmitted in divided frames (FIGS. 6 and 7).
Further, the frame type, the frame size, and the position of the frame data from the top of the frame are determined in advance.
 なお、本実施の形態において通信装置100、通信装置200、通信装置300の間で、データはワード単位でやり取りされる。
 1ワードはデリミタと同じサイズである。
In this embodiment, data is exchanged in word units between the communication device 100, the communication device 200, and the communication device 300.
One word is the same size as the delimiter.
 なお、通信装置100は、以下のルールに従って、障害データを制御フレームに挿入する。
 ルール:
 制御フレームの送信中に障害データが発生した場合に、障害データの発生時点で未送信の未送信データ内で先頭に位置するデータ(先頭未送信データ)のデータ種別が優先種別でない場合(つまり、先頭未送信データが制御データの場合)、通信装置100は、即座にデリミタと障害データの送信を開始する(つまり、デリミタと障害データを先頭未送信データである制御データに先行して送信する)。
 一方、先頭未送信データのデータ種別が優先種別である場合(つまり、先頭未送信データが障害データの場合)、通信装置100は、先頭未送信データを含む障害データの送信が完了した時点で、新たに発生した障害データの送信を開始する(つまり、先頭未送信データを含む障害データを送信した後にデリミタと新たな障害データを送信する)。
 なお、「障害データが発生した場合」とは、通信装置100が通信装置200から障害フレームを受信した場合と通信装置100内のデータ生成部105が障害フレームを生成した場合の両者を含む。
 また、通信装置100が送信中の制御フレームは、フレーム受信部102が通信装置200から受信した制御フレーム、通信装置100のデータ生成部105が生成した制御フレームのいずれかである。
 障害データを優先して送信した結果、押し出されたデータは、分割フレームとして、制御フレームに続けて送信する。
Note that the communication device 100 inserts failure data into the control frame according to the following rules.
rule:
When failure data occurs during transmission of a control frame, and the data type of the data located at the beginning of untransmitted untransmitted data (head untransmitted data) at the time of failure data generation is not a priority type (that is, When the head untransmitted data is control data), the communication apparatus 100 immediately starts transmitting the delimiter and the failure data (that is, the delimiter and the failure data are transmitted prior to the control data that is the head untransmitted data). .
On the other hand, when the data type of the head untransmitted data is the priority type (that is, when the head untransmitted data is fault data), the communication device 100 completes the transmission of the fault data including the head untransmitted data. Transmission of newly generated failure data is started (that is, after the failure data including the head untransmitted data is transmitted, the delimiter and new failure data are transmitted).
Note that “when failure data occurs” includes both when the communication device 100 receives a failure frame from the communication device 200 and when the data generation unit 105 in the communication device 100 generates a failure frame.
The control frame being transmitted by the communication apparatus 100 is either a control frame received by the frame reception unit 102 from the communication apparatus 200 or a control frame generated by the data generation unit 105 of the communication apparatus 100.
As a result of transmitting the failure data with priority, the pushed-out data is transmitted as a divided frame following the control frame.
 次に、図5に示す障害データを含む制御フレーム3000の具体例を、図9~図12を参照して説明する。 Next, a specific example of the control frame 3000 including the failure data shown in FIG. 5 will be described with reference to FIGS.
 図9は、障害データを含まない制御フレーム2000aに障害データを挿入する例を示している。
 なお、図9~図12では、制御フレームヘッダを「制御」、制御データを「A」と表記している。
 また、分割フレームヘッダを「分割」と表記していている。
 図9の例では、障害データが発生した時点の未送信先頭データは制御データなので、通信装置100は、即座に障害データE(デリミタと障害データ)の送信を開始する。
 この結果、制御フレーム3000aに示すように、障害データEが送信される。
 なお、図9では、デリミタと障害データを合わせて障害データEとしている。
 図10~図12においても、障害データEと表記するが、図9と同様に、障害データEはデリミタと障害データの組合せである。
 障害データEの送信が終了すると、通信装置100は、未送信の制御データAを送信する。
 障害データEが挿入されたため、未送信の制御データAの一部は当該制御フレーム3000aに含ませることができない。
 このため、通信装置100は、制御フレーム3000aに含ませることができなかった一部の制御データを分割フレーム4000aにて送信する。
 この結果、障害データEと、障害データEの挿入前の制御データA(1/3)と、障害データEの挿入後の制御データA(2/3)が、同じ制御フレーム3000aで送信され、押し出された制御データA(3/3)が分割フレーム4000aで送信される。
FIG. 9 shows an example in which failure data is inserted into a control frame 2000a that does not include failure data.
9 to 12, the control frame header is represented as “control”, and the control data is represented as “A”.
Also, the divided frame header is described as “divided”.
In the example of FIG. 9, the untransmitted head data at the time when the failure data occurs is the control data, so the communication device 100 immediately starts transmitting the failure data E (delimiter and failure data).
As a result, the failure data E is transmitted as shown in the control frame 3000a.
In FIG. 9, the delimiter and failure data are combined into failure data E.
10 to 12, the failure data E is written, but the failure data E is a combination of a delimiter and failure data as in FIG.
When the transmission of the failure data E ends, the communication device 100 transmits the control data A that has not been transmitted.
Since the failure data E is inserted, a part of the untransmitted control data A cannot be included in the control frame 3000a.
For this reason, the communication apparatus 100 transmits some control data that could not be included in the control frame 3000a in the divided frame 4000a.
As a result, the failure data E, the control data A (1/3) before insertion of the failure data E, and the control data A (2/3) after insertion of the failure data E are transmitted in the same control frame 3000a. The extruded control data A (3/3) is transmitted in the divided frame 4000a.
 図10は、障害データE0を含む制御フレーム3000bに新たな障害データE1を挿入する例を示している。
 なお、障害データE0が挿入されたために制御フレーム3000bから押し出された一部の制御データA(制御データA(3/3))は、後続する分割フレーム4000bに含まれている。
 図10の例では、障害データが発生した時点の未送信先頭データは制御データA(1/3)であるため、通信装置100は、即座に障害データE1の送信を開始する。
 この結果、制御データA(1/3)の途中で障害データE1の送信が開始し、障害データE1の送信後に、通信装置100は、制御データA(1/3)の未送信部分と、障害データE0と、障害データE0以降の制御データAを制御フレーム3000cにて送信する。
 障害データE1が挿入されたため、制御データAの一部は当該制御フレーム3000cに含ませることができない。
 このため、通信装置100は、制御フレーム3000cに含ませることができなかった一部の制御データを分割フレーム4000cにて送信する。
 また、通信装置100は、分割フレーム4000cの送信後に、分割フレーム4000bを分割フレーム4000dとして送信する。
 この結果、障害データE1と、障害データE1の挿入前の制御データA(1/5)と、障害データE1の挿入後の制御データA(2/5)と、障害データE0と、障害データE0の後の制御データA(3/5)が同じ制御フレーム3000cで送信され、押し出された制御データA(4/5)が分割フレーム4000cで送信され、更に、分割フレーム4000bの制御データA(5/5)が分割フレーム4000dで送信される。
FIG. 10 shows an example in which new failure data E1 is inserted into the control frame 3000b including the failure data E0.
A part of the control data A (control data A (3/3)) pushed out from the control frame 3000b because the failure data E0 is inserted is included in the subsequent divided frame 4000b.
In the example of FIG. 10, since the untransmitted head data at the time when the failure data occurs is the control data A (1/3), the communication device 100 immediately starts transmitting the failure data E1.
As a result, the transmission of the failure data E1 starts in the middle of the control data A (1/3), and after the transmission of the failure data E1, the communication apparatus 100 determines that the untransmitted part of the control data A (1/3) and the failure Data E0 and control data A after the failure data E0 are transmitted in the control frame 3000c.
Since the failure data E1 is inserted, a part of the control data A cannot be included in the control frame 3000c.
For this reason, the communication apparatus 100 transmits a part of control data that could not be included in the control frame 3000c in the divided frame 4000c.
In addition, after transmitting the divided frame 4000c, the communication device 100 transmits the divided frame 4000b as the divided frame 4000d.
As a result, the failure data E1, the control data A (1/5) before the failure data E1 is inserted, the control data A (2/5) after the failure data E1 is inserted, the failure data E0, and the failure data E0. The control data A (3/5) after is transmitted in the same control frame 3000c, the extruded control data A (4/5) is transmitted in the divided frame 4000c, and the control data A (5 in the divided frame 4000b is further transmitted. / 5) is transmitted in the divided frame 4000d.
 図11は、障害データE0を含む制御フレーム3000eに新たな障害データE1を挿入する例を示している。
 なお、障害データE0が挿入されたために制御フレーム3000eから押し出された一部の制御データA(制御データA(3/3))は、後続する分割フレーム4000eに含まれている。
 図11の例では、障害データが発生した時点の未送信先頭データは制御データA(2/3)であるため、通信装置100は、即座に障害データE1の送信を開始する。
 この結果、制御データA(2/3)の途中で障害データE1の送信が開始し、障害データE1の送信後に、通信装置100は、制御データA(2/3)の未送信部分を制御フレーム3000fにて送信する。
 制御フレーム3000fには、障害データの発生前に送信された制御データA(1/5)と障害データE0と、制御データA(2/5)も含まれる。
 障害データE1が挿入されたため、制御データA(2/3)の一部は当該制御フレーム3000fに含ませることができない。
 このため、通信装置100は、制御フレーム3000fに含ませることができなかった一部の制御データを分割フレーム4000fにて送信する。
 また、通信装置100は、分割フレーム4000fの送信後に、分割フレーム4000eを分割フレーム4000gとして送信する。
 この結果、制御データA(1/5)と、障害データE0と、制御データA(2/5)と、障害データE1と、障害データE1の挿入後の制御データA(3/5)が同じ制御フレーム3000fで送信され、押し出された制御データA(4/5)が分割フレーム4000fで送信され、更に、分割フレーム4000eの制御データA(5/5)が分割フレーム4000gで送信される。
FIG. 11 shows an example in which new failure data E1 is inserted into the control frame 3000e including the failure data E0.
A part of the control data A (control data A (3/3)) pushed out from the control frame 3000e because the failure data E0 is inserted is included in the subsequent divided frame 4000e.
In the example of FIG. 11, since the untransmitted head data at the time when the failure data occurs is the control data A (2/3), the communication device 100 immediately starts transmitting the failure data E1.
As a result, transmission of the failure data E1 starts in the middle of the control data A (2/3), and after the transmission of the failure data E1, the communication apparatus 100 controls the untransmitted portion of the control data A (2/3) as a control frame. Transmit at 3000f.
The control frame 3000f also includes control data A (1/5), failure data E0, and control data A (2/5) transmitted before the occurrence of the failure data.
Since the failure data E1 is inserted, a part of the control data A (2/3) cannot be included in the control frame 3000f.
For this reason, the communication apparatus 100 transmits some control data that could not be included in the control frame 3000f in the divided frame 4000f.
In addition, after transmitting the divided frame 4000f, the communication device 100 transmits the divided frame 4000e as the divided frame 4000g.
As a result, the control data A (1/5), the failure data E0, the control data A (2/5), the failure data E1, and the control data A (3/5) after insertion of the failure data E1 are the same. The control data A (4/5) transmitted and transmitted in the control frame 3000f is transmitted in the divided frame 4000f, and further, the control data A (5/5) in the divided frame 4000e is transmitted in the divided frame 4000g.
 図12は、障害データE0を含む制御フレーム3000hに新たな障害データE1を挿入する例を示している。
 なお、障害データE0が挿入されたために制御フレーム3000hから押し出された一部の制御データA(制御データA(3/3))は、後続する分割フレーム4000hに含まれている。
 図12の例では、障害データが発生した時点の未送信先頭データは障害データE0であるため、通信装置100は、障害データE0の送信完了を待って障害データE1の送信を開始する。
 制御フレーム3000iには、障害データE0の前に送信された制御データA(1/5)も含まれる。
 障害データE1が挿入されたため、制御データA(2/3)の一部は当該制御フレーム3000iに含ませることができない。
 このため、通信装置100は、制御フレーム3000iに含ませることができなかった一部の制御データを分割フレーム4000iにて送信する。
 また、通信装置100は、分割フレーム4000iの送信後に、分割フレーム4000hを分割フレーム4000jとして送信する。
 この結果、制御データA(1/4)と、障害データE0と、障害データE1と、障害データE1の挿入後の制御データA(2/4)が同じ制御フレーム3000iで送信され、押し出された制御データA(3/4)が分割フレーム4000iで送信され、更に、分割フレーム4000hの制御データA(4/4)が分割フレーム4000jで送信される。
FIG. 12 shows an example in which new failure data E1 is inserted into the control frame 3000h including the failure data E0.
Part of the control data A (control data A (3/3)) pushed out from the control frame 3000h because the failure data E0 is inserted is included in the subsequent divided frame 4000h.
In the example of FIG. 12, since the untransmitted head data at the time when the failure data occurs is the failure data E0, the communication apparatus 100 waits for the completion of the transmission of the failure data E0 and starts transmitting the failure data E1.
The control frame 3000i also includes control data A (1/5) transmitted before the failure data E0.
Since the failure data E1 is inserted, a part of the control data A (2/3) cannot be included in the control frame 3000i.
For this reason, the communication apparatus 100 transmits some control data that could not be included in the control frame 3000i in the divided frame 4000i.
In addition, after transmitting the divided frame 4000i, the communication device 100 transmits the divided frame 4000h as the divided frame 4000j.
As a result, the control data A (1/4), the failure data E0, the failure data E1, and the control data A (2/4) after the insertion of the failure data E1 are transmitted and pushed out in the same control frame 3000i. Control data A (3/4) is transmitted in divided frame 4000i, and control data A (4/4) of divided frame 4000h is transmitted in divided frame 4000j.
 次に、以上の説明を踏まえて、送信フレーム生成部106の詳細を説明する。
 図14は、送信フレーム生成部106の内部構成例を示す。
 図14に示すように、送信フレーム生成部106は、送信用バッファ部110とフレーム生成管理部120に大別される。
 なお、図14では、制御部101と受信データ再構成部104の図示を省略している。
Next, based on the above description, details of the transmission frame generation unit 106 will be described.
FIG. 14 illustrates an internal configuration example of the transmission frame generation unit 106.
As shown in FIG. 14, the transmission frame generation unit 106 is roughly divided into a transmission buffer unit 110 and a frame generation management unit 120.
In FIG. 14, the control unit 101 and the received data reconstruction unit 104 are not shown.
 送信用バッファ部110において、障害フレームバッファ部111は、受信データ分配部103から転送された障害フレーム及びデータ生成部105により生成された障害フレームを、FIFO(First-In First-Out)方式で蓄積する。
 なお、障害フレームバッファ部111は、障害フレームヘッダを含めた障害フレーム全体を蓄積する。
 制御フレームバッファ部112は、受信データ分配部103から転送された制御フレーム(障害データが含まれる制御フレームと障害データが含まれない制御フレームの両者)及びデータ生成部105により生成された制御フレームと、受信データ分配部103から転送された分割フレーム(障害データが含まれる分割フレームと障害データが含まれない分割フレームの両者)とを、FIFO方式で蓄積する。
 なお、制御フレームバッファ部112は、制御フレームヘッダを含めた制御フレーム全体を蓄積し、分割フレームヘッダを含めた分割フレーム全体を蓄積する。
In the transmission buffer unit 110, the failure frame buffer unit 111 stores the failure frame transferred from the reception data distribution unit 103 and the failure frame generated by the data generation unit 105 using a FIFO (First-In First-Out) method. To do.
The fault frame buffer unit 111 stores the entire fault frame including the fault frame header.
The control frame buffer unit 112 includes a control frame transferred from the received data distribution unit 103 (both a control frame including failure data and a control frame not including failure data) and a control frame generated by the data generation unit 105. Then, the divided frames transferred from the reception data distribution unit 103 (both divided frames including failure data and divided frames not including failure data) are accumulated by the FIFO method.
The control frame buffer unit 112 accumulates the entire control frame including the control frame header, and accumulates the entire divided frame including the divided frame header.
 フレーム生成管理部120において、送信決定部121は、フレーム送信部107がデータの送信を完了する前に障害データ(特定のデータの例)が発生した場合に、先頭未送信データのデータ種別(制御データか障害データか)を解析し、障害データを未送信データの前に送信するか否かを決定する。
 つまり、送信決定部121は、先頭未送信データが制御データであれば、障害データを先頭未送信データ(制御データ)に先行して送信すると決定する。
 一方、送信決定部121は、先頭未送信データが障害データであれば、先頭未送信データを含む障害データが送信された後に新たな障害データを送信すると決定する。
 なお、送信決定部121は、受信データ分配部103又はデータ生成部105からの通知により障害データの発生を検出することできる。
 また、送信決定部121は、障害データのデータサイズを予め記憶している。
In the frame generation management unit 120, the transmission determination unit 121 determines the data type (control of the head untransmitted data) when failure data (an example of specific data) occurs before the frame transmission unit 107 completes data transmission. Data or failure data) and determine whether failure data is transmitted before untransmitted data.
That is, if the head untransmitted data is control data, the transmission determining unit 121 determines to transmit the failure data prior to the head untransmitted data (control data).
On the other hand, if the head untransmitted data is failure data, the transmission determining unit 121 determines to transmit new failure data after the failure data including the head untransmitted data is transmitted.
Note that the transmission determination unit 121 can detect the occurrence of failure data based on a notification from the reception data distribution unit 103 or the data generation unit 105.
In addition, the transmission determination unit 121 stores a data size of failure data in advance.
 順序制御部122は、送信決定部121が障害データの発生を検出していなければ、制御フレームバッファ部112内のデータを1ワードずつ読み出し、読み出した1ワードのデータをフレーム送信部107に出力する。
 そして、送信決定部121が障害データの発生を検出した場合は、順序制御部122は、障害データの既定データサイズに達するまで、障害フレームバッファ部111内のデータを1ワードずつ読み出し、読み出した1ワードのデータをフレーム送信部107に出力する。
 つまり、順序制御部122は、制御フレームバッファ部112内のデータをフレーム送信部107に出力している際に、送信決定部121が障害データの発生を検出した場合は、制御フレームバッファ部112内のデータのフレーム送信部107への出力を中止し、障害データのデータサイズに達するまで、障害フレームバッファ部111内のデータをフレーム送信部107に出力する。
 このように、順序制御部122は、障害データと制御データの送信順序を制御し、障害データが先に送信されるようにする。
The sequence control unit 122 reads the data in the control frame buffer unit 112 word by word, and outputs the read one-word data to the frame transmission unit 107 unless the transmission determination unit 121 detects the occurrence of failure data. .
When the transmission determination unit 121 detects the occurrence of failure data, the order control unit 122 reads the data in the failure frame buffer unit 111 word by word until the predetermined data size of the failure data is reached, and reads 1 The word data is output to the frame transmission unit 107.
That is, the sequence control unit 122 outputs the data in the control frame buffer unit 112 when the transmission determination unit 121 detects the occurrence of failure data while outputting the data in the control frame buffer unit 112 to the frame transmission unit 107. Is stopped from being output to the frame transmission unit 107, and the data in the failure frame buffer unit 111 is output to the frame transmission unit 107 until the data size of the failure data is reached.
As described above, the order control unit 122 controls the transmission order of the failure data and the control data so that the failure data is transmitted first.
 残りデータサイズカウント部123は、送信可能残りデータサイズ(以下、「送信可能残りサイズ」という)とフレーム残りデータサイズ(以下、「フレーム残りサイズ」という)をカウントする。
 送信可能残りサイズは、現在の制御フレームで送信可能な残りのデータサイズである。
 つまり、送信可能残りサイズは、制御フレームヘッダ2010(図4)のフレームサイズ1012(図3)に記述されているデータサイズから制御フレームヘッダ2010のデータサイズ(既定データサイズ)を差し引いて得られるデータサイズ(制御データ2020のデータサイズ)から、送信済みの制御データのデータサイズと送信済みの障害データ(挿入された障害データ)のデータサイズの合計値を差し引いた値である。
 フレーム残りサイズは、現在の制御フレームに含まれる制御データのうち未送信の制御データのデータサイズである。
 つまり、フレーム残りサイズは、制御フレームヘッダ2010(図4)のフレームサイズ1012(図3)に記述されているデータサイズから制御フレームヘッダ2010のデータサイズ(既定データサイズ)を差し引いて得られるデータサイズ(制御データ2020のデータサイズ)から、送信済みの制御データのデータサイズを差し引いた値である。
 送信決定部121は、障害データの発生時点での送信可能残りサイズが、障害データのデータサイズとデリミタのデータサイズとの加算値以上であれば、当該障害データを現在の制御フレームで送信するよう決定する。
 一方、障害データの発生時点での送信可能残りサイズが、障害データのデータサイズとデリミタのデータサイズとの加算値未満であれば、送信決定部121は、当該障害データを現在の制御フレームではなく、後続のフレームで送信するよう決定する。
The remaining data size counting unit 123 counts the remaining transmittable data size (hereinafter referred to as “transmittable remaining size”) and the remaining frame data size (hereinafter referred to as “frame remaining size”).
The remaining transmittable size is the remaining data size that can be transmitted in the current control frame.
That is, the remaining transmittable size is data obtained by subtracting the data size (default data size) of the control frame header 2010 from the data size described in the frame size 1012 (FIG. 3) of the control frame header 2010 (FIG. 4). This is a value obtained by subtracting the total size of the data size of the transmitted control data and the data size of the transmitted fault data (inserted fault data) from the size (data size of the control data 2020).
The remaining frame size is the data size of untransmitted control data among the control data included in the current control frame.
That is, the remaining frame size is a data size obtained by subtracting the data size (default data size) of the control frame header 2010 from the data size described in the frame size 1012 (FIG. 3) of the control frame header 2010 (FIG. 4). This is a value obtained by subtracting the data size of the transmitted control data from (the data size of the control data 2020).
If the remaining transmittable size at the time of occurrence of the failure data is equal to or greater than the sum of the data size of the failure data and the data size of the delimiter, the transmission determining unit 121 transmits the failure data in the current control frame. decide.
On the other hand, if the remaining transmittable size at the time of occurrence of the failure data is less than the sum of the data size of the failure data and the data size of the delimiter, the transmission determining unit 121 determines that the failure data is not the current control frame. And decide to transmit in subsequent frames.
 次に、受信データ再構成部104の詳細を説明する。
 図15は、受信データ再構成部104の内部構成例を示す。
 図15に示すように、受信データ再構成部104は、再構成用バッファ部130と再構成管理部140に大別される。
 なお、図15では、制御部101とデータ生成部105と送信フレーム生成部106とフレーム送信部107の図示を省略している。
Next, details of the received data reconstruction unit 104 will be described.
FIG. 15 shows an internal configuration example of the reception data reconstruction unit 104.
As shown in FIG. 15, the received data reconstruction unit 104 is roughly divided into a reconstruction buffer unit 130 and a reconstruction management unit 140.
In FIG. 15, the control unit 101, the data generation unit 105, the transmission frame generation unit 106, and the frame transmission unit 107 are not shown.
 再構成用バッファ部130において、障害フレームバッファ部131は、受信データ分配部103から転送された障害フレームを、FIFO方式で蓄積する。
 なお、障害フレームバッファ部131は、障害フレームヘッダを含めた障害フレーム全体を蓄積する。
 制御フレームバッファ部132は、受信データ分配部103から転送された制御フレーム(障害データが含まれる制御フレームと障害データが含まれない制御フレームの両者)と分割フレーム(障害データが含まれる分割フレームと障害データが含まれない分割データの両者)を、FIFO方式で蓄積する。
 なお、制御フレームバッファ部132は、制御フレームヘッダを含めた制御フレーム全体を蓄積し、分割フレームヘッダを含めた分割フレーム全体を蓄積する。
In the reconfiguration buffer unit 130, the failure frame buffer unit 131 accumulates the failure frame transferred from the reception data distribution unit 103 by the FIFO method.
The fault frame buffer unit 131 stores the entire fault frame including the fault frame header.
The control frame buffer unit 132 includes a control frame (both a control frame including failure data and a control frame not including failure data) and a divided frame (a divided frame including failure data) transferred from the reception data distribution unit 103. Both of the divided data not including the failure data) are accumulated by the FIFO method.
Note that the control frame buffer unit 132 accumulates the entire control frame including the control frame header and accumulates the entire divided frame including the divided frame header.
 再構成管理部140において、データ抽出部141は、制御フレームバッファ部132からデータを読み出し、読み出したデータが制御データならば、その制御データを制御データ用スタック144(分割データ格納部の例)にプッシュし、読み出したデータが障害データならば、その障害データを障害データ用スタック145にプッシュする。 In the reconfiguration management unit 140, the data extraction unit 141 reads data from the control frame buffer unit 132. If the read data is control data, the control data is transferred to the control data stack 144 (an example of a divided data storage unit). If the pushed and read data is fault data, the fault data is pushed to the fault data stack 145.
 データサイズカウント部142は、制御データ用スタック144に格納されている制御データのデータサイズの累積値をカウントし、また、障害データ用スタック145に格納されている障害データのデータサイズの累積値をカウントする。 The data size counting unit 142 counts the cumulative value of the data size of the control data stored in the control data stack 144, and calculates the cumulative value of the data size of the fault data stored in the fault data stack 145. Count.
 データ復元部143は、制御フレームの制御フレームヘッダのフレームサイズに記述されているデータサイズから制御フレームヘッダのデータサイズを差し引いて、制御データのデータサイズを導出する。
 そして、データサイズカウント部142がカウントしたデータサイズの累積値が、導出した制御データのデータサイズに達した際に、制御データ用スタック144に格納されている制御データを用いて、制御データを復元する。
 つまり、障害データの挿入により1つの制御フレームに含まれていた1つの制御データが複数の部分データに分割された場合に、データ復元部143は、制御フレームヘッダのフレームサイズから分割前の制御データの総データサイズを導出し、データサイズカウント部142のカウント値が、導出した制御データの総データサイズに達した際に、制御データ用スタック144に格納されている制御データの部分データを統合して、分割前の制御データを復元することができる。
 また、同様に、データ復元部143は、データサイズカウント部142がカウントしたデータサイズの累積値が、障害データのデータサイズ(既定サイズ)に達した際に、障害データ用スタック145に格納されている障害データを用いて、元の障害データを復元する。
The data restoration unit 143 derives the data size of the control data by subtracting the data size of the control frame header from the data size described in the frame size of the control frame header of the control frame.
When the cumulative value of the data size counted by the data size counting unit 142 reaches the data size of the derived control data, the control data is restored using the control data stored in the control data stack 144. To do.
That is, when one piece of control data included in one control frame is divided into a plurality of partial data due to the insertion of failure data, the data restoration unit 143 determines the control data before division from the frame size of the control frame header. When the count value of the data size count unit 142 reaches the total data size of the derived control data, the partial data of the control data stored in the control data stack 144 is integrated. Thus, the control data before division can be restored.
Similarly, the data restoration unit 143 is stored in the failure data stack 145 when the cumulative value of the data size counted by the data size counting unit 142 reaches the data size (default size) of the failure data. The original failure data is restored using the existing failure data.
 図13は、受信データ再構成部104の動作原理を示す。
 例えば、通信装置200において制御フレーム3000kに障害データE1が挿入された結果、通信装置100が、制御フレーム3000lと分割フレーム4000lとを受信したとする。
 また、通信装置100が、制御フレーム3000kに後続する分割フレーム4000lを、分割フレーム4000mとして受信したとする。
 前述したように、制御フレーム3000lの制御フレームヘッダのフレームサイズから、分割前の制御データAのデータサイズ(制御データA(1/4)~A(4/4)の合計サイズ)を導出可能である。
 通信装置100の受信データ分配部103は、制御フレーム3000lと分割フレーム4000lと分割フレーム4000mを受信データ再構成部104に転送し、受信データ再構成部104では、制御フレームバッファ部132がこれらフレームを蓄積する。
 そして、データ抽出部141が制御フレームバッファ部132より、制御フレーム3000lの先頭からデータを読み出す。
 データ抽出部141が制御フレームヘッダのフレームサイズを読み出した際に、データ復元部143が、フレームサイズに記述されるデータサイズから制御データのデータサイズを導出し、導出した制御データのデータサイズをデータサイズカウント部142に登録する。
 データ抽出部141は制御フレーム3000l内のデータを順次読み出し、読み出したデータが制御データであれば制御データ用スタック144にプッシュし、障害データであれば障害データ用スタック145にプッシュする。
 データサイズカウント部142は、制御データ用スタック144内のデータサイズ及び障害データ用スタック145内のデータサイズをカウントする。
 なお、デリミタの次のデータは障害データなので、データ抽出部141は、デリミタが出現するまでは、読み出したデータを制御データと判断する。
 デリミタが出現した後、障害データのデータサイズ(既定サイズ)分を読み出した後は、データ抽出部141は、再び制御データを読み出したと判断する。
 以降、同様にして、データ抽出部141は分割フレーム4000lのデータと分割フレーム4000mのデータを読み出し、読み出したデータを制御データ用スタック144又は障害データ用スタック145にプッシュする。
 そして、制御データ用スタック144のデータサイズが、データサイズカウント部142に登録したデータサイズに達した際に、制御データ用スタック144に格納されている分割後の制御データA(1/4)~A(4/4)を用いて、分割前の元の制御データAを復元する。
 同様に、障害データ用スタック145のデータサイズが、障害データの既定のデータサイズに達した際に、障害データ用スタック145に格納されている障害データE0(1/2)とE0(2/2)を用いて、分割前の元の障害データE0を復元する。
FIG. 13 shows the operation principle of the reception data reconstruction unit 104.
For example, it is assumed that the communication apparatus 100 receives the control frame 3000l and the divided frame 4000l as a result of the failure data E1 being inserted into the control frame 3000k in the communication apparatus 200.
Further, it is assumed that the communication apparatus 100 receives the divided frame 4000l subsequent to the control frame 3000k as the divided frame 4000m.
As described above, the data size of control data A before division (the total size of control data A (1/4) to A (4/4)) can be derived from the frame size of the control frame header of control frame 3000l. is there.
The received data distribution unit 103 of the communication apparatus 100 transfers the control frame 3000l, the divided frame 4000l, and the divided frame 4000m to the received data reconstruction unit 104. In the received data reconstruction unit 104, the control frame buffer unit 132 transmits these frames. accumulate.
Then, the data extraction unit 141 reads data from the control frame buffer unit 132 from the head of the control frame 3000l.
When the data extraction unit 141 reads the frame size of the control frame header, the data restoration unit 143 derives the data size of the control data from the data size described in the frame size, and the data size of the derived control data is the data Register in the size counting unit 142.
The data extraction unit 141 sequentially reads data in the control frame 3000l, and pushes it to the control data stack 144 if the read data is control data, and pushes it to the fault data stack 145 if it is fault data.
The data size counting unit 142 counts the data size in the control data stack 144 and the data size in the failure data stack 145.
Since the data next to the delimiter is fault data, the data extraction unit 141 determines that the read data is control data until the delimiter appears.
After the delimiter appears and after reading the data size (predetermined size) of the failure data, the data extraction unit 141 determines that the control data has been read again.
Thereafter, similarly, the data extraction unit 141 reads the data of the divided frame 4000l and the data of the divided frame 4000m, and pushes the read data to the control data stack 144 or the failure data stack 145.
Then, when the data size of the control data stack 144 reaches the data size registered in the data size counting unit 142, the divided control data A (1/4) to (4) stored in the control data stack 144 are stored. The original control data A before division is restored using A (4/4).
Similarly, when the data size of the fault data stack 145 reaches the default data size of the fault data, fault data E0 (1/2) and E0 (2/2) stored in the fault data stack 145 ) To restore the original failure data E0 before the division.
 次に、フレーム受信部102及び受信データ分配部103の動作例を、図16を参照して説明する。 Next, operation examples of the frame reception unit 102 and the reception data distribution unit 103 will be described with reference to FIG.
 先ず、フレーム受信部102が、通信装置200からのフレームを受信し(ステップS151)、所定の受信バッファに受信したフレームを格納する。 First, the frame receiving unit 102 receives a frame from the communication device 200 (step S151), and stores the received frame in a predetermined reception buffer.
 次に、受信データ分配部103が、受信バッファ内のフレームのヘッダ(フレームタイプ)を検査し、フレームの種類を判断する(ステップS152、S153)。
 フレームの種類が制御フレーム又は分割フレームであれば、受信データ分配部103は、制御フレーム又は分割フレームを制御フレームバッファ部112と制御フレームバッファ部132に転送し、制御フレームバッファ部112と制御フレームバッファ部132に制御フレーム又は分割フレームを格納する(ステップS154)。
 フレームの種類が障害フレームであれば、受信データ分配部103は、送信決定部121に障害データの受信を通知し(ステップS155)、また、障害フレームを障害フレームバッファ部111と障害フレームバッファ部131に転送し、障害フレームバッファ部111と障害フレームバッファ部131に障害フレームを格納する(ステップS156)。
Next, the reception data distribution unit 103 checks the frame header (frame type) in the reception buffer and determines the type of the frame (steps S152 and S153).
If the frame type is a control frame or a divided frame, the received data distribution unit 103 transfers the control frame or the divided frame to the control frame buffer unit 112 and the control frame buffer unit 132, and the control frame buffer unit 112 and the control frame buffer The control frame or the divided frame is stored in the unit 132 (step S154).
If the frame type is a fault frame, the reception data distribution unit 103 notifies the transmission determination unit 121 of the reception of the fault data (step S155), and the fault frame is sent to the fault frame buffer unit 111 and the fault frame buffer unit 131. The fault frame is stored in the fault frame buffer unit 111 and the fault frame buffer unit 131 (step S156).
 次に、データ生成部105の動作例を、図17を参照して説明する。 Next, an operation example of the data generation unit 105 will be described with reference to FIG.
 データ生成部105は、データを生成した場合に、生成したデータが障害データであれば(ステップS201)、送信決定部121に障害データの生成を通知する(ステップS202)。
 また、データ生成部105は、障害データに障害フレームヘッダを付加して障害フレームを生成し、生成した障害フレームを障害フレームバッファ部111に転送し、障害フレームバッファ部111に障害フレームを格納する(ステップS203)。
 一方、生成したデータが制御データであれば(ステップS201)、データ生成部105は、制御データに制御フレームヘッダを付加して制御フレームを生成し、生成した制御フレームを制御フレームバッファ部112に転送し、制御フレームバッファ部112に制御フレームを格納する(ステップS204)。
When the data is generated, if the generated data is failure data (step S201), the data generation unit 105 notifies the transmission determination unit 121 of the generation of failure data (step S202).
In addition, the data generation unit 105 generates a failure frame by adding a failure frame header to the failure data, transfers the generated failure frame to the failure frame buffer unit 111, and stores the failure frame in the failure frame buffer unit 111 ( Step S203).
On the other hand, if the generated data is control data (step S201), the data generation unit 105 generates a control frame by adding a control frame header to the control data, and transfers the generated control frame to the control frame buffer unit 112. Then, the control frame is stored in the control frame buffer unit 112 (step S204).
 次に、送信フレーム生成部106の動作例を、図18~図22を参照して説明する。 Next, an operation example of the transmission frame generation unit 106 will be described with reference to FIGS.
 先ず、送信フレーム生成部106内の送信決定部121が受信データ分配部103又はデータ生成部105から障害データが発生した旨の通知を受けていない場合(図18のステップS301でNO)は、制御フレームバッファ部112内に制御フレームがあるか否かが判断される(ステップS302)。
 制御フレームバッファ部112内に制御フレームがない場合(ステップS302でNO)は、処理がステップS301に戻る。
 制御フレームバッファ部112内に制御フレームがある場合(ステップS302でYES)は、送信決定部121からの指示により順序制御部122が、制御フレームバッファ部112から制御フレームの1ワード分のデータを読み出す(ステップS303)。
 次に、順序制御部122は、読み出したデータの種類を判断し(ステップS304)、読み出したデータが制御フレームヘッダである場合は、フレーム残りサイズと送信可能残りサイズを、所定の記憶領域に設定する。
 より具体的には、順序制御部122は制御フレームヘッダ内のフレームサイズに記述されているサイズからフレームヘッダのサイズを差し引いた値を、フレーム残りサイズと送信可能残りサイズとして設定する。
 一方、ステップS303で読み出したデータがデリミタである場合は、デリミタの後に障害データが続くので、順序制御部122は、障害残りサイズを、所定の記憶領域に設定する(ステップS306)。
 順序制御部122は、障害残りサイズとして、障害データの既定データサイズを設定する。
 また、ステップS303で読み出したデータが制御フレームヘッダでもデリミタでもない場合は、順序制御部122は、障害残りサイズが1ワード分以上ある場合(ステップS307でYES)は、障害残りサイズをデクリメントし(ステップS308)、更に、フレーム残りサイズと送信可能残りサイズをデクリメントする(ステップS309)。
 一方、障害残りサイズが0である場合(ステップS307でNO)は、フレーム残りサイズと送信可能残りサイズだけをデクリメントする(ステップS309)。
 次に、順序制御部122は、ステップS303で読み出したデータをフレーム送信部107に送信する。
First, when the transmission determination unit 121 in the transmission frame generation unit 106 has not received a notification that failure data has occurred from the reception data distribution unit 103 or the data generation unit 105 (NO in step S301 in FIG. 18), control is performed. It is determined whether or not there is a control frame in the frame buffer unit 112 (step S302).
If there is no control frame in the control frame buffer unit 112 (NO in step S302), the process returns to step S301.
When there is a control frame in the control frame buffer unit 112 (YES in step S302), the order control unit 122 reads data for one word of the control frame from the control frame buffer unit 112 according to an instruction from the transmission determination unit 121. (Step S303).
Next, the order control unit 122 determines the type of the read data (step S304), and if the read data is a control frame header, sets the remaining frame size and the remaining transmittable size in a predetermined storage area. To do.
More specifically, the order control unit 122 sets values obtained by subtracting the size of the frame header from the size described in the frame size in the control frame header as the remaining frame size and the remaining transmittable size.
On the other hand, if the data read in step S303 is a delimiter, the failure data continues after the delimiter, so the order control unit 122 sets the remaining failure size in a predetermined storage area (step S306).
The order control unit 122 sets a default data size of failure data as the remaining failure size.
If the data read in step S303 is neither a control frame header nor a delimiter, the sequence control unit 122 decrements the remaining failure size when the remaining failure size is one word or more (YES in step S307) ( In step S308, the remaining frame size and the remaining transmittable size are decremented (step S309).
On the other hand, when the failure remaining size is 0 (NO in step S307), only the frame remaining size and the transmittable remaining size are decremented (step S309).
Next, the sequence control unit 122 transmits the data read in step S303 to the frame transmission unit 107.
 次に、送信決定部121が、フレーム残りサイズと送信可能残りサイズの値を確認する(ステップS311)。
 フレーム残りサイズが0であり、送信可能残りサイズが0である場合、又はフレーム残りサイズが1ワード以上であり、送信可能残りサイズが1ワード以上である場合は、処理をステップS301に戻す。
 フレーム残りサイズが0であり、送信可能残りサイズが0であることは、障害データが挿入されずに1つの制御フレームに含まれている制御データがそのまま1つの制御フレームで送信されたことを意味する。
 フレーム残りサイズが1ワード以上であり、送信可能残りサイズが1ワード以上であることは、1つの制御フレームに含まれている制御データのうち一部の制御データが未送信で残っており、また、その制御フレームにおいて送信可能なデータサイズが残っていることを意味する。
 一方、フレーム残りサイズが1ワード以上であり、送信可能残りサイズが0である場合は、分割フレームの送信処理が行われる(ステップS312)。
 分割フレームの送信処理は、図21を参照して後述する。
 なお、フレーム残りサイズが1ワード以上であり、送信可能残りサイズが0であることは、デリミタと障害データが挿入されたために、1つの制御フレームに含まれていた制御データのうちの一部が押し出され、その制御フレームでは送信できなかったことを意味する。
Next, the transmission determining unit 121 checks the values of the remaining frame size and the remaining transmittable size (step S311).
If the remaining frame size is 0 and the transmittable remaining size is 0, or if the remaining frame size is 1 word or more and the transmittable remaining size is 1 word or more, the process returns to step S301.
If the remaining frame size is 0 and the transmittable remaining size is 0, it means that the control data contained in one control frame is transmitted as it is in one control frame without inserting fault data. To do.
If the remaining frame size is 1 word or more and the remaining transmittable size is 1 word or more, part of the control data included in one control frame remains untransmitted, and This means that the data size that can be transmitted remains in the control frame.
On the other hand, if the remaining frame size is 1 word or more and the remaining transmittable size is 0, a transmission process of a divided frame is performed (step S312).
The divided frame transmission process will be described later with reference to FIG.
Note that the remaining frame size is 1 word or more and the remaining transmittable size is 0 because a part of the control data included in one control frame is because a delimiter and failure data are inserted. It means that it was pushed out and could not be transmitted in that control frame.
 ステップS301において、送信決定部121が受信データ分配部103又はデータ生成部105から障害データが発生した旨の通知を受けた場合(ステップS301でYES)は、送信決定部121は、送信可能残りサイズがあるか否かを確認する(図19のステップS401)。
 送信可能残りサイズがある場合(ステップS401でYES)は、送信決定部121は、障害残りサイズがあるか否かを確認する(ステップS402)。
 障害残りサイズがある場合(ステップS402でYES)は、現在、送信途中の障害データが存在していることを意味するので、現在送信途中の障害データの送信が完了してから、図18のステップS301で通知された障害データを制御フレームに挿入する。
 なお、ステップS402でYESの状態は、図12に示す、障害データE0の送信中に障害データE1が発生した状態に相当する。
 このため、順序制御部122は送信決定部121からの指示により、制御フレームバッファ部112から制御フレームの1ワード分のデータ(送信途中の障害データの残り)を読み出す(ステップS403)。
 次に、順序制御部122が、フレーム残りサイズ、送信可能残りサイズ、障害残りサイズをデクリメントする(ステップS404)。
 以降、障害残りサイズが0になるまで、ステップS401~S404の処理が繰り返される。
In step S301, when the transmission determination unit 121 receives a notification that failure data has occurred from the reception data distribution unit 103 or the data generation unit 105 (YES in step S301), the transmission determination unit 121 determines that the remaining size that can be transmitted. It is confirmed whether there is any (step S401 in FIG. 19).
If there is a remaining size that can be transmitted (YES in step S401), the transmission determining unit 121 checks whether there is a remaining failure size (step S402).
If there is a failure remaining size (YES in step S402), it means that there is currently failure data being transmitted, so the transmission of the failure data currently being transmitted is completed before the step of FIG. The failure data notified in S301 is inserted into the control frame.
Note that the state of YES in step S402 corresponds to the state where the failure data E1 has occurred during the transmission of the failure data E0 shown in FIG.
For this reason, the sequence control unit 122 reads out data for one word of the control frame (remaining failure data being transmitted) from the control frame buffer unit 112 in accordance with an instruction from the transmission determination unit 121 (step S403).
Next, the order control unit 122 decrements the remaining frame size, the remaining transmittable size, and the remaining failure size (step S404).
Thereafter, the processes in steps S401 to S404 are repeated until the remaining failure size becomes zero.
 ステップS402において障害残りサイズが0と判断された場合(ステップS402でNO)は、送信決定部121が、障害データを送信するために十分な送信可能残りサイズがあるかを確認する(図20のステップS501)。
 つまり、送信可能残りサイズが障害データの既定データサイズとデリミタの加算値以上であれば、ステップS501でYESとなり、加算値未満であれば、ステップS501でNOとなる。
 送信可能残りサイズが十分であれば(ステップS501でYES)、順序制御部122は送信決定部121の指示により、障害フレームバッファ部111から障害フレームの1ワード分のデータを読み出し、読み出したデータをフレーム送信部107に出力する(ステップS502)。
 なお、障害フレームバッファ部111からの初回の読出しでは、障害フレームヘッダが読み出されるので、順序制御部122は、読み出した障害フレームヘッダはフレーム送信部107に出力せず、代わりにデリミタをフレーム送信部107に出力する。
 次に、順序制御部122は、送信可能残りサイズをデクリメントする(ステップS503)。
 次に、送信決定部121が、障害データの全てがフレーム送信部107に出力されたか否かを確認し(ステップS504)、出力されていない障害データがあれば、ステップS502~S504の処理が繰り返される。
 障害データの全てがフレーム送信部107に出力されていれば、処理が図18のステップS311に移行する。
 なお、送信決定部121は、障害データの既定データサイズを記憶しているので、順序制御部122が障害フレームバッファ部111から障害データの全てを読み出したか否かを判断することができる。
When it is determined in step S402 that the remaining failure size is 0 (NO in step S402), the transmission determining unit 121 checks whether there is a sufficient remaining transmittable size for transmitting failure data (FIG. 20). Step S501).
That is, if the remaining transmittable size is equal to or larger than the default data size of the failure data and the delimiter, YES is determined in step S501, and if it is less than the additional value, NO is determined in step S501.
If the remaining transmittable size is sufficient (YES in step S501), the order control unit 122 reads data for one word of the fault frame from the fault frame buffer unit 111 according to an instruction from the transmission determination unit 121, and reads the read data. It outputs to the frame transmission part 107 (step S502).
In the first reading from the failure frame buffer unit 111, since the failure frame header is read, the order control unit 122 does not output the read failure frame header to the frame transmission unit 107, but instead uses a delimiter as the frame transmission unit. It outputs to 107.
Next, the order control unit 122 decrements the remaining size that can be transmitted (step S503).
Next, the transmission determination unit 121 confirms whether or not all of the failure data has been output to the frame transmission unit 107 (step S504). If there is failure data that has not been output, the processing of steps S502 to S504 is repeated. It is.
If all the failure data has been output to the frame transmission unit 107, the process proceeds to step S311 in FIG.
Since the transmission determining unit 121 stores the default data size of failure data, it can determine whether or not the order control unit 122 has read all of the failure data from the failure frame buffer unit 111.
 ステップS501において送信可能残りサイズが十分ではないと判断された場合(ステップS501でNO)は、図18のステップS301で通知のあった障害データは、現在の制御フレームでは送信できないので、現在の制御フレームの送信が完了したのちに、障害フレームとして送信される。
 このため、ステップS505~S507において現在の制御フレームを送信する処理が完了した後に、ステップS508において障害フレームの送信処理が行われる。
 ステップS505では、送信決定部121の指示により、順序制御部122が制御フレームバッファ部112から制御フレームの1ワード分のデータを読み出し、読み出したデータをフレーム送信部107に送信する。
 次に、ステップS506において、順序制御部122が、フレーム残りサイズと送信可能残りサイズをデクリメントする。
 次に、ステップS507において、送信決定部121が、フレーム残りサイズと送信可能残りサイズの値を確認する。
 フレーム残りサイズが0であり、送信可能残りサイズが0である場合は、ステップS508において障害フレームの送信処理が行われる。
 障害フレームの送信処理は図22を参照して後述する。
 障害フレームの送信処理が終了すると、処理が図18のステップS301に移行する。
 また、フレーム残りサイズが1ワード以上であり、送信可能残りサイズが1ワード以上である場合は、処理をステップS505に戻す。
 また、フレーム残りサイズが1ワード以上であり、送信可能残りサイズが0である場合は、ステップS509において障害フレームの送信処理が行われ、ステップS510において分割フレームの送信処理が行われる。
 分割フレームの送信処理は、図21を参照して後述する。
 分割フレームの送信処理の終了後、ステップS508において障害フレームの送信処理が行われる。
If it is determined in step S501 that the remaining size that can be transmitted is not sufficient (NO in step S501), the failure data notified in step S301 in FIG. 18 cannot be transmitted in the current control frame. After the frame transmission is completed, it is transmitted as a fault frame.
For this reason, after completing the process of transmitting the current control frame in steps S505 to S507, the process of transmitting a fault frame is performed in step S508.
In step S <b> 505, in response to an instruction from the transmission determination unit 121, the order control unit 122 reads data for one word of the control frame from the control frame buffer unit 112 and transmits the read data to the frame transmission unit 107.
Next, in step S506, the order control unit 122 decrements the remaining frame size and the remaining transmittable size.
Next, in step S507, the transmission determining unit 121 confirms the values of the remaining frame size and the remaining transmittable size.
If the remaining frame size is 0 and the remaining transmittable size is 0, a failure frame transmission process is performed in step S508.
The failure frame transmission process will be described later with reference to FIG.
When the failure frame transmission process ends, the process proceeds to step S301 in FIG.
If the remaining frame size is 1 word or more and the remaining transmittable size is 1 word or more, the process returns to step S505.
If the remaining frame size is 1 word or more and the remaining transmittable size is 0, a failure frame transmission process is performed in step S509, and a divided frame transmission process is performed in step S510.
The divided frame transmission process will be described later with reference to FIG.
After completion of the divided frame transmission process, a fault frame transmission process is performed in step S508.
 次に、図19のステップS401において送信可能残りサイズがないと判断された場合(ステップS401でNO)は、1つ制御フレームのデータサイズ分の送信が完了している状態なので、図18のステップS301で通知のあった障害データは、制御フレームに挿入するのではなく、障害フレームとして送信される。
 ここで、送信決定部121は、フレーム残りサイズがあるか否かを確認し(ステップS405)、フレーム残りサイズがない場合は、ステップS508において障害フレームの送信処理が行われる(ステップS406)。
 一方、フレーム残りサイズがある場合は、1つの制御フレームに含まれていたが、その制御フレームでは送信できなかった制御データ又は障害データが存在するので、ステップS407において障害フレームの送信処理が行われ、ステップS408において分割フレームの送信処理が行われる。
Next, when it is determined in step S401 of FIG. 19 that there is no remaining size that can be transmitted (NO in step S401), the transmission of one control frame for the data size has been completed. The failure data notified in S301 is not inserted into the control frame but transmitted as a failure frame.
Here, the transmission determining unit 121 confirms whether or not there is a remaining frame size (step S405). If there is no remaining frame size, a transmission process of a faulty frame is performed in step S508 (step S406).
On the other hand, if there is a remaining frame size, there is control data or failure data that was included in one control frame but could not be transmitted in that control frame. Therefore, in step S407, a failure frame transmission process is performed. In step S408, a divided frame transmission process is performed.
 次に、図21を参照して、分割フレームの送信処理を説明する。 Next, with reference to FIG. 21, the transmission process of the divided frames will be described.
 先ず、送信決定部121が分割フレームヘッダを生成し、順序制御部122が分割フレームヘッダをフレーム送信部107に出力する(ステップS601)。
 次に、送信決定部121の指示により、順序制御部122が制御フレームバッファ部112から制御フレームの1ワード分のデータを読み出し、読み出したデータをフレーム送信部107に出力する(ステップS602)。
 また、このとき、順序制御部122はフレーム残りサイズをデクリメントする。
 次に、送信決定部121が、フレーム残りサイズがあるか否かを確認し(ステップS603)、フレーム残りサイズがある場合には、フレーム残りサイズが0になるまで、ステップS601~S603の処理が繰り返される。
 フレーム残りサイズが0になれば、押し出されたデータが全て分割フレームで送信されたことになる。
First, the transmission determining unit 121 generates a divided frame header, and the order control unit 122 outputs the divided frame header to the frame transmitting unit 107 (step S601).
Next, in response to an instruction from the transmission determination unit 121, the order control unit 122 reads data for one word of the control frame from the control frame buffer unit 112, and outputs the read data to the frame transmission unit 107 (step S602).
At this time, the sequence control unit 122 decrements the remaining frame size.
Next, the transmission determining unit 121 checks whether or not there is a remaining frame size (step S603). If there is a remaining frame size, the processing of steps S601 to S603 is performed until the remaining frame size becomes zero. Repeated.
If the remaining frame size becomes 0, all the pushed-out data has been transmitted in divided frames.
 次に、図22を参照して、障害フレームの送信処理を説明する。 Next, the fault frame transmission process will be described with reference to FIG.
 先ず、送信決定部121の指示により、順序制御部122は障害フレームバッファ部111から障害フレームの1ワード分のデータを読み出し、読み出したデータをフレーム送信部107に送信する(ステップS701)。
 次に、送信決定部121が、障害データの全てがフレーム送信部107に出力されたか否かを確認し(ステップS702)、出力されていない障害データがあれば、ステップS701及びS702の処理が繰り返される。
 なお、前述したように、送信決定部121は、障害データの既定データサイズを記憶しているので、順序制御部122が障害フレームバッファ部111から障害データの全てを読み出したか否かを判断することができる。
First, in response to an instruction from the transmission determination unit 121, the order control unit 122 reads data for one word of a fault frame from the fault frame buffer unit 111, and transmits the read data to the frame transmission unit 107 (step S701).
Next, the transmission determination unit 121 confirms whether or not all of the failure data has been output to the frame transmission unit 107 (step S702). If there is failure data that has not been output, the processing of steps S701 and S702 is repeated. It is.
As described above, since the transmission determining unit 121 stores the default data size of the failure data, it is determined whether the order control unit 122 has read all of the failure data from the failure frame buffer unit 111. Can do.
 以上のように、本実施の形態によれば、通信装置200が障害通知を実施した際、通信装置100は制御フレームに障害通知を割り込ませることで制御通信の周期が短いままに、障害通知の時間を短縮することができる。 As described above, according to the present embodiment, when the communication apparatus 200 performs a failure notification, the communication apparatus 100 interrupts the failure notification in the control frame, so that the period of the control communication remains short. Time can be shortened.
 実施の形態2.
 本実施の形態では、実施の形態1と異なる構成の通信装置100を説明する。
 なお、本実施の形態に係る通信装置100は、実施の形態1と構成が異なっており、また動作の手順も実施の形態1に示したものとは異なるが、基本的な動作原理は同じである。
 つまり、本実施の形態においても、制御フレームの送信中に障害データが発生した場合に、障害データを制御フレームに挿入して送信し、障害データの挿入にて押し出されたデータは、分割フレームとして、制御フレームに続けて送信する。
 このため、本実施の形態でも、図9~図12に示す形態にて、制御フレーム及び分割フレームが送信される。
 また、本実施の形態においても、図13に示した原理にてデータが復元される。
Embodiment 2. FIG.
In the present embodiment, a communication device 100 having a configuration different from that of the first embodiment will be described.
Communication device 100 according to the present embodiment is different in configuration from that of the first embodiment, and the operation procedure is different from that shown in the first embodiment, but the basic operation principle is the same. is there.
That is, also in this embodiment, when trouble data occurs during transmission of the control frame, the trouble data is inserted into the control frame and transmitted, and the data pushed out by the trouble data insertion is divided into frames. Then, the control frame is transmitted.
Therefore, also in the present embodiment, the control frame and the divided frame are transmitted in the form shown in FIGS.
Also in the present embodiment, data is restored based on the principle shown in FIG.
 図23は、本実施の形態に係る通信装置100の構成例を示す。
 なお、以降、通信装置100を自装置とも表記する。
 通信装置200及び通信装置300も、図23に示す構成例を有するものとする。
FIG. 23 shows a configuration example of the communication apparatus 100 according to the present embodiment.
Hereinafter, the communication device 100 is also referred to as its own device.
The communication device 200 and the communication device 300 also have the configuration example shown in FIG.
 受信ポート800は、通信装置200からフレーム1000を受信して受信データ分配装置801に1ワードずつ出力する。 The reception port 800 receives the frame 1000 from the communication device 200 and outputs it to the reception data distribution device 801 word by word.
 受信データ分配装置801は、受信したデータを解析して受信内容に沿ってヘッダバッファ803、再構成バッファ805、中継データバッファ811、中継ヘッダバッファ804、中継障害バッファ812、中継障害ヘッダバッファ808、外部入出力装置813(以下、CPUともいう)に所定の情報を送付する。 The received data distribution device 801 analyzes the received data and, according to the received contents, the header buffer 803, the reconstruction buffer 805, the relay data buffer 811, the relay header buffer 804, the relay failure buffer 812, the relay failure header buffer 808, the external Predetermined information is sent to the input / output device 813 (hereinafter also referred to as CPU).
 具体的には、受信データ分配装置801は、予めフレームヘッダのサイズを保管しており、予め障害データのサイズを保管しており、予め障害フレームのサイズを保管しており、予めデリミタのサイズを保管している。
 また、受信データ分配装置801は、制御フレームのフレームデータサイズ(以下、制御データサイズと記す)を、制御フレームヘッダが示すフレームサイズからフレームヘッダのサイズを減算して計算する。
 また、受信データ分配装置801は、分割フレームのフレームデータサイズ(以下、分割データサイズと記す)を、分割フレームヘッダ4010、5010のフレームサイズ1012からフレームヘッダ1010のサイズを減算して計算する。
 また、受信データ分配装置801は、障害フレームのフレームデータサイズ(以下、障害データサイズと記す)を、障害フレームヘッダ6010のフレームサイズ1012からフレームヘッダ1010のサイズを減算して計算する。
Specifically, the reception data distribution device 801 stores the size of the frame header in advance, stores the size of the failure data in advance, stores the size of the failure frame in advance, and sets the size of the delimiter in advance. I keep it.
The reception data distribution device 801 calculates the frame data size of the control frame (hereinafter referred to as control data size) by subtracting the frame header size from the frame size indicated by the control frame header.
The reception data distribution device 801 calculates the frame data size of the divided frame (hereinafter referred to as the divided data size) by subtracting the size of the frame header 1010 from the frame size 1012 of the divided frame headers 4010 and 5010.
The reception data distribution device 801 calculates the frame data size of the fault frame (hereinafter referred to as fault data size) by subtracting the size of the frame header 1010 from the frame size 1012 of the fault frame header 6010.
 また、受信データ分配装置801は、フレーム1000の先頭を検出する手段(図23には不図示)がフレーム1000の先頭を検出したときに、受信カウンタ802にクリアを要求し、受信ポート800からフレーム1000を1ワードずつ受信する。 The reception data distribution device 801 requests the reception counter 802 to clear the frame from the reception port 800 when the means for detecting the head of the frame 1000 (not shown in FIG. 23) detects the head of the frame 1000. 1000 is received word by word.
 また、受信カウンタ802が、受信データ分配装置801からの要求に応じてフレームヘッダサイズを計測するが、受信カウンタ802がフレームヘッダ1010のサイズ未満のときに、受信データ分配装置801は、受信した1ワードをヘッダバッファ803に書き込む。 The reception counter 802 measures the frame header size in response to a request from the reception data distribution device 801. When the reception counter 802 is less than the size of the frame header 1010, the reception data distribution device 801 receives the received 1 Write a word to the header buffer 803.
 また、受信カウンタ802がフレームヘッダ1010のサイズのときに、ヘッダバッファ803に保存されているのが制御フレームヘッダであれば、受信データ分配装置801は、制御フレームヘッダを中継ヘッダバッファ804と再構成バッファ805に書き込み、制御データサイズを中継障害残りサイズカウンタ809と再構成カウンタ807に書き込む。
 また、ヘッダバッファ803に保存されているのが分割フレームヘッダ4010、5010であれば、受信データ分配装置801は、分割フレームヘッダを中継ヘッダバッファ804に書き込み、分割データサイズを中継残りサイズカウンタ806に書き込む。
 また、ヘッダバッファ803に保存されているのが障害フレームヘッダ6010であれば、受信データ分配装置801は、障害フレームヘッダを中継障害ヘッダバッファ808に書き込み、制御データサイズを中継障害残りサイズカウンタ809に書き込み、また、割り込みカウンタ810が0のとき内部の受信割り込みフラグを無効とし、割り込みカウンタ810が0以外のとき内部の受信割り込みフラグを有効とする。
If the reception counter 802 has the size of the frame header 1010 and the header buffer 803 stores the control frame header, the reception data distribution device 801 reconstructs the control frame header from the relay header buffer 804. Write to the buffer 805 and write the control data size to the relay failure remaining size counter 809 and the reconfiguration counter 807.
If the header buffer 803 stores the divided frame headers 4010 and 5010, the reception data distribution device 801 writes the divided frame header to the relay header buffer 804 and sets the divided data size to the relay remaining size counter 806. Write.
If the failure buffer header 6010 is stored in the header buffer 803, the reception data distribution device 801 writes the failure frame header in the relay failure header buffer 808, and stores the control data size in the relay failure remaining size counter 809. When the interrupt counter 810 is 0, the internal reception interrupt flag is invalidated. When the interrupt counter 810 is other than 0, the internal reception interrupt flag is validated.
 受信カウンタ802がフレームヘッダ1010のサイズより大きく、かつ、受信カウンタ802がヘッダバッファ803に保存されているフレームヘッダ1010のフレームサイズ未満、かつ、受信割り込みフラグが無効、かつ、受信ポート800から受信した1ワードがデリミタでないときに、受信データ分配装置801は、以下の動作を行う。
 つまり、上記の条件が成立した際に、ヘッダバッファ803に保存されているのが制御フレームヘッダまたは分割フレームヘッダであれば、受信データ分配装置801は、受信ポート800から受信した1ワードを中継データバッファ811と再構成バッファ805に書き込み、再構成カウンタ807にデクリメントを要求する。
 一方、上記の条件が成立した際に、ヘッダバッファ803に保存されているのが障害フレームヘッダ6010であれば、受信データ分配装置801は、受信ポート800から受信した1ワードを中継障害バッファ812に書き込む。
The reception counter 802 is larger than the size of the frame header 1010, the reception counter 802 is less than the frame size of the frame header 1010 stored in the header buffer 803, the reception interrupt flag is invalid, and the reception counter 800 has received from the reception port 800 When one word is not a delimiter, the received data distribution device 801 performs the following operation.
That is, when the above condition is satisfied, if the header buffer 803 stores the control frame header or the divided frame header, the reception data distribution device 801 converts one word received from the reception port 800 into relay data. Write to the buffer 811 and the reconstruction buffer 805, and request the decrement to the reconstruction counter 807.
On the other hand, when the above condition is satisfied, if the failure frame header 6010 is stored in the header buffer 803, the reception data distribution device 801 stores one word received from the reception port 800 in the relay failure buffer 812. Write.
 また、受信カウンタ802がフレームヘッダ1010のサイズより大きく、かつ、受信カウンタ802がヘッダバッファ803に保存されているフレームヘッダ1010のフレームサイズ1012未満、かつ、受信割り込みフラグが無効、かつ、受信ポート800から受信した1ワードがデリミタ3030であったときに、受信データ分配装置801は、障害データのサイズを割り込みカウンタ810に書き込み、障害フレームタイプと障害フレームサイズを中継障害ヘッダバッファ808に書き込む。 Also, the reception counter 802 is larger than the size of the frame header 1010, the reception counter 802 is less than the frame size 1012 of the frame header 1010 stored in the header buffer 803, the reception interrupt flag is invalid, and the reception port 800 The received data distribution device 801 writes the size of the fault data in the interrupt counter 810 and writes the fault frame type and the fault frame size in the relay fault header buffer 808 when one word received from the delimiter 3030 is received.
 また、受信データ分配装置801は、割り込みフラグが有効のときに、受信ポート800から受信した1ワードを中継障害バッファ812に書き込み、割り込みカウンタ810にデクリメントを要求する。 Also, when the interrupt flag is valid, the reception data distribution device 801 writes one word received from the reception port 800 to the relay failure buffer 812 and requests the interrupt counter 810 to decrement.
 また、受信カウンタ802がフレームヘッダのサイズより大きく、かつ、ヘッダバッファ803に保存されているフレームヘッダのフレームサイズと等しいとき、受信データ分配装置801は、受信カウンタ802にクリアを要求する。
 また、再構成カウンタ807の値が0のとき、受信データ分配装置801は、外部出力装置に制御データ受信完了信号を出力する。
When the reception counter 802 is larger than the frame header size and equal to the frame size of the frame header stored in the header buffer 803, the reception data distribution device 801 requests the reception counter 802 to clear.
When the value of the reconstruction counter 807 is 0, the reception data distribution device 801 outputs a control data reception completion signal to the external output device.
 受信カウンタ802は、受信データ分配装置801から要求に応じて主に受信データのワード数を計測する。 The reception counter 802 mainly measures the number of received data words in response to a request from the reception data distribution device 801.
 受信カウンタ802の動作の詳細を説明する。
 受信カウンタ802は、受信データ分配装置801から要求されたとき内部の値をクリアする。
 また、受信カウンタ802は、受信データ分配装置801から要求されたとき内部の値をインクリメントする。
 また、受信カウンタ802は、受信データ分配装置801から読み出されたとき内部の値を出力する。
Details of the operation of the reception counter 802 will be described.
The reception counter 802 clears the internal value when requested by the reception data distribution device 801.
The reception counter 802 increments an internal value when requested by the reception data distribution device 801.
The reception counter 802 outputs an internal value when read from the reception data distribution device 801.
 ヘッダバッファ803は、受信したフレームのフレームヘッダ1010を保存する。 The header buffer 803 stores the frame header 1010 of the received frame.
 ヘッダバッファ803の動作の詳細を説明する。
 ヘッダバッファ803は、受信データ分配装置801からフレームヘッダを書き込まれたときフレームヘッダを保存する。
 また、ヘッダバッファ803は、受信データ分配装置801に読み出されたとき受信データ分配装置801にフレームヘッダを出力する。
 また、ヘッダバッファ803は、外部入出力装置813に読み出されたときに外部入出力装置813にフレームヘッダを出力する。
Details of the operation of the header buffer 803 will be described.
The header buffer 803 stores the frame header when the frame header is written from the reception data distribution device 801.
The header buffer 803 outputs a frame header to the reception data distribution device 801 when read by the reception data distribution device 801.
The header buffer 803 outputs a frame header to the external input / output device 813 when read to the external input / output device 813.
 中継ヘッダバッファ804は、受信した制御フレームヘッダを保存し、中継分割ヘッダ生成装置814と中継割り込み可否判定装置815に制御フレームヘッダ2010、3010の情報を出力する。 The relay header buffer 804 stores the received control frame header, and outputs the information of the control frame headers 2010 and 3010 to the relay division header generation device 814 and the relay interrupt availability determination device 815.
 中継ヘッダバッファ804の動作の詳細を説明する。
 中継ヘッダバッファ804は、受信データ分配装置801から制御フレームヘッダ2010、3010を書き込まれたときに、制御フレームヘッダ2010、3010を保存する。
 また、中継ヘッダバッファ804は、中継分割ヘッダ生成装置814に読み出されたとき、制御フレームヘッダ2010、3010を中継分割ヘッダ生成装置814に出力する。
 また、中継ヘッダバッファ804は、中継割り込み可否判定装置815に読み出されたとき、制御フレームヘッダ2010、3010を中継割り込み可否判定装置815に出力する。
 また、中継ヘッダバッファ804は、送信データ選択装置816に読み出されたとき、制御フレームヘッダ2010、3010を送信データ選択装置816に出力する。
Details of the operation of the relay header buffer 804 will be described.
The relay header buffer 804 stores the control frame headers 2010 and 3010 when the control frame headers 2010 and 3010 are written from the reception data distribution device 801.
The relay header buffer 804 outputs the control frame headers 2010 and 3010 to the relay division header generation device 814 when read to the relay division header generation device 814.
The relay header buffer 804 outputs the control frame headers 2010 and 3010 to the relay interrupt enable / disable determining device 815 when read by the relay interrupt enable / disable determining device 815.
Further, the relay header buffer 804 outputs the control frame headers 2010 and 3010 to the transmission data selection device 816 when read by the transmission data selection device 816.
 再構成バッファ805は、障害発生前分割制御データ3020と障害発生後分割制御データ3050とフレームから押し出された分割制御データ4020を保存し、制御データ2を復元する。 The reconfiguration buffer 805 stores the pre-failure split control data 3020, the post-failure split control data 3050, and the split control data 4020 pushed out of the frame, and restores the control data 2.
 再構成バッファ805の動作の詳細を説明する。
 再構成バッファ805は、受信データ分配装置801から制御データを書き込まれたとき制御データを保存し、外部入出力装置813に読み出されたときに外部入出力装置813に制御データを出力する。
Details of the operation of the reconfiguration buffer 805 will be described.
The reconfiguration buffer 805 stores the control data when the control data is written from the reception data distribution device 801, and outputs the control data to the external input / output device 813 when read by the external input / output device 813.
 中継残りサイズカウンタ806は、中継する制御フレームまたは分割フレームの未送信ワード数を計測する。 The relay remaining size counter 806 measures the number of untransmitted words in the control frame or divided frame to be relayed.
 中継残りサイズカウンタ806の動作の詳細を説明する。
 中継残りサイズカウンタ806は、受信データ分配装置801に制御データサイズを書き込まれたとき、制御データサイズをカウント値としてセットする。
 また、中継残りサイズカウンタ806は、受信データ分配装置801に中継データサイズを書き込まれたとき、中継データサイズをカウント値としてセットする。
 また、中継残りサイズカウンタ806は、送信データ選択装置816から要求されたとき、カウント値をデクリメントする。
 また、中継残りサイズカウンタ806は、中継分割ヘッダ生成装置814に読み出されたとき、カウント値を中継分割ヘッダ生成装置814に出力する。
 また、中継残りサイズカウンタ806は、中継割り込み可否判定装置815に読み出されたときに、カウント値を中継割り込み可否判定装置815へ出力する。
Details of the operation of the relay remaining size counter 806 will be described.
When the control data size is written in the reception data distribution device 801, the relay remaining size counter 806 sets the control data size as a count value.
The relay remaining size counter 806 sets the relay data size as a count value when the relay data size is written in the reception data distribution device 801.
The relay remaining size counter 806 decrements the count value when requested by the transmission data selection device 816.
Further, the relay remaining size counter 806 outputs the count value to the relay division header generation device 814 when read to the relay division header generation device 814.
The relay remaining size counter 806 outputs the count value to the relay interrupt enable / disable determining device 815 when read by the relay interrupt enable / disable determining device 815.
 再構成カウンタ807は、未受信の制御データ数を計測し、制御データの受信完了を検出する。 The reconfiguration counter 807 measures the number of unreceived control data and detects the completion of reception of control data.
 再構成カウンタ807の動作の詳細を説明する。
 再構成カウンタ807は、受信データ分配装置801から要求されたとき内部の値をクリアする。
 また、再構成カウンタ807は、受信データ分配装置801から要求されたときカウント値をデクリメントし、受信データ分配装置801から要求されたとき内部の値を出力する。
Details of the operation of the reconstruction counter 807 will be described.
The reconfiguration counter 807 clears the internal value when requested by the reception data distribution device 801.
The reconfiguration counter 807 decrements the count value when requested by the reception data distribution device 801 and outputs an internal value when requested by the reception data distribution device 801.
 中継障害ヘッダバッファ808は、受信した障害フレームヘッダ6010を保存し、送信データ選択装置に出力する。 The relay failure header buffer 808 stores the received failure frame header 6010 and outputs it to the transmission data selection device.
 中継障害ヘッダバッファ808の動作の詳細を説明する。
 中継障害ヘッダバッファ808は、受信データ分配装置801から書き込まれたとき、障害フレームヘッダ6010を保存する。
 また、中継障害ヘッダバッファ808は、送信データ選択装置816に読み出されたとき、障害フレームヘッダ6010を送信データ選択装置816に出力する。
Details of the operation of the relay failure header buffer 808 will be described.
The relay failure header buffer 808 stores a failure frame header 6010 when written from the reception data distribution device 801.
Further, the relay failure header buffer 808 outputs a failure frame header 6010 to the transmission data selection device 816 when read by the transmission data selection device 816.
 中継障害残りサイズカウンタ809は、送信データ選択装置816からの要求に応じて、受信した障害データの未送信ワード数を計測する。 The relay failure remaining size counter 809 measures the number of untransmitted words of the received failure data in response to a request from the transmission data selection device 816.
 中継障害残りサイズカウンタ809の動作の詳細を説明する。
 中継障害残りサイズカウンタ809は、受信データ分配装置801から書き込まれたとき、障害データサイズをカウント値としてセットする。
 また、中継障害残りサイズカウンタ809は、送信データ選択装置816から要求されたときに、上記カウント値をデクリメントする。
Details of the operation of the relay failure remaining size counter 809 will be described.
The relay failure remaining size counter 809 sets the failure data size as a count value when written from the reception data distribution device 801.
The relay failure remaining size counter 809 decrements the count value when requested by the transmission data selection device 816.
 割り込みカウンタ810は、受信データ分配装置801からの要求に応じて制御フレームに含まれる障害データの受信ワード数を計測する。 The interrupt counter 810 measures the number of received words of failure data included in the control frame in response to a request from the received data distribution device 801.
 割り込みカウンタ810の動作の詳細を説明する。
 割り込みカウンタ810は、受信データ分配装置801から要求されたときに、内部の値を予め定められた障害データのサイズにセットする。
 また、割り込みカウンタ810は、受信データ分配装置801から要求されたときに、内部の値をデクリメントする。
 また、割り込みカウンタ810は、受信データ分配装置801から読み出されたときに、受信データ分配装置801に内部の値を出力する。
Details of the operation of the interrupt counter 810 will be described.
When requested by the reception data distribution device 801, the interrupt counter 810 sets an internal value to a predetermined failure data size.
The interrupt counter 810 decrements the internal value when requested by the reception data distribution device 801.
The interrupt counter 810 outputs an internal value to the reception data distribution device 801 when read from the reception data distribution device 801.
 中継データバッファ811は、受信した制御フレームと分割フレームのフレームデータ1020を保存し、送信データ選択装置816に出力する。 The relay data buffer 811 stores the received control frame and frame data 1020 of the divided frames, and outputs them to the transmission data selection device 816.
 中継データバッファ811の動作の詳細を説明する。
 中継データバッファ811は、受信データ分配装置801から書き込まれたときに、制御フレームのフレームデータ1020または分割フレームのフレームデータ1020を保存する。
 また、中継データバッファ811は、送信データ選択装置816に読み出されたときに、制御フレームのフレームデータ1020または分割フレームのフレームデータ1020を上記送信データ選択装置816に出力する。
Details of the operation of the relay data buffer 811 will be described.
The relay data buffer 811 stores the frame data 1020 of the control frame or the frame data 1020 of the divided frame when written from the reception data distribution device 801.
The relay data buffer 811 outputs the frame data 1020 of the control frame or the frame data 1020 of the divided frame to the transmission data selection device 816 when read by the transmission data selection device 816.
 中継障害バッファ812は、受信した障害データ28を保存し、送信データ選択装置816に出力する。 The relay failure buffer 812 stores the received failure data 28 and outputs it to the transmission data selection device 816.
 中継障害バッファ812の動作の詳細を説明する。
 中継障害バッファ812は、受信データ分配装置801から書き込まれたときに、障害データを保存する。
 また、中継障害バッファ812は、送信データ選択装置816に読み出されたときに、送信データ選択装置816に障害データを出力する。
Details of the operation of the relay failure buffer 812 will be described.
The relay failure buffer 812 stores failure data when written from the reception data distribution device 801.
Further, the relay failure buffer 812 outputs failure data to the transmission data selection device 816 when read by the transmission data selection device 816.
 外部入出力装置813(CPU)は、任意のタイミングで817~822にフレームを書き込み、任意のタイミングで再構成バッファ805からデータを読み出す。 The external input / output device 813 (CPU) writes a frame to 817 to 822 at an arbitrary timing, and reads data from the reconfiguration buffer 805 at an arbitrary timing.
 外部入出力装置813の動作の詳細を説明する。
 外部入出力装置813は、任意のタイミングで、自装置ヘッダバッファ817に制御フレームヘッダ2010を書き込む。
 また、外部入出力装置813は、任意のタイミングで、自装置残りサイズカウンタ818に制御フレームサイズの値を書き込む。
 また、外部入出力装置813は、任意のタイミングで、自装置データバッファ819に制御フレームのフレームデータ1020を書き込む。
 また、外部入出力装置813は、任意のタイミングで、自装置障害ヘッダバッファ820に障害フレームヘッダ6010を書き込む。
 また、外部入出力装置813は、任意のタイミングで、自装置障害残りサイズカウンタ821に障害フレーム6000のフレームサイズの値を書き込む。
 また、外部入出力装置813は、任意のタイミングで、自装置障害バッファ822に障害フレーム6000データを書き込む。
 また、外部入出力装置813は、任意のタイミングで、再構成バッファ805からデータを読み出す。
Details of the operation of the external input / output device 813 will be described.
The external input / output device 813 writes the control frame header 2010 in its own device header buffer 817 at an arbitrary timing.
Also, the external input / output device 813 writes the value of the control frame size in the own device remaining size counter 818 at an arbitrary timing.
Further, the external input / output device 813 writes the frame data 1020 of the control frame in its own device data buffer 819 at an arbitrary timing.
Further, the external input / output device 813 writes the failure frame header 6010 in the own device failure header buffer 820 at an arbitrary timing.
In addition, the external input / output device 813 writes the value of the frame size of the fault frame 6000 in its own fault remaining size counter 821 at an arbitrary timing.
Also, the external input / output device 813 writes the failure frame 6000 data in the own device failure buffer 822 at an arbitrary timing.
The external input / output device 813 reads data from the reconfiguration buffer 805 at an arbitrary timing.
 中継分割ヘッダ生成装置814は、中継フレーム(通信装置200から受信したフレーム)が分割されたときに分割フレームヘッダ4010、5010を生成して送信データ選択装置816に出力する。 When the relay frame (the frame received from the communication device 200) is divided, the relay divided header generation device 814 generates divided frame headers 4010 and 5010 and outputs them to the transmission data selection device 816.
 中継分割ヘッダ生成装置814の動作の詳細を説明する。
 中継分割ヘッダ生成装置814は、送信データ選択装置816から要求されたとき、送信データ選択装置816に、分割フレームヘッダを出力する。
 中継分割ヘッダ生成装置814が出力する分割フレームヘッダは、フレームサイズが中継残りサイズカウンタ806から読み出した値を示し、フレームタイプが分割フレームを示す。
Details of the operation of the relay division header generation device 814 will be described.
The relay division header generation device 814 outputs the division frame header to the transmission data selection device 816 when requested by the transmission data selection device 816.
In the divided frame header output from the relay divided header generation device 814, the frame size indicates a value read from the relay remaining size counter 806, and the frame type indicates a divided frame.
 中継割り込み可否判定装置815は、送信中の中継フレームに障害データを割り込ませることができるかどうかを送信データ選択装置816に出力する。 The relay interrupt availability determination device 815 outputs to the transmission data selection device 816 whether or not failure data can be interrupted in the relay frame being transmitted.
 中継割り込み可否判定装置815の動作の詳細を説明する。
 中継割り込み可否判定装置815は、送信データ選択装置816に要求されたとき中継残りサイズカウンタ806からカウント値を読み出す。
 そして、中継割り込み可否判定装置815は、上記カウント値について、
 (nは自然数)かつ、
 {(デリミタのサイズ)+(障害データのサイズ)}*(n)≦(上記カウント値)
の関係を満たすnが存在すれば、有効を送信データ選択装置816に出力し、そうでなければ無効を出力する。
Details of the operation of the relay interrupt availability determination device 815 will be described.
The relay interrupt availability determination device 815 reads the count value from the relay remaining size counter 806 when requested by the transmission data selection device 816.
The relay interrupt availability determination device 815 then determines the count value.
(N is a natural number) and
{(Delimiter size) + (Failure data size)} * (n) ≦ (Count value above)
If there is n satisfying the relationship, valid is output to the transmission data selection device 816, otherwise invalid is output.
 送信データ選択装置816は、優先度に沿って中継障害ヘッダバッファ808、中継障害バッファ812、自装置障害ヘッダバッファ820、自装置障害バッファ822、中継ヘッダバッファ804、中継データバッファ811、自装置ヘッダバッファ817、自装置データバッファ819、デリミタ出力装置823のいずれかから読み出したデータを送信ポート824に出力する。 The transmission data selection device 816 has a relay failure header buffer 808, a relay failure buffer 812, an own device failure header buffer 820, an own device failure buffer 822, a relay header buffer 804, a relay data buffer 811, and an own device header buffer according to priority. 817, the data read from any one of the own device data buffer 819 and the delimiter output device 823 is output to the transmission port 824.
 送信データ選択装置816の動作の詳細を説明する。 Details of the operation of the transmission data selection device 816 will be described.
 送信データ選択装置816は、予めフレームヘッダ1010のサイズを保管しており、予め障害データのサイズを保管しており、1ワードを送信ポート824へ出力するとき、送信カウンタ825にインクリメントを要求する。
 そして、送信データ選択装置816は、以下に示す状態遷移を行う。
 なお、以下に示す各種の状態のうち、「中継障害状態」とは、通信装置200から受信した障害フレームを送信する状態である。
 「自装置送信状態」とは、通信装置100(自装置)の外部入出力装置813からの制御フレームを送信する状態である。
 「自装置自装置状態」とは、通信装置100(自装置)の外部入出力装置813からの制御フレームの送信途中に、通信装置100(自装置)の外部入出力装置813からの障害データを割り込ませて送信する状態である。
 「自装置中継状態」とは、通信装置100(自装置)の外部入出力装置813からの制御フレームの送信途中に、通信装置200から受信した障害データを割り込ませて送信する状態である。
 「自装置分割状態」とは、通信装置100(自装置)の外部入出力装置813からの制御フレームに含まれていた制御データであって、障害データの割込みにより押し出された制御データを、分割フレームで送信する状態である。
 「自装置障害状態」とは、通信装置100(自装置)の外部入出力装置813からの障害フレームを送信する状態である。
 「中継送信状態」とは、通信装置200から受信した制御フレームを送信する状態である。
 「中継自装置状態」とは、通信装置200から受信した制御フレームの送信途中に、通信装置100(自装置)の外部入出力装置813からの障害データを割り込ませて送信する状態である。
 「中継中継状態」とは、通信装置200から受信した制御フレームの送信途中に、通信装置200から受信した障害データを割り込ませて送信する状態である。
 「中継分割状態」とは、通信装置200から受信した制御フレームに含まれていた制御データであって、障害データの割込みにより押し出された制御データを、分割フレームで送信する状態である。
 なお、状態遷移のパターンは、図41に示す通りである。
 以下にて、送信データ選択装置816の状態遷移の詳細を説明する。
The transmission data selection device 816 stores the size of the frame header 1010 in advance, stores the size of the failure data in advance, and requests the transmission counter 825 to increment when outputting one word to the transmission port 824.
And the transmission data selection apparatus 816 performs the state transition shown below.
Of the various states shown below, the “relay failure state” is a state in which a failure frame received from the communication device 200 is transmitted.
The “own device transmission state” is a state in which a control frame is transmitted from the external input / output device 813 of the communication device 100 (own device).
"Own device own device status" refers to failure data from the external input / output device 813 of the communication device 100 (own device) during transmission of a control frame from the external input / output device 813 of the communication device 100 (own device). It is in a state to interrupt and transmit.
The “own device relay state” is a state in which the failure data received from the communication device 200 is interrupted and transmitted during the transmission of the control frame from the external input / output device 813 of the communication device 100 (own device).
The “own device split state” is the control data included in the control frame from the external input / output device 813 of the communication device 100 (self device), and the control data pushed out by interruption of the fault data is divided. This is a state in which the frame is transmitted.
The “own device failure state” is a state in which a failure frame is transmitted from the external input / output device 813 of the communication device 100 (self device).
The “relay transmission state” is a state in which a control frame received from the communication apparatus 200 is transmitted.
The “relay own device state” is a state in which failure data from the external input / output device 813 of the communication device 100 (own device) is interrupted and transmitted during the transmission of the control frame received from the communication device 200.
The “relay relay state” is a state in which the failure data received from the communication device 200 is interrupted and transmitted while the control frame received from the communication device 200 is being transmitted.
The “relay division state” is a state in which the control data included in the control frame received from the communication apparatus 200 and pushed out by interruption of the failure data is transmitted in the divided frame.
The state transition pattern is as shown in FIG.
Details of the state transition of the transmission data selection device 816 will be described below.
 送信待機状態であるとき、
 中継障害残りサイズカウンタ809の値が1以上であれば中継障害状態に遷移し、
 自装置残りサイズカウンタ818の値が1以上であれば自装置送信状態に遷移する。
When waiting for transmission,
If the value of the relay failure remaining size counter 809 is 1 or more, transition to the relay failure state,
If the value of the own device remaining size counter 818 is 1 or more, the state transits to the own device transmission state.
 自装置送信状態であり、かつ、
 中継障害残りサイズカウンタ809の値が0であり、かつ、
 自装置障害残りサイズカウンタ821の値が1以上であり、かつ、
 自装置割り込み可否判定装置826の出力が有効であるとき、
 自装置自装置状態に遷移する。
It is in its own device transmission state, and
The value of the relay failure remaining size counter 809 is 0, and
The value of the own device failure remaining size counter 821 is 1 or more, and
When the output of the own device interruptability determination device 826 is valid,
Transitions to its own device state.
 自装置送信状態であり、かつ、
 中継障害残りサイズカウンタ809の値が1以上であり、かつ、
 自装置障害残りサイズカウンタ821の値が0であり、かつ、
 中継割り込み可否判定装置815の出力が有効であるとき、
 自装置中継状態に遷移する。
It is in its own device transmission state, and
The value of the relay failure remaining size counter 809 is 1 or more, and
The value of the own device failure remaining size counter 821 is 0, and
When the output of the relay interrupt availability determination device 815 is valid,
Transition to the local device relay state.
 自装置送信状態であり、かつ、
 送信カウンタ825の値が自装置ヘッダバッファ817のフレームサイズ1012と等しく、かつ、
 自装置残りサイズカウンタ818の値が0のとき、
 送信待機状態に遷移する。
It is in its own device transmission state, and
The value of the transmission counter 825 is equal to the frame size 1012 of its own device header buffer 817, and
When the value of the own device remaining size counter 818 is 0,
Transition to the transmission standby state.
 自装置送信状態であり、かつ、
 送信カウンタ825の値が自装置ヘッダバッファ817のフレームサイズ1012と等しく、かつ、
 自装置残りサイズカウンタ818の値が1以上のとき、
 自装置分割状態に遷移する。
It is in its own device transmission state, and
The value of the transmission counter 825 is equal to the frame size 1012 of its own device header buffer 817, and
When the value of the device remaining size counter 818 is 1 or more,
Transition to its own device split state.
 自装置送信状態であり、かつ、
 送信カウンタ825の値が自装置ヘッダバッファ817のフレームサイズ1012と等しく、かつ、
 自装置残りサイズカウンタ818の値が1以上のとき、
 自装置分割状態に遷移する。
It is in its own device transmission state, and
The value of the transmission counter 825 is equal to the frame size 1012 of its own device header buffer 817, and
When the value of the device remaining size counter 818 is 1 or more,
Transition to its own device split state.
 自装置自装置状態であり、かつ自装置障害残りサイズカウンタ821の値が0のとき、
 自装置送信状態に遷移する。
When the own device is in the own device state and the value of the own device failure remaining size counter 821 is 0,
Transition to the own device transmission state.
 自装置中継状態であり、かつ中継障害残りサイズカウンタ809の値が0のとき、
 自装置送信状態に遷移する。
When it is in its own device relay state and the value of the relay failure remaining size counter 809 is 0,
Transition to the own device transmission state.
 自装置分割状態であり、かつ、
 自装置残りサイズカウンタ818の値が0のとき、
 送信待機状態に遷移する。
It is in its own device split state, and
When the value of the own device remaining size counter 818 is 0,
Transition to the transmission standby state.
 自装置障害状態であり、かつ、自装置障害残りサイズカウンタ821の値が0のとき、
 送信待機状態に遷移する。
When the own device failure state and the value of the own device failure remaining size counter 821 is 0,
Transition to the transmission standby state.
 中継送信状態であり、かつ、
 中継障害残りサイズカウンタ809の値が0であり、かつ、
 自装置障害残りサイズカウンタ821の値が1以上であり、かつ、
 中継割り込み可否判定装置815の出力が有効であるとき、
 中継自装置状態に遷移する。
Relay transmission status, and
The value of the relay failure remaining size counter 809 is 0, and
The value of the own device failure remaining size counter 821 is 1 or more, and
When the output of the relay interrupt availability determination device 815 is valid,
Transition to the relay local device state.
 中継送信状態であり、かつ、
 中継障害残りサイズカウンタ809の値が1以上であり、かつ、
 中継割り込み可否判定装置815の出力が有効であるとき、
 中継中継状態に遷移する。
Relay transmission status, and
The value of the relay failure remaining size counter 809 is 1 or more, and
When the output of the relay interrupt availability determination device 815 is valid,
Transition to relay relay state.
 中継送信状態であり、かつ、
 送信カウンタ825の値が中継ヘッダバッファ804のフレームサイズ1012と等しく、かつ、
 中継残りサイズカウンタ806の値が0のとき、
 送信待機状態に遷移する。
Relay transmission status, and
The value of the transmission counter 825 is equal to the frame size 1012 of the relay header buffer 804, and
When the value of the relay remaining size counter 806 is 0,
Transition to the transmission standby state.
 中継送信状態であり、かつ、
 送信カウンタ825の値が中継ヘッダバッファ804のフレームサイズ1012と等しく、かつ、
 中継残りサイズカウンタ806の値が1以上のとき、
 中継分割状態に遷移する。
Relay transmission status, and
The value of the transmission counter 825 is equal to the frame size 1012 of the relay header buffer 804, and
When the value of the relay remaining size counter 806 is 1 or more,
Transition to the relay split state.
 中継送信状態であり、かつ、
 送信カウンタ825の値が中継ヘッダバッファ804のフレームサイズ1012と等しく、かつ、
 中継残りサイズカウンタ806の値が1以上のとき、
 中継分割状態に遷移する。
Relay transmission status, and
The value of the transmission counter 825 is equal to the frame size 1012 of the relay header buffer 804, and
When the value of the relay remaining size counter 806 is 1 or more,
Transition to the relay split state.
 中継自装置状態であり、かつ自装置障害残りサイズカウンタ821の値が0のとき、
 中継送信状態に遷移する。
When it is in the relay own device state and the value of the own device failure remaining size counter 821 is 0,
Transition to the relay transmission state.
 中継中継状態であり、かつ中継障害残りサイズカウンタ809の値が0のとき、
 中継送信状態に遷移する。
When in the relay relay state and the value of the relay failure remaining size counter 809 is 0,
Transition to the relay transmission state.
 中継分割状態であり、かつ、
 中継残りサイズカウンタ806の値が0のとき、
 送信待機状態に遷移する。
It is in a relay split state, and
When the value of the relay remaining size counter 806 is 0,
Transition to the transmission standby state.
 中継障害状態であり、かつ、
 中継障害残りサイズカウンタ809の値が0のとき、
 送信待機状態に遷移する。
Relay failure condition, and
When the value of the relay failure remaining size counter 809 is 0,
Transition to the transmission standby state.
 自装置送信状態であり、かつ、
 送信カウンタ825の値がフレームヘッダ1010のサイズ未満のとき、
 自装置ヘッダバッファ817から1ワードを送信ポート824へ出力し、
 送信カウンタ825の値がフレームヘッダのサイズ以上のとき、
 自装置データバッファ819から1ワードを送信ポート824へ出力し、
 自装置残りサイズカウンタ818にデクリメントを要求し、
 送信カウンタ825の値が自装置障害ヘッダバッファ820のフレームサイズ1012と等しいとき送信カウンタ825にクリアを要求する。
It is in its own device transmission state, and
When the value of the transmission counter 825 is less than the size of the frame header 1010,
Output one word from its own device header buffer 817 to the transmission port 824,
When the value of the transmission counter 825 is equal to or larger than the size of the frame header,
1 word is output from its own device data buffer 819 to the transmission port 824,
Requests a decrement from its own device remaining size counter 818,
When the value of the transmission counter 825 is equal to the frame size 1012 of the own apparatus failure header buffer 820, the transmission counter 825 is requested to be cleared.
 自装置中継状態であり、かつ、
 中継障害残りサイズカウンタ809の値が障害データのサイズと等しいとき、
 デリミタ出力装置823からデリミタ3030、5020を送信ポート824へ出力し、
 中継障害残りサイズカウンタ809の値が障害データのサイズより小さいとき、
 中継障害バッファ812から1ワードを送信ポート824へ出力し、
 中継障害残り送信カウンタ825にデクリメントを要求する。
It is in its own device relay state, and
When the value of the relay failure remaining size counter 809 is equal to the size of the failure data,
Delimiters 3030 and 5020 are output from the delimiter output device 823 to the transmission port 824,
When the value of the relay failure remaining size counter 809 is smaller than the size of the failure data,
One word is output from the relay failure buffer 812 to the transmission port 824,
A decrement is requested to the relay failure remaining transmission counter 825.
 自装置自装置状態であり、かつ、
 自装置障害残りサイズカウンタ821の値が障害データのサイズと等しいとき、
 デリミタ出力装置823からデリミタ3030、5020を送信ポート824へ出力し、
 自装置障害残りサイズカウンタ821の値が障害データのサイズより小さいとき、
 自装置障害バッファ822から1ワードを送信ポート824へ出力し、
 自装置障害残りサイズカウンタ821にデクリメントを要求する。
It is in its own device state, and
When the value of the own device failure remaining size counter 821 is equal to the size of the failure data,
Delimiters 3030 and 5020 are output from the delimiter output device 823 to the transmission port 824,
When the value of the own device failure remaining size counter 821 is smaller than the size of the failure data,
1 word is output from the own device failure buffer 822 to the transmission port 824,
Decrement is requested from the own device failure remaining size counter 821.
 自装置分割状態であり、かつ、
 送信カウンタ825の値がフレームヘッダ1010のサイズ未満のとき、
 自装置分割ヘッダ生成装置827から1ワードを送信ポート824へ出力し、
 送信カウンタ825の値がフレームヘッダ1010のサイズ以上のとき、
 自装置データバッファ819から1ワードを送信ポート824へ出力し、
 自装置残りサイズカウンタ818にデクリメントを要求し、
 送信カウンタ825の値が自装置障害ヘッダバッファ820のフレームサイズ1012と等しいとき送信カウンタ825にクリアを要求する。
It is in its own device split state, and
When the value of the transmission counter 825 is less than the size of the frame header 1010,
1 word is output from its own device split header generation device 827 to the transmission port 824,
When the value of the transmission counter 825 is equal to or larger than the size of the frame header 1010,
1 word is output from its own device data buffer 819 to the transmission port 824,
Requests a decrement from its own device remaining size counter 818,
When the value of the transmission counter 825 is equal to the frame size 1012 of the own apparatus failure header buffer 820, the transmission counter 825 is requested to be cleared.
 自装置障害状態であり、かつ、
 送信カウンタ825の値がフレームヘッダ1010のサイズ未満のとき、
 自装置障害ヘッダバッファ820から1ワードを送信ポート824へ出力し、
 送信カウンタ825の値がフレームヘッダのサイズ以上のとき、
 自装置データバッファ819から1ワードを送信ポート824へ出力し、
 自装置残りサイズカウンタ818にデクリメントを要求し、
 送信カウンタ825の値が自装置障害ヘッダバッファ820のフレームサイズ1012と等しいとき送信カウンタ825にクリアを要求する。
It is in its own device failure state, and
When the value of the transmission counter 825 is less than the size of the frame header 1010,
1 word is output from the own device failure header buffer 820 to the transmission port 824,
When the value of the transmission counter 825 is equal to or larger than the size of the frame header,
1 word is output from its own device data buffer 819 to the transmission port 824,
Requests a decrement from its own device remaining size counter 818,
When the value of the transmission counter 825 is equal to the frame size 1012 of the own apparatus failure header buffer 820, the transmission counter 825 is requested to be cleared.
 中継送信状態であり、かつ、
 送信カウンタ825の値がフレームヘッダ1010のサイズ未満のとき、
 中継ヘッダバッファ804から1ワードを送信ポート824へ出力し、
 送信カウンタ825の値がフレームヘッダ1010のサイズ以上のとき、
 中継データバッファ811から1ワードを送信ポート824へ出力し、
 中継残りサイズカウンタ806にデクリメントを要求し、
 送信カウンタ825の値が中継障害ヘッダバッファ808のフレームサイズ1012と等しいとき送信カウンタ825にクリアを要求する。
Relay transmission status, and
When the value of the transmission counter 825 is less than the size of the frame header 1010,
1 word is output from the relay header buffer 804 to the transmission port 824,
When the value of the transmission counter 825 is equal to or larger than the size of the frame header 1010,
1 word is output from the relay data buffer 811 to the transmission port 824,
Request decrement from the relay remaining size counter 806,
When the value of the transmission counter 825 is equal to the frame size 1012 of the relay failure header buffer 808, the transmission counter 825 is requested to clear.
 中継中継状態であり、かつ、
 中継障害残りサイズカウンタ809の値が障害データのサイズと等しいとき、
 デリミタ出力装置823からデリミタを送信ポート824へ出力し、
 中継障害残りサイズカウンタ809の値が障害データのサイズより小さいとき、
 中継障害バッファ812から1ワードを送信ポート824へ出力し、
 中継障害残りサイズカウンタ809にデクリメントを要求する。
It is in a relay relay state, and
When the value of the relay failure remaining size counter 809 is equal to the size of the failure data,
The delimiter is output from the delimiter output device 823 to the transmission port 824,
When the value of the relay failure remaining size counter 809 is smaller than the size of the failure data,
One word is output from the relay failure buffer 812 to the transmission port 824,
A decrement is requested to the relay failure remaining size counter 809.
 中継自装置状態であり、かつ、
 自装置障害残りサイズカウンタ821の値が障害データのサイズと等しいとき、
 デリミタ出力装置823からデリミタ3030、5020を送信ポート824へ出力し、
 自装置障害残りサイズカウンタ821の値が障害データのサイズより小さいとき、
 自装置障害バッファ322から1ワードを送信ポート824へ出力し、
 自装置障害残りサイズカウンタ821にデクリメントを要求する。
The relay is in its own device state, and
When the value of the own device failure remaining size counter 821 is equal to the size of the failure data,
Delimiters 3030 and 5020 are output from the delimiter output device 823 to the transmission port 824,
When the value of the own device failure remaining size counter 821 is smaller than the size of the failure data,
One word is output from the own device failure buffer 322 to the transmission port 824,
Decrement is requested from the own device failure remaining size counter 821.
 中継分割状態であり、かつ、
 送信カウンタ825の値がフレームヘッダ1010のサイズ未満のとき、
 中継分割ヘッダ生成装置814から1ワードを送信ポート824へ出力し、
 送信カウンタ825の値がフレームヘッダ1010のサイズ以上のとき、
 中継データバッファ811から1ワードを送信ポート824へ出力し、
 中継残りサイズカウンタ806にデクリメントを要求し、
 送信カウンタ825の値が中継障害ヘッダバッファ808のフレームサイズ1012と等しいとき送信カウンタ825にクリアを要求する。
It is in a relay split state, and
When the value of the transmission counter 825 is less than the size of the frame header 1010,
1 word is output from the relay division header generation device 814 to the transmission port 824,
When the value of the transmission counter 825 is equal to or larger than the size of the frame header 1010,
1 word is output from the relay data buffer 811 to the transmission port 824,
Request decrement from the relay remaining size counter 806,
When the value of the transmission counter 825 is equal to the frame size 1012 of the relay failure header buffer 808, the transmission counter 825 is requested to clear.
 中継障害状態であり、かつ、
 送信カウンタ825の値がフレームヘッダ1010のサイズ未満のとき、
 中継障害ヘッダバッファ808から1ワードを送信ポート824へ出力し、
 送信カウンタ825の値がフレームヘッダ1010のサイズ以上のとき、
 中継データバッファ811から1ワードを送信ポート824へ出力し、
 中継残りサイズカウンタ806にデクリメントを要求し、
 送信カウンタ825の値が中継障害ヘッダバッファ808のフレームサイズと等しいとき送信カウンタ825にクリアを要求する。
Relay failure condition, and
When the value of the transmission counter 825 is less than the size of the frame header 1010,
1 word is output from the relay failure header buffer 808 to the transmission port 824,
When the value of the transmission counter 825 is equal to or larger than the size of the frame header 1010,
1 word is output from the relay data buffer 811 to the transmission port 824,
Request decrement from the relay remaining size counter 806,
When the value of the transmission counter 825 is equal to the frame size of the relay failure header buffer 808, the transmission counter 825 is requested to clear.
 自装置ヘッダバッファ817は、外部入出力装置813から入力された制御フレームヘッダ2010を保存し、送信データ選択装置816に制御フレームヘッダ2010の情報を出力する。 The own device header buffer 817 stores the control frame header 2010 input from the external input / output device 813 and outputs information of the control frame header 2010 to the transmission data selection device 816.
 自装置ヘッダバッファ817の動作の詳細を説明する。
 自装置ヘッダバッファ817は、外部入出力装置813から書き込まれたとき、制御フレームヘッダ2010を保存する。
 また、自装置ヘッダバッファ817は、自装置分割ヘッダ生成装置827に読み出されたとき、制御フレームヘッダ2010を自装置分割ヘッダ生成装置827に出力する。
 また、自装置ヘッダバッファ817は、自装置割り込み可否判定装置826に読み出されたとき、制御フレームヘッダ2010を自装置割り込み可否判定装置826に出力する。
 また、自装置ヘッダバッファ817は、送信データ選択装置816に読み出されたとき、制御フレームヘッダ2010を送信データ選択装置816に出力する。
Details of the operation of the own apparatus header buffer 817 will be described.
The own device header buffer 817 stores the control frame header 2010 when written from the external input / output device 813.
Also, the own device header buffer 817 outputs the control frame header 2010 to the own device divided header generation device 827 when read to the own device division header generation device 827.
Also, the own device header buffer 817 outputs the control frame header 2010 to the own device interrupt enable / disable determining device 826 when read to the own device interrupt enable / disable determining device 826.
Also, the own device header buffer 817 outputs the control frame header 2010 to the transmission data selection device 816 when read by the transmission data selection device 816.
 自装置残りサイズカウンタ818は、送信データ選択装置816からの要求に応じ自装置の制御フレームまたは分割フレームの未送信ワード数を計測する。 The own device remaining size counter 818 measures the number of untransmitted words in the control frame or divided frame of the own device in response to a request from the transmission data selection device 816.
 自装置残りサイズカウンタ818の動作の詳細を説明する。
 自装置残りサイズカウンタ818は、外部入出力装置813から書き込まれたとき、制御データサイズをカウント値としてセットする。
 また、自装置残りサイズカウンタ818は、送信データ選択装置816から要求されたときに、カウント値をデクリメントする。
 また、自装置残りサイズカウンタ818は、自装置分割ヘッダ生成装置827に読み出されたとき、自装置分割ヘッダ生成装置827にカウント値を出力する。
 また、自装置残りサイズカウンタ818は、自装置割り込み可否判定装置826に読み出されたとき、自装置割り込み可否判定装置826にカウント値を出力する。
Details of the operation of the own apparatus remaining size counter 818 will be described.
The own device remaining size counter 818 sets the control data size as a count value when written from the external input / output device 813.
The own device remaining size counter 818 decrements the count value when requested by the transmission data selection device 816.
Also, the own device remaining size counter 818 outputs a count value to the own device divided header generation device 827 when read by the own device division header generation device 827.
Further, the own device remaining size counter 818 outputs a count value to the own device interrupt enable / disable determining device 826 when read to the own device interrupt enable / disable determining device 826.
 自装置データバッファ819は、外部入出力装置813から書き込まれたフレームのうち制御フレームのフレームデータ1020を保存し、送信データ選択装置816に出力する。 The own device data buffer 819 stores the frame data 1020 of the control frame among the frames written from the external input / output device 813 and outputs it to the transmission data selection device 816.
 自装置データバッファ819の動作の詳細を説明する。
 自装置データバッファ819は、外部入出力装置813から書き込まれたときに、制御データを保存する。
 また、自装置データバッファ819は、送信データ選択装置816に読み出されたときに、送信データ選択装置816に制御データを出力する。
Details of the operation of the device data buffer 819 will be described.
The own device data buffer 819 stores the control data when written from the external input / output device 813.
In addition, the local device data buffer 819 outputs control data to the transmission data selection device 816 when read by the transmission data selection device 816.
 自装置障害ヘッダバッファ820は、外部入出力装置から書き込まれた障害フレームヘッダ6010を保存し、送信データ選択装置に出力する。 The own device failure header buffer 820 stores the failure frame header 6010 written from the external input / output device, and outputs it to the transmission data selection device.
 自装置障害ヘッダバッファ820の動作の詳細を説明する。
 自装置障害ヘッダバッファ820は、外部入出力装置813から書き込まれたとき、障害フレームヘッダ6010を保存する。
 また、自装置障害ヘッダバッファ820は、送信データ選択装置816に読み出されたとき、障害フレームヘッダ6010を送信データ選択装置816に出力する。
Details of the operation of the own device failure header buffer 820 will be described.
The local device failure header buffer 820 stores the failure frame header 6010 when written from the external input / output device 813.
Also, the own device failure header buffer 820 outputs a failure frame header 6010 to the transmission data selection device 816 when read by the transmission data selection device 816.
 自装置障害残りサイズカウンタ821は、送信データ選択装置816からの要求に応じて、外部入出力装置から書き込まれた障害データの未送信ワード数を計測する。 The own device failure remaining size counter 821 measures the number of untransmitted words of failure data written from the external input / output device in response to a request from the transmission data selection device 816.
 自装置障害残りサイズカウンタ821の動作の詳細を説明する。
 自装置障害残りサイズカウンタ821は、外部入出力装置813から書き込まれたとき、障害データサイズの値をカウント値としてセットする。
 また、自装置障害残りサイズカウンタ821は、送信データ選択装置816から要求されたとき、カウント値をデクリメントする。
 また、自装置障害残りサイズカウンタ821は、送信データ選択装置816に読み出されたときに、送信データ選択装置816にカウント値を出力する。
Details of the operation of the own device failure remaining size counter 821 will be described.
The own device failure remaining size counter 821 sets the value of the failure data size as a count value when written from the external input / output device 813.
Also, the own device failure remaining size counter 821 decrements the count value when requested by the transmission data selection device 816.
Further, the own device failure remaining size counter 821 outputs a count value to the transmission data selection device 816 when read by the transmission data selection device 816.
 自装置障害バッファ822は、外部入出力装置から書き込みまれたデータのうち障害データ28を保存し、送信データ選択装置816に出力する。 The own device failure buffer 822 stores the failure data 28 among the data written from the external input / output device and outputs it to the transmission data selection device 816.
 自装置障害バッファ822の動作の詳細を説明する。
 自装置障害バッファ822は、外部入出力装置813から書き込まれたとき、障害データ28を保存する。
 また、自装置障害バッファ822は、送信データ選択装置816に読み出されたとき、障害フレームヘッダ6010を送信データ選択装置816に出力する。
Details of the operation of the own device failure buffer 822 will be described.
The own device failure buffer 822 stores the failure data 28 when written from the external input / output device 813.
Also, the own device failure buffer 822 outputs a failure frame header 6010 to the transmission data selection device 816 when read by the transmission data selection device 816.
 デリミタ出力装置823は、予めデリミタ3030、5020を保管しており、送信データ選択装置816から読み出されたとき、予め保管しているデリミタ3030、5020を送信データ選択装置816に出力する。 The delimiter output device 823 stores the delimiters 3030 and 5020 in advance, and when read from the transmission data selection device 816, outputs the delimiters 3030 and 5020 stored in advance to the transmission data selection device 816.
 送信ポート824は、送信データ選択装置816から1ワードずつデータを受信して、通信装置300にフレームを送信する。 The transmission port 824 receives data one word at a time from the transmission data selection device 816 and transmits a frame to the communication device 300.
 送信カウンタ825は、送信データ選択装置816からの要求に応じて送信データのワード数を計測する。 The transmission counter 825 measures the number of words of transmission data in response to a request from the transmission data selection device 816.
 送信カウンタ825の動作の詳細を説明する。
 送信カウンタ825は、送信データ選択装置816から要求を受けたとき、内部の値をクリアする。
 また、送信カウンタ825は、送信データ選択装置816から要求を受けたとき、内部の値をインクリメントする。
 また、送信カウンタ825は、送信データ選択装置816から読み出されたとき、内部の値を送信データ選択装置816に出力する。
Details of the operation of the transmission counter 825 will be described.
When receiving a request from the transmission data selection device 816, the transmission counter 825 clears the internal value.
The transmission counter 825 increments an internal value when receiving a request from the transmission data selection device 816.
Also, the transmission counter 825 outputs an internal value to the transmission data selection device 816 when read from the transmission data selection device 816.
 自装置割り込み可否判定装置826は、送信中の自装置フレーム(通信装置100内で生成されたフレーム)に障害データを割り込ませることができるかどうかを送信データ選択装置816に出力する。 The own device interrupt availability determination device 826 outputs to the transmission data selection device 816 whether or not failure data can be interrupted in the own device frame (frame generated in the communication device 100) being transmitted.
 自装置割り込み可否判定装置826は、送信データ選択装置816に要求されたときに、自装置残りサイズカウンタ818からカウント値を読み出す。
 また、自装置割り込み可否判定装置826は、上記カウント値について、
 (nは自然数)かつ、
 {(デリミタのサイズ)+(障害データのサイズ)}*(n)≦(上記カウント値)
の関係を満たすnが存在すれば、
 有効を送信データ選択装置816に出力し、そうでなければ無効を出力する。
When requested by the transmission data selection device 816, the own device interrupt availability determination device 826 reads the count value from the own device remaining size counter 818.
In addition, the self-device interrupt enable / disable determination device 826 determines the count value.
(N is a natural number) and
{(Delimiter size) + (Failure data size)} * (n) ≦ (Count value above)
If n exists that satisfies the relationship
Valid is output to the transmission data selection device 816, otherwise invalid is output.
 自装置分割ヘッダ生成装置827は、自装置フレームが分割されたときに分割フレームヘッダ4010、5010を生成して送信データ選択装置816に出力する。 The own device division header generation device 827 generates divided frame headers 4010 and 5010 when the own device frame is divided, and outputs it to the transmission data selection device 816.
 自装置分割ヘッダ生成装置827は、送信データ選択装置816から要求されたとき、送信データ選択装置816に、分割フレームヘッダを出力する。
 自装置分割ヘッダ生成装置827が出力する分割フレームヘッダは、フレームサイズ1012が自装置残りサイズカウンタ818から読み出した値を示し、フレームタイプ1011が分割フレームを示す。
When requested by the transmission data selection device 816, the own device division header generation device 827 outputs the divided frame header to the transmission data selection device 816.
In the divided frame header output from the own device divided header generation device 827, the frame size 1012 indicates a value read from the own device remaining size counter 818, and the frame type 1011 indicates a divided frame.
 次に動作について説明する。
 図24は、通信装置100の動作手順を示す流れ図である。
Next, the operation will be described.
FIG. 24 is a flowchart showing an operation procedure of the communication apparatus 100.
 図24に示すように、通信装置100には、複数の状態が設けられており、フレームの受信状況、障害データの発生状況等に基づき状態遷移が行われる。
 フレーム受信時の状態遷移のパターンは図40に示す通りである。
 フレーム送信時の状態遷移のパターンは図41に示す通りである。
As shown in FIG. 24, the communication device 100 is provided with a plurality of states, and state transition is performed based on the reception status of frames, the occurrence status of failure data, and the like.
The state transition pattern at the time of frame reception is as shown in FIG.
The state transition pattern at the time of frame transmission is as shown in FIG.
 次に、図24のフローチャートを説明する。
 なお、図24のフローチャートは、通信装置100が動作クロックごとの動作に対応させている。
 つまり、S2、S11、S20、S26、S30、S39、S54、S58、S61、S95、S67、S82、S86、S89、S101、S111の各処理は、1クロックで実施される動作である。
Next, the flowchart of FIG. 24 will be described.
In the flowchart of FIG. 24, the communication apparatus 100 corresponds to the operation for each operation clock.
That is, each process of S2, S11, S20, S26, S30, S39, S54, S58, S61, S95, S67, S82, S86, S89, S101, and S111 is an operation performed with one clock.
 先ず、受信データ分配装置801は、受信データ分配装置801の状態を確認する(ステップS1)。 First, the reception data distribution device 801 confirms the state of the reception data distribution device 801 (step S1).
 ステップS1において、
 受信データ分配装置801がヘッダ受信状態であるとき、受信データ分配装置801がヘッダ受信状態であるときの処理(図面では、「ヘッダ受信状態時の処理」と表記する)を実施する(ステップS2)。
 受信データ分配装置801がヘッダ受信状態であるときの処理を図25を用いて説明する。
In step S1,
When the reception data distribution device 801 is in the header reception state, processing when the reception data distribution device 801 is in the header reception state (denoted as “processing in the header reception state” in the drawing) is performed (step S2). .
Processing when the reception data distribution device 801 is in the header reception state will be described with reference to FIG.
 受信データ分配装置801がヘッダ受信状態であるとき、受信データ分配装置801は、中継ヘッダバッファ804に受信した1ワードを保存し、受信カウンタ802にインクリメントを要求する(ステップS3)。
 また、受信データ分配装置801は、受信カウンタ802の値とヘッダバッファ803のフレームサイズ1012とが一致したかを確認する(ステップS4)。
When the reception data distribution device 801 is in the header reception state, the reception data distribution device 801 stores the received one word in the relay header buffer 804 and requests the reception counter 802 to increment (step S3).
Also, the reception data distribution device 801 checks whether the value of the reception counter 802 matches the frame size 1012 of the header buffer 803 (step S4).
 ステップS4において、受信カウンタ802の値がヘッダバッファ803のフレームサイズ1012と一致しているとき、受信データ分配装置801は、ヘッダバッファ803のフレームタイプ1011が障害フレームを示すかを確認する(ステップS5)。 In step S4, when the value of the reception counter 802 matches the frame size 1012 of the header buffer 803, the reception data distribution device 801 checks whether the frame type 1011 of the header buffer 803 indicates a faulty frame (step S5). ).
 ステップS5において、ヘッダバッファ803のフレームタイプ1011が障害フレームを示すとき、受信データ分配装置801は、ヘッダバッファ803のフレームタイプ1011が制御フレームを示すかを確認する(ステップS6)。 In step S5, when the frame type 1011 of the header buffer 803 indicates a failure frame, the received data distribution device 801 checks whether the frame type 1011 of the header buffer 803 indicates a control frame (step S6).
 ステップS6において、ヘッダバッファ803のフレームタイプ1011が制御フレームを示すとき、受信データ分配装置801は、再構成バッファ805をクリアし、再構成カウンタ807にヘッダバッファ803のフレームサイズ1012の値をセットする(ステップS7)。 In step S6, when the frame type 1011 of the header buffer 803 indicates a control frame, the reception data distribution device 801 clears the reconfiguration buffer 805 and sets the value of the frame size 1012 of the header buffer 803 in the reconfiguration counter 807. (Step S7).
 また、受信データ分配装置801は、ヘッダバッファ803からフレームヘッダ1010を読み出して中継ヘッダバッファ804に書き込む。
 また、受信データ分配装置801は、中継残りサイズカウンタ806にヘッダバッファ803のフレームサイズ1012の値をセットし、制御受信状態へ遷移する(ステップS8)。
 これにて、受信データ分配装置801がヘッダ受信状態であるときの処理を終了する。
Also, the reception data distribution device 801 reads the frame header 1010 from the header buffer 803 and writes it in the relay header buffer 804.
Also, the reception data distribution device 801 sets the value of the frame size 1012 of the header buffer 803 in the relay remaining size counter 806, and transitions to the control reception state (step S8).
This completes the processing when the received data distribution device 801 is in the header reception state.
 ステップS6において、ヘッダバッファ803のフレームタイプ1011が制御フレームを示さないとき、受信データ分配装置801は、ヘッダバッファ803のフレームタイプ1011が分割フレームであるかを確認する(ステップS9)。 In step S6, when the frame type 1011 of the header buffer 803 does not indicate a control frame, the reception data distribution device 801 checks whether the frame type 1011 of the header buffer 803 is a divided frame (step S9).
 ステップS9において、ヘッダバッファ803のフレームタイプ1011が分割フレームを示すとき、受信データ分配装置801は、ステップS8の処理を実施する。 In step S9, when the frame type 1011 of the header buffer 803 indicates a divided frame, the reception data distribution device 801 performs the process of step S8.
 ステップS9において、ヘッダバッファ803のフレームタイプ1011が分割フレームを示さない場合は、受信データ分配装置801がヘッダ受信状態であるときの処理を終了する。 In step S9, when the frame type 1011 of the header buffer 803 does not indicate a divided frame, the processing when the reception data distribution device 801 is in the header reception state ends.
 また、ステップS5において、ヘッダバッファ803のフレームタイプ1011が障害フレームを示さないとき、受信データ分配装置801は、ヘッダバッファ803からフレームヘッダを読み出して中継障害ヘッダバッファ808に書き込む。
 また、受信データ分配装置801は、中継障害残りサイズカウンタ809へフレームデータのサイズを書き込み、障害受信状態へ遷移する(ステップS10)。
In step S5, when the frame type 1011 of the header buffer 803 does not indicate a failure frame, the reception data distribution device 801 reads the frame header from the header buffer 803 and writes it in the relay failure header buffer 808.
Also, the reception data distribution device 801 writes the size of the frame data to the relay failure remaining size counter 809, and transitions to the failure reception state (step S10).
 受信データ分配装置801がヘッダ受信状態であるときの処理を終了すると、外部入出力装置813の出力処理(ステップS106)を実施する。
 外部入出力装置813の出力処理(ステップS106)の詳細は、図38を用いて後述する。
When the processing when the reception data distribution device 801 is in the header reception state is finished, the output processing of the external input / output device 813 (step S106) is performed.
Details of the output processing (step S106) of the external input / output device 813 will be described later with reference to FIG.
 次に、受信データ分配装置801が制御受信状態であるときの処理(図面では、「制御受信状態時の処理」と表記する)を図26を用いて説明する。 Next, processing when the reception data distribution device 801 is in the control reception state (in the drawing, expressed as “processing in the control reception state”) will be described with reference to FIG.
 まず、受信データ分配装置801は、通信装置200から受信した1ワードがデリミタ5020以外かどうか確認する(ステップS12)。 First, the received data distribution device 801 checks whether one word received from the communication device 200 is other than the delimiter 5020 (step S12).
 ステップS12において、受信データ分配装置801が通信装置200から受信した1ワードがデリミタ5020以外のとき、受信データ分配装置801は、再構成バッファ805に受信した1ワードを書き込み、再構成カウンタ807にデクリメントを要求する(ステップS13)。
 また、受信データ分配装置801は、再構成カウンタ807の値が1以上か確認する(ステップS14)。
In step S12, when the received data distribution device 801 receives one word other than the delimiter 5020 from the communication device 200, the received data distribution device 801 writes the received one word in the reconfiguration buffer 805, and decrements the reconfiguration counter 807. Is requested (step S13).
Also, the received data distribution device 801 checks whether the value of the reconfiguration counter 807 is 1 or more (step S14).
 ステップS14において、再構成カウンタ807が1以上の値であるとき、受信データ分配装置801は、中継データバッファ811に通信装置200から受信した1ワードを書き込み、受信カウンタ802にインクリメントを要求する(ステップS15)。
 また、受信データ分配装置801は、受信カウンタ802の値がヘッダバッファ803のフレームサイズ1012の値と等しいか確認する(ステップS16)。
In step S14, when the reconfiguration counter 807 has a value of 1 or more, the reception data distribution device 801 writes one word received from the communication device 200 in the relay data buffer 811 and requests the reception counter 802 to increment (step S14). S15).
Also, the reception data distribution device 801 confirms whether the value of the reception counter 802 is equal to the value of the frame size 1012 of the header buffer 803 (step S16).
 ステップS16において、受信カウンタ802の値がヘッダバッファ803のフレームサイズ1012の値と等しいとき、受信データ分配装置801は、受信待機状態へ遷移する(ステップS17)。
 また、受信データ分配装置801は受信カウンタ802にクリアを要求し、受信データ分配装置801が制御受信状態であるときの処理を終了する。
In step S16, when the value of the reception counter 802 is equal to the value of the frame size 1012 of the header buffer 803, the reception data distribution device 801 transitions to a reception standby state (step S17).
Also, the reception data distribution device 801 requests the reception counter 802 to clear, and ends the process when the reception data distribution device 801 is in the control reception state.
 ステップS16において、受信カウンタ802の値がヘッダバッファ803のフレームサイズ1012の値と異なるとき、受信データ分配装置801が制御受信状態であるときの処理を終了する。 In step S16, when the value of the reception counter 802 is different from the value of the frame size 1012 of the header buffer 803, the processing when the reception data distribution device 801 is in the control reception state ends.
 ステップS14において、再構成カウンタ807の値が0であるとき、受信データ分配装置801は、外部入出力装置813に制御フレームの受信を示す割り込みを出力し(ステップS18)、ステップS15から処理を実施する。 In step S14, when the value of the reconstruction counter 807 is 0, the reception data distribution device 801 outputs an interrupt indicating reception of a control frame to the external input / output device 813 (step S18), and performs the processing from step S15. To do.
 ステップS12において、受信データ分配装置801が通信装置200から受信した1ワードがデリミタ5020のとき、受信データ分配装置801は、ヘッダバッファ803からフレームヘッダ1010を読み出して中継障害バッファ812に書き込み、割り込み障害受信状態へ遷移し(ステップS19)、受信データ分配装置801が制御受信状態であるときの処理を終了する。 In step S12, when one word received by the reception data distribution device 801 from the communication device 200 is the delimiter 5020, the reception data distribution device 801 reads the frame header 1010 from the header buffer 803 and writes it into the relay failure buffer 812, and interrupt failure occurs. The process transits to the reception state (step S19), and the process when the reception data distribution device 801 is in the control reception state is terminated.
 次に、受信データ分配装置801が割り込み障害受信状態であるときの処理(図面では、「割り込み障害受信状態時の処理」と表記する)を図27を用いて説明する。 Next, processing when the reception data distribution device 801 is in the interrupt failure reception state (denoted as “processing in the interrupt failure reception state” in the drawing) will be described with reference to FIG.
 まず、受信データ分配装置801は、中継障害バッファ812に通信装置200から受信した1ワードを書き込み(ステップS21)、割り込みカウンタ810にインクリメントを要求し、受信カウンタ802にインクリメントを要求する(ステップS21)。
 次に、受信データ分配装置801は、割り込みカウンタ810の値が予め定められた障害データのサイズと等しいか確認する(ステップS22)。
First, the reception data distribution device 801 writes one word received from the communication device 200 to the relay failure buffer 812 (step S21), requests the interrupt counter 810 to increment, and requests the reception counter 802 to increment (step S21). .
Next, the reception data distribution device 801 confirms whether the value of the interrupt counter 810 is equal to a predetermined size of failure data (step S22).
 ステップS22において、割り込みカウンタ810の値が予め定められて障害データのサイズと等しいとき、受信データ分配装置801は、受信カウンタ802の値がヘッダバッファ803のフレームサイズ1012の値と等しいか確認する(ステップS23)。 In step S22, when the value of the interrupt counter 810 is predetermined and equal to the size of the failure data, the reception data distribution device 801 checks whether the value of the reception counter 802 is equal to the frame size 1012 of the header buffer 803 ( Step S23).
 ステップS23において、受信カウンタ802の値がヘッダバッファ803のフレームサイズ1012の値と等しいとき、受信データ分配装置801は、受信待機状態へ遷移し(ステップS24)、割り込み障害受信状態であるときの処理を終了する。 In step S23, when the value of the reception counter 802 is equal to the value of the frame size 1012 of the header buffer 803, the reception data distribution device 801 transitions to the reception standby state (step S24), and processing when it is in the interrupt failure reception state Exit.
 ステップS23において、受信データ分配装置801の値がヘッダバッファ803のフレームサイズ1012の値と異なるとき、受信データ分配装置801は制御受信状態へ遷移する(ステップS25)。 In step S23, when the value of the reception data distribution device 801 is different from the value of the frame size 1012 of the header buffer 803, the reception data distribution device 801 transits to the control reception state (step S25).
 ステップS22において、割り込みカウンタ810の値が予め定められて障害データのサイズと異なるとき、割り込み障害受信状態であるときの処理を終了する。 In step S22, when the value of the interrupt counter 810 is predetermined and different from the size of the fault data, the process in the interrupt fault reception state is ended.
 次に、受信データ分配装置801が障害受信状態であるときの処理(図面では、「障害受信状態時の処理」と表記する)を図28を用いて説明する。 Next, processing when the received data distribution device 801 is in the fault reception state (in the drawing, expressed as “processing in fault reception state”) will be described with reference to FIG.
 まず、受信データ分配装置801は、中継障害バッファ812に通信装置200から受信した1ワードを書き込み、受信カウンタ802にインクリメントを要求する(ステップS26)。
 また、受信データ分配装置801は、受信カウンタ802の値がヘッダバッファ803のフレームサイズ1012の値と等しいか確認する(ステップS27)。
First, the reception data distribution device 801 writes one word received from the communication device 200 in the relay failure buffer 812, and requests the reception counter 802 to increment (step S26).
Also, the reception data distribution device 801 confirms whether the value of the reception counter 802 is equal to the value of the frame size 1012 of the header buffer 803 (step S27).
 ステップS27において、受信カウンタ802の値がヘッダバッファ803のフレームサイズ1012の値と等しいとき、受信データ分配装置801は、受信カウンタ802にクリアを要求し、中継障害バッファ812に通信装置200から受信した1ワードを書き込み、受信待機状態へ遷移し(ステップS28)、受信データ分配装置801が障害受信状態であるときの処理を終了する。 In step S27, when the value of the reception counter 802 is equal to the value of the frame size 1012 of the header buffer 803, the reception data distribution device 801 requests the reception counter 802 to clear, and the relay failure buffer 812 receives from the communication device 200. One word is written, transition to the reception standby state (step S28), and the processing when the reception data distribution device 801 is in the fault reception state is terminated.
 ステップS27において、受信カウンタ802の値がヘッダバッファ803のフレームサイズ1012の値と異なるとき、受信データ分配装置801は、受信待機状態へ遷移し、受信データ分配装置801が障害受信状態であるときの処理を終了する。 In step S27, when the value of the reception counter 802 is different from the value of the frame size 1012 of the header buffer 803, the reception data distribution device 801 transits to the reception standby state, and the reception data distribution device 801 is in the failure reception state. The process ends.
 次に、送信データ選択装置816が送信待機状態であるときの処理(図面では、「送信待機状態時の処理」と表記する)を図29を用いて説明する。 Next, processing when the transmission data selection device 816 is in the transmission standby state (in the drawing, expressed as “processing in transmission standby state”) will be described with reference to FIG.
 まず、送信データ選択装置816は、中継障害残りサイズカウンタ809の値が0かどうか確認する(ステップS31)。 First, the transmission data selection device 816 checks whether the value of the relay failure remaining size counter 809 is 0 (step S31).
 ステップS31において、中継障害残りサイズカウンタ809の値が0のとき、送信データ選択装置816は、自装置障害残りサイズカウンタ821の値が0かどうか確認する(ステップS32)。 In step S31, when the value of the relay failure remaining size counter 809 is 0, the transmission data selection device 816 checks whether the value of the own device failure remaining size counter 821 is 0 (step S32).
 ステップS32において、自装置障害残りサイズカウンタ821の値が0のとき、送信データ選択装置816は中継残りサイズカウンタ806の値が0かどうか確認する(ステップS33)。 In step S32, when the value of the own device failure remaining size counter 821 is 0, the transmission data selection device 816 checks whether the value of the relay remaining size counter 806 is 0 (step S33).
 ステップS33において、送信データ選択装置816は、中継残りサイズカウンタ806の値が0のとき、自装置残りサイズカウンタ818の値が0かどうか確認する(ステップS34)。 In step S33, when the value of the relay remaining size counter 806 is 0, the transmission data selection device 816 checks whether the value of its own device remaining size counter 818 is 0 (step S34).
 ステップS34において、自装置残りサイズカウンタ818の値が0のとき、送信データ選択装置816は自装置送信状態へ遷移し(ステップS35)、送信データ選択装置816が送信待機状態であるときの処理を終了する。 In step S34, when the value of the own device remaining size counter 818 is 0, the transmission data selection device 816 transitions to its own device transmission state (step S35), and performs processing when the transmission data selection device 816 is in the transmission standby state. finish.
 ステップS34において、自装置残りサイズカウンタ818の値が0以外のとき、送信データ選択装置816が送信待機状態であるときの処理を終了する。 In step S34, when the value of the own device remaining size counter 818 is other than 0, the processing when the transmission data selection device 816 is in the transmission standby state is terminated.
 ステップS33において、中継残りサイズカウンタ806の値が0以外のとき、送信データ選択装置816は中継状態へ遷移し(ステップS36)、送信データ選択装置816が送信待機状態であるときの処理を終了する。 In step S33, when the value of the remaining relay size counter 806 is other than 0, the transmission data selection device 816 transits to the relay state (step S36), and the processing when the transmission data selection device 816 is in the transmission standby state is terminated. .
 ステップS32において、自装置障害残りサイズカウンタ821の値が0以外のとき、送信データ選択装置816は自装置障害状態へ遷移し(ステップS37)、送信データ選択装置816が送信待機状態であるときの処理を終了する。 In step S32, when the value of the own device failure remaining size counter 821 is other than 0, the transmission data selection device 816 transits to the own device failure state (step S37), and the transmission data selection device 816 is in the transmission standby state. The process ends.
 ステップS31において、中継障害残りサイズカウンタ809の値が0以外のとき、送信データ選択装置816は、中継障害通知状態へ遷移し(ステップS38)、送信データ選択装置816が送信待機状態であるときの処理を終了する。 In step S31, when the value of the relay failure remaining size counter 809 is other than 0, the transmission data selection device 816 transits to the relay failure notification state (step S38), and the transmission data selection device 816 is in the transmission standby state. The process ends.
 送信データ選択装置816が自装置送信状態であるときの処理(図面では、「自装置送信状態時の処理」と表記する)を図30を用いて説明する。 Processing when the transmission data selection device 816 is in its own device transmission state (denoted as “processing in its own device transmission state” in the drawing) will be described with reference to FIG.
 まず、送信データ選択装置816は、送信カウンタ825の値がフレームヘッダ1010のサイズ以下か確認する(ステップS40)。 First, the transmission data selection device 816 checks whether the value of the transmission counter 825 is equal to or smaller than the size of the frame header 1010 (step S40).
 ステップS40において、送信カウンタ825の値がフレームヘッダ1010のサイズ以下のとき、送信データ選択装置816は、自装置ヘッダバッファ817から1ワードを送信ポート824に出力し、送信カウンタ825にインクリメントを要求し、送信データ選択装置816が自装置送信状態であるときの処理を終了する(ステップS41)。 In step S40, when the value of the transmission counter 825 is equal to or smaller than the size of the frame header 1010, the transmission data selection device 816 outputs one word from the own device header buffer 817 to the transmission port 824 and requests the transmission counter 825 to increment. Then, the processing when the transmission data selection device 816 is in its own device transmission state is terminated (step S41).
 ステップS40において、送信カウンタ825の値がフレームヘッダ1010のサイズより大きいとき、送信データ選択装置816は、中継障害残りサイズカウンタ809の値が0であるか確認する(ステップS42)。 In step S40, when the value of the transmission counter 825 is larger than the size of the frame header 1010, the transmission data selection device 816 checks whether the value of the relay failure remaining size counter 809 is 0 (step S42).
 ステップS42において、送信データ選択装置816は、自装置障害残りサイズカウンタ821の値が0であるか確認する(ステップS43)。 In step S42, the transmission data selection device 816 checks whether the value of the own device failure remaining size counter 821 is 0 (step S43).
 ステップS43において、自装置障害残りサイズカウンタ821の値が0のとき、送信データ選択装置816は、送信カウンタ825の値が自装置ヘッダバッファ817のフレームサイズ1012の値と異なるか確認する(ステップS44)。 In step S43, when the value of the own device failure remaining size counter 821 is 0, the transmission data selection device 816 checks whether the value of the transmission counter 825 is different from the value of the frame size 1012 of the own device header buffer 817 (step S44). ).
 ステップS44において、送信カウンタ825の値が自装置ヘッダバッファ817のフレームサイズ1012の値と異なるとき、送信データ選択装置816は、自装置データバッファ819から1ワードを送信ポート824に出力し、自装置残りサイズカウンタ818にデクリメントを要求し、送信カウンタ825にインクリメントを要求し(ステップS45)、送信データ選択装置816が自装置送信状態であるときの処理を終了する。 In step S44, when the value of the transmission counter 825 is different from the value of the frame size 1012 of the own apparatus header buffer 817, the transmission data selection apparatus 816 outputs one word from the own apparatus data buffer 819 to the transmission port 824, Decrement is requested from the remaining size counter 818 and increment is requested from the transmission counter 825 (step S45), and the processing when the transmission data selection device 816 is in its own device transmission state is terminated.
 ステップS44において、送信カウンタ825の値が自装置ヘッダバッファ817のフレームサイズ1012の値と等しいとき、送信データ選択装置816は、送信カウンタ825にクリアを要求し(ステップS46)、自装置残りサイズカウンタ818の値が0であるか確認する(ステップS47)。 In step S44, when the value of the transmission counter 825 is equal to the value of the frame size 1012 of the own device header buffer 817, the transmission data selection device 816 requests the transmission counter 825 to clear (step S46), and the own device remaining size counter. It is checked whether the value 818 is 0 (step S47).
 ステップS47において、自装置残りサイズカウンタ818の値が0のとき、送信データ選択装置816は、送信カウンタ825にクリアを要求し、送信待機状態に遷移し(ステップS48)、送信データ選択装置816が自装置送信状態であるときの処理を終了する。 In step S47, when the value of the own device remaining size counter 818 is 0, the transmission data selection device 816 requests the transmission counter 825 to clear, transitions to a transmission standby state (step S48), and the transmission data selection device 816 The processing in the local device transmission state is terminated.
 ステップS48において、自装置残りサイズカウンタ818の値が0以外のとき、送信データ選択装置816は自装置分割状態に遷移し(ステップS49)、送信データ選択装置816が自装置送信状態であるときの処理を終了する。 In step S48, when the value of the own device remaining size counter 818 is other than 0, the transmission data selection device 816 transits to the own device division state (step S49), and the transmission data selection device 816 is in the own device transmission state. The process ends.
 ステップS43において、自装置障害残りサイズカウンタ821の値が0でないとき、送信データ選択装置816は、自装置割り込み可否判定装置826の出力を確認する(ステップS50)。 In step S43, when the value of the own device failure remaining size counter 821 is not 0, the transmission data selection device 816 confirms the output of the own device interruptability determination device 826 (step S50).
 ステップS50において、自装置割り込み可否判定装置826の出力が有効でないとき、送信データ選択装置816はステップS44から処理を実施する。 In step S50, when the output of the own device interruptability determination device 826 is not valid, the transmission data selection device 816 performs processing from step S44.
 ステップS50において、自装置割り込み可否判定装置826の出力が有効であるとき、送信データ選択装置816は、デリミタ出力装置823からデリミタを送信ポート824に出力し、自装置自装置割り込み状態に遷移し(ステップS51)、送信データ選択装置816が自装置送信状態であるときの処理を終了する。 In step S50, when the output of the own device interrupt availability determination device 826 is valid, the transmission data selection device 816 outputs the delimiter from the delimiter output device 823 to the transmission port 824, and transits to the own device own device interrupt state ( Step S51), the processing when the transmission data selection device 816 is in its own device transmission state is terminated.
 ステップS42において、中継障害残り送信カウンタ825の値が0でないとき、送信データ選択装置816は、自装置割り込み可否判定装置826の出力を確認する(ステップS52)。 In step S42, when the value of the relay failure remaining transmission counter 825 is not 0, the transmission data selection device 816 confirms the output of the own device interruptability determination device 826 (step S52).
 ステップS52において、自装置割り込み可否判定装置826の出力が無効であるとき、送信データ選択装置816は、ステップS43から処理を実施する。 In step S52, when the output of the own device interruptability determination device 826 is invalid, the transmission data selection device 816 performs processing from step S43.
 ステップS52において、自装置割り込み可否判定装置826の出力が有効であるとき、送信データ選択装置816は、デリミタ出力装置823からデリミタ3030、5020を送信ポート824に出力し、自装置中継割り込み状態に遷移する(ステップS53)。 In step S52, when the output of the own device interrupt availability determination device 826 is valid, the transmission data selection device 816 outputs the delimiters 3030 and 5020 from the delimiter output device 823 to the transmission port 824, and transitions to the own device relay interrupt state. (Step S53).
 次に、送信データ選択装置816が自装置中継状態であるときの処理(図面では、「自装置中継状態時の処理」と表記する)を図31を用いて説明する。 Next, processing when the transmission data selection device 816 is in its own device relay state (in the drawing, expressed as “processing in its own device relay state”) will be described with reference to FIG.
 まず、送信データ選択装置816は、中継障害残りサイズカウンタ809の値が0以上であるか確認する(ステップS55)。 First, the transmission data selection device 816 checks whether the value of the relay failure remaining size counter 809 is 0 or more (step S55).
 ステップS55において、中継障害残りサイズカウンタ809の値が0以上であるとき、送信データ選択装置816は、中継障害バッファ812から1ワードを送信ポート824へ出力し、送信カウンタ825にインクリメントを要求し、中継障害残り送信カウンタ825にデクリメントを要求し(ステップS56)、送信データ選択装置816が自装置中継状態であるときの処理を終了する。 In step S55, when the value of the relay failure remaining size counter 809 is 0 or more, the transmission data selection device 816 outputs one word from the relay failure buffer 812 to the transmission port 824, requests the transmission counter 825 to increment, The relay failure remaining transmission counter 825 is requested to decrement (step S56), and the processing when the transmission data selection device 816 is in its own device relay state is terminated.
 ステップS56において、中継障害残りサイズカウンタ809の値が0であるとき、送信データ選択装置816は、自装置送信状態へ遷移し(ステップS57)、送信データ選択装置816が自装置中継状態であるときの処理を終了する。 When the value of the relay failure remaining size counter 809 is 0 in step S56, the transmission data selection device 816 transitions to its own device transmission state (step S57), and when the transmission data selection device 816 is in its own device relay state. Terminate the process.
 次に、送信データ選択装置816が自装置自装置状態であるときの処理(図面では、「自装置自装置状態時の処理」と表記する)を図32を用いて説明する。 Next, processing when the transmission data selection device 816 is in its own device state (denoted as “processing in its own device state” in the drawing) will be described with reference to FIG.
 まず、送信データ選択装置816は、自装置障害残りサイズカウンタ821の値が0以上であるか確認する(ステップS59)。 First, the transmission data selection device 816 confirms whether the value of its own device failure remaining size counter 821 is 0 or more (step S59).
 ステップS59において、自装置障害残りサイズカウンタ821の値が0以上であるとき、送信データ選択装置816は自装置障害バッファ822から1ワードを送信ポート824へ出力し、送信カウンタ825にインクリメントを要求し、自装置障害残りサイズカウンタ821にデクリメントを要求し(ステップS60)、送信データ選択装置816が自装置自装置状態であるときの処理を終了する。 In step S59, when the value of the own device failure remaining size counter 821 is 0 or more, the transmission data selection device 816 outputs one word from the own device failure buffer 822 to the transmission port 824, and requests the transmission counter 825 to increment. Then, the own device failure remaining size counter 821 is requested to decrement (step S60), and the processing when the transmission data selecting device 816 is in the own device own device state is terminated.
 ステップS59において、自装置障害残りサイズカウンタ821の値が0であるとき、送信データ選択装置816は、自装置送信状態へ遷移し(ステップS57)、送信データ選択装置816が自装置自装置状態であるときの処理を終了する。 In step S59, when the value of the own device failure remaining size counter 821 is 0, the transmission data selection device 816 transits to the own device transmission state (step S57), and the transmission data selection device 816 is in the own device own device state. The processing at a certain time is terminated.
 次に、送信データ選択装置816が自装置分割状態であるときの処理(図面では、「自装置分割状態時の処理」と表記する)を図32を用いて説明する。 Next, processing when the transmission data selection device 816 is in its own device division state (in the drawing, expressed as “processing in own device division state”) will be described with reference to FIG.
 まず、送信データ選択装置816は、送信カウンタ825の値がフレームヘッダ1010のサイズより小さいか確認する(ステップS62)。 First, the transmission data selection device 816 checks whether the value of the transmission counter 825 is smaller than the size of the frame header 1010 (step S62).
 ステップS62において、送信カウンタ825の値がフレームヘッダ1010のサイズより小さいとき、送信データ選択装置816は、自装置分割ヘッダ生成装置827から1ワードを送信ポート824に出力し、送信カウンタ825にインクリメントを要求し(ステップS63)、送信データ選択装置816が自装置分割状態であるときの処理を終了する。 In step S62, when the value of the transmission counter 825 is smaller than the size of the frame header 1010, the transmission data selection device 816 outputs one word from its own device split header generation device 827 to the transmission port 824, and increments the transmission counter 825. Request (step S63), and the process when the transmission data selection device 816 is in its own device split state is terminated.
 ステップS62において、送信カウンタ825の値がフレームヘッダ1010のサイズ以上であるとき、送信データ選択装置816は、自装置残りサイズカウンタ818の値が0より大きいか確認する(ステップS64)。 In step S62, when the value of the transmission counter 825 is equal to or larger than the size of the frame header 1010, the transmission data selection device 816 checks whether the value of its own device remaining size counter 818 is greater than 0 (step S64).
 ステップS64において、自装置残りサイズカウンタ818の値が0より大きいとき、送信データ選択装置816は、自装置データバッファ819から1ワードを送信ポート824へ出力し、自装置残りサイズカウンタ818にデクリメントを要求し、送信カウンタ825にインクリメントを要求し(ステップS65)、送信データ選択装置816が自装置分割状態であるときの処理を終了する。 In step S64, when the value of the own device remaining size counter 818 is larger than 0, the transmission data selection device 816 outputs one word from the own device data buffer 819 to the transmission port 824, and decrements the own device remaining size counter 818. The transmission is requested, the transmission counter 825 is requested to increment (step S65), and the processing when the transmission data selection device 816 is in its own device division state is terminated.
 ステップS64において、自装置残りサイズカウンタ818の値が0であるとき、送信データ選択装置816は、送信カウンタ825にクリアを要求し、送信待機状態へ遷移し(ステップS66)、送信データ選択装置816が自装置分割状態であるときの処理を終了する。 In step S64, when the value of the own device remaining size counter 818 is 0, the transmission data selection device 816 requests the transmission counter 825 to clear, transitions to a transmission standby state (step S66), and the transmission data selection device 816. Terminates the process when is in its own device split state.
 送信データ選択装置816が中継送信状態であるときの処理(図面では、「中継送信状態時の処理」と表記する)を図33を用いて説明する。 Processing when the transmission data selection device 816 is in the relay transmission state (denoted as “processing in the relay transmission state” in the drawing) will be described with reference to FIG.
 まず、送信データ選択装置816は、送信カウンタ825の値がフレームヘッダ1010のサイズ以下か確認する(ステップS68)。 First, the transmission data selection device 816 checks whether the value of the transmission counter 825 is equal to or smaller than the size of the frame header 1010 (step S68).
 ステップS68において、送信カウンタ825の値がフレームヘッダ1010のサイズ以下のとき、送信データ選択装置816は、中継ヘッダバッファ804から1ワードを送信ポート824に出力し、送信カウンタ825にインクリメントを要求し、送信データ選択装置816が中継送信状態であるときの処理を終了する(ステップS69)。 In step S68, when the value of the transmission counter 825 is equal to or smaller than the size of the frame header 1010, the transmission data selection device 816 outputs one word from the relay header buffer 804 to the transmission port 824, requests the transmission counter 825 to increment, The process when the transmission data selection device 816 is in the relay transmission state is terminated (step S69).
 ステップS68において、送信カウンタ825の値がフレームヘッダ1010のサイズより大きいとき、送信データ選択装置816は、中継障害残りサイズカウンタ809の値が0であるか確認する(ステップS70)。 In step S68, when the value of the transmission counter 825 is larger than the size of the frame header 1010, the transmission data selection device 816 checks whether the value of the relay failure remaining size counter 809 is 0 (step S70).
 ステップS70において、送信データ選択装置816は、自装置障害残りサイズカウンタ821の値が0であるか確認する(ステップS71)。 In step S70, the transmission data selection device 816 checks whether the value of the own device failure remaining size counter 821 is 0 (step S71).
 ステップS71において、自装置障害残りサイズカウンタ821の値が0のとき、送信データ選択装置816は、送信カウンタ825の値が中継ヘッダバッファ804のフレームサイズ1012の値と異なるか確認する(ステップS72)。 In step S71, when the value of the own device failure remaining size counter 821 is 0, the transmission data selection device 816 checks whether the value of the transmission counter 825 is different from the value of the frame size 1012 of the relay header buffer 804 (step S72). .
 ステップS72において、送信カウンタ825の値が中継ヘッダバッファ804のフレームサイズ1012の値と異なるとき、送信データ選択装置816は、中継データバッファ811から1ワードを送信ポート824に出力し、中継残りサイズカウンタ806にデクリメントを要求し、送信カウンタ825にインクリメントを要求し(ステップS73)、送信データ選択装置816が中継送信状態であるときの処理を終了する。 In step S72, when the value of the transmission counter 825 is different from the value of the frame size 1012 of the relay header buffer 804, the transmission data selection device 816 outputs one word from the relay data buffer 811 to the transmission port 824, and the relay remaining size counter. Decrement is requested to 806, increment is requested to the transmission counter 825 (step S73), and the process when the transmission data selection device 816 is in the relay transmission state is terminated.
 ステップS72において、送信カウンタ825の値が中継ヘッダバッファ804のフレームサイズ1012の値と等しいとき、送信データ選択装置816は、送信カウンタ825にクリアを要求し(ステップS74)、中継残りサイズカウンタ806の値が0であるか確認する(ステップS75)。 In step S72, when the value of the transmission counter 825 is equal to the value of the frame size 1012 of the relay header buffer 804, the transmission data selection device 816 requests the transmission counter 825 to clear (step S74). It is checked whether the value is 0 (step S75).
 ステップS75において、中継残りサイズカウンタ806の値が0のとき、送信データ選択装置816は送信カウンタ825にクリアを要求し、送信待機状態に遷移し(ステップS76)、送信データ選択装置816が中継送信状態であるときの処理を終了する。 In step S75, when the value of the relay remaining size counter 806 is 0, the transmission data selection device 816 requests the transmission counter 825 to clear, transitions to a transmission standby state (step S76), and the transmission data selection device 816 performs relay transmission. The process when it is in a state is terminated.
 ステップS75において、中継残りサイズカウンタ806の値が0以外のとき、送信データ選択装置816は、中継分割状態に遷移し(ステップS77)、送信データ選択装置816が中継送信状態であるときの処理を終了する。 In step S75, when the value of the remaining relay size counter 806 is other than 0, the transmission data selection device 816 transitions to the relay division state (step S77), and performs processing when the transmission data selection device 816 is in the relay transmission state. finish.
 ステップS71において、自装置障害残りサイズカウンタ821の値が0でないとき、送信データ選択装置816は、中継割り込み可否判定装置815の出力を確認する(ステップS78)。 In step S71, when the value of the own device failure remaining size counter 821 is not 0, the transmission data selection device 816 confirms the output of the relay interrupt availability determination device 815 (step S78).
 ステップS78において、中継割り込み可否判定装置815の出力が有効でないとき、送信データ選択装置816は、ステップS72から処理を実施する。 In step S78, when the output of the relay interrupt availability determination device 815 is not valid, the transmission data selection device 816 performs processing from step S72.
 ステップS78において、中継割り込み可否判定装置815の出力が有効であるとき、送信データ選択装置816は、デリミタ出力装置823からデリミタ3030を送信ポート824に出力し、中継自装置割り込み状態に遷移し(ステップS79)、送信データ選択装置816が中継送信状態であるときの処理を終了する。 In step S78, when the output of the relay interrupt availability determination device 815 is valid, the transmission data selection device 816 outputs the delimiter 3030 from the delimiter output device 823 to the transmission port 824, and transits to the relay own device interrupt state (step S78). S79), the processing when the transmission data selection device 816 is in the relay transmission state is terminated.
 ステップS70において、中継障害残りサイズカウンタ809の値が0でないとき、送信データ選択装置816は、中継割り込み可否判定装置815の出力を確認する(ステップS80)。 In step S70, when the value of the relay failure remaining size counter 809 is not 0, the transmission data selection device 816 confirms the output of the relay interrupt availability determination device 815 (step S80).
 ステップS80において、中継割り込み可否判定装置815の出力が無効であるとき、送信データ選択装置816は、ステップS71から処理を実施する。 In step S80, when the output of the relay interrupt availability determination device 815 is invalid, the transmission data selection device 816 performs the processing from step S71.
 ステップS80において、中継割り込み可否判定装置815の出力が有効であるとき、送信データ選択装置816は、デリミタ出力装置823からデリミタ3030を送信ポート824に出力し、中継中継割り込み状態に遷移し(ステップS81)、送信データ選択装置816が中継送信状態であるときの処理を終了する。 In step S80, when the output of the relay interrupt availability determination device 815 is valid, the transmission data selection device 816 outputs the delimiter 3030 from the delimiter output device 823 to the transmission port 824, and transits to the relay relay interrupt state (step S81). ), The processing when the transmission data selection device 816 is in the relay transmission state is terminated.
 次に、送信データ選択装置816が中継中継状態であるときの処理(図面では、「中継中継状態時の処理」と表記する)を図34を用いて説明する。 Next, processing when the transmission data selection device 816 is in the relay relay state (in the drawing, expressed as “processing in the relay relay state”) will be described with reference to FIG.
 まず、送信データ選択装置816は、中継障害残りサイズカウンタ809の値が0以上であるか確認する(ステップS83)。 First, the transmission data selection device 816 checks whether the value of the relay failure remaining size counter 809 is 0 or more (step S83).
 ステップS83において、中継障害残りサイズカウンタ809の値が0以上であるとき、送信データ選択装置816は、中継障害バッファ812から1ワードを送信ポート824へ出力し、送信カウンタ825にインクリメントを要求し、中継障害残りサイズカウンタ809にデクリメントを要求し(ステップS84)、送信データ選択装置816が中継中継状態であるときの処理を終了する。 In step S83, when the value of the relay failure remaining size counter 809 is 0 or more, the transmission data selection device 816 outputs one word from the relay failure buffer 812 to the transmission port 824, requests the transmission counter 825 to increment, The relay failure remaining size counter 809 is requested to decrement (step S84), and the process when the transmission data selection device 816 is in the relay relay state is terminated.
 ステップS83において、中継障害残りサイズカウンタ809の値が0であるとき、送信データ選択装置816は、中継送信状態へ遷移し(ステップS85)、送信データ選択装置816が中継中継状態であるときの処理を終了する。 In step S83, when the value of the remaining relay failure size counter 809 is 0, the transmission data selection device 816 transits to the relay transmission state (step S85), and processing when the transmission data selection device 816 is in the relay relay state. Exit.
 次に、送信データ選択装置816が中継自装置状態であるときの処理(図面では、「中継自装置状態時の処理」と表記する)を図34を用いて説明する。 Next, processing when the transmission data selection device 816 is in the relay own device state (in the drawing, expressed as “processing in the relay own device state”) will be described with reference to FIG.
 まず、送信データ選択装置816は、自装置障害残りサイズカウンタ821の値が0以上であるか確認する(ステップS87)。 First, the transmission data selection device 816 confirms whether the value of its own device failure remaining size counter 821 is 0 or more (step S87).
 ステップS87において、自装置障害残りサイズカウンタ821の値が0以上であるとき、送信データ選択装置816は、自装置障害バッファ822から1ワードを送信ポート824へ出力し、送信カウンタ825にインクリメントを要求し、自装置障害残り送信カウンタ825にデクリメントを要求し(ステップS88)、送信データ選択装置816が中継自装置状態であるときの処理を終了する。 In step S87, when the value of the own device failure remaining size counter 821 is 0 or more, the transmission data selection device 816 outputs one word from the own device failure buffer 822 to the transmission port 824, and requests the transmission counter 825 to increment. Then, the own device failure remaining transmission counter 825 is requested to decrement (step S88), and the processing when the transmission data selection device 816 is in the relay own device state is terminated.
 ステップS87において、自装置障害残りサイズカウンタ821の値が0であるとき、送信データ選択装置816は中継送信状態へ遷移し(ステップS88)、送信データ選択装置816が中継自装置状態であるときの処理を終了する。 In step S87, when the value of the own device failure remaining size counter 821 is 0, the transmission data selection device 816 transits to the relay transmission state (step S88), and the transmission data selection device 816 is in the relay own device state. The process ends.
 次に、送信データ選択装置816が中継分割状態であるときの処理(図面では、「中継分割状態時の処理」と表記する)を図35を用いて説明する。 Next, processing when the transmission data selection device 816 is in the relay division state (denoted as “processing in the relay division state” in the drawing) will be described with reference to FIG.
 まず、送信データ選択装置816は、送信カウンタ825の値がフレームヘッダ1010のサイズより小さいか確認する(ステップS90)。 First, the transmission data selection device 816 checks whether the value of the transmission counter 825 is smaller than the size of the frame header 1010 (step S90).
 ステップS90において、送信カウンタ825の値がフレームヘッダ1010のサイズより小さいとき、送信データ選択装置816は、中継分割ヘッダ生成装置814から1ワードを送信ポート824に出力し、送信カウンタ825にインクリメントを要求し(ステップS91)、送信データ選択装置816が中継分割状態であるときの処理を終了する。 In step S90, when the value of the transmission counter 825 is smaller than the size of the frame header 1010, the transmission data selection device 816 outputs one word from the relay division header generation device 814 to the transmission port 824 and requests the transmission counter 825 to increment. (Step S91), and the process when the transmission data selection device 816 is in the relay division state is terminated.
 ステップS90において、送信カウンタ825の値がフレームヘッダ1010のサイズ以上であるとき、送信データ選択装置816は中継残りサイズカウンタ806の値が0より大きいか確認する(ステップS92)。 In step S90, when the value of the transmission counter 825 is equal to or larger than the size of the frame header 1010, the transmission data selection device 816 checks whether the value of the relay remaining size counter 806 is larger than 0 (step S92).
 ステップS92において、中継残りサイズカウンタ806の値が0より大きいとき、送信データ選択装置816は、中継データバッファ811から1ワードを送信ポート824へ出力し、中継残りサイズカウンタ806にデクリメントを要求し、送信カウンタ825にインクリメントを要求し(ステップS93)、送信データ選択装置816が中継分割状態であるときの処理を終了する。 In step S92, when the value of the relay remaining size counter 806 is greater than 0, the transmission data selection device 816 outputs one word from the relay data buffer 811 to the transmission port 824, requests the relay remaining size counter 806 to decrement, The transmission counter 825 is requested to increment (step S93), and the processing when the transmission data selection device 816 is in the relay division state is terminated.
 ステップS92において、中継残りサイズカウンタ806の値が0のとき、送信データ選択装置816は、送信カウンタ825にクリアを要求し、送信待機状態へ遷移し(ステップS94)、送信データ選択装置816が中継分割状態であるときの処理を終了する。 In step S92, when the value of the relay remaining size counter 806 is 0, the transmission data selection device 816 requests the transmission counter 825 to clear, transitions to a transmission standby state (step S94), and the transmission data selection device 816 relays. The process in the split state is terminated.
 次に、送信データ選択装置816が中継障害状態であるときの処理(図面では、「中継障害状態時の処理」と表記する)を図36を用いて説明する。 Next, processing when the transmission data selection device 816 is in a relay failure state (in the drawing, expressed as “processing in a relay failure state”) will be described with reference to FIG.
 まず、送信データ選択装置816は、送信カウンタ825の値がフレームヘッダ1010のサイズより小さいか確認する(ステップS96)。 First, the transmission data selection device 816 checks whether the value of the transmission counter 825 is smaller than the size of the frame header 1010 (step S96).
 ステップS96において、送信カウンタ825の値がフレームヘッダ1010のサイズより小さいとき、送信データ選択装置816は、中継障害ヘッダバッファ808から1ワードを送信ポート824に出力し、送信カウンタ825にデクリメントを要求し(ステップS97)、送信データ選択装置816が中継障害状態であるときの処理を終了する。 In step S96, when the value of the transmission counter 825 is smaller than the size of the frame header 1010, the transmission data selection device 816 outputs one word from the relay failure header buffer 808 to the transmission port 824, and requests the transmission counter 825 to decrement. (Step S97), the processing when the transmission data selection device 816 is in the relay failure state is terminated.
 ステップS96において、送信カウンタ825の値がフレームヘッダ1010のサイズ以上であるとき、送信データ選択装置816は中継残りサイズカウンタ806の値が0より大きいか確認する(ステップS98)。 In step S96, when the value of the transmission counter 825 is equal to or larger than the size of the frame header 1010, the transmission data selection device 816 checks whether the value of the relay remaining size counter 806 is larger than 0 (step S98).
 ステップS98において、中継障害残りサイズカウンタ809の値が0より大きいとき、送信データ選択装置816は、中継障害バッファ812から1ワードを送信ポート824へ出力し、中継障害残りサイズカウンタ809にデクリメントを要求し、送信カウンタ825にインクリメントを要求し(ステップS99)、送信データ選択装置816が中継障害状態であるときの処理を終了する。 In step S98, when the value of the relay failure remaining size counter 809 is larger than 0, the transmission data selection device 816 outputs one word from the relay failure buffer 812 to the transmission port 824, and requests the relay failure remaining size counter 809 to decrement. Then, the transmission counter 825 is requested to increment (step S99), and the processing when the transmission data selection device 816 is in the relay failure state is terminated.
 ステップS98において、中継障害残り送信カウンタ825の値が0のとき、送信データ選択装置816は、送信カウンタ825にクリアを要求し、送信待機状態へ遷移し(ステップS100)、送信データ選択装置816が中継障害状態であるときの処理を終了する。 In step S98, when the value of the relay failure remaining transmission counter 825 is 0, the transmission data selection device 816 requests the transmission counter 825 to clear, transits to the transmission standby state (step S100), and the transmission data selection device 816 Terminates the processing when the relay failure state occurs.
 次に、送信データ選択装置816が自装置害状態であるときの処理(図面では、「自装置障害状態時の処理」と表記する)を図37を用いて説明する。 Next, processing when the transmission data selection device 816 is in its own device harmful state (in the drawing, expressed as “processing in the own device failure state”) will be described with reference to FIG.
 まず、送信データ選択装置816は、送信カウンタ825の値がフレームヘッダ1010のサイズより小さいか確認する(ステップS101)。 First, the transmission data selection device 816 checks whether the value of the transmission counter 825 is smaller than the size of the frame header 1010 (step S101).
 ステップS96において、送信カウンタ825の値がフレームヘッダ1010のサイズより小さいとき、送信データ選択装置816は自装置障害ヘッダバッファ820から1ワードを送信ポート824に出力し、送信カウンタ825にデクリメントを要求し(ステップS102)、送信データ選択装置816が自装置障害状態であるときの処理を終了する。 In step S96, when the value of the transmission counter 825 is smaller than the size of the frame header 1010, the transmission data selection device 816 outputs one word from the own device failure header buffer 820 to the transmission port 824, and requests the transmission counter 825 to decrement. (Step S102), the processing when the transmission data selection device 816 is in its own device failure state is terminated.
 ステップS101において、送信カウンタ825の値がフレームヘッダ1010のサイズ以上であるとき、送信データ選択装置816は、自装置障害残りサイズカウンタ821の値が0より大きいか確認する(ステップS103)。 In step S101, when the value of the transmission counter 825 is equal to or larger than the size of the frame header 1010, the transmission data selection device 816 checks whether the value of the own device failure remaining size counter 821 is larger than 0 (step S103).
 ステップS103において、自装置障害残りサイズカウンタ821の値が0より大きいとき、送信データ選択装置816は、自装置障害バッファ822から1ワードを送信ポート824へ出力し、自装置障害残りサイズカウンタ821にデクリメントを要求し、送信カウンタ825にインクリメントを要求し(ステップS104)、送信データ選択装置816が自装置障害状態であるときの処理を終了する。 In step S103, when the value of the own device failure remaining size counter 821 is larger than 0, the transmission data selection device 816 outputs one word from the own device failure buffer 822 to the transmission port 824, and sends it to the own device failure remaining size counter 821. The decrement is requested, the increment is requested to the transmission counter 825 (step S104), and the process when the transmission data selection device 816 is in its own device failure state is terminated.
 ステップS105において、自装置障害残りサイズカウンタ821の値が0のとき、送信データ選択装置816は、送信カウンタ825にクリアを要求し、送信データ選択装置816は送信待機状態へ遷移し(ステップS105)、送信データ選択装置816が自装置障害状態であるときの処理を終了する。 In step S105, when the value of the own device failure remaining size counter 821 is 0, the transmission data selection device 816 requests the transmission counter 825 to clear, and the transmission data selection device 816 transitions to the transmission standby state (step S105). The processing when the transmission data selection device 816 is in its own device failure state is terminated.
 そして、ステップS30またはステップS39またはステップS54またはステップS58またはステップS61またはステップS95またはステップS67またはステップS82またはステップS86またはステップS89またはステップS101の処理が終了したとき、外部入出力装置813が、出力処理を実施する。
 この処理を図38を用いて説明する。
When the processing in step S30, step S39, step S54, step S58, step S61, step S95, step S67, step S82, step S86, step S89, or step S101 is completed, the external input / output device 813 performs output processing. To implement.
This process will be described with reference to FIG.
 まず、外部入出力装置813は、自身(外部入出力装置813)が障害データおよび障害フレームヘッダ6010を出力しているか確認する(ステップS107)。 First, the external input / output device 813 confirms whether itself (the external input / output device 813) outputs the fault data and the fault frame header 6010 (step S107).
 ステップS107において、外部入出力装置813が障害データおよび障害フレームヘッダ6010を出力しているとき、外部入出力装置813は、障害フレームヘッダ6010を自装置障害ヘッダバッファ820に書き込み、障害データを自装置障害バッファ822に書き込み(ステップS108)、自身(外部入出力装置813)が制御データ2020および制御フレームヘッダ2010を出力しているか確認する(ステップS109)。 In step S107, when the external input / output device 813 outputs the failure data and the failure frame header 6010, the external input / output device 813 writes the failure frame header 6010 in the own device failure header buffer 820 and stores the failure data in the own device. Writing to the failure buffer 822 (step S108), it is confirmed whether itself (external input / output device 813) outputs the control data 2020 and the control frame header 2010 (step S109).
 ステップS107において、外部入出力装置813が障害データ及び障害フレームヘッダ6010を出力していないとき、ステップS109の処理を実施する。 In step S107, when the external input / output device 813 does not output the failure data and the failure frame header 6010, the processing of step S109 is performed.
 ステップS109において、外部入出力装置813が制御データ2020および制御フレームヘッダ2010を出力しているとき、外部入出力装置813は、制御フレームヘッダ2010を自装置ヘッダバッファ817に書き込み、制御データ2020を自装置データバッファ819に書き込み(ステップS110)、外部入出力装置813の出力処理を終了する。 In step S109, when the external input / output device 813 is outputting the control data 2020 and the control frame header 2010, the external input / output device 813 writes the control frame header 2010 in its own device header buffer 817, and the control data 2020 is stored in itself. Writing to the device data buffer 819 (step S110), the output processing of the external input / output device 813 is terminated.
 ステップS109において、外部入出力装置813が制御データ2020および制御フレームヘッダ2010を出力していないとき、外部入出力装置813の出力処理を終了する。 In step S109, when the external input / output device 813 does not output the control data 2020 and the control frame header 2010, the output processing of the external input / output device 813 is terminated.
 次に、送信データ選択装置816が受信待機状態であるときの処理(図面では、「受信待機状態時の処理」と表記する)を図39を用いて説明する。 Next, processing when the transmission data selection device 816 is in the reception standby state (denoted as “processing in the reception standby state” in the drawing) will be described with reference to FIG.
 まず、受信データ分配装置801は、受信ポート800から1ワード受信したか確認する(ステップS112)。 First, the reception data distribution device 801 checks whether one word has been received from the reception port 800 (step S112).
 ステップS112において、受信データ分配装置801は、受信ポート800から1ワード受信したとき、ヘッダ受信状態へ遷移する(S113)。 In step S112, when receiving one word from the reception port 800, the reception data distribution device 801 transitions to the header reception state (S113).
 ステップS112において、受信データ分配装置801は、受信ポート800から1ワード受信していないとき、受信データ分配装置801が受信待機状態であるときの処理を終了する。 In step S112, when one word is not received from the reception port 800, the reception data distribution device 801 ends the processing when the reception data distribution device 801 is in the reception standby state.
 以上のように、本実施の形態によっても、通信装置200が障害通知を実施した際、通信装置100は制御フレームに障害通知を割り込ませることで制御通信の周期が短いままに、障害通知の時間を短縮することができる。 As described above, also according to the present embodiment, when the communication apparatus 200 performs a failure notification, the communication apparatus 100 interrupts the failure notification in the control frame so that the period of the control communication remains short. Can be shortened.
 以上、本実施の形態では、
 他の装置とデイジーチェーンで接続され、
 他の装置からフレームヘッダとフレームデータで構成されるフレームを受信し、
 他の装置から受信したフレームを中継し、
 他の装置へ外部入出力装置から入力されたフレームを送信し、
 所定の時間間隔で他の装置と送信と受信を繰り返す通信装置を説明した。
As described above, in the present embodiment,
Connected with other devices in a daisy chain,
Receive a frame consisting of frame header and frame data from other devices,
Relay frames received from other devices,
Send frames input from the external input / output device to other devices,
A communication device that repeats transmission and reception with another device at a predetermined time interval has been described.
 そして、本実施の形態に係る通信装置は、
 他の装置からフレームを受信し、受信フレーム振り分け装置に出力する受信ポートを有し、
 受信したフレーム(以下、中継フレームと記す)について、
 受信したフレームヘッダを格納する中継ヘッダバッファと、
 受信したフレームデータを格納する中継データバッファと、
 受信した障害を通知するフレーム(以下、障害フレームと記す)について、
 受信した障害フレームヘッダを格納する中継障害ヘッダバッファと、
 受信した障害フレームデータを格納する中継障害バッファを有し、
 受信した中継フレームヘッダを中継ヘッダバッファに、受信した中継フレームデータを中継データバッファに振り分けて格納し、受信した障害フレームヘッダを中継障害ヘッダバッファに、受信した障害フレームデータを中継障害バッファに振り分けて格納する受信フレーム振り分け装置を有することを説明した。
And the communication apparatus which concerns on this Embodiment is
It has a reception port that receives frames from other devices and outputs them to the reception frame distribution device,
About received frames (hereinafter referred to as relay frames)
A relay header buffer for storing received frame headers;
A relay data buffer for storing received frame data;
About the frame to notify the received failure (hereinafter referred to as failure frame)
A relay failure header buffer for storing the received failure frame header;
A relay failure buffer for storing received failure frame data;
The received relay frame header is sorted and stored in the relay header buffer, the received relay frame data is sorted and stored in the relay data buffer, the received fault frame header is sorted in the relay fault header buffer, and the received fault frame data is sorted in the relay fault buffer. It has been described that a receiving frame sorting device for storing is provided.
 また、本実施の形態に係る通信装置は、
 外部入出力装置から入力されたフレーム(以下、自装置フレームと記す)について、
 自装置フレームのヘッダを格納する自装置ヘッダバッファと、
 自装置フレームデータを格納する自装置データバッファと、
 外部入出力装置から入力された障害フレーム(以下、自装置障害フレームと記す)について、
 自装置障害フレームヘッダを格納する自装置障害ヘッダバッファと、
 自装置障害フレームデータを格納する自装置障害バッファを有し、
 送信するデータを1ワードごとに中継ヘッダバッファまたは中継データバッファまたは中継障害ヘッダバッファまたは中継障害バッファまたは自装置ヘッダバッファまたは自装置データバッファまたは自装置障害ヘッダバッファまたは自装置障害バッファから選択し、送信ポートから他装置へ送信する送信データ選択装置を有し、
 本実施の形態に係る通信装置が、
 送信データ選択装置から障害データを、送信中のフレームに割り込ませて送信することを説明した。
In addition, the communication device according to the present embodiment is
About the frame input from the external input / output device (hereinafter referred to as its own device frame)
A self-device header buffer for storing a header of the self-device frame;
Own device data buffer for storing own device frame data;
About failure frames input from external I / O devices (hereinafter referred to as own device failure frames)
Own device failure header buffer for storing the own device failure frame header;
Own device failure buffer for storing own device failure frame data,
Select the data to be transmitted from the relay header buffer, relay data buffer, relay failure header buffer, relay failure buffer, local device header buffer, local device data buffer, local device failure header buffer, or local device failure buffer for each word, and transmit It has a transmission data selection device that transmits from the port to other devices,
The communication device according to the present embodiment is
It has been described that the failure data is transmitted from the transmission data selection device by interrupting the frame being transmitted.
 また、本実施の形態に係る通信装置が、
 送信中のフレームに割り込む障害データの先頭を示すデリミタをデリミタ出力装置より読み出して送信する送信データ選択装置を有することを説明した。
In addition, the communication device according to the present embodiment is
It has been described that a transmission data selection device is provided that reads a delimiter indicating the head of failure data interrupting a frame being transmitted from a delimiter output device and transmits the delimiter.
 また、本実施の形態に係る通信装置が、
 受信したワード数をカウントする受信カウンタの値と、
 受信したフレーム内の障害データのワード数をカウントする割り込みカウンタの値と、
 受信したヘッダを格納するヘッダバッファの出力と、
 受信した障害データのワード数をカウントする割り込みカウンタの値と、
 受信フレーム振り分け装置自身が有するデリミタ検出機能に基づき、受信したワードの格納先を切り替える受信フレーム振り分け装置を有することを説明した。
In addition, the communication device according to the present embodiment is
The value of the reception counter that counts the number of received words,
An interrupt counter value that counts the number of words of fault data in the received frame,
Output of the header buffer that stores the received header,
The value of the interrupt counter that counts the number of words of fault data received;
It has been described that the reception frame distribution device has a reception frame distribution device that switches the storage destination of the received word based on the delimiter detection function of the reception frame distribution device itself.
 また、本実施の形態に係る通信装置が、
 送信データ選択装置自身が送信中の自装置フレームのサイズと、
 送信したワード数をカウントする送信カウンタの値と、障害データの送信可否を出力する自装置割り込み可否判定装置の出力に基づき、送信中の自装置フレームに障害データを割り込ませる位置を制御する送信データ選択装置を有することを説明した。
In addition, the communication device according to the present embodiment is
The size of the own device frame being transmitted by the transmission data selection device itself,
Transmission data that controls the position at which fault data is interrupted in the local frame being transmitted, based on the value of the transmission counter that counts the number of transmitted words and the output of the local apparatus interrupt enable / disable determination device that outputs whether the fault data can be transmitted Having described a selection device.
 また、本実施の形態に係る通信装置が、
 送信データ選択装置自身が送信中の中継フレームのサイズと送信カウンタの値と、障害データの送信可否を出力する中継割り込み可否判定装置の出力に基づき、送信中のフレームに障害データを割り込ませる位置を制御する送信データ選択装置を有することを説明した。
In addition, the communication device according to the present embodiment is
Based on the size of the relay frame being transmitted by the transmission data selection device itself, the value of the transmission counter, and the output of the relay interrupt availability determination device that outputs whether the failure data can be transmitted, the position where the failure data is interrupted in the frame being transmitted is determined. It has been described that a transmission data selection device to be controlled is included.
 また、本実施の形態に係る通信装置が、
 送信カウンタと、送信した自装置フレームのフレームデータのワード数をカウントする自装置残りサイズカウンタの値に基づき、送信中の自装置フレームに障害データを割り込ませたことで押し出されたフレームデータに付加するフレームヘッダ(以下、自装置分割ヘッダと記す)を出力する自装置分割ヘッダ生成装置を有することを説明した。
In addition, the communication device according to the present embodiment is
Based on the value of the transmission counter and the self-device remaining size counter that counts the number of words in the frame data of the transmitted self-device frame, it is added to the frame data pushed out by interrupting the failure data into the self-device frame being transmitted. It has been described that the apparatus has a self-partition header generation apparatus that outputs a frame header (hereinafter referred to as a self-partition header).
 また、本実施の形態に係る通信装置が、
 送信カウンタと、送信した中継フレームのフレームデータのワード数をカウントする中継残りサイズカウンタの値に基づき、送信中の中継フレームに障害データを割り込ませたことで押し出されたフレームデータに付加するフレームヘッダ(以下、中継分割ヘッダと記す)を出力する中継分割ヘッダ生成装置を有することを説明した。
In addition, the communication device according to the present embodiment is
A frame header that is added to the frame data that is pushed out by interrupting failure data in the relay frame that is being transmitted, based on the value of the transmission counter and the remaining relay size counter that counts the number of words in the frame data of the transmitted relay frame It has been described that a relay split header generation device that outputs (hereinafter referred to as a relay split header) is provided.
 また、本実施の形態に係る通信装置が、
 自装置データバッファから送信中の自装置フレームに障害データを割り込ませたことで押し出されたフレームデータを自装置分割ヘッダに続いて送信する送信データ選択装置を有することを説明した。
In addition, the communication device according to the present embodiment is
It has been described that the apparatus has a transmission data selection device that transmits the frame data pushed out by interrupting fault data into the own device frame being transmitted from the own device data buffer following the own device division header.
 また、本実施の形態に係る通信装置が、
 中継データバッファから送信中の中継フレームに障害データを割り込ませたことで押し出されたフレームデータを中継分割ヘッダに続いて送信する送信データ選択装置を有することを説明した。
In addition, the communication device according to the present embodiment is
It has been described that a transmission data selection device that transmits frame data pushed out by interrupting failure data into a relay frame being transmitted from the relay data buffer is transmitted following the relay division header.
 また、本実施の形態に係る通信装置が、
 分割データを格納する再構成バッファと、
 受信した分割データ数をカウントする再構成カウンタを有し、
 外部装置の読み出しに応じて、分割データを再構成して障害データが割り込む前のデータを外部装置に出力する機能を有することを説明した。
In addition, the communication device according to the present embodiment is
A reconstruction buffer for storing the split data;
It has a reconstruction counter that counts the number of received divided data,
It has been described that there is a function of reconfiguring the divided data and outputting the data before the failure data is interrupted to the external device in accordance with the reading of the external device.
 なお、以上では、FAネットワークで通信を行う通信装置を例にして説明したが、これまで説明してきた方式は他の種類のネットワークで通信を行う通信装置にも適用することができる。
 すなわち、これまで説明してきた方式の用途は、FAネットワークで通信を行う通信装置に限定されるものではない。
In the above description, the communication apparatus that performs communication using the FA network has been described as an example. However, the methods described so far can be applied to communication apparatuses that perform communication using other types of networks.
In other words, the use of the method described so far is not limited to a communication device that performs communication on the FA network.
 最後に、実施の形態1及び2に示した通信装置100、200、300のハードウェア構成例について説明する。
 図42は、実施の形態1及び2に示す通信装置100、200、300のハードウェア資源の一例を示す図である。
 なお、図42の構成は、あくまでも通信装置100、200、300のハードウェア構成の一例を示すものであり、通信装置100、200、300のハードウェア構成は図42に記載の構成に限らず、他の構成であってもよい。
Finally, a hardware configuration example of the communication apparatuses 100, 200, and 300 shown in the first and second embodiments will be described.
FIG. 42 is a diagram illustrating an example of hardware resources of the communication devices 100, 200, and 300 described in the first and second embodiments.
42 is merely an example of the hardware configuration of the communication devices 100, 200, and 300, and the hardware configuration of the communication devices 100, 200, and 300 is not limited to the configuration illustrated in FIG. Other configurations may be used.
 図42において、通信装置100、200、300は、プログラムを実行するCPU911(Central Processing Unit、中央処理装置、処理装置、演算装置、マイクロプロセッサ、マイクロコンピュータ、プロセッサともいう)を備えている。
 CPU911は、バス912を介して、例えば、ROM(Read Only Memory)913、RAM(Random Access Memory)914、通信ボード915、表示装置901、キーボード902、マウス903、磁気ディスク装置920と接続され、これらのハードウェアデバイスを制御する。
 更に、CPU911は、FDD904(Flexible Disk Drive)、コンパクトディスク装置905(CDD)、プリンタ装置906、スキャナ装置907と接続していてもよい。
 また、磁気ディスク装置920の代わりに、SSD(Solid State Drive)、光ディスク装置、メモリカード(登録商標)読み書き装置などの記憶装置でもよい。
 RAM914は、揮発性メモリの一例である。
 ROM913、FDD904、CDD905、磁気ディスク装置920の記憶媒体は、不揮発性メモリの一例である。
 これらは、記憶装置の一例である。
 実施の形態1及び2で説明した「~バッファ」、「~バッファ部」は、例えば、RAM914等により実現される。
 通信ボード915、キーボード902、マウス903、スキャナ装置907などは、入力装置の一例である。
 また、通信ボード915、表示装置901、プリンタ装置906などは、出力装置の一例である。
 通信ボード915は、通信路に接続されている。
42, the communication devices 100, 200, and 300 include a CPU 911 (also referred to as a central processing unit, a central processing unit, a processing unit, an arithmetic unit, a microprocessor, a microcomputer, and a processor) that executes a program.
The CPU 911 is connected to, for example, a ROM (Read Only Memory) 913, a RAM (Random Access Memory) 914, a communication board 915, a display device 901, a keyboard 902, a mouse 903, and a magnetic disk device 920 via a bus 912. Control hardware devices.
Further, the CPU 911 may be connected to an FDD 904 (Flexible Disk Drive), a compact disk device 905 (CDD), a printer device 906, and a scanner device 907.
Further, instead of the magnetic disk device 920, a storage device such as an SSD (Solid State Drive), an optical disk device, or a memory card (registered trademark) read / write device may be used.
The RAM 914 is an example of a volatile memory.
The storage media of the ROM 913, the FDD 904, the CDD 905, and the magnetic disk device 920 are an example of a nonvolatile memory.
These are examples of the storage device.
The “˜buffer” and “˜buffer unit” described in the first and second embodiments are realized by the RAM 914 or the like, for example.
A communication board 915, a keyboard 902, a mouse 903, a scanner device 907, and the like are examples of input devices.
The communication board 915, the display device 901, the printer device 906, and the like are examples of output devices.
The communication board 915 is connected to the communication path.
 磁気ディスク装置920には、オペレーティングシステム921(OS)、ウィンドウシステム922、プログラム群923、ファイル群924が記憶されている。
 プログラム群923のプログラムは、CPU911がオペレーティングシステム921、ウィンドウシステム922を利用しながら実行する。
The magnetic disk device 920 stores an operating system 921 (OS), a window system 922, a program group 923, and a file group 924.
The programs in the program group 923 are executed by the CPU 911 using the operating system 921 and the window system 922.
 また、RAM914には、CPU911に実行させるオペレーティングシステム921のプログラムやアプリケーションプログラムの少なくとも一部が一時的に格納される。
 また、RAM914には、CPU911による処理に必要な各種データが格納される。
The RAM 914 temporarily stores at least part of the operating system 921 program and application programs to be executed by the CPU 911.
The RAM 914 stores various data necessary for processing by the CPU 911.
 また、ROM913には、BIOS(Basic Input Output System)プログラムが格納され、磁気ディスク装置920にはブートプログラムが格納されている。
 通信装置100、200、300の起動時には、ROM913のBIOSプログラム及び磁気ディスク装置920のブートプログラムが実行され、BIOSプログラム及びブートプログラムによりオペレーティングシステム921が起動される。
The ROM 913 stores a BIOS (Basic Input Output System) program, and the magnetic disk device 920 stores a boot program.
When the communication devices 100, 200, and 300 are activated, the BIOS program in the ROM 913 and the boot program in the magnetic disk device 920 are executed, and the operating system 921 is activated by the BIOS program and the boot program.
 上記プログラム群923には、実施の形態1及び2の説明において「~部」、「~装置」として説明している機能を実行するプログラムが記憶されている。プログラムは、CPU911により読み出され実行される。 The program group 923 stores programs that execute the functions described as “˜unit” and “˜device” in the description of the first and second embodiments. The program is read and executed by the CPU 911.
 ファイル群924には、実施の形態1及び2の説明において、「~の判断」、「~の設定」、「~の比較」、「~の解析」、「~の制御」、「~のセット」、「~の登録」、「~の選択」、「~の入力」、「~の出力」等として説明している処理の結果を示す情報やデータや信号値や変数値が主記憶装置303にファイルとして記憶されている。
 また、暗号鍵・復号鍵や乱数値やパラメータが、主記憶装置303にファイルとして記憶されてもよい。
 「~ファイル」や「~データベース」は、ディスクやメモリなどの記憶媒体に記憶される。
 ディスクやメモリなどの記憶媒体に記憶された情報やデータや信号値や変数値やパラメータは、読み書き回路を介してCPU911によりメインメモリやキャッシュメモリに読み出される。
 そして、読み出された情報やデータや信号値や変数値やパラメータは、抽出・検索・参照・比較・演算・計算・処理・編集・出力・印刷・表示などのCPUの動作に用いられる。
 抽出・検索・参照・比較・演算・計算・処理・編集・出力・印刷・表示のCPUの動作の間、情報やデータや信号値や変数値やパラメータは、メインメモリ、レジスタ、キャッシュメモリ、バッファメモリ等に一時的に記憶される。
 また、実施の形態1及び2で説明しているフローチャートの矢印の部分は主としてデータや信号の入出力を示す。
 データや信号値は、RAM914のメモリ、FDD904のフレキシブルディスク、CDD905のコンパクトディスク、磁気ディスク装置920の磁気ディスク、その他光ディスク、ミニディスク、DVD等の記憶媒体に記録される。
 また、データや信号は、バス912や信号線やケーブルその他の伝送媒体によりオンライン伝送される。
In the file group 924, in the description of the first and second embodiments, “determination of”, “setting of”, “comparison of”, “analysis of”, “control of”, “set of” ”,“ Registration of ”,“ selection of ”,“ input of ”,“ output of ”, and the like, information, data, signal values, and variable values indicating the results of the processing are stored in the main memory 303. Is stored as a file.
Further, the encryption key / decryption key, random number value, and parameter may be stored in the main storage device 303 as a file.
The “˜file” and “˜database” are stored in a storage medium such as a disk or memory.
Information, data, signal values, variable values, and parameters stored in a storage medium such as a disk or memory are read out to the main memory or cache memory by the CPU 911 via a read / write circuit.
The read information, data, signal value, variable value, and parameter are used for CPU operations such as extraction, search, reference, comparison, calculation, calculation, processing, editing, output, printing, and display.
Information, data, signal values, variable values, and parameters are stored in the main memory, registers, cache memory, and buffers during the CPU operations of extraction, search, reference, comparison, calculation, processing, editing, output, printing, and display. It is temporarily stored in a memory or the like.
In addition, the arrows in the flowcharts described in the first and second embodiments mainly indicate input / output of data and signals.
Data and signal values are recorded in a storage medium such as a memory of the RAM 914, a flexible disk of the FDD 904, a compact disk of the CDD 905, a magnetic disk of the magnetic disk device 920, other optical disks, mini disks, and DVDs.
Data and signals are transmitted online via a bus 912, signal lines, cables, or other transmission media.
 また、実施の形態1及び2の説明において「~部」、「~装置」として説明しているものは、「~回路」、「~機器」であってもよく、また、「~ステップ」、「~手順」、「~処理」であってもよい。
 すなわち、実施の形態1及び2で説明したフローチャートに示すステップ、手順、処理により、本発明に係る「通信方法」を実現することができる。
 また、「~部」、「~装置」として説明しているものは、ROM913に記憶されたファームウェアで実現されていても構わない。
 或いは、ソフトウェアのみ、或いは、素子・デバイス・基板・配線などのハードウェアのみ、或いは、ソフトウェアとハードウェアとの組み合わせ、さらには、ファームウェアとの組み合わせで実施されても構わない。
 ファームウェアとソフトウェアは、プログラムとして、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ミニディスク、DVD等の記憶媒体に記憶される。
 プログラムはCPU911により読み出され、CPU911により実行される。
 すなわち、プログラムは、実施の形態1及び2の「~部」、「~装置」としてコンピュータを機能させるものである。あるいは、実施の形態1及び2の「~部」、「~装置」の手順や方法をコンピュータに実行させるものである。
In the description of the first and second embodiments, what is described as “to part” and “to device” may be “to circuit” and “to device”, and “to step” It may be “˜procedure” or “˜processing”.
That is, the “communication method” according to the present invention can be realized by the steps, procedures, and processes shown in the flowcharts described in the first and second embodiments.
Further, what is described as “˜unit” and “˜device” may be realized by firmware stored in the ROM 913.
Alternatively, it may be implemented only by software, or only by hardware such as elements, devices, substrates, and wirings, by a combination of software and hardware, or by a combination of firmware.
Firmware and software are stored as programs in a storage medium such as a magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, and a DVD.
The program is read by the CPU 911 and executed by the CPU 911.
That is, the program causes the computer to function as “˜unit” and “˜device” in the first and second embodiments. Alternatively, the procedures and methods of “˜unit” and “˜apparatus” of the first and second embodiments are executed by a computer.
 このように、実施の形態1及び2に示す通信装置100、200、300は、処理装置たるCPU、記憶装置たるメモリ、磁気ディスク等、入力装置たるキーボード、マウス、通信ボード等、出力装置たる表示装置、通信ボード等を備えるコンピュータである。
 そして、上記したように「~部」、「~装置」として示された機能をこれら処理装置、記憶装置、入力装置、出力装置を用いて実現するものである。
As described above, the communication devices 100, 200, and 300 shown in the first and second embodiments have a display as an output device such as a CPU as a processing device, a memory as a storage device, a magnetic disk, a keyboard as an input device, a mouse, a communication board, and the like. A computer including a device, a communication board, and the like.
As described above, the functions indicated as “˜unit” and “˜device” are realized by using these processing devices, storage devices, input devices, and output devices.
 100 通信装置、101 制御部、102 フレーム受信部、103 受信データ分配部、104 受信データ再構成部、105 データ生成部、106 送信フレーム生成部、107 フレーム送信部、110 送信用バッファ部、111 障害フレームバッファ部、112 制御フレームバッファ部、120 フレーム生成管理部、121 送信決定部、122 順序制御部、123 残りデータサイズカウント部、130 再構成用バッファ部、131 障害フレームバッファ部、132 制御フレームバッファ部、140 再構成管理部、141 データ抽出部、142 データサイズカウント部、143 データ復元部、144 制御データ用スタック、145 障害データ用スタック、200 通信装置、300 通信装置、800 受信ポート、801 受信データ分配装置、802 受信カウンタ、803 ヘッダバッファ、804 中継ヘッダバッファ、805 再構成バッファ、806 中継残りサイズカウンタ、807 再構成カウンタ、808 中継障害ヘッダバッファ、809 中継障害残りサイズカウンタ、810 割り込みカウンタ、811 中継データバッファ、812 中継障害バッファ、813 外部入出力装置、814 中継分割ヘッダ生成装置、815 中継割り込み可否判定装置、816 送信データ選択装置、817 自装置ヘッダバッファ、818 自装置残りサイズカウンタ、819 自装置データバッファ、820 自装置障害ヘッダバッファ、821 自装置障害残りサイズカウンタ、822 自装置障害バッファ、823 デリミタ出力装置、824 送信ポート、825 送信カウンタ、826 自装置割り込み可否判定装置、827 自装置分割ヘッダ生成装置。 100 communication device, 101 control unit, 102 frame reception unit, 103 received data distribution unit, 104 received data reconstruction unit, 105 data generation unit, 106 transmission frame generation unit, 107 frame transmission unit, 110 transmission buffer unit, 111 failure Frame buffer unit, 112 Control frame buffer unit, 120 Frame generation management unit, 121 Transmission determination unit, 122 Sequence control unit, 123 Remaining data size count unit, 130 Reconfiguration buffer unit, 131 Fault frame buffer unit, 132 Control frame buffer Unit, 140 reconfiguration management unit, 141 data extraction unit, 142 data size count unit, 143 data restoration unit, 144 control data stack, 145 fault data stack, 200 communication device, 300 communication device 800 reception port, 801 reception data distribution device, 802 reception counter, 803 header buffer, 804 relay header buffer, 805 reconfiguration buffer, 806 relay remaining size counter, 807 reconfiguration counter, 808 relay failure header buffer, 809 relay failure remaining size Counter, 810 interrupt counter, 811 relay data buffer, 812 relay failure buffer, 813 external input / output device, 814 relay split header generation device, 815 relay interrupt enable / disable determination device, 816 transmission data selection device, 817 own device header buffer, 818 own Device remaining size counter, 819 own device data buffer, 820 own device failure header buffer, 821 own device failure remaining size counter, 822 own device failure buffer, 8 3 delimiter output device, 824 send port 825 sends the counter, 826 own device interrupt determination device, 827 own device fragment header generator.

Claims (15)

  1.  1つの通信フレームで送信するデータを、先頭から順に送信するデータ送信部と、
     前記データ送信部がデータの送信を完了する前に特定のデータが新たに発生した場合に、前記特定のデータの発生時点で未送信の未送信データのデータ種別を解析し、前記特定のデータを前記未送信データの前に送信するか否かを決定する送信決定部と、
     前記送信決定部が前記特定のデータを前記未送信データの前に送信するよう決定した場合に、前記特定のデータが前記未送信データの前に送信され、前記特定のデータの送信が完了した後の送信が前記未送信データから開始されるように、前記特定のデータと前記未送信データの送信順序を制御する順序制御部とを有し、
     前記データ送信部は、
     前記送信決定部が前記特定のデータを前記未送信データの前に送信するよう決定した場合に、前記順序制御部による送信順序の制御に基づき、前記特定のデータを前記未送信データの前に送信し、前記特定のデータの送信が完了した後の送信を前記未送信データから開始することを特徴とする通信装置。
    A data transmission unit that sequentially transmits data to be transmitted in one communication frame from the top;
    When specific data is newly generated before the data transmission unit completes data transmission, the data type of untransmitted untransmitted data is analyzed at the time of generation of the specific data, and the specific data is A transmission determining unit for determining whether to transmit before the untransmitted data;
    When the transmission determining unit determines to transmit the specific data before the untransmitted data, the specific data is transmitted before the untransmitted data, and the transmission of the specific data is completed An order control unit that controls the transmission order of the specific data and the non-transmitted data so that transmission of the non-transmitted data is started,
    The data transmitter is
    When the transmission determining unit determines to transmit the specific data before the untransmitted data, the specific data is transmitted before the untransmitted data based on the transmission order control by the sequence control unit. And the transmission after the transmission of the specific data is started from the untransmitted data.
  2.  前記順序制御部は、
     前記特定のデータが前記未送信データの前に送信される結果、前記通信フレームでは送信できない前記未送信データの少なくとも一部が、前記通信フレームに後続する通信フレームで送信されるように制御し、
     前記データ送信部は、
     前記通信フレームでは送信できない前記未送信データの少なくとも一部を、前記通信フレームに後続する通信フレームで送信することを特徴とする請求項1に記載の通信装置。
    The sequence control unit includes:
    As a result of the specific data being transmitted before the untransmitted data, at least a part of the untransmitted data that cannot be transmitted in the communication frame is controlled to be transmitted in a communication frame subsequent to the communication frame;
    The data transmitter is
    The communication apparatus according to claim 1, wherein at least a part of the untransmitted data that cannot be transmitted in the communication frame is transmitted in a communication frame subsequent to the communication frame.
  3.  前記送信決定部は、
     前記未送信データ内で先頭に位置する先頭未送信データのデータ種別が、優先してデータを送信すべき優先種別であるか否かを解析し、
     前記先頭未送信データのデータ種別が優先種別でない場合に、前記特定のデータを前記未送信データの前に送信するよう決定することを特徴とする請求項1に記載の通信装置。
    The transmission determining unit
    Analyzing whether the data type of the head untransmitted data located at the head in the untransmitted data is a priority type to which data should be transmitted with priority,
    The communication apparatus according to claim 1, wherein when the data type of the first untransmitted data is not a priority type, the specific data is determined to be transmitted before the untransmitted data.
  4.  前記送信決定部は、
     前記先頭未送信データのデータ種別が優先種別である場合に、前記先頭未送信データ以降の優先種別のデータ部分が送信された後に前記特定のデータを送信するよう決定し、
     前記順序制御部は、
     前記先頭未送信データ以降の優先種別のデータ部分が送信された後に前記特定のデータが送信され、前記特定のデータの送信が完了した後の送信が前記未送信データ内の優先種別でないデータ部分の先頭から開始されるように、前記特定のデータと前記未送信データの送信順序を制御し、
     前記データ送信部は、
     前記順序制御部による送信順序の制御に基づき、前記先頭未送信データ以降の優先種別のデータ部分を送信し、前記特定のデータを送信し、前記特定のデータの送信が完了した後の送信を前記未送信データ内の優先種別でないデータ部分の先頭から開始することを特徴とする請求項3に記載の通信装置。
    The transmission determining unit
    When the data type of the head untransmitted data is a priority type, it is determined to transmit the specific data after the data portion of the priority type after the head untransmitted data is transmitted,
    The sequence control unit includes:
    The specific data is transmitted after the data portion of the priority type after the head untransmitted data is transmitted, and the transmission after the completion of the transmission of the specific data is the non-priority data portion in the untransmitted data. Control the transmission order of the specific data and the untransmitted data so as to start from the beginning,
    The data transmitter is
    Based on the transmission order control by the sequence control unit, the data portion of the priority type after the first untransmitted data is transmitted, the specific data is transmitted, and the transmission after the transmission of the specific data is completed 4. The communication apparatus according to claim 3, wherein the communication apparatus starts from the beginning of a data portion that is not a priority type in untransmitted data.
  5.  前記通信装置は、更に、
     現在の通信フレームで送信可能な残りのデータサイズを送信可能残りデータサイズとしてカウントする残りデータサイズカウント部を有し、
     前記送信決定部は、
     前記未送信データ内で先頭に位置する先頭未送信データのデータ種別が優先種別でない場合であって、前記特定のデータの発生時点での送信可能残りデータサイズが、前記特定のデータのデータサイズと、前記特定のデータの前に送信されるデリミタのデータサイズとの加算値以上である場合に、前記特定のデータを現在の通信フレームで前記未送信データの前に送信するよう決定し、
     前記特定のデータの発生時点での送信可能残りデータサイズが、前記特定のデータのデータサイズと、前記デリミタのデータサイズとの加算値未満である場合に、前記特定のデータを後続の通信フレームで送信するよう決定することを特徴とする請求項3に記載の通信装置。
    The communication device further includes:
    A remaining data size counting unit that counts the remaining data size that can be transmitted in the current communication frame as a transmittable remaining data size;
    The transmission determining unit
    When the data type of the first untransmitted data located at the head in the untransmitted data is not a priority type, the remaining transmittable data size at the time of occurrence of the specific data is the data size of the specific data Deciding to transmit the specific data before the untransmitted data in a current communication frame when the sum is greater than or equal to the data size of the delimiter transmitted before the specific data;
    When the remaining transmittable data size at the time of occurrence of the specific data is less than the sum of the data size of the specific data and the data size of the delimiter, the specific data is transferred in a subsequent communication frame. The communication apparatus according to claim 3, wherein the communication apparatus determines to transmit.
  6.  前記データ送信部は、
     前記デリミタと前記特定のデータとが送信された後の送信可能残りデータサイズ分の未送信データを現在の通信フレームで送信し、現在の通信フレームで送信されなかった未送信データを後続の通信フレームで送信することを特徴とする請求項5に記載の通信装置。
    The data transmitter is
    The untransmitted data corresponding to the transmittable remaining data size after the delimiter and the specific data are transmitted is transmitted in the current communication frame, and the untransmitted data not transmitted in the current communication frame is transmitted in the subsequent communication frame. The communication apparatus according to claim 5, wherein the communication apparatus transmits the data.
  7.  前記データ送信部は、
     前記送信決定部が前記特定のデータを現在の通信フレームで前記未送信データの前に送信するよう決定した場合に、前記特定のデータを現在の通信フレームでデリミタに後続して送信することを特徴とする請求項5に記載の通信装置。
    The data transmitter is
    When the transmission determining unit determines to transmit the specific data in the current communication frame before the untransmitted data, the specific data is transmitted following the delimiter in the current communication frame. The communication device according to claim 5.
  8.  前記通信装置は、更に、
     外部装置から送信されたデータを受信するデータ受信部を有し、
     前記送信決定部は、
     前記データ送信部がデータの送信を完了する前に前記データ受信部が前記外部装置から前記特定のデータを受信した場合に、前記データ受信部が前記外部装置から受信した前記特定のデータを前記未送信データの前に送信するか否かを決定することを特徴とする請求項1に記載の通信装置。
    The communication device further includes:
    A data receiving unit for receiving data transmitted from an external device;
    The transmission determining unit
    When the data receiving unit receives the specific data from the external device before the data transmitting unit completes the data transmission, the data receiving unit receives the specific data received from the external device as the unread data. The communication apparatus according to claim 1, wherein it is determined whether or not to transmit before transmission data.
  9.  前記通信装置は、更に、
     前記データ送信部から送信させるデータを生成するデータ生成部を有し、
     前記送信決定部は、
     前記データ送信部がデータの送信を完了する前に前記データ生成部が前記特定のデータを生成した場合に、前記データ生成部が生成した前記特定のデータを前記未送信データの前に送信するか否かを決定することを特徴とする請求項1に記載の通信装置。
    The communication device further includes:
    A data generation unit that generates data to be transmitted from the data transmission unit;
    The transmission determining unit
    Whether the specific data generated by the data generation unit is transmitted before the unsent data when the data generation unit generates the specific data before the data transmission unit completes data transmission The communication apparatus according to claim 1, wherein it is determined whether or not.
  10.  前記データ送信部は、
     外部装置から受信したデータであって、1つの通信フレームで送信するデータを、先頭から順に送信し、
     前記送信決定部は、
     前記データ送信部が、前記外部装置から受信したデータの送信を完了する前に、前記特定のデータが発生した場合に、前記特定のデータを前記未送信データの前に送信するか否かを決定することを特徴とする請求項1に記載の通信装置。
    The data transmitter is
    Data received from an external device and transmitted in one communication frame in order from the beginning,
    The transmission determining unit
    The data transmission unit determines whether to transmit the specific data before the untransmitted data when the specific data occurs before completing the transmission of the data received from the external device The communication apparatus according to claim 1, wherein:
  11.  前記データ送信部は、
     前記通信装置内で生成されたデータであって、1つの通信フレームで送信するデータを、先頭から順に送信し、
     前記送信決定部は、
     前記データ送信部が、前記通信装置内で生成されたデータの送信を完了する前に、前記特定のデータが発生した場合に、前記特定のデータを前記未送信データの前に送信するか否かを決定することを特徴とする請求項1に記載の通信装置。
    The data transmitter is
    The data generated in the communication device, the data to be transmitted in one communication frame, sequentially transmitted from the beginning,
    The transmission determining unit
    Whether or not to transmit the specific data before the untransmitted data when the specific data occurs before the data transmission unit completes transmission of the data generated in the communication device The communication device according to claim 1, wherein the communication device is determined.
  12.  前記通信装置は、更に、
     所定の分割前データから分割された複数の分割データを、2つ以上の通信フレームにおいて受信するデータ受信部と、
     通信フレームごとに、前記データ受信部が受信したデータの中から前記分割前データの分割データを抽出するデータ抽出部と、
     前記データ抽出部により抽出された分割データを格納する分割データ格納部と、
     前記分割データ格納部に格納されている分割データのデータサイズの累積値をカウントするデータサイズカウント部と、
     前記分割前データの総データサイズを導出するとともに、前記データサイズカウント部がカウントしたデータサイズの累積値が、導出した前記分割前データの総データサイズに達した際に、前記分割データ格納部に格納されている分割データを用いて、前記分割前データを復元するデータ復元部とを有することを特徴とする請求項1に記載の通信装置。
    The communication device further includes:
    A data receiving unit that receives a plurality of divided data divided from predetermined pre-division data in two or more communication frames;
    A data extraction unit that extracts divided data of the pre-division data from the data received by the data receiving unit for each communication frame;
    A divided data storage unit that stores the divided data extracted by the data extraction unit;
    A data size counting unit that counts a cumulative value of the data size of the divided data stored in the divided data storage unit;
    The total data size of the pre-division data is derived, and when the cumulative value of the data size counted by the data size count unit reaches the derived total data size of the pre-division data, the division data storage unit The communication apparatus according to claim 1, further comprising: a data restoring unit that restores the pre-division data using the stored divided data.
  13.  前記送信決定部は、
     前記特定のデータとして、前記通信装置及び前記通信装置が所属するネットワーク内の少なくともいずれかで障害が検知されたことを通知する障害データが、前記データ送信部がデータの送信を完了する前に発生した場合に、前記障害データを前記未送信データの前に送信するか否かを決定することを特徴とする請求項1に記載の通信装置。
    The transmission determining unit
    As the specific data, failure data notifying that a failure has been detected in at least one of the communication device and a network to which the communication device belongs is generated before the data transmission unit completes data transmission. 2. The communication apparatus according to claim 1, wherein, in the case where the failure data is transmitted, the communication apparatus determines whether to transmit the failure data before the untransmitted data.
  14.  コンピュータが、
     1つの通信フレームで送信するデータを、先頭から順に送信し、
     データの送信を完了する前に特定のデータが新たに発生した場合に、前記特定のデータの発生時点で未送信の未送信データのデータ種別を解析し、前記特定のデータを前記未送信データの前に送信するか否かを決定し、
     前記特定のデータを前記未送信データの前に送信するよう決定した場合に、前記特定のデータが前記未送信データの前に送信され、前記特定のデータの送信が完了した後の送信が前記未送信データから開始されるように、前記特定のデータと前記未送信データの送信順序を制御し、
     前記特定のデータを前記未送信データの前に送信するよう決定した場合に、前記送信順序の制御に基づき、前記特定のデータを前記未送信データの前に送信し、前記特定のデータの送信が完了した後の送信を前記未送信データから開始することを特徴とする通信方法。
    Computer
    Send data to be transmitted in one communication frame in order from the beginning,
    When specific data is newly generated before data transmission is completed, the data type of untransmitted untransmitted data is analyzed at the time of occurrence of the specific data, and the specific data is converted to the untransmitted data. Decide whether to send before,
    When it is decided to transmit the specific data before the untransmitted data, the specific data is transmitted before the untransmitted data, and transmission after the transmission of the specific data is completed is not transmitted. Control the transmission order of the specific data and the untransmitted data so as to start from the transmission data,
    When it is determined to transmit the specific data before the untransmitted data, based on the control of the transmission order, the specific data is transmitted before the untransmitted data, and the specific data is transmitted. A communication method characterized by starting transmission after completion from the untransmitted data.
  15.  1つの通信フレームで送信するデータを、先頭から順に送信するデータ送信処理と、
     前記データ送信処理がデータの送信を完了する前に特定のデータが新たに発生した場合に、前記特定のデータの発生時点で未送信の未送信データのデータ種別を解析し、前記特定のデータを前記未送信データの前に送信するか否かを決定する送信決定処理と、
     前記送信決定処理が前記特定のデータを前記未送信データの前に送信するよう決定した場合に、前記特定のデータが前記未送信データの前に送信され、前記特定のデータの送信が完了した後の送信が前記未送信データから開始されるように、前記特定のデータと前記未送信データの送信順序を制御する順序制御処理とをコンピュータに実行させ、
     前記送信決定処理が前記特定のデータを前記未送信データの前に送信するよう決定した場合に、前記順序制御処理による送信順序の制御に基づき、前記データ送信処理において、前記コンピュータに、前記特定のデータを前記未送信データの前に送信させ、前記特定のデータの送信が完了した後の送信を前記未送信データから開始させることを特徴とするプログラム。
    A data transmission process for transmitting data to be transmitted in one communication frame in order from the top;
    When specific data is newly generated before the data transmission process completes data transmission, the data type of untransmitted untransmitted data is analyzed at the time of generation of the specific data, and the specific data is A transmission determination process for determining whether to transmit before the untransmitted data;
    When the transmission determination process determines to transmit the specific data before the untransmitted data, after the specific data is transmitted before the untransmitted data and the transmission of the specific data is completed So that the specific data and the transmission control order of the untransmitted data are controlled by a computer so that the transmission of the untransmitted data is started,
    When the transmission determination process determines to transmit the specific data before the untransmitted data, based on the transmission order control by the order control process, in the data transmission process, the specific data is sent to the computer. A program that transmits data before the untransmitted data and starts transmission after the transmission of the specific data is started from the untransmitted data.
PCT/JP2012/054556 2012-02-24 2012-02-24 Communication device, communication method and program WO2013125027A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/JP2012/054556 WO2013125027A1 (en) 2012-02-24 2012-02-24 Communication device, communication method and program
JP2012539098A JP5183829B1 (en) 2012-02-24 2012-02-24 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
CN201280070626.9A CN104137487B (en) 2012-02-24 2012-02-24 Communicator and communication means
TW101121276A TWI498697B (en) 2012-02-24 2012-06-14 Communication device and communication method, and a computer readable memory medium containing a computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2012/054556 WO2013125027A1 (en) 2012-02-24 2012-02-24 Communication device, communication method and program

Publications (1)

Publication Number Publication Date
WO2013125027A1 true WO2013125027A1 (en) 2013-08-29

Family

ID=48481383

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/054556 WO2013125027A1 (en) 2012-02-24 2012-02-24 Communication device, communication method and program

Country Status (4)

Country Link
JP (1) JP5183829B1 (en)
CN (1) CN104137487B (en)
TW (1) TWI498697B (en)
WO (1) WO2013125027A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015207946A (en) * 2014-04-22 2015-11-19 本田技研工業株式会社 In-vehicle communication system
JP2017175231A (en) * 2016-03-18 2017-09-28 本田技研工業株式会社 Communication system using ring network

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58173932A (en) * 1982-04-05 1983-10-12 Oki Electric Ind Co Ltd Packet transmission system
JPS6120454A (en) * 1984-07-06 1986-01-29 Nec Corp Frame signal transmitting device
JPS6468044A (en) * 1987-09-09 1989-03-14 Hitachi Ltd Message restoring system
JPH09261230A (en) * 1996-03-19 1997-10-03 Oki Electric Ind Co Ltd Cell transmission method
JP2002009832A (en) * 2000-06-21 2002-01-11 Fujitsu Ltd Network repeater and method for combining packet
JP2002261786A (en) * 2001-02-27 2002-09-13 Nec Corp Multi-access communication system and data transmitting and receiving device
JP2003069603A (en) * 2001-08-27 2003-03-07 Fujikura Ltd Packet communication controller
JP2005159792A (en) * 2003-11-27 2005-06-16 Yokogawa Electric Corp Communication system and communication method
JP2006148505A (en) * 2004-11-19 2006-06-08 Mitsubishi Electric Corp Repeater, relay method and relay program
JP2008236266A (en) * 2007-03-19 2008-10-02 Fujitsu Ltd Transmission device, frame for maintenance processing method and transmission program
JP2010251911A (en) * 2009-04-13 2010-11-04 Shimadzu System Solutions Co Ltd Internode data response system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003017111A1 (en) * 2001-07-23 2003-02-27 Cognis Corporation Extensible modular communication executive with active message queue and intelligent message pre-validation
US7170876B2 (en) * 2002-04-30 2007-01-30 Qualcomm, Inc. Outer-loop scheduling design for communication systems with channel quality feedback mechanisms
KR100575989B1 (en) * 2004-04-08 2006-05-02 삼성전자주식회사 Segmentation Transmitting Method of Asynchronous Data In Synchronous Ethernet and Data Structure Used In Segmentation Transmitting Method
JP2006013643A (en) * 2004-06-23 2006-01-12 Nec Infrontia Corp Communication protocol conversion cradle, address conversion method used for same, and program thereof
TWI299450B (en) * 2005-03-04 2008-08-01 Super Talent Electronics Inc A multi mode host and device having multiple communication protocols, a single mode device, and methods of initializing the host or device using an electrical receptacle or plug in order to perform data communications
TWI330789B (en) * 2007-01-30 2010-09-21 Holtek Semiconductor Inc Two-wire seriel communication interface device and method using handshaking
CN101562751B (en) * 2008-12-31 2012-05-23 北京创毅视讯科技有限公司 Multi-service multiplexing method and multi-service multiplexing device in mobile multimedia broadcasting system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58173932A (en) * 1982-04-05 1983-10-12 Oki Electric Ind Co Ltd Packet transmission system
JPS6120454A (en) * 1984-07-06 1986-01-29 Nec Corp Frame signal transmitting device
JPS6468044A (en) * 1987-09-09 1989-03-14 Hitachi Ltd Message restoring system
JPH09261230A (en) * 1996-03-19 1997-10-03 Oki Electric Ind Co Ltd Cell transmission method
JP2002009832A (en) * 2000-06-21 2002-01-11 Fujitsu Ltd Network repeater and method for combining packet
JP2002261786A (en) * 2001-02-27 2002-09-13 Nec Corp Multi-access communication system and data transmitting and receiving device
JP2003069603A (en) * 2001-08-27 2003-03-07 Fujikura Ltd Packet communication controller
JP2005159792A (en) * 2003-11-27 2005-06-16 Yokogawa Electric Corp Communication system and communication method
JP2006148505A (en) * 2004-11-19 2006-06-08 Mitsubishi Electric Corp Repeater, relay method and relay program
JP2008236266A (en) * 2007-03-19 2008-10-02 Fujitsu Ltd Transmission device, frame for maintenance processing method and transmission program
JP2010251911A (en) * 2009-04-13 2010-11-04 Shimadzu System Solutions Co Ltd Internode data response system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015207946A (en) * 2014-04-22 2015-11-19 本田技研工業株式会社 In-vehicle communication system
JP2017175231A (en) * 2016-03-18 2017-09-28 本田技研工業株式会社 Communication system using ring network

Also Published As

Publication number Publication date
JP5183829B1 (en) 2013-04-17
TW201335727A (en) 2013-09-01
CN104137487A (en) 2014-11-05
JPWO2013125027A1 (en) 2015-07-30
TWI498697B (en) 2015-09-01
CN104137487B (en) 2017-09-01

Similar Documents

Publication Publication Date Title
JP6600518B2 (en) Bus system
CN110967969B (en) High availability industrial automation system and method for transmitting information by the same
JP2012128808A (en) Parallel computer system, and synchronization device, and control method for parallel computer system
JP5183829B1 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP5125430B2 (en) Information processing apparatus and information processing method
WO2012056930A1 (en) Programmable controller
WO2016033755A1 (en) Task handling apparatus and method, and electronic device
JP4990250B2 (en) Interrupt control device, interrupt control system, interrupt control method, and interrupt control program
US6778543B1 (en) Method and device for controlling the synchronization between two serial communication buses of a network
JPH04195639A (en) Multiprocessor system and control method of its output
JP4806295B2 (en) Communication interface device and communication method
US20150127707A1 (en) Terminal communication apparatus, and distributed control system
US7336657B2 (en) Inter-nodal data transfer system and data transfer apparatus
KR100737904B1 (en) interface device between master/slave devices and method thereof
WO2021181874A1 (en) Communication control device and method for controlling communication control device
JP2009130614A (en) Communication controller, communication control method and communication control program
JP6988863B2 (en) Protocol converters, data transmission methods, data transmission programs, and data transmission systems
US20180309663A1 (en) Information processing apparatus, information processing system, and information processing method
JP5414909B2 (en) Programmable controller
JP4900268B2 (en) Application communication control apparatus and program
JP2008310411A (en) Duplex device and system switching method in failure
JP6100135B2 (en) Fault tolerant system and fault tolerant system control method
US20060190630A1 (en) Apparatus and method to pass through data in a storage area network
JP2004341595A (en) Signal transfer method and signal processing system
JP2006234711A (en) Time synchronization system

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2012539098

Country of ref document: JP

Kind code of ref document: A

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

Ref document number: 12869533

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

Country of ref document: EP

Kind code of ref document: A1