WO2015159320A1 - Protocol conversion apparatus and industrial network system - Google Patents

Protocol conversion apparatus and industrial network system Download PDF

Info

Publication number
WO2015159320A1
WO2015159320A1 PCT/JP2014/002152 JP2014002152W WO2015159320A1 WO 2015159320 A1 WO2015159320 A1 WO 2015159320A1 JP 2014002152 W JP2014002152 W JP 2014002152W WO 2015159320 A1 WO2015159320 A1 WO 2015159320A1
Authority
WO
WIPO (PCT)
Prior art keywords
request
network
frame
response
protocol conversion
Prior art date
Application number
PCT/JP2014/002152
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/JP2014/002152 priority Critical patent/WO2015159320A1/en
Priority to TW103116040A priority patent/TW201541914A/en
Publication of WO2015159320A1 publication Critical patent/WO2015159320A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Definitions

  • This invention relates to a protocol converter.
  • connection type and a connectionless type as a communication method between a master and a slave.
  • a connection type communication method performs communication with a 1: 1 relationship between a request and a response after opening a connection.
  • connection-type communications there are a normal type in which requests and responses between a master and a slave are alternated, and a pipeline type in which a plurality of requests are sent continuously and a plurality of responses are received at once (see Patent Document 1). .
  • networks there are various types of networks in the field called industrial networks, and there are networks that can handle both the connection type and connectionless type described above, and the connection type as well as the normal type and pipeline type. Some networks can only handle the normal type of connection. When relaying between a network that supports all types and a network that supports only the connection-type normal type by protocol conversion, it is necessary to match only the normal type when relaying.
  • the present invention has been made in view of such a situation, and realizes a protocol converter capable of preferentially processing priority data requiring synchronization even when relaying networks having different protocols. With the goal.
  • the present invention provides a first protocol that alternately performs a request and a response to the request, and a second protocol that sends a plurality of requests without waiting for a response to the request.
  • the first interface connected to the first network corresponding to both of the above and the second interface connected to the second network corresponding to only the first protocol and transmitted and received the frame.
  • a frame including a direct request which is a request received at the first interface or a request to be preferentially processed is converted into a frame suitable for the second network, and the request or direct request received at the second interface is converted.
  • a protocol converter for converting the response frame into a frame suitable for the first network;
  • a frame to be output to the second interface is selected according to whether or not a response is received from the second network and whether or not there is a direct request from the first network.
  • an output control unit that selects a frame to be output to one interface.
  • the apparatus according to the present invention has the above-described configuration, even if a network having a different protocol is relayed, there is an effect that priority data requiring synchronization can be preferentially processed.
  • FIG. 3 shows a gateway device 100 in the equipment network in the first embodiment.
  • FIG. 4 is a diagram illustrating a sequence example in which the PLC 101 and the slave 102 in the first embodiment communicate via the protocol conversion device 100.
  • moves in the sequence of FIG. 1 is a configuration diagram of a protocol conversion device 100 according to Embodiment 1.
  • FIG. 1 is a configuration diagram of a protocol conversion device 100 according to Embodiment 1.
  • FIG. 10 is a flowchart of the operation of the protocol conversion apparatus 100 that operates in the sequence of FIG.
  • FIG. 1 is a diagram showing an example of an industrial network system having a protocol conversion apparatus according to the first embodiment. The configuration will be described.
  • the network 103 between the PLC 101 and the protocol conversion apparatus 100 is a network (hereinafter referred to as a network A) that can handle all of the connection type, connectionless type, connection type, normal type, and pipeline type. In this embodiment, at least the connection type will be described.
  • the network 104 between the protocol conversion apparatus 100 and the device 102 is a network that supports only a connection-type normal type (hereinafter referred to as network B).
  • a PLC (Programmable Logic Controller) 101 is connected to a device 102 via a protocol converter 100.
  • the PLC 101 issues a command to the device 102 and outputs information on the command to the network A103.
  • the PLC 101 also receives response information output from the device 102 to the network A 103 via the network B 104 and the protocol converter 100.
  • the protocol conversion apparatus 100 receives the command information for the device 102 from the PLC 101 output to the network A 103, converts it, and outputs it to the network B 104 to which the device 102 is connected. Further, the protocol conversion apparatus 100 receives the response information for the PLC 101 from the device 102 output to the network B 104, converts it, and outputs it to the network A 103 to which the PLC 101 is connected. The device 102 is connected to the network B 104, receives command information from the PLC 101, and outputs response information for the PLC 101.
  • FIG. 1 shows one PLC 101 and one protocol conversion device 100 connected to the network A, a plurality of PLCs may be provided. Further, although one protocol conversion device 100 and one device are connected to the network B, one protocol conversion device 100 is connected to one network B, but a plurality of devices 102 may be connected. .
  • FIG. 2 is a diagram showing, in time series, requests and responses for the normal type, pipeline type, and connectionless communication of the connection type communication described above.
  • the left side of FIG. 2 is a normal type of connection-type communication, in which requests of a master (corresponding to the PLC 101 in this embodiment) and responses of slaves (corresponding to the device 102 in this embodiment) are alternately performed.
  • the center of FIG. 2 shows a pipeline type of connection type communication. Regardless of whether there is a response from the master or from the slave, requests are transmitted at regular intervals, and the slave responds in the order received.
  • the right side of FIG. 2 shows connectionless communication, in which only transmission from the master to the slave is performed.
  • FIG. 3 is a diagram illustrating a sequence example in which the PLC 101 and the slave 102 communicate with each other via the protocol conversion apparatus 100 according to the first embodiment.
  • the network A103 between the PLC 101 and the protocol conversion apparatus 100 can cope with all types shown in FIG. 2, but the network B104 between the protocol conversion apparatus 100 and the slave 102 is connected to FIG. Only the normal type of connection-type communication on the left side of can be supported. Therefore, in the case of a normal protocol conversion device, frames and packets are converted by the first-in first-out method, so the network A 103 side also needs to be adapted to the normal type of connection-type communication. Also in this embodiment, When the network A 103 side is adapted to the normal type of connection type communication, the sequence shown in FIG. 3 is obtained.
  • FIG. 4 is a diagram illustrating an example of a sequence performed by the protocol conversion apparatus 100 when the network A 103 according to the first embodiment performs priority communication based on pipeline-type communication and a direct request.
  • the PLC 101 outputs a connection request to the device 102.
  • the protocol conversion apparatus 100 received via the network A 103 converts the connection request into a protocol compatible with the network B 104 and transfers the connection request to the device 102.
  • the device 102 outputs a connection request response to the PLC 101.
  • the protocol conversion apparatus 100 converts the received connection request response into a protocol compatible with the network A103, and then sends a connection request response to the PLC 101 connected to the network A103. Perform response forwarding.
  • the PLC 101 After the connection between the PLC 101 and the device 102 is established, the PLC 101 transmits the requests CI1 to CI3 (CI is an abbreviation of a control instruction, and a number is a control instruction number) to the device 102 in a connection type communication pipeline type. To do. Thereafter, it is assumed that the PLC 101 immediately transmits a direct request to the device 102 that needs priority control.
  • CI is an abbreviation of a control instruction, and a number is a control instruction number
  • the protocol conversion apparatus 100 converts the received request CI1 so as to conform to the network B104, and then transfers it to the device 102. Upon receiving the request CI1 response from the device 102, the protocol conversion apparatus 100 converts it so as to conform to the network A103, transfers it to the PLC 101, and converts the received request CI2 so as to conform to the network B104. Forward to.
  • the protocol conversion apparatus 100 receives the request CI3 and the direct request from the PLC 101 during the processing of the response of the request CI2 received from the device. In that case, the protocol conversion apparatus 100 converts the direct request so as to conform to the network B 104 and then transfers the request to the device 102. Then, the protocol conversion apparatus 100 converts the response of the request CI2 received from the device so as to conform to the network A103, and then transfers it to the PLC101.
  • the protocol conversion apparatus 100 converts the response of the direct request received from the device 102 so as to be compatible with the network A103, and after transferring the response to the PLC 101, converts the received request CI3 so as to be compatible with the network B104. After that, the data is transferred to the device 102.
  • the protocol conversion device 100 converts the request CI3 so as to conform to the network A103, and then transfers it to the PLC101.
  • the protocol conversion apparatus 100 converts the request to conform to the network B 104 and then transfers it to the device 102. Then, when receiving a response to the connection end request, the protocol conversion device 100 converts it to conform to the network A103 and then transfers it to the PLC 101, and the connection is ended.
  • FIG. 5 is a flowchart of the operation of the protocol conversion apparatus 100 operating in the sequence of FIG.
  • step S501 it is confirmed in step S501 that a connection (CONNECTION) has been established. If not established, it is processed as an error in step S514. If it has been established, the process proceeds to step S502 or step S508. In step S502, a request from the PLC 101 is received. In FIG. 4, the requests CI1 to CI3 and the reception of the direct request are applicable.
  • step S503 for each request, the protocol is converted so that the network A103 can be adapted to the network B104.
  • a conversion method for converting the header and actual data in the frame so that it can be interpreted on the network after passing through the protocol conversion device 100 There is an encapsulation method in which data in accordance with a network protocol is generated and the protocol conversion apparatus 100 converts only the frame header. In this embodiment, either is possible, but the conversion method will be described.
  • step S504 the protocol conversion apparatus 100 determines whether a response is received from the device 102 via the network B 104. If NO, the operation of step S504 is repeated. This corresponds to the case where the response of the request CI2 is not received when the request CI3 in FIG. 4 is received. This is because the network B 104 is a normal connection type, and unless a response is received, the request cannot be transferred to the network B 104 side.
  • step S504 after receiving the response (when the request CI2 response was received when the request CI3 in FIG. 4 was received), in step S505, the protocol conversion apparatus 100 determines whether or not the request has been received directly. Confirm. If a direct request has been received, in step S507, the protocol conversion apparatus 100 first transfers the direct request to the device 102 via the network B 104, and returns to step S504. Referring to FIG. 4, the protocol conversion apparatus 100 receives the request CI 3 and the direct request, receives the response of the request CI 2, and transfers the direct request to the device 102.
  • step S505 if the protocol conversion apparatus 100 has not received a direct request, the request other than the direct request is transferred in step S506.
  • the request CI 2 is transferred to the device 102 after receiving the request CI 2 from the PLC 101.
  • step S513 it is confirmed whether or not the connection (CONNECTION) is completed. If NO, the protocol conversion apparatus 100 continues the process. If YES, the process will end.
  • step S508 the protocol conversion apparatus 100 receives a response to the request or direct request from the device 102.
  • step S509 the protocol conversion apparatus 100 converts the protocol so that the network B104 can be adapted to the network A103.
  • the response to the direct request is transferred to the PLC 101 connected to the network A103 in step S511. If there is no response to the direct request in the response converted in step S510, the request response is transferred.
  • FIG. 6 is a configuration diagram of the protocol conversion apparatus 100 according to the first embodiment.
  • the first interface 1 receives a request from the PLC 101 connected via the network A 103 and transfers a response. In FIG. 5, this corresponds to S501, S511, and S512.
  • the second interface 2 in FIG. 6 transfers a request to the device 102 connected via the network B 104 and receives a response to the request from the device 102. In FIG. 5, this corresponds to S506, S507, and S508.
  • the protocol conversion unit 3 in FIG. 6 converts the request received from the first interface so as to conform to the network B 104 and outputs it to the output control unit 4. Further, the protocol conversion unit 3 converts the request received from the second interface so as to conform to the network A 103 and outputs the request to the output control unit 4. In FIG. 5, this corresponds to S503 and S509.
  • the output control unit 4 in FIG. 6 selects a frame to be output according to the presence / absence of reception of a response and the presence / absence of a direct request for a frame after protocol conversion suitable for the network B 104, and outputs the selected frame to the second interface. In FIG. 5, this corresponds to S504 and S505. Further, the output control unit 4 in FIG. 6 selects a frame for outputting a frame after protocol conversion suitable for the network A 103 according to the presence / absence of a direct response request, and then outputs the frame to the second interface.
  • FIG. 5 corresponds to S510.
  • the protocol conversion apparatus 100 is connected to the first network A103 corresponding to both a protocol that alternately performs a request and a response to the request and a protocol that sequentially sends a plurality of requests without waiting for a response to the request.
  • the protocol conversion unit 3 that converts the frame into a combined frame and the reception of a response from the second network B 104 and the direct request from the first network A 103 for the frame converted to be compatible with the second network B 104
  • a frame to be output to the second interface 2 is selected according to the presence / absence, and the first frame is selected according to the presence / absence of a direct request from the second network B 104 for the frame converted to be compatible with the first network A103. Since the output control unit 4 for selecting a frame to be output to the interface 1 is provided, priority data requiring synchronization can be preferentially processed even when a network having a different protocol is relayed.
  • Embodiment 2 FIG. In the second embodiment, a case will be described in which all the configurations and operations of the first embodiment are provided and a plurality of requests are communicated in one frame in the network A103.
  • FIG. 7 is a diagram showing a difference between request frames in the first embodiment and the second embodiment.
  • the description has been made on the assumption that only one control instruction (CI1) request is described for one frame and transmitted from the PLC 101.
  • CI1 control instruction
  • CI4 requests for a plurality of control instructions
  • the network A103 transmits and receives a plurality of commands in one frame.
  • the network B104 on the other hand, as in the first embodiment, one command is sent to the device as one request, and the response can be performed. is necessary.
  • the configuration itself of the protocol conversion apparatus 100 in the second embodiment is not changed from that in FIG. 6 of the first embodiment, the processing contents in the protocol conversion unit 3 and the output processing unit 4 are particularly different.
  • the flowchart showing the operation of the protocol conversion apparatus 100 is not different from that in FIG. 5 of the first embodiment, but there are different parts due to changes in the processing contents in the protocol conversion unit 3 and the output processing unit 4 and are different. Only the part will be described below.
  • the reception of the request in step S ⁇ b> 502 in FIG. 5 includes a plurality of instruction information in one frame, and therefore, step 503 corresponding to the operation of the protocol conversion unit 3.
  • step 503 corresponding to the operation of the protocol conversion unit 3.
  • step S509 in FIG. 6 for protocol conversion of responses to requests other than direct request responses in step S509 in FIG. 3, a plurality of responses received from the network B 104 are bundled and converted into one frame so as to be compatible with the network A 103 and output to the control instruction unit 4. There is a need to.
  • control instruction unit 4 in FIG. 6 is compared with a single response and a direct response in step S510 in FIG. 5 corresponding to the operation in the first embodiment.
  • the mode is different in that it is performed by comparing one frame obtained by bundling a plurality of responses with a direct response. The rest is the same as in the first embodiment.
  • FIG. 8 is a diagram illustrating an example of a sequence performed by the protocol conversion apparatus 100 when a plurality of commands are collected into one frame from the network A 103 according to the second embodiment.
  • connection (CONNECTION) establishment and connection termination steps shown in the first embodiment are the same as those in the first embodiment, and are therefore omitted.
  • the PLC 101 aggregates the requests CI1 to CI3 (CI is an abbreviation for a control instruction, and a number is a control instruction number) into one frame as shown in the lower part of FIG. It transmits to the device 102 in the state. Thereafter, it is assumed that the PLC 101 immediately transmits a direct request to the device 102 that needs priority control.
  • the protocol conversion apparatus 100 extracts the received requests CI1 to CI3 one by one from the frame, converts them so as to be compatible with the network B104, and then transfers them from the request C1 to the device 102.
  • the protocol conversion apparatus 100 When receiving the response of the request CI 1 from the device 102, the protocol conversion apparatus 100 next transfers the request CI 2 to the device 102.
  • the protocol conversion apparatus 100 receives a request directly from the PLC 101 when waiting for a response to the request CI2 received from the device. In this case, the protocol conversion apparatus 100 converts the direct request so as to conform to the network B 104, and then transfers the direct request to the device 102 before the request CI3. Then, the protocol conversion apparatus 100 converts the response of the direct request received from the device so as to conform to the network A103, and then transfers the request CI3 that has been converted so as to conform to the network B104 to the device B102. Forward to.
  • the protocol conversion apparatus 100 converts all the responses of the requests CI 1 to 3 received from the device so as to conform to the network A 103, stores them in one frame, and transfers them to the PLC 101.
  • the protocol conversion apparatus 100 includes the first network A103 that supports both a protocol that alternately performs a request and a response to the request, and a protocol that transmits a plurality of requests as one frame without waiting for the request and the response to the request.
  • a first interface 1 that transmits and receives a frame
  • a second interface 2 that transmits and receives a frame
  • a response to the request is converted into a frame suitable for the first network A103, and a single response frame corresponding to one request is converted into a single frame in which a plurality of responses suitable for the first network A103 are bundled.
  • the protocol conversion unit 3 and the frame converted so as to be compatible with the second network B104 are subjected to the first response according to whether a response is received from the second network B104 and whether there is a direct request from the first network A103. 2 to select the frame to be output to the interface 2 of the second network, and to the first interface 1 according to the presence / absence of a direct response from the second network B104 to the frame converted to be compatible with the first network A103. Since the output control unit 4 that selects the frame to be output is provided, Even in the case of relaying a network with that protocol, the priority data to be synchronized of the request can be processed preferentially.
  • Embodiment 3 FIG. In the third embodiment, a case will be described in which all the configurations of the second embodiment are provided and there is priority processing in the response to a plurality of requests bundled in one frame in the network A103.
  • FIG. 9 is a diagram illustrating an example of a sequence performed by the protocol conversion apparatus 100 when a plurality of commands are collected into one frame from the network A 103 according to the third embodiment. *
  • connection (CONNECTION) establishment and connection termination steps shown in the first embodiment are the same as those in the first embodiment, and are therefore omitted.
  • the PLC 101 aggregates the requests CI1 to CI3 (CI is an abbreviation for a control instruction, and a number is a control instruction number) into one frame as shown in the lower part of FIG. It transmits to the device 102 in the state. Thereafter, it is assumed that the PLC 101 immediately transmits a direct request to the device 102 that needs priority control.
  • the responses of all the requests CI1 to CI3 are bundled into one frame, but in this embodiment, the request CI1 is defined as a priority request, and all the requests CI1 to CI3 Even so, a case will be described in which the response of the request CI1 has priority and needs to be responded immediately in another frame.
  • the protocol conversion apparatus 100 extracts the received requests CI1 to CI3 one by one from the frame and converts them so as to conform to the network B104, and then transfers the request C1 defined as a priority request to the device 102. Upon receiving the request CI1 response from the device 102, the protocol conversion apparatus 100 converts the request CI1 so as to be compatible with the network A103, and then transfers it to the PLC 101 and transfers the request CI2 to the device 102.
  • the protocol conversion apparatus 100 receives a request directly from the PLC 101 when waiting for a response to the request CI2 received from the device. In this case, the protocol conversion apparatus 100 converts the direct request so as to conform to the network B 104, and then transfers the direct request to the device 102 before the request CI3. Then, the protocol conversion apparatus 100 converts the response of the direct request received from the device so as to conform to the network A103, and then transfers the request CI3 that has been converted so as to conform to the network B104 to the device B102. Forward to.
  • the protocol conversion apparatus 100 converts the responses of the requests CI 2 to 3 received from the device so as to conform to the network A 103, stores them in one frame, and transfers them to the PLC 101.
  • FIG. 10 is a flowchart of the operation of the protocol conversion apparatus 100 that operates in the sequence of FIG.
  • step S901 a portion having a change compared to FIG.
  • responses to requests there are three types of responses to requests: responses to direct requests, requests for priority processing requests, and responses to normal requests. Either of them needs to be converted into a protocol compatible with the network A103.
  • the protocol conversion unit 3 of the protocol conversion apparatus 100 in FIG. 6 stores the response to the direct request and the priority processing request individually in a frame and outputs the response to the output control unit 4. In response to a response to an ordinary request, a plurality of responses are stored in one frame and then output to the output control unit 4.
  • step S902 If there is no direct request response in step S510 of FIG. 10, it is checked in step S902 whether there is a response to the priority processing request. If there is a response, the priority request response is sent via the network A103 to the PLC 101 in step S903. If not, in step S904, a response to a plurality of requests in one frame is transferred to the PLC 101 via the network A103.
  • the output control unit 4 processes steps S510, S511, and S902 to 904.
  • step S902 If there is no direct request response in step S510 of FIG. 10, it is checked in step S902 whether there is a response to the priority processing request. If there is a response, the priority request response is sent via the network A103 to the PLC 101 in step S903. If not, in step S904, a response to a plurality of requests in one frame is transferred to the PLC 101 via the network A103.
  • the output control unit 4 processes steps S510, S511, and S902 to 904.
  • the protocol conversion apparatus 100 transfers the request. In this case, there is no difference from the second embodiment.
  • steps S902 to S904 in FIG. CI2 or CI3 can be preferentially transferred to the device 102 side by incorporating the same processing on the NO side of step S505 in FIG.
  • the protocol conversion apparatus 100 is It is connected to the first network A 103 corresponding to both a protocol that alternately performs a request and a response to the request and a protocol that sends a plurality of requests as one frame without waiting for a request and a response to the request, and transmits and receives frames.
  • the first interface 1 is connected to the second network B 104 that supports only the protocol that alternately performs the request and the response to the request, and is received by the second interface 2 that transmits and receives frames and the first interface A 103.
  • the second interface 2 selects a frame to be output to the second interface 2 and determines whether or not there is a direct request response and a priority request response to the frame converted to be compatible with the first network A103.
  • select a frame to be output to the first interface 1 Since an output control unit 4, even in the case of relaying a network with different protocol, the priority data to be synchronized of the request can be processed preferentially.
  • the output control unit 4 also outputs a frame to be output to the second interface 2 according to whether a response is received from the second network B 104, whether there is a direct request from the first network A 103, and whether there is a priority request. By selecting, it is possible to preferentially process priority data that requires more synchronization even when relaying networks having different protocols.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

A protocol conversion apparatus (100) comprises: a protocol conversion unit (3) that converts a frame, which includes either a request received via a first interface (A103) or a direct request that is a request to be processed on a priority basis, to a frame suitable for a second network (B104) and that also converts a frame, which is of a response received via a second interface and responsive to the request or to the direct request, to a frame suitable for a first network (A103); and an output control unit (4) that selects, in accordance with whether or not the response is received from the second network (B104) and whether or not the direct request is received from the first network (A103), a frame to be outputted to the second interface (2) and that also selects, in accordance with whether or not a direct request is received from the second network (B104), a frame to be outputted to the first interface (1). Therefore, even in a case of causing networks having different protocols to perform relaying, the protocol conversion apparatus can process, on a priority basis, preferred data that require synchronism.

Description

プロトコル変換装置、及び産業ネットワークシステムProtocol converter and industrial network system
 この発明はプロトコル変換装置に関するものである。 This invention relates to a protocol converter.
 産業ネットワークと呼ばれる分野において、マスタとスレーブ間の通信方式にコネクション型とコネクションレス型とがあり、コネクション型の通信方式はコネクションをオープン後、リクエストとレスポンスが1:1の関係で通信を行う。そのコネクション型通信の中でもマスタとスレーブ間のリクエストとレスポンスを交互に行う通常タイプと、複数のリクエストを連続で送り、複数の応答を一度に受けるパイプライン型タイプとがある(特許文献1参照)。 In a field called an industrial network, there are a connection type and a connectionless type as a communication method between a master and a slave. A connection type communication method performs communication with a 1: 1 relationship between a request and a response after opening a connection. Among the connection-type communications, there are a normal type in which requests and responses between a master and a slave are alternated, and a pipeline type in which a plurality of requests are sent continuously and a plurality of responses are received at once (see Patent Document 1). .
 また、産業ネットワークに限らず、異なるネットワークプロトコルを中継するためのプロトコル変換装置というものは一般的に存在する(特許文献2参照)。 Further, not only industrial networks, but also protocol conversion devices for relaying different network protocols generally exist (see Patent Document 2).
特開2004―88382号JP 2004-88382 A 特開2001-7839号JP 2001-7839 A
 産業ネットワークと呼ばれる分野においても、様々な種類のネットワークが存在しており、上記で説明したコネクション型とコネクションレス型、コネクション型でも通常タイプ、パイプライン型タイプの全てに対応できるネットワークもあれば、コネクション型の通常タイプにしか対応できないネットワークもある。全対応型のネットワークとコネクション型の通常タイプのみ対応のネットワークとをプロトコル変換によって中継しようとする場合、中継時に通常タイプのみに合わせる必要がある。 There are various types of networks in the field called industrial networks, and there are networks that can handle both the connection type and connectionless type described above, and the connection type as well as the normal type and pipeline type. Some networks can only handle the normal type of connection. When relaying between a network that supports all types and a network that supports only the connection-type normal type by protocol conversion, it is necessary to match only the normal type when relaying.
 そのような中継を行う場合に、通常のプロトコル変換装置はフレームやパケットをFirst-in First-out方式で変換するため、優先データなどで同期性を強く要求される産業ネットワークの場合に対応できないといった問題があった。 When performing such relaying, normal protocol conversion devices convert frames and packets using the first-in first-out method, so it is not possible to handle industrial networks that require strong synchronization with priority data. There was a problem.
 本発明は、このような状況を鑑みたものであり、異なるプロトコルを有するネットワークを中継させる場合であっても、同期性の要求される優先データを優先的に処理できるプロトコル変換装置を実現することを目的とする。 The present invention has been made in view of such a situation, and realizes a protocol converter capable of preferentially processing priority data requiring synchronization even when relaying networks having different protocols. With the goal.
 上述した課題を解決し、目的を達成するために、本発明は、要求と要求に対する応答とを交互に行う第1のプロトコルと、要求に対する応答を待たずに複数の要求をおくる第2のプロトコルとの両方に対応する第1のネットワークに接続され、フレームの送受信を行う第1のインターフェースと、第1のプロトコルのみに対応した第2のネットワークと接続され、フレームの送受信を行う第2のインターフェースと、第1のインターフェースで受信した要求または優先処理すべき要求である直接要求を含むフレームに対し第2のネットワークに適合したフレームに変換するとともに、第2のインターフェースで受信した要求または直接要求の応答のフレームに対し第1のネットワークに適合したフレームに変換するプロトコル変換部と、第2のネットワークからの応答の受信有無及び第1のネットワークからの直接要求の有無に応じて第2のインターフェースに出力するフレームを選択するとともに、第2のネットワークから直接要求の応答の有無に応じて第1のインターフェースに出力するフレームを選択する出力制御部とを備えることを特徴とする。 In order to solve the above-described problems and achieve the object, the present invention provides a first protocol that alternately performs a request and a response to the request, and a second protocol that sends a plurality of requests without waiting for a response to the request. The first interface connected to the first network corresponding to both of the above and the second interface connected to the second network corresponding to only the first protocol and transmitted and received the frame. A frame including a direct request which is a request received at the first interface or a request to be preferentially processed is converted into a frame suitable for the second network, and the request or direct request received at the second interface is converted. A protocol converter for converting the response frame into a frame suitable for the first network; A frame to be output to the second interface is selected according to whether or not a response is received from the second network and whether or not there is a direct request from the first network. And an output control unit that selects a frame to be output to one interface.
 本発明にかかる装置は、上記の構成を備えるため、異なるプロトコルを有するネットワークを中継させる場合であっても、同期性の要求される優先データを優先的に処理できるという効果を奏する。 Since the apparatus according to the present invention has the above-described configuration, even if a network having a different protocol is relayed, there is an effect that priority data requiring synchronization can be preferentially processed.
実施の形態1における設備系ネットワーク内のゲートウェイ装置100を示す図。FIG. 3 shows a gateway device 100 in the equipment network in the first embodiment. コネクション型通信の通常タイプ、パイプラインタイプ、コネクションレス通信についての要求と応答を時系列に示した図。The figure which showed the request and response about the normal type of connection type communication, a pipeline type, and connectionless communication in time series. 実施の形態1におけるPLC101とスレーブ102とがプロトコル変換装置100を経由して通信するシーケンス例を示す図。FIG. 4 is a diagram illustrating a sequence example in which the PLC 101 and the slave 102 in the first embodiment communicate via the protocol conversion device 100. 実施の形態1におけるネットワークA103がパイプライン型通信と直接要求による優先通信を行う場合のプロトコル変換装置100が行うシーケンスの例を示す図。The figure which shows the example of the sequence which the protocol converter 100 performs when the network A103 in Embodiment 1 performs the priority communication by a pipeline type communication and a direct request | requirement. 図4のシーケンスで動作するプロトコル変換装置100の動作のフローチャート。The flowchart of operation | movement of the protocol converter 100 which operate | moves in the sequence of FIG. 実施の形態1におけるプロトコル変換装置100の構成図。1 is a configuration diagram of a protocol conversion device 100 according to Embodiment 1. FIG. 実施の形態1と実施の形態2における要求フレームの違いを示す図。The figure which shows the difference of the request | requirement frame in Embodiment 1 and Embodiment 2. FIG. 実施の形態2におけるネットワークA103から複数の指令を一つのフレームにまとめた場合のプロトコル変換装置100が行うシーケンスの例を示す図。The figure which shows the example of the sequence which the protocol converter 100 performs at the time of putting together several instruction | command from the network A103 in Embodiment 2 in one frame. 実施の形態3におけるネットワークA103から複数の指令を一つのフレームにまとめた場合のプロトコル変換装置100が行うシーケンスの例を示す図。The figure which shows the example of the sequence which the protocol converter 100 performs at the time of putting together several instruction | command from the network A103 in Embodiment 3 in one flame | frame. 図9のシーケンスで動作するプロトコル変換装置100の動作のフローチャート。10 is a flowchart of the operation of the protocol conversion apparatus 100 that operates in the sequence of FIG.
 以下に、本発明にかかるプロトコル変換装置、及びプロトコル変換方法の実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。 Hereinafter, embodiments of a protocol conversion apparatus and a protocol conversion method according to the present invention will be described in detail with reference to the drawings. Note that the present invention is not limited to the embodiments.
実施の形態1.
 図1は実施の形態1におけるプロトコル変換装置を有する産業用ネットワークシステムの例を示す図である。
 構成について説明する。
Embodiment 1 FIG.
FIG. 1 is a diagram showing an example of an industrial network system having a protocol conversion apparatus according to the first embodiment.
The configuration will be described.
 PLC101とプロトコル変換装置100との間のネットワーク103は、コネクション型とコネクションレス型、コネクション型でも通常タイプ、パイプライン型タイプの全てに対応できるネットワーク(以下ネットワークAと称す)である。少なくとも、本実施例ではコネクション型すべてのものを対象に説明する。一方で、プロトコル変換装置100とデバイス102との間のネットワーク104は、コネクション型の通常タイプのみ対応のネットワークである(以下ネットワークBと称す)。 The network 103 between the PLC 101 and the protocol conversion apparatus 100 is a network (hereinafter referred to as a network A) that can handle all of the connection type, connectionless type, connection type, normal type, and pipeline type. In this embodiment, at least the connection type will be described. On the other hand, the network 104 between the protocol conversion apparatus 100 and the device 102 is a network that supports only a connection-type normal type (hereinafter referred to as network B).
 図1において、PLC(Programmable Logic Controller)101は、プロトコル変換装置100を経由してデバイス102と接続されている。
 PLC101は、デバイス102に対し指令を出すとともに、その指令の情報をネットワークA103に出力する。また、PLC101はデバイス102からネットワークB104、プロトコル変換装置100を経由してネットワークA103に出力された応答の情報を受信する。
In FIG. 1, a PLC (Programmable Logic Controller) 101 is connected to a device 102 via a protocol converter 100.
The PLC 101 issues a command to the device 102 and outputs information on the command to the network A103. The PLC 101 also receives response information output from the device 102 to the network A 103 via the network B 104 and the protocol converter 100.
 プロトコル変換装置100は、ネットワークA103へ出力された、PLC101からデバイス102向けの指令の情報を受信し、変換してデバイス102が接続されているネネットワークB104へ出力する。また、プロトコル変換装置100は、ネットワークB104へ出力された、デバイス102からPLC101向けの応答の情報を受信し、変換してPLC101が接続されているネットワークA103へ出力する。
 デバイス102はネットワークB104に接続されるとともに、PLC101からの指令の情報を受信し、PLC101向けの応答の情報を出力する。
The protocol conversion apparatus 100 receives the command information for the device 102 from the PLC 101 output to the network A 103, converts it, and outputs it to the network B 104 to which the device 102 is connected. Further, the protocol conversion apparatus 100 receives the response information for the PLC 101 from the device 102 output to the network B 104, converts it, and outputs it to the network A 103 to which the PLC 101 is connected.
The device 102 is connected to the network B 104, receives command information from the PLC 101, and outputs response information for the PLC 101.
 尚、図1はネットワークAにつながっているPLC101とプロトコル変換装置100は1台ずつであるがお互い複数台ずつであってもよい。また、ネットワークBにつながっているプロトコル変換装置100とデバイスは1台ずつであるが、一つのネットワークBにつながるプロトコル変換装置100は1台となるが、デバイス102に関しては複数台つながっていてもよい。 Although FIG. 1 shows one PLC 101 and one protocol conversion device 100 connected to the network A, a plurality of PLCs may be provided. Further, although one protocol conversion device 100 and one device are connected to the network B, one protocol conversion device 100 is connected to one network B, but a plurality of devices 102 may be connected. .
 図2は、上記で説明したコネクション型通信の通常タイプ、パイプラインタイプ、コネクションレス通信についての要求と応答を時系列に示した図である。
 図2の左側は、コネクション型通信の通常タイプであり、マスタ(本実施の形態ではPLC101に相当)の要求とスレーブ(本実施の形態ではデバイス102に相当)の応答が交互になされている。
 図2の中央は、コネクション型通信のパイプライン型タイプを示している。マスタからスレーブからの応答あるなしにかかわらず一定間隔で要求を送信し、スレーブは、受信した要求順に応答をしている。
 図2の右側は、コネクションレス型通信を示しており、マスタからスレーブへ送信のみ行っている。
FIG. 2 is a diagram showing, in time series, requests and responses for the normal type, pipeline type, and connectionless communication of the connection type communication described above.
The left side of FIG. 2 is a normal type of connection-type communication, in which requests of a master (corresponding to the PLC 101 in this embodiment) and responses of slaves (corresponding to the device 102 in this embodiment) are alternately performed.
The center of FIG. 2 shows a pipeline type of connection type communication. Regardless of whether there is a response from the master or from the slave, requests are transmitted at regular intervals, and the slave responds in the order received.
The right side of FIG. 2 shows connectionless communication, in which only transmission from the master to the slave is performed.
 図3は、実施の形態1におけるPLC101とスレーブ102とがプロトコル変換装置100を経由して通信するシーケンス例を示す図である。
 上述したようにPLC101とプロトコル変換装置100との間のネットワークA103は、図2に示したすべてのタイプに対応可能であるが、プロトコル変換装置100とスレーブ102との間のネットワークB104は、図2の左側のコネクション型通信の通常タイプのみ対応可能である。したがって、通常のプロトコル変換装置の場合は、フレームやパケットをFirst-in First-out方式で変換するため、ネットワークA103側についてもコネクション型通信の通常タイプに合わせる必要がある、また本実施の形態でもネットワークA103側についてコネクション型通信の通常タイプに合わせた場合、図3に示したシーケンスとなる。
FIG. 3 is a diagram illustrating a sequence example in which the PLC 101 and the slave 102 communicate with each other via the protocol conversion apparatus 100 according to the first embodiment.
As described above, the network A103 between the PLC 101 and the protocol conversion apparatus 100 can cope with all types shown in FIG. 2, but the network B104 between the protocol conversion apparatus 100 and the slave 102 is connected to FIG. Only the normal type of connection-type communication on the left side of can be supported. Therefore, in the case of a normal protocol conversion device, frames and packets are converted by the first-in first-out method, so the network A 103 side also needs to be adapted to the normal type of connection-type communication. Also in this embodiment, When the network A 103 side is adapted to the normal type of connection type communication, the sequence shown in FIG. 3 is obtained.
 次に、ネットワークA103の様々な通信タイプ対してプロトコル変換装置100が行う処理について説明する。
 図4は、実施の形態1におけるネットワークA103がパイプライン型通信と直接要求による優先通信を行う場合のプロトコル変換装置100が行うシーケンスの例を示す図である。
Next, processing performed by the protocol conversion apparatus 100 for various communication types of the network A103 will be described.
FIG. 4 is a diagram illustrating an example of a sequence performed by the protocol conversion apparatus 100 when the network A 103 according to the first embodiment performs priority communication based on pipeline-type communication and a direct request.
 図4において、まずPLC101は、デバイス102に対する接続要求を出力する。ネットワークA103を経由して受信したプロトコル変換装置100は、接続要求をネットワークB104に適合するプロトコルに変換したうえでデバイス102宛てに接続要求の転送を行う。デバイス102は接続要求の応答をPLC101宛てに出力し、プロトコル変換装置100は、受信した接続要求の応答をネットワークA103に適合したプロトコルに変換したのち、ネットワークA103に接続されたPLC101宛てに接続要求の応答転送を行う。 In FIG. 4, first, the PLC 101 outputs a connection request to the device 102. The protocol conversion apparatus 100 received via the network A 103 converts the connection request into a protocol compatible with the network B 104 and transfers the connection request to the device 102. The device 102 outputs a connection request response to the PLC 101. The protocol conversion apparatus 100 converts the received connection request response into a protocol compatible with the network A103, and then sends a connection request response to the PLC 101 connected to the network A103. Perform response forwarding.
 PLC101とデバイス102との接続が確立された後、PLC101は、要求CI1~CI3(CIは制御指示の略、数字は制御指示の番号)をコネクション型通信のパイプライン型タイプでデバイス102宛に送信する。その後、すぐにPLC101は、優先制御される必要のある直接要求をデバイス102宛に送信したとする。 After the connection between the PLC 101 and the device 102 is established, the PLC 101 transmits the requests CI1 to CI3 (CI is an abbreviation of a control instruction, and a number is a control instruction number) to the device 102 in a connection type communication pipeline type. To do. Thereafter, it is assumed that the PLC 101 immediately transmits a direct request to the device 102 that needs priority control.
 プロトコル変換装置100は、受信した要求CI1をネットワークB104に適合するよう変換したのち、デバイス102に転送する。
 デバイス102より要求CI1の応答を受信するとプロトコル変換装置100は、ネットワークA103に適合するよう変換したのち、PLC101宛てに転送するとともに、受信した要求CI2をネットワークB104に適合するよう変換したのち、デバイス102に転送する。
The protocol conversion apparatus 100 converts the received request CI1 so as to conform to the network B104, and then transfers it to the device 102.
Upon receiving the request CI1 response from the device 102, the protocol conversion apparatus 100 converts it so as to conform to the network A103, transfers it to the PLC 101, and converts the received request CI2 so as to conform to the network B104. Forward to.
 プロトコル変換装置100は、デバイスから受信した要求CI2の応答の処理中に、PLC101から要求CI3と直接要求を受信する。
 その場合は、プロトコル変換装置100は、直接要求をネットワークB104に適合するよう変換したのち、デバイス102に転送する。そして、プロトコル変換装置100は、デバイスから受信した要求CI2の応答をネットワークA103に適合するよう変換したのち、PLC101に転送する。
The protocol conversion apparatus 100 receives the request CI3 and the direct request from the PLC 101 during the processing of the response of the request CI2 received from the device.
In that case, the protocol conversion apparatus 100 converts the direct request so as to conform to the network B 104 and then transfers the request to the device 102. Then, the protocol conversion apparatus 100 converts the response of the request CI2 received from the device so as to conform to the network A103, and then transfers it to the PLC101.
 次に、プロトコル変換装置100は、デバイス102から受信した直接要求の応答をネットワークA103に適合するよう変換したのち、PLC101に転送したのちに、受信していた要求CI3をネットワークB104に適合するよう変換したのち、デバイス102に転送する。そして、要求CI3の応答を受信すると、プロトコル変換装置100は、ネットワークA103に適合するよう変換したのち、PLC101に転送する。 Next, the protocol conversion apparatus 100 converts the response of the direct request received from the device 102 so as to be compatible with the network A103, and after transferring the response to the PLC 101, converts the received request CI3 so as to be compatible with the network B104. After that, the data is transferred to the device 102. When the response of the request CI3 is received, the protocol conversion device 100 converts the request CI3 so as to conform to the network A103, and then transfers it to the PLC101.
 最後に、プロトコル変換装置100は、PLC101から接続終了要求を受信すると、ネットワークB104に適合するよう変換したのち、デバイス102に転送する。そして、接続終了要求の応答を受信すると、プロトコル変換装置100は、ネットワークA103に適合するよう変換したのち、PLC101に転送し、接続が終了となる。 Finally, upon receiving a connection end request from the PLC 101, the protocol conversion apparatus 100 converts the request to conform to the network B 104 and then transfers it to the device 102. Then, when receiving a response to the connection end request, the protocol conversion device 100 converts it to conform to the network A103 and then transfers it to the PLC 101, and the connection is ended.
 次に、図4のシーケンスが行われた時のプロトコル変換装置100の動作のフローチャートについて説明する。
 図5は、図4のシーケンスで動作するプロトコル変換装置100の動作のフローチャートである。
Next, a flowchart of the operation of the protocol conversion apparatus 100 when the sequence of FIG. 4 is performed will be described.
FIG. 5 is a flowchart of the operation of the protocol conversion apparatus 100 operating in the sequence of FIG.
 まず、ステップS501において接続(CONNECTION)が確立されたことを確認する。確立されていなければステップS514においてエラーとして処理される。確立していた場合はステップS502または、ステップS508へ進む。
 ステップS502において、PLC101からの要求を受信する。図4においては、要求CI1~3、及び直接要求の受信が該当する。
First, it is confirmed in step S501 that a connection (CONNECTION) has been established. If not established, it is processed as an error in step S514. If it has been established, the process proceeds to step S502 or step S508.
In step S502, a request from the PLC 101 is received. In FIG. 4, the requests CI1 to CI3 and the reception of the direct request are applicable.
 ステップS503において、各々の要求に対し、ネットワークA103からネットワークB104に適合できるようプロトコルを変換する。
 ネットワークを異なる種類のものに変換する際に、プロトコル変換装置100を経由後のネットワーク上で解釈できるようにフレーム内のヘッダ及び実データも含めて変換するコンバート方式と、マスタ側であらかじめ変換後のネットワークのプロトコルに沿ったデータを生成しておき、プロトコル変換装置100ではフレームのヘッダのみ変換するカプセル化方式とがある。本実施の形態ではいずれでも可能だが、コンバート方式で説明する。 
In step S503, for each request, the protocol is converted so that the network A103 can be adapted to the network B104.
When converting the network to a different type, a conversion method for converting the header and actual data in the frame so that it can be interpreted on the network after passing through the protocol conversion device 100, There is an encapsulation method in which data in accordance with a network protocol is generated and the protocol conversion apparatus 100 converts only the frame header. In this embodiment, either is possible, but the conversion method will be described.
 ステップS504において、プロトコル変換装置100は、デバイス102からネットワークB104経由での応答を受信しているかを判断してNOの場合は、ステップS504の動作を繰り返す。図4における要求CI3を受信した時に要求CI2の応答を受信していない場合に該当する。ネットワークB104は、通常のコネクションタイプのため、応答が来ない限り、ネットワークB104側へ要求の転送ができないためである。 In step S504, the protocol conversion apparatus 100 determines whether a response is received from the device 102 via the network B 104. If NO, the operation of step S504 is repeated. This corresponds to the case where the response of the request CI2 is not received when the request CI3 in FIG. 4 is received. This is because the network B 104 is a normal connection type, and unless a response is received, the request cannot be transferred to the network B 104 side.
 ステップS504において、応答を受信した後(図4における要求CI3を受信した時に要求CI2の応答を受信していた場合)、ステップS505において、プロトコル変換装置100は、直接要求を受信しているか否かを確認する。直接要求を受信していた場合は、ステップS507において、プロトコル変換装置100は、先に直接要求をネットワークB104経由でデバイス102宛に転送し、ステップS504へ戻る。図4でいうと、プロトコル変換装置100が要求CI3及び直接要求を受信後、要求CI2の応答を受信し、直接要求をデバイス102宛てに転送した部分にあたる。 In step S504, after receiving the response (when the request CI2 response was received when the request CI3 in FIG. 4 was received), in step S505, the protocol conversion apparatus 100 determines whether or not the request has been received directly. Confirm. If a direct request has been received, in step S507, the protocol conversion apparatus 100 first transfers the direct request to the device 102 via the network B 104, and returns to step S504. Referring to FIG. 4, the protocol conversion apparatus 100 receives the request CI 3 and the direct request, receives the response of the request CI 2, and transfers the direct request to the device 102.
 ステップS505において、プロトコル変換装置100が、直接要求を受信していない場合には、ステップS506において直接要求以外の要求を転送する。図4でいうと、PLC101より要求CI2の受信後、要求CI2をデバイス102へ転送した部分にあたる。 In step S505, if the protocol conversion apparatus 100 has not received a direct request, the request other than the direct request is transferred in step S506. In FIG. 4, the request CI 2 is transferred to the device 102 after receiving the request CI 2 from the PLC 101.
 次にステップS513にて接続(CONNECTION)が終了しているかどうかを確認し、NOであれば、プロトコル変換装置100は、処理を継続する。YESであれば終了となる。 Next, in step S513, it is confirmed whether or not the connection (CONNECTION) is completed. If NO, the protocol conversion apparatus 100 continues the process. If YES, the process will end.
 次に、ステップS508の場合について説明する。ステップS508において、プロトコル変換装置100は、デバイス102から要求または直接要求に対する応答を受信する。次に、ステップS509において、プロトコル変換装置100は、ネットワークB104からネットワークA103に適合できるようプロトコルを変換する。 Next, the case of step S508 will be described. In step S508, the protocol conversion apparatus 100 receives a response to the request or direct request from the device 102. In step S509, the protocol conversion apparatus 100 converts the protocol so that the network B104 can be adapted to the network A103.
 次に、ステップS510において、プロトコル変換した応答の中に直接要求に対する応答があった場合は、ステップS511において直接要求に対する応答をネットワークA103に接続されているPLC101宛てに転送する。またステップS510においてプロトコル変換した応答の中に直接要求に対する応答がなかった場合は、要求の応答を転送する。 Next, when there is a response to the direct request in the response subjected to protocol conversion in step S510, the response to the direct request is transferred to the PLC 101 connected to the network A103 in step S511. If there is no response to the direct request in the response converted in step S510, the request response is transferred.
 最後に、プロトコル変換装置100の構成について説明する。
 図6は、実施の形態1におけるプロトコル変換装置100の構成図である。
 第1のインターフェース1は、ネットワークA103を経由して接続されるPLC101からの要求を受信するともに、応答の転送を行う。図5でいうと、S501、S511、S512に該当する。
 図6における第2のインターフェース2は、ネットワークB104を経由して接続されるデバイス102に対して要求を転送するとともに、デバイス102からの要求に対する応答を受信する。図5でいうとS506、S507、S508に該当する。
Finally, the configuration of the protocol conversion apparatus 100 will be described.
FIG. 6 is a configuration diagram of the protocol conversion apparatus 100 according to the first embodiment.
The first interface 1 receives a request from the PLC 101 connected via the network A 103 and transfers a response. In FIG. 5, this corresponds to S501, S511, and S512.
The second interface 2 in FIG. 6 transfers a request to the device 102 connected via the network B 104 and receives a response to the request from the device 102. In FIG. 5, this corresponds to S506, S507, and S508.
 図6におけるプロトコル変換部3は、第1のインターフェースから受信した要求をネットワークB104に適合するように変換するとともに出力制御部4に出力する。また、プロトコル変換部3は、第2のインターフェースから受信した要求をネットワークA103に適合するように変換するとともに出力制御部4に出力する。図5でいうとS503,S509に該当する。
 図6における出力制御部4は、ネットワークB104に適合したプロトコル変換後のフレームを応答の受信有無、直接要求の有無に応じて出力するフレームを選択したうえで、第2のインターフェースに出力する。図5では、S504,S505に該当する。
 また、図6における出力制御部4は、ネットワークA103に適合したプロトコル変換後のフレームを応答の直接要求の有無に応じて出力するフレームを選択したうえで、第2のインターフェースに出力する。図5では、S510に該当する。
The protocol conversion unit 3 in FIG. 6 converts the request received from the first interface so as to conform to the network B 104 and outputs it to the output control unit 4. Further, the protocol conversion unit 3 converts the request received from the second interface so as to conform to the network A 103 and outputs the request to the output control unit 4. In FIG. 5, this corresponds to S503 and S509.
The output control unit 4 in FIG. 6 selects a frame to be output according to the presence / absence of reception of a response and the presence / absence of a direct request for a frame after protocol conversion suitable for the network B 104, and outputs the selected frame to the second interface. In FIG. 5, this corresponds to S504 and S505.
Further, the output control unit 4 in FIG. 6 selects a frame for outputting a frame after protocol conversion suitable for the network A 103 according to the presence / absence of a direct response request, and then outputs the frame to the second interface. FIG. 5 corresponds to S510.
 したがって、プロトコル変換装置100は、要求と要求に対する応答を交互に行うプロトコルと、要求に対する応答を待たずに複数の要求を順次おくるプロトコルとの両方に対応する第1のネットワークA103に接続され、フレームの送受信を行う第1のインターフェース1と、要求と要求に対する応答を交互に行うプロトコルのみに対応した第2のネットワークB104と接続され、フレームの送受信を行う第2のインターフェース2と、第1のインターフェースA103で受信した要求または優先処理すべき要求である直接要求を含むフレームに対し第2のネットワークB104に適合したフレームに変換するとともに、第2のインターフェースで受信した要求または直接要求の応答のフレームに対し第1のネットワークA103に適合したフレームに変換するプロトコル変換部3と、第2のネットワークB104に適合するよう変換されたフレームに対し、第2のネットワークB104からの応答の受信有無及び第1のネットワークA103からの直接要求の有無に応じて第2のインターフェース2に出力するフレームを選択するとともに、第1のネットワークA103に適合するよう変換されたフレームに対し、第2のネットワークB104から直接要求の有無に応じて第1のインターフェース1に出力するフレームを選択する出力制御部4を備えたので、異なるプロトコルを有するネットワークを中継させる場合であっても、同期性の要求される優先データを優先的に処理できる。 Therefore, the protocol conversion apparatus 100 is connected to the first network A103 corresponding to both a protocol that alternately performs a request and a response to the request and a protocol that sequentially sends a plurality of requests without waiting for a response to the request. The first interface 1 that transmits and receives frames, the second interface 2 that is connected to the second network B104 that supports only the protocol that alternately performs requests and responses to requests, and that transmits and receives frames, and the first interface A frame including a direct request which is a request received in A103 or a request to be preferentially processed is converted into a frame suitable for the second network B104, and a frame received in response to the request or direct request received by the second interface is converted. For the first network A103 The protocol conversion unit 3 that converts the frame into a combined frame and the reception of a response from the second network B 104 and the direct request from the first network A 103 for the frame converted to be compatible with the second network B 104 A frame to be output to the second interface 2 is selected according to the presence / absence, and the first frame is selected according to the presence / absence of a direct request from the second network B 104 for the frame converted to be compatible with the first network A103. Since the output control unit 4 for selecting a frame to be output to the interface 1 is provided, priority data requiring synchronization can be preferentially processed even when a network having a different protocol is relayed.
 実施の形態2.
 実施の形態2では実施の形態1の構成、動作をすべて備え、かつネットワークA103において複数の要求が一つのフレームで通信される場合について説明する。
Embodiment 2. FIG.
In the second embodiment, a case will be described in which all the configurations and operations of the first embodiment are provided and a plurality of requests are communicated in one frame in the network A103.
 図7は、実施の形態1と実施の形態2における要求フレームの違いを示す図である。  実施の形態1の場合は、図7の上段側に示すように、一つのフレームに対し、一つの制御指示(CI1)の要求のみが記述され、PLC101から送信される場合を前提として説明した。実施の形態2においては、図7の下段側に示すように、一つのフレームに対し、複数の制御指示(CI1~CI4)の要求をまとめた形でPLC101から送信される場合について説明する。 FIG. 7 is a diagram showing a difference between request frames in the first embodiment and the second embodiment. In the case of the first embodiment, as described on the upper side of FIG. 7, the description has been made on the assumption that only one control instruction (CI1) request is described for one frame and transmitted from the PLC 101. In the second embodiment, as shown in the lower part of FIG. 7, a case will be described in which requests for a plurality of control instructions (CI1 to CI4) are transmitted from the PLC 101 for one frame.
 図7の下段側に示すように、一つのフレームに対し、複数の制御指示(CI1~CI4)の要求をまとめた場合は、ネットワークA103においては、複数の指令をまとめて一つのフレームで送受信することでフレームを効率的に利用することができるが、一方でネットワークB104においては、実施の形態1と同様に一つの指令を一つの要求としてデバイスに送信し、その応答を行うことを行うことが必要である。 As shown in the lower part of FIG. 7, when a plurality of requests for control instructions (CI1 to CI4) are collected for one frame, the network A103 transmits and receives a plurality of commands in one frame. In the network B104, on the other hand, as in the first embodiment, one command is sent to the device as one request, and the response can be performed. is necessary.
 実施の形態2におけるプロトコル変換装置100の構成自体は実施の形態1の図6に対し変化はないものの、特にプロトコル変換部3、出力処理部4での処理内容が異なる。同様にプロトコル変換装置100の動作を示すフローチャートも実施の形態1の図5に対して変化はないが、プロトコル変換部3、出力処理部4での処理内容の変更に伴い異なる部分があり、異なる部分のみ以下説明する。 Although the configuration itself of the protocol conversion apparatus 100 in the second embodiment is not changed from that in FIG. 6 of the first embodiment, the processing contents in the protocol conversion unit 3 and the output processing unit 4 are particularly different. Similarly, the flowchart showing the operation of the protocol conversion apparatus 100 is not different from that in FIG. 5 of the first embodiment, but there are different parts due to changes in the processing contents in the protocol conversion unit 3 and the output processing unit 4 and are different. Only the part will be described below.
 図6のプロトコル変換部3について、本実施の形態においては、図5のステップS502における要求の受信が複数の指示情報が一つのフレームに含まれるため、プロトコル変換部3の動作に相当するステップ503において、まずネットワークA103から受信した一つのフレームを複数の指令を一つ一つに分解してネットワークB104に適合するように変換する必要がある。ステップS504~ステップS507については実施の形態1と同じである。 With respect to the protocol conversion unit 3 in FIG. 6, in the present embodiment, the reception of the request in step S <b> 502 in FIG. 5 includes a plurality of instruction information in one frame, and therefore, step 503 corresponding to the operation of the protocol conversion unit 3. First, it is necessary to convert one frame received from the network A103 into a plurality of commands that are decomposed one by one and adapted to the network B104. Steps S504 to S507 are the same as those in the first embodiment.
 同様に、図6のプロトコル変換部3について、本実施の形態においては、図5のステップS509における直接要求の応答を除く要求に対する応答のプロトコル変換については、複数の応答を一つの一つのフレームにまとめる必要があるため、プロトコル変換部3の動作に相当するステップ509において、ネットワークB104から受信した一つの応答を複数束ねて一つのフレームとしてネットワークA103に適合するように変換し制御指示部4に出力する必要がある。 Similarly, with respect to the protocol conversion unit 3 in FIG. 6, in this embodiment, for protocol conversion of responses to requests other than direct request responses in step S509 in FIG. In step 509 corresponding to the operation of the protocol conversion unit 3, a plurality of responses received from the network B 104 are bundled and converted into one frame so as to be compatible with the network A 103 and output to the control instruction unit 4. There is a need to.
 図6の制御指示部4について、本実施の形態においては、動作に対応する図5のステップS510において、実施の形態1では一つの応答と直接応答との比較で行っていたが、本実施の形態では複数の応答を束ねた一つのフレームと直接応答との比較で行う点が異なる。それ以外は実施の形態1の場合と同じである。 In the present embodiment, the control instruction unit 4 in FIG. 6 is compared with a single response and a direct response in step S510 in FIG. 5 corresponding to the operation in the first embodiment. The mode is different in that it is performed by comparing one frame obtained by bundling a plurality of responses with a direct response. The rest is the same as in the first embodiment.
 次に本実施の形態におけるプロトコル変換装置100の通信のシーケンスについて説明する。図8は、実施の形態2におけるネットワークA103から複数の指令を一つのフレームにまとめた場合のプロトコル変換装置100が行うシーケンスの例を示す図である。 Next, a communication sequence of the protocol conversion apparatus 100 in this embodiment will be described. FIG. 8 is a diagram illustrating an example of a sequence performed by the protocol conversion apparatus 100 when a plurality of commands are collected into one frame from the network A 103 according to the second embodiment.
 図8において、実施の形態1で示した接続(CONNECTION)の確立、接続の終了の工程は実施の形態1のものと同じであるため、割愛する。
 PLC101とデバイス102との接続が確立された後、PLC101は、要求CI1~CI3(CIは制御指示の略、数字は制御指示の番号)を図7の下段に示すように一つのフレームに集約した状態でデバイス102宛に送信する。その後、すぐにPLC101は、優先制御される必要のある直接要求をデバイス102宛に送信したとする。
In FIG. 8, the connection (CONNECTION) establishment and connection termination steps shown in the first embodiment are the same as those in the first embodiment, and are therefore omitted.
After the connection between the PLC 101 and the device 102 is established, the PLC 101 aggregates the requests CI1 to CI3 (CI is an abbreviation for a control instruction, and a number is a control instruction number) into one frame as shown in the lower part of FIG. It transmits to the device 102 in the state. Thereafter, it is assumed that the PLC 101 immediately transmits a direct request to the device 102 that needs priority control.
 プロトコル変換装置100は、受信した要求CI1~CI3をフレームから一つずつ取り出してネットワークB104に適合するよう変換したのち、要求C1からデバイス102に転送する。
 デバイス102より要求CI1の応答を受信するとプロトコル変換装置100は、次に要求CI2をデバイス102に転送する。
The protocol conversion apparatus 100 extracts the received requests CI1 to CI3 one by one from the frame, converts them so as to be compatible with the network B104, and then transfers them from the request C1 to the device 102.
When receiving the response of the request CI 1 from the device 102, the protocol conversion apparatus 100 next transfers the request CI 2 to the device 102.
 プロトコル変換装置100は、デバイスから受信した要求CI2の応答待ちの時に、PLC101から直接要求を受信する。
 その場合は、プロトコル変換装置100は、直接要求をネットワークB104に適合するよう変換したのち、要求CI3よりも先に直接要求をデバイス102に転送する。そして、プロトコル変換装置100は、デバイスから受信した直接要求の応答をネットワークA103に適合するよう変換したのち、PLC101に転送するとともに、直接要求をネットワークB104に適合するよう変換済の要求CI3をデバイス102に転送する。
The protocol conversion apparatus 100 receives a request directly from the PLC 101 when waiting for a response to the request CI2 received from the device.
In this case, the protocol conversion apparatus 100 converts the direct request so as to conform to the network B 104, and then transfers the direct request to the device 102 before the request CI3. Then, the protocol conversion apparatus 100 converts the response of the direct request received from the device so as to conform to the network A103, and then transfers the request CI3 that has been converted so as to conform to the network B104 to the device B102. Forward to.
 プロトコル変換装置100は、デバイスから受信した要求CI3すると、デバイスから受信した要求CI1~3の応答すべてをネットワークA103に適合するよう変換し、一つのフレームに収納して、PLC101に転送する。 When the request CI 3 received from the device is received, the protocol conversion apparatus 100 converts all the responses of the requests CI 1 to 3 received from the device so as to conform to the network A 103, stores them in one frame, and transfers them to the PLC 101.
 したがって、プロトコル変換装置100は、要求と要求に対する応答を交互に行うプロトコルと、要求と要求に対する応答を待たずに複数の要求を一つのフレームとして送るプロトコルとの両方に対応する第1のネットワークA103に接続され、フレームの送受信を行う第1のインターフェース1と、要求と要求に対する応答を交互に行うプロトコルのみに対応した第2のネットワークB104と接続され、フレームの送受信を行う第2のインターフェース2と、第1のインターフェースA103で受信した優先処理すべき要求である直接要求を含むフレームと、複数の要求を束ねたフレームとに対し第2のネットワークB104に適合した一つの要求に対応する一つフレームに変換するとともに、第2のインターフェースで受信した直接要求に対する応答に対し第1のネットワークA103に適合したフレームに変換するとともに一つの要求に対応する一つ応答のフレームに対し第1のネットワークA103に適合した複数の応答を束ねた一つのフレームに変換するプロトコル変換部3と、第2のネットワークB104に適合するよう変換されたフレームに対し、第2のネットワークB104からの応答の受信有無及び第1のネットワークA103からの直接要求の有無に応じて第2のインターフェース2に出力するフレームを選択するとともに、第1のネットワークA103に適合するよう変換されたフレームに対し、第2のネットワークB104から直接要求の応答の有無に応じて第1のインターフェース1に出力するフレームを選択する出力制御部4を備えたので、異なるプロトコルを有するネットワークを中継させる場合であっても、同期性の要求される優先データを優先的に処理できる。 Therefore, the protocol conversion apparatus 100 includes the first network A103 that supports both a protocol that alternately performs a request and a response to the request, and a protocol that transmits a plurality of requests as one frame without waiting for the request and the response to the request. A first interface 1 that transmits and receives a frame, and a second interface 2 that transmits and receives a frame, and is connected to a second network B 104 that supports only a protocol that alternately performs a request and a response to the request. One frame corresponding to one request conforming to the second network B104 for the frame including the direct request that is the request to be preferentially processed received by the first interface A103 and the frame in which a plurality of requests are bundled As well as directly received by the second interface. A response to the request is converted into a frame suitable for the first network A103, and a single response frame corresponding to one request is converted into a single frame in which a plurality of responses suitable for the first network A103 are bundled. The protocol conversion unit 3 and the frame converted so as to be compatible with the second network B104 are subjected to the first response according to whether a response is received from the second network B104 and whether there is a direct request from the first network A103. 2 to select the frame to be output to the interface 2 of the second network, and to the first interface 1 according to the presence / absence of a direct response from the second network B104 to the frame converted to be compatible with the first network A103. Since the output control unit 4 that selects the frame to be output is provided, Even in the case of relaying a network with that protocol, the priority data to be synchronized of the request can be processed preferentially.
 実施の形態3.
 実施の形態3では、実施の形態2の構成を全て備えた上で、ネットワークA103において一つのフレームに束ねられた複数の要求に対し、その応答に優先処理の有無がある場合について説明する。
Embodiment 3 FIG.
In the third embodiment, a case will be described in which all the configurations of the second embodiment are provided and there is priority processing in the response to a plurality of requests bundled in one frame in the network A103.
 図9は、実施の形態3におけるネットワークA103から複数の指令を一つのフレームにまとめた場合のプロトコル変換装置100が行うシーケンスの例を示す図である。  FIG. 9 is a diagram illustrating an example of a sequence performed by the protocol conversion apparatus 100 when a plurality of commands are collected into one frame from the network A 103 according to the third embodiment. *
 図9において、実施の形態1で示した接続(CONNECTION)の確立、接続の終了の工程は実施の形態1のものと同じであるため、割愛する。
 PLC101とデバイス102との接続が確立された後、PLC101は、要求CI1~CI3(CIは制御指示の略、数字は制御指示の番号)を図7の下段に示すように一つのフレームに集約した状態でデバイス102宛に送信する。その後、すぐにPLC101は、優先制御される必要のある直接要求をデバイス102宛に送信したとする。
 実施の形態2の場合は、すべての要求CI1~CI3の応答を一つのフレームに束ねて行う場合であるが、本実施の形態では、要求CI1は優先要求として定義され、すべての要求CI1~CI3であっても要求CI1の応答は優先して別のフレームで即時に応答する必要がある場合について説明する。
In FIG. 9, the connection (CONNECTION) establishment and connection termination steps shown in the first embodiment are the same as those in the first embodiment, and are therefore omitted.
After the connection between the PLC 101 and the device 102 is established, the PLC 101 aggregates the requests CI1 to CI3 (CI is an abbreviation for a control instruction, and a number is a control instruction number) into one frame as shown in the lower part of FIG. It transmits to the device 102 in the state. Thereafter, it is assumed that the PLC 101 immediately transmits a direct request to the device 102 that needs priority control.
In the second embodiment, the responses of all the requests CI1 to CI3 are bundled into one frame, but in this embodiment, the request CI1 is defined as a priority request, and all the requests CI1 to CI3 Even so, a case will be described in which the response of the request CI1 has priority and needs to be responded immediately in another frame.
 プロトコル変換装置100は、受信した要求CI1~CI3をフレームから一つずつ取り出してネットワークB104に適合するよう変換したのち、優先要求として定義される要求C1からデバイス102に転送する。
 デバイス102より要求CI1の応答を受信するとプロトコル変換装置100は、ネットワークA103に適合するよう変換したのち、PLC101宛てに転送するとともに、要求CI2をデバイス102に転送する。
The protocol conversion apparatus 100 extracts the received requests CI1 to CI3 one by one from the frame and converts them so as to conform to the network B104, and then transfers the request C1 defined as a priority request to the device 102.
Upon receiving the request CI1 response from the device 102, the protocol conversion apparatus 100 converts the request CI1 so as to be compatible with the network A103, and then transfers it to the PLC 101 and transfers the request CI2 to the device 102.
 プロトコル変換装置100は、デバイスから受信した要求CI2の応答待ちの時に、PLC101から直接要求を受信する。
 その場合は、プロトコル変換装置100は、直接要求をネットワークB104に適合するよう変換したのち、要求CI3よりも先に直接要求をデバイス102に転送する。そして、プロトコル変換装置100は、デバイスから受信した直接要求の応答をネットワークA103に適合するよう変換したのち、PLC101に転送するとともに、直接要求をネットワークB104に適合するよう変換済の要求CI3をデバイス102に転送する。
The protocol conversion apparatus 100 receives a request directly from the PLC 101 when waiting for a response to the request CI2 received from the device.
In this case, the protocol conversion apparatus 100 converts the direct request so as to conform to the network B 104, and then transfers the direct request to the device 102 before the request CI3. Then, the protocol conversion apparatus 100 converts the response of the direct request received from the device so as to conform to the network A103, and then transfers the request CI3 that has been converted so as to conform to the network B104 to the device B102. Forward to.
 プロトコル変換装置100は、デバイスから受信した要求CI3すると、デバイスから受信した要求CI2~3の応答をネットワークA103に適合するよう変換し、一つのフレームに収納して、PLC101に転送する。 When the request CI 3 received from the device is received, the protocol conversion apparatus 100 converts the responses of the requests CI 2 to 3 received from the device so as to conform to the network A 103, stores them in one frame, and transfers them to the PLC 101.
 次に構成と動作について説明する。実施の形態3におけるプロトコル変換装置100の構成自体は実施の形態1の図6に対し変化はないものの、実施の形態2と同様に特にプロトコル変換部3、出力処理部4での処理内容が異なる。
 プロトコル変換装置100の動作について説明する。
 図10は、図9のシーケンスで動作するプロトコル変換装置100の動作のフローチャートである。 
Next, the configuration and operation will be described. Although the configuration itself of the protocol conversion apparatus 100 in the third embodiment is not changed from that in FIG. 6 of the first embodiment, the processing contents in the protocol conversion unit 3 and the output processing unit 4 are particularly different as in the second embodiment. .
The operation of the protocol conversion apparatus 100 will be described.
FIG. 10 is a flowchart of the operation of the protocol conversion apparatus 100 that operates in the sequence of FIG.
 図9のフローチャートの数字は、図5と変更のない部分についてはそのままとしている。図9のステップの数字のうち、図5と変更の部分の詳細は実施の形態2に基づくものとする。図10について、図5と比較して変更のある部分を説明する。
 ステップS901において、要求に対する応答には、直接要求に対する応答と、優先的処理の要求の応答と、普通の要求の応答と3種類ある。いずれもネットワークA103に適合したプロトコルに変換する必要がある。図6のプロトコル変換装置100のプロトコル変換部3は、直接要求に対する応答及び優先的処理の要求の応答については、各々個別にフレームに応答を格納して出力制御部4に出力するのに対し、普通の要求に対する応答に対しては複数の応答を一つのフレームに収納してから出力制御部4に出力する。
The numbers in the flowchart in FIG. 9 are the same as those in FIG. Of the step numbers in FIG. 9, the details of the parts changed from FIG. 5 are based on the second embodiment. With respect to FIG. 10, a portion having a change compared to FIG.
In step S901, there are three types of responses to requests: responses to direct requests, requests for priority processing requests, and responses to normal requests. Either of them needs to be converted into a protocol compatible with the network A103. The protocol conversion unit 3 of the protocol conversion apparatus 100 in FIG. 6 stores the response to the direct request and the priority processing request individually in a frame and outputs the response to the output control unit 4. In response to a response to an ordinary request, a plurality of responses are stored in one frame and then output to the output control unit 4.
 図10のステップS510において直接要求の応答がない場合、ステップS902において優先的処理の要求に対する応答があるか否かを確認し、あればステップS903において優先的要求の応答をネットワークA103を介してPLC101に転送するとともに、なければステップS904において複数の要求に対する応答を一つのフレームにしたものをネットワークA103を介してPLC101に転送する。ステップS510、S511、S902~904は出力制御部4が処理する。 If there is no direct request response in step S510 of FIG. 10, it is checked in step S902 whether there is a response to the priority processing request. If there is a response, the priority request response is sent via the network A103 to the PLC 101 in step S903. If not, in step S904, a response to a plurality of requests in one frame is transferred to the PLC 101 via the network A103. The output control unit 4 processes steps S510, S511, and S902 to 904.
 図10のステップS510において直接要求の応答がない場合、ステップS902において優先的処理の要求に対する応答があるか否かを確認し、あればステップS903において優先的要求の応答をネットワークA103を介してPLC101に転送するとともに、なければステップS904において複数の要求に対する応答を一つのフレームにしたものをネットワークA103を介してPLC101に転送する。ステップS510、S511、S902~904は出力制御部4が処理する。 If there is no direct request response in step S510 of FIG. 10, it is checked in step S902 whether there is a response to the priority processing request. If there is a response, the priority request response is sent via the network A103 to the PLC 101 in step S903. If not, in step S904, a response to a plurality of requests in one frame is transferred to the PLC 101 via the network A103. The output control unit 4 processes steps S510, S511, and S902 to 904.
 尚、本実施の形態においては、優先的処理の要求が複数の要求を束ねたフレームCI1~3のうち、一番先のCI1に格納されているため、プロトコル変換装置100は、要求を転送する際に実施の形態2と差異は生じなかったが、優先的処理の要求が複数の要求を束ねたフレームCI1~3のうちCI2または3に格納されていた場合は、図10のステップS902~904と同様の処理を図10のステップS505のNO側に組み込むことでCI2またはCI3を優先的にデバイス102側に転送することができる。 In the present embodiment, since the request for preferential processing is stored in the first CI 1 among the frames CI 1 to 3 in which a plurality of requests are bundled, the protocol conversion apparatus 100 transfers the request. In this case, there is no difference from the second embodiment. However, when the request for preferential processing is stored in CI2 or 3 among the frames CI1 to CI3 in which a plurality of requests are bundled, steps S902 to S904 in FIG. CI2 or CI3 can be preferentially transferred to the device 102 side by incorporating the same processing on the NO side of step S505 in FIG.
 したがって、プロトコル変換装置100は、
 要求と要求に対する応答を交互に行うプロトコルと、要求と要求に対する応答を待たずに複数の要求を一つのフレームとして送るプロトコルとの両方に対応する第1のネットワークA103に接続され、フレームの送受信を行う第1のインターフェース1と、要求と要求に対する応答を交互に行うプロトコルのみに対応した第2のネットワークB104と接続され、フレームの送受信を行う第2のインターフェース2と、第1のインターフェースA103で受信した優先処理すべき要求である直接要求を含むフレームと、優先的に処理すべき優先要求を含む複数の要求を束ねたフレームとに対し第2のネットワークB104に適合した一つの要求に対応する一つフレームに変換するとともに、第2のインターフェースで受信した直接要求または優先要求に対する応答に対し各々第1のネットワークA103に適合したフレームに変換するとともに一つの要求に対応する一つ応答のフレームに対し第1のネットワークA103に適合した複数の応答を束ねた一つのフレームに変換するプロトコル変換部3と、第2のネットワークB104に適合するよう変換されたフレームに対し、第2のネットワークB104からの応答の受信有無及び第1のネットワークA103からの直接要求の有無に応じて第2のインターフェース2に出力するフレームを選択するとともに、第1のネットワークA103に適合するよう変換されたフレームに対し、第2のネットワークB104から直接要求の応答の有無及び優先要求の応答有無に応じて第1のインターフェース1に出力するフレームを選択する出力制御部4を備えたので、異なるプロトコルを有するネットワークを中継させる場合であっても、同期性の要求される優先データを優先的に処理できる。
Therefore, the protocol conversion apparatus 100 is
It is connected to the first network A 103 corresponding to both a protocol that alternately performs a request and a response to the request and a protocol that sends a plurality of requests as one frame without waiting for a request and a response to the request, and transmits and receives frames. The first interface 1 is connected to the second network B 104 that supports only the protocol that alternately performs the request and the response to the request, and is received by the second interface 2 that transmits and receives frames and the first interface A 103. One corresponding to the second network B 104 for a frame including a direct request which is a request to be preferentially processed and a frame including a plurality of requests including a priority request to be preferentially processed. Direct request received on the second interface or One frame in which a response to the priority request is converted into a frame suitable for each first network A103 and a plurality of responses suitable for the first network A103 are bundled with respect to one response frame corresponding to one request. Depending on whether or not a response is received from the second network B 104 and whether or not there is a direct request from the first network A 103 with respect to the protocol conversion unit 3 that converts to the second network B 104 The second interface 2 selects a frame to be output to the second interface 2 and determines whether or not there is a direct request response and a priority request response to the frame converted to be compatible with the first network A103. In response, select a frame to be output to the first interface 1 Since an output control unit 4, even in the case of relaying a network with different protocol, the priority data to be synchronized of the request can be processed preferentially.
 また、出力制御部4は、第2のネットワークB104からの応答の受信有無、第1のネットワークA103からの直接要求の有無、及び優先要求の有無に応じて第2のインターフェース2に出力するフレームを選択することで、異なるプロトコルを有するネットワークを中継させる場合であっても、より同期性の要求される優先データを優先的に処理できる。
The output control unit 4 also outputs a frame to be output to the second interface 2 according to whether a response is received from the second network B 104, whether there is a direct request from the first network A 103, and whether there is a priority request. By selecting, it is possible to preferentially process priority data that requires more synchronization even when relaying networks having different protocols.
   1 第1のインターフェース
   2 第2のインターフェース
   3 プロトコル変換部
   4 出力制御部
 100 プロトコル変換装置
 101 PLC
 102 デバイス
 103 ネットワークA
 104 ネットワークB
DESCRIPTION OF SYMBOLS 1 1st interface 2 2nd interface 3 Protocol conversion part 4 Output control part 100 Protocol conversion apparatus 101 PLC
102 device 103 network A
104 Network B

Claims (5)

  1.  要求と前記要求に対する応答とを交互に行う第1のプロトコルと、前記要求に対する応答を待たずに複数の要求をおくる第2のプロトコルとの両方に対応する第1のネットワークに接続され、フレームの送受信を行う第1のインターフェースと、
     前記第1のプロトコルのみに対応した第2のネットワークと接続され、フレームの送受信を行う第2のインターフェースと、
     前記第1のインターフェースで受信した要求または優先処理すべき要求である直接要求を含むフレームに対し、前記第2のネットワークに適合したフレームに変換するとともに、前記第2のインターフェースで受信した前記要求または前記直接要求の応答のフレームに対し前記第1のネットワークに適合したフレームに変換するプロトコル変換部と、
     前記第2のネットワークからの応答の受信有無、及び前記第1のネットワークからの前記直接要求の有無に応じて前記第2のインターフェースに出力するフレームを選択するとともに、前記第2のネットワークから前記直接要求の応答の有無に応じて第1のインターフェースに出力するフレームを選択する出力制御部と、
    を備えることを特徴とするプロトコル変換装置。
    Connected to a first network corresponding to both a first protocol that alternately performs a request and a response to the request and a second protocol that sends a plurality of requests without waiting for a response to the request, A first interface for transmitting and receiving;
    A second interface connected to a second network supporting only the first protocol and transmitting and receiving a frame;
    A frame including a request received at the first interface or a direct request that is a request to be preferentially processed is converted into a frame suitable for the second network, and the request received at the second interface or A protocol converter for converting the frame of the response of the direct request into a frame suitable for the first network;
    A frame to be output to the second interface is selected according to whether or not a response from the second network is received and whether or not the direct request is received from the first network. An output control unit that selects a frame to be output to the first interface according to the presence or absence of a response to the request;
    A protocol conversion apparatus comprising:
  2.  前記第1のインターフェースは、第1のネットワークにおいて、前記複数の要求及び前記複数の要求に対する応答に対し、一つのフレームで送受信し、
     前記プロトコル変換部は、前記一つのフレームに含まれる複数の要求に対し、前記第2のネットワークに適合した一つの要求に対応する一つフレームに変換するとともに、前記複数の要求に対する応答については、前記第1のネットワークに適合した前記複数の要求に対応する一つフレームに変換すること
    を特徴とする請求項1に記載のプロトコル変換装置。
    The first interface transmits and receives in one frame to the plurality of requests and responses to the plurality of requests in the first network,
    The protocol conversion unit converts a plurality of requests included in the one frame into one frame corresponding to one request adapted to the second network, and for a response to the plurality of requests, 2. The protocol conversion apparatus according to claim 1, wherein the protocol conversion apparatus converts the frame into one frame corresponding to the plurality of requests adapted to the first network.
  3.  前記第1のインターフェースは、第1のネットワークにおいて、優先的に処理すべき優先要求を含む前記複数の要求に対し一つのフレームで受信するとともに、優先的に処理すべき優先要求に対する応答について一つのフレームで送信するとともに、前記優先要求以外の複数の応答について一つのフレームで送信し、
     前記プロトコル変換部は、前記優先要求に対する応答については、前記第1のネットワークに適合した前記優先要求の要求に対応する一つフレームに変換し、前記優先要求以外の前記複数の要求に対する応答については、前記第1のネットワークに適合した前記複数の要求に対応する一つフレームに変換すること
     を特徴とする請求項2に記載のプロトコル変換装置。
    The first interface receives, in one frame, the plurality of requests including the priority request to be preferentially processed in the first network, and one response to the priority request to be preferentially processed. Transmit in a frame, and transmit in a single frame for a plurality of responses other than the priority request,
    The protocol conversion unit converts a response to the priority request into a single frame corresponding to the request for the priority request adapted to the first network, and a response to the plurality of requests other than the priority request. 3. The protocol conversion device according to claim 2, wherein the protocol conversion device converts the frame into one frame corresponding to the plurality of requests adapted to the first network.
  4.  前記出力制御部は、前記第2のネットワークからの応答の受信有無、前記第1のネットワークからの前記直接要求の有無、及び前記優先要求の有無に応じて第2のインターフェース2に出力するフレームを選択すること
     を特徴とする請求項3に記載のプロトコル変換装置。
    The output control unit outputs a frame to be output to the second interface 2 according to whether a response is received from the second network, whether there is the direct request from the first network, and whether there is a priority request. The protocol conversion device according to claim 3, wherein the protocol conversion device is selected.
  5.  請求項1から4のいずれかに記載のゲートウェイ装置と、前記第1のネットワークに接続され前記要求を送信するとともに前記要求に対する応答を受信するPLCと、前記第2のネットワークに接続され、前記第2のネットワークに適合した前記要求を受信するとともに、前記要求に対する応答を送信するデバイスとを備える産業ネットワークシステム。 5. The gateway device according to claim 1, a PLC that is connected to the first network, transmits the request and receives a response to the request, is connected to the second network, and An industrial network system comprising: a device that receives the request adapted to two networks and transmits a response to the request.
PCT/JP2014/002152 2014-04-16 2014-04-16 Protocol conversion apparatus and industrial network system WO2015159320A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/JP2014/002152 WO2015159320A1 (en) 2014-04-16 2014-04-16 Protocol conversion apparatus and industrial network system
TW103116040A TW201541914A (en) 2014-04-16 2014-05-06 Protocol conversion apparatus and industrial network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2014/002152 WO2015159320A1 (en) 2014-04-16 2014-04-16 Protocol conversion apparatus and industrial network system

Publications (1)

Publication Number Publication Date
WO2015159320A1 true WO2015159320A1 (en) 2015-10-22

Family

ID=54323575

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2014/002152 WO2015159320A1 (en) 2014-04-16 2014-04-16 Protocol conversion apparatus and industrial network system

Country Status (2)

Country Link
TW (1) TW201541914A (en)
WO (1) WO2015159320A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995647A (en) * 2019-10-24 2020-04-10 珠海格力电器股份有限公司 Protocol conversion method, device, equipment, storage medium and system
CN112468557A (en) * 2020-11-16 2021-03-09 北京百度网讯科技有限公司 Method, device, gateway and storage medium for providing network service
CN113395197A (en) * 2016-05-27 2021-09-14 松下电器(美国)知识产权公司 Gateway device, in-vehicle network system, transfer method, and program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5839140A (en) * 1981-08-31 1983-03-07 Fujitsu Ltd Response return system
JP2000224167A (en) * 1999-01-29 2000-08-11 Mitsubishi Electric Corp Installation remote access system, event occurrence detection program generator, internet linkage device, remote terminal and computer-readable recording medium
JP2010206252A (en) * 2009-02-27 2010-09-16 Mitsubishi Electric Corp Protocol conversion system, instruction device, protocol conversion device, and protocol conversion method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5839140A (en) * 1981-08-31 1983-03-07 Fujitsu Ltd Response return system
JP2000224167A (en) * 1999-01-29 2000-08-11 Mitsubishi Electric Corp Installation remote access system, event occurrence detection program generator, internet linkage device, remote terminal and computer-readable recording medium
JP2010206252A (en) * 2009-02-27 2010-09-16 Mitsubishi Electric Corp Protocol conversion system, instruction device, protocol conversion device, and protocol conversion method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395197A (en) * 2016-05-27 2021-09-14 松下电器(美国)知识产权公司 Gateway device, in-vehicle network system, transfer method, and program
CN113395197B (en) * 2016-05-27 2022-07-26 松下电器(美国)知识产权公司 Gateway device, in-vehicle network system, transfer method, and computer-readable recording medium
CN110995647A (en) * 2019-10-24 2020-04-10 珠海格力电器股份有限公司 Protocol conversion method, device, equipment, storage medium and system
CN112468557A (en) * 2020-11-16 2021-03-09 北京百度网讯科技有限公司 Method, device, gateway and storage medium for providing network service

Also Published As

Publication number Publication date
TW201541914A (en) 2015-11-01

Similar Documents

Publication Publication Date Title
US11477107B2 (en) Method for data communication in an industrial network, control method, device, computer program and computer-readable medium
JP6436242B2 (en) Industrial equipment communication system, communication method, and industrial equipment
KR102022731B1 (en) Method and gateway for extending ethercat nework
CN105451165B (en) near field communication method and device based on multiple protocols
JP2016511978A (en) Method, device and routing system for network virtualization data transmission
WO2015159320A1 (en) Protocol conversion apparatus and industrial network system
JP5696716B2 (en) Wireless communication system, wireless communication method, and wireless access point device
JP2013251899A (en) Field bus network having two masters and at least one slave
KR101179431B1 (en) Network Management System based on a EhterCAT And Managing Method thereof
JP2017135627A (en) Communication method
EP2884810A1 (en) Deterministic medium access control
WO2020209091A1 (en) Signal forwarding system, signal forwarding device, path control device, and signal forwarding method
JP5656306B1 (en) Synchronization establishment method
JP5223582B2 (en) Message transmission apparatus and message transmission method
CN104410723A (en) LSDB (LinkState Database) synchronization method and system in OSPF (Open Shortest Path First)
WO2010071319A3 (en) Building automation system, and building automation method using same
JP2010212938A (en) Ring type network system
JP5585876B2 (en) Media converter, switching hub, and auto-negotiation system
KR101615259B1 (en) Method, apparatus and system for transferring data to plurality of nodes
KR101615252B1 (en) Method, apparatus and system for transferring data to plurality of nodes
KR101717363B1 (en) Method and apparatus for changing role of controller in software defined networking environment
JP2008205568A (en) Field device control system and field device
JP5582270B1 (en) Control device, control method and program
JPWO2018167838A1 (en) Relay apparatus and data transfer method
JP2019016598A5 (en)

Legal Events

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

Ref document number: 14889286

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP