Conversion device, data communication system, conversion method, and program

The conversion device ensures reliable fixed periodic communication between master and slave devices by rewriting EtherCAT frame formats for TSN2 protocol, addressing the issue of communication disruptions caused by carrier networks, thus improving remote operation efficiency.

WO2024214228A1PCT designated stage expired Publication Date: 2024-10-17NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/014926
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-12
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

The interruption of fixed-cycle communication between a master device and a slave device when a carrier network is interposed between them, leading to propagation delays, unstable operation command arrival, and potential communication failures in remote control scenarios, particularly in industrial robot and production machine operations.

Method used

A conversion device and method that includes a pair of conversion units to rewrite communication frame formats for EtherCAT protocol to accommodate TSN2 protocol, ensuring time synchronization and adjusting transmission timing to maintain deterministic periodic communication across the network, even when a carrier line is introduced.

Benefits of technology

This solution enables continuous fixed periodic communication between master and slave devices over wide-area networks, enhancing remote operation reliability and efficiency by synchronizing transmission cycles and adjusting timing to compensate for network fluctuations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023014926_17102024_PF_FP_ABST
    Figure JP2023014926_17102024_PF_FP_ABST
Patent Text Reader

Abstract

A conversion device (20) comprises: a first reception unit (22) that receives a communication frame from a master device (1) or a slave device (40); a first conversion unit (23) that rewrites information of a format of the received communication frame; a cycle management unit (24) that generates a transmission cycle notification frame; a first transmission unit (26) that adjusts transmission timing and transmits the communication frame after rewriting and the generated transmission cycle notification frame to a prescribed network; a second reception unit (31) that receives the communication frame and the transmission cycle notification frame from the prescribed network and reads out a transmission cycle from the transmission cycle notification frame; a second conversion unit (32) that rewrites the information of the format of the received communication frame; and a second adjustment unit (33) that, on the basis of the transmission cycle read out by the second reception unit (31), adjusts the timing at which the communication frame after rewriting is transmitted to the master device (10) or the slave device (40).
Need to check novelty before this filing date? Find Prior Art

Description

Conversion device, data communication system, conversion method, and program

[0001] The present disclosure relates to a conversion device, a data communication system, a conversion method, and a program.

[0002] Conventionally, technologies for realizing deterministic communication between a master and a slave have been known. The Industrial Ethernet (registered trademark) protocol has traditionally realized real-time communication (deterministic communication) for applications such as factory automation (FA) and motion control. Real-time communication achieves transmission periods (cycle times) of tens of milliseconds to several microseconds while ensuring high safety and reliability. Industrial Ethernet standards, which are currently becoming the dominant industrial protocol, have been expanded to meet the requirements of real-time functionality, and major systems with the highest market share provide modes for deterministic communication. As shown in FIG. 17 , Ethernet / IP (registered trademark), PROFINET (registered trademark), and EtherCAT (registered trademark) are the main industrial Ethernet standards.

[0003] In recent years, against the backdrop of social issues such as labor shortages and long working hours, there has been an increasing demand for remote control of industrial robots, production machines, sensors, and the like to promote automation and labor-saving in production facilities and the like. Generally, in remote control, an operator manually operates a controller to remotely control the industrial robot / production machine based on information acquired by cameras and sensors mounted on the industrial robot / production machine. Originally, industrial controllers achieve stable remote control of work machines by performing deterministic periodic communication within the same local area network (LAN) using an industrial protocol specialized for real-time communication to send and receive operation commands, video information, sensor information, and the like. For example, as shown in FIG. 18 , a master device (controller) and a slave device (industrial robot / production machine) perform real-time communication (deterministic periodic communication) within the same LAN using a communication protocol such as EtherCAT.

[0004] Fig. 19 is a block diagram illustrating data transmission and reception in EtherCAT communication. As shown in Fig. 19, an EtherCAT communication frame is transmitted from master device M-1, which controls the entire system, passes through all of slave devices S-1 to S-N in the order in which they are connected, and when it arrives at the terminal slave device S-N, it retraces its outgoing route and returns to master device M-1.

[0005] EtherCAT measures the time difference between the transmission and return of a communication frame and performs time-synchronized communication by correcting the time difference from the master clock. That is, the master device writes the time into the communication frame, and each slave device reads the time and calculates the time delay between its own node and the master device, thereby achieving time synchronization.

[0006] The data portion of an EtherCAT communication frame stores all the processing data for each slave device (data packing). The slave device uses a communication method in which it sends and receives processing data (on-the-fly read / write) as the communication frame passes through its own node, and transmits processing data in short cycles, achieving real-time performance (low latency).

[0007] In EtherCAT communication, a communication path passes in one direction from the master device through all slave devices in order, reading and writing processing data during the first pass and not performing processing during the second pass (return). Therefore, communication between slave devices must be achieved by repeating two cycles of sending and receiving communication frames. In this specification, communication between slave devices is also referred to as feedback communication or FB communication. Communication between slave devices is typified by feedback (FB) control communication. FB control refers to controlling the output to an appropriate target value or reference value by sending an output signal back to the input side. As shown in FIG. 19 , master device M-1 transmits communication frames to slave device S-1 in two cycles, the first and second cycles.

[0008] Non-Patent Document 1 describes an overview of EtherCAT technology.

[0009] "EtherCAT - Ethernet Fieldbus," EtherCAT Technology Group, [online], [Retrieved March 24, 2023], Internet <URL: https: / / www.ethercat.org / download / documents / ETG_Brochure_JP.pdf>

[0010] However, as shown in Figure 20, when a carrier line such as wide-area Ethernet is interposed between a master device (controller) and a slave device (industrial robot / production machine), the deterministic periodic communication realized within the same LAN (EtherCAT) is interrupted. When deterministic periodic communication is interrupted, remote communication using the carrier line is affected by propagation delays and transmission fluctuations depending on the distance between the master and slave devices, buffering within the communication device due to sharing the line with other communication terminals on the LAN, and processing delays. These effects can cause communication failures, such as delays in the arrival time of operation commands sent from the master device (controller) to the slave device (industrial robot / machine), fluctuations in the arrival time of operation commands, or missing operation commands. As a result, operators must dispatch workers to remote locations to deal with remote operation failures and ensure the operation of the industrial robot / production machine, reducing production efficiency. Therefore, there is room for improvement in technology that realizes deterministic periodic communication in remote operation.

[0011] In view of the above circumstances, an object of the present disclosure is to improve the technology for realizing deterministic periodic communication in remote control.

[0012] In order to solve the above problem, a conversion device according to an embodiment of the present disclosure includes: a first receiving unit that receives communication frames transmitted from a master device or a slave device that transmits communication frames at a predetermined transmission period; a first transmitting unit that transmits the communication frame after being rewritten by the first converting unit and the transmission period notification frame generated by the period managing unit to the specified network at a timing adjusted based on the time of the master device and a transmission offset value of the specified network; a second receiving unit that receives the communication frame transmitted to the specified network and returned from the specified network, and the transmission period notification frame transmitted from the specified network, and reads the transmission period written in the received transmission period notification frame; a second converting unit that rewrites the information on the frame format of the communication frame received by the second receiving unit into information that can be identified by the master device or the slave device; and a second adjusting unit that adjusts the timing at which the communication frame after being rewritten by the second converting unit is transmitted to the master device or the slave device based on the transmission period read by the second receiving unit.

[0013] In order to solve the above problem, a conversion method according to an embodiment of the present disclosure includes the steps of receiving, by a conversion device, a communication frame transmitted from a master device or a slave device that transmits the communication frame at a predetermined transmission cycle; rewriting information in a frame format of the communication frame received from the master device or the slave device into information that can be identified by a communication device on a predetermined network; generating a transmission cycle notification frame into which the predetermined transmission cycle is written; and transmitting the rewritten communication frame and the generated transmission cycle notification frame at a timing adjusted based on the time of the master device and a transmission offset value of the predetermined network. a step of transmitting a communication frame to the predetermined network; a step of receiving the communication frame transmitted to the predetermined network and returned from the predetermined network, and a transmission period notification frame transmitted from the predetermined network; a step of reading out the transmission period written in the transmission period notification frame received from the predetermined network; a step of rewriting information in the frame format of the received communication frame into information that can be identified by the master device or the slave device; and a step of adjusting the timing of transmitting the rewritten communication frame to the master device or the slave device based on the read transmission period.

[0014] In order to solve the above problem, a program according to an embodiment of the present disclosure causes a computer to function as the conversion device.

[0015] According to the present disclosure, it is possible to improve the technology for realizing deterministic periodic communication in remote control.

[0016] FIG. 1 is a block diagram illustrating an example configuration of a data communication system according to an embodiment of the present disclosure. FIG. 2 is a block diagram illustrating an example configuration of a conversion device according to an embodiment of the present disclosure. FIG. 3 is a block diagram illustrating an example configuration of a conversion device according to an embodiment of the present disclosure. FIG. 4 is a diagram illustrating conversion of a communication method performed by a first conversion unit of a conversion device according to an embodiment of the present disclosure. FIG. 5 is a table illustrating an example of a transmission schedule of a predetermined network. FIG. 6 is a flowchart illustrating a method of adjusting transmission timing by a first adjustment unit. FIG. 7 is a diagram illustrating conversion of a communication method performed by a second conversion unit of a conversion device according to an embodiment of the present disclosure. FIG. 8 is a diagram illustrating transmission fluctuations that occur in a predetermined network. FIG. 9 is a diagram illustrating adjustment of transmission timing by a second adjustment unit. FIG. 10 is a diagram illustrating merging of periodic communication frames and aperiodic communication frames by a second adjustment unit. FIG. 11 is a flowchart illustrating an example of a data communication method performed by a data communication system according to an embodiment of the present disclosure. FIG. 12 is a flowchart illustrating an example of a conversion method performed by a conversion device according to an embodiment of the present disclosure. FIG. 13 is a flowchart illustrating an example of a conversion method performed by a conversion device according to an embodiment of the present disclosure. FIG. 14 is a block diagram illustrating a schematic configuration of a computer functioning as a conversion device. FIG. 15 is a table illustrating major methods of industrial Ethernet standards. FIG. 16 is a diagram illustrating deterministic periodic communication between master and slave. 1 is a block diagram illustrating data transmission and reception in EtherCAT communication. 2 is a block diagram illustrating the presence of a carrier line between a master and a slave.

[0017] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. The present disclosure is not limited to the following embodiments, and various modifications can be made within the scope of the present disclosure.

[0018] <Data Communication System> FIG. 1 is a block diagram showing an example configuration of a data communication system 1 according to this embodiment. As shown in FIG. 1, the data communication system 1 includes a master device 10, conversion devices 20 (20-1, 20-2), and a slave device 40. The conversion devices 20 (20-1, 20-2) are used in pairs, sandwiching a predetermined network between them. Hereinafter, in this specification, the conversion device 20-1 will also be referred to as the first conversion device 20-1, and the conversion device 20-2 will also be referred to as the second conversion device 20-2. The slave device 40 may be configured by connecting one or more slave devices 40 (40-1 to 40-n) in one direction. The clock symbol shown in FIG. 1 indicates that the target device or network is a device or network that performs time-synchronous communication. Methods of time-synchronous communication include, but are not limited to, distribution from a Grandmaster Clock (GMC), time distribution from a master device, or differential synchronization.

[0019] The predetermined network is, for example, an Ethernet communication network capable of time-synchronized communication, such as TSN (Time-Sensitive Networking), but the communication network is not limited to TSN. TSN2 is a network technology for interoperating industrial networks that extend standard Ethernet with IT (Information Technology) networks. TSN2 is a network standard that is based on Ethernet, but guarantees time synchronization and can ensure real-time performance. In the present disclosure, the following description will be given assuming that the predetermined network is TSN2.

[0020] The master device 10 transmits a communication frame containing data to a first conversion device 20-1 (described later) at a predetermined transmission period, and receives the communication frame returned from the first conversion device 20-1. In the present disclosure, the predetermined transmission period refers to a communication period when the master device 10 periodically communicates the first communication frame. For example, in the present disclosure, the predetermined transmission period is assumed to be 250 microseconds (μs), but is not limited to this. The communication frame containing data is transmitted to the slave device 40 via the first conversion device 20-1, TSN2, and second conversion device 20-2. The master device 10 receives the communication frame from which data has been read and written by the slave device 40 via the second conversion device 20-2, TSN2, and first conversion device 20-1.

[0021] The master device 10 is, for example, an industrial controller that remotely controls an industrial robot / production machine (corresponding to the slave device 40) located in a remote location, but is not limited to this. The master device 10 transmits and receives operation commands, video information, sensor information, etc. to and from the slave device 40 as deterministic periodic communications within the same LAN (within the EtherCAT range) based on an industrial protocol specialized for real-time communications such as EtherCAT.

[0022] The first conversion device 20-1 is installed downstream of the master device 10. The first conversion device 20-1 (i) rewrites information on the frame format of a communication frame received from the master device 10 and transmits it to TSN2, and (ii) rewrites information on the frame format of a communication frame received from TSN2 and returns it to the master device 10. As shown in FIG. 1 , the transmission of a communication frame from EtherCAT (LAN) to TSN2 (WAN) increases the communication speed. On the other hand, the transmission of a communication frame from TSN2 (WAN) to EtherCAT (LAN) decreases the communication speed.

[0023] The second conversion device 20-2 is installed in the upstream stage of the slave device 40. The second conversion device 20-2 (i) rewrites information on the frame format of a communication frame received from TSN2 and transmits it to the slave device 40, and (ii) rewrites information on the frame format of a communication frame received from the slave device 40 and transmits (returns) it to TSN2.

[0024] The method by which the first conversion device 20-1 and the second conversion device 20-2 rewrite information on the frame format of the communication frame will be described in detail later.

[0025] The slave device 40 reads and writes data from and to the communication frame received from the second conversion device 20-2, and returns the communication frame from which data has been read and written to the second conversion device 20-2. The slave device 40 is, for example, but is not limited to, an industrial robot / production machine located in a remote location. The slave device 40 is remotely controlled by an industrial controller (master device 10).

[0026] Normally, the slave device 40 communicates with the master device 10 using a deterministic periodic communication protocol within the same LAN, such as EtherCAT, using an industrial protocol specialized for real-time communication. However, if a carrier network such as TSN2 is interposed between the master device 10 (controller) and the slave device 40 (industrial robot / production machine), the deterministic periodic communication that was realized within the same LAN is interrupted. For this reason, a pair of conversion devices 20, a first conversion device 20-1 and a second conversion device 20-2, that convert between EtherCAT and the intervening TSN2 communication protocol are inserted into the data communication system 1. This allows EtherCAT communication (deterministic periodic communication) to continue between the master and slave.

[0027] 2 and 3 are block diagrams showing an example of the configuration of the conversion device 20 (20-1, 20-2) according to this embodiment. FIG. 2 shows an example of the configuration of the first conversion device 20-1, and FIG. 3 shows an example of the configuration of the second conversion device 20-2. As shown in FIGS. 2 and 3, the conversion device 20 (20-1, 20-2) includes a first port 21, a first receiving unit 22, a first conversion unit 23, a period management unit 24, a first adjustment unit 25, a first transmission unit 26, a second port 27, a storage unit 28, a second receiving unit 31, a second conversion unit 32, a second adjustment unit 33, and a second transmission unit 34. The first receiving unit 22, the first converting unit 23, the period managing unit 24, the first adjusting unit 25, the first transmitting unit 26, the second receiving unit 31, the second converting unit 32, the second adjusting unit 33, and the second transmitting unit 34 constitute a control and arithmetic circuit (controller) 50. The control and arithmetic circuit 50 may be constituted by dedicated hardware such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field-Programmable Gate Array), or may be constituted by a processor, or may be constituted by including both.

[0028] The first port 21 is responsible for inputting and outputting a communication frame a between the master device 10 and the slave device 40. The first port 21 may be configured by a physical layer transceiver device (EtherPHY) for transmitting and receiving Ethernet frames (communication frames).

[0029] The first receiver 22 receives the communication frame a transmitted from the master device 10 or the slave device 40, which transmits the communication frame a at a predetermined transmission period, via the first port 21. The first receiver 22 transmits the received communication frame a to the first converter 23.

[0030] The first conversion unit 23 rewrites the information in the frame format of the communication frame a received by the first receiving unit 22 into information that can be identified by the communication device on TSN 2. The first conversion unit 23 transmits the communication frame a, whose information in the frame format has been rewritten, to the first adjustment unit 25.

[0031] Fig. 4 is a diagram illustrating the communication method conversion executed by the first conversion unit 23. Fig. 4 shows the difference between the information in the frame format of communication frame a before and after rewriting when, for example, transmitting a communication frame from a factory LAN operating under the EtherCAT protocol to a WAN (Wide Area Network) operating under the TSN2 communication protocol. The frame format refers to the data format used when transmitting and receiving communication frames.

[0032] In this disclosure, the information in the frame format includes a destination MAC (Media Access Control), a source MAC, a type code, header information (the header information is written as "VLAN" in FIG. 4), and a datagram, but the information included in the frame format is not limited to these. The destination MAC is information about the MAC address of the computer to which the communication frame is sent. The source MAC is information about the MAC address of the computer from which the communication frame is sent. The type code is a code that identifies the protocol of the communication frame. The type code is expressed in hexadecimal and begins with "0x." "0x88A4" is a code that identifies the EtherCAT protocol of the source. "0x8100" is a code that identifies the protocol of the VLAN of the destination. The EtherCAT datagram is a data storage area in which processing data is stored collectively (data packed).

[0033] The first conversion unit 23 rewrites the type code "0x88A4" in the frame format, which specifies the protocol used by the sending master device 10 or slave device 40 to communicate, to the type code "0x8100" which specifies the protocol used by the communication equipment on the destination TSN to communicate, and adds header information that the TSN references to control the network.

[0034] When TSN2 is divided into multiple networks, the first conversion unit 23 writes a number (VID) for identifying each of the multiple networks into the frame format of the communication frame a received by the first receiving unit 22. Furthermore, the first conversion unit 23 writes a value (CoS) representing the priority of the communication frame into the frame format of the communication frame a received by the first receiving unit 22. For convenience of description in this specification and the drawings, the VID and CoS are also referred to as header information.

[0035] As shown in Figure 4, one difference between the frame format before and after the communication method conversion is that header information indicating "VLAN" is added to communication frame a. When TSN2 is divided into multiple networks, the header information includes, but is not limited to, a number (VID) for identifying each of the multiple divided networks and a value (CoS) indicating the priority of communication. Ports or terminals assigned the same VID are considered to belong to the same network and can communicate with each other. The VID and CoS are information necessary for communication equipment installed on the TSN to control the network.

[0036] The cycle management unit 24 generates a transmission cycle notification frame in which a predetermined transmission cycle is written if the transmitted communication frame a is the first communication frame received from the master device 10 or if there is a change in the transmission cycle at which the master device 10 transmits communication frame a. The cycle management unit 24 reads out the predetermined transmission cycle of the master device 10 stored in the storage unit 28. The cycle management unit 24 has a function of managing the transmission cycle (cycle time) of the master device 10. Because the transmission cycle cannot be determined on the LAN on the slave device 40 side, the pair of conversion devices 20-1 and 20-2 must share the transmission cycle (cycle time) of the master device 10. For this reason, the cycle management unit 24 generates a transmission cycle notification frame for the master device 10. The transmission cycle notification frame in which the transmission cycle generated by the cycle management unit 24 of the first conversion device 20-1 is written is transmitted to the first adjustment unit 25.

[0037] The first adjustment unit 25 merges the transmission cycle notification frame acquired from the cycle management unit 24 between the cycle communications of the communication frame a. As a result, the transmission cycle (cycle time) of the master device 10 is transmitted to the second conversion device 20-2 on the slave device 40 side.

[0038] The first adjustment unit 25 adjusts the timing of transmitting the communication frame a and the transmission cycle notification frame to the TSN based on the time of the master device 10 and the transmission offset value of the TSN 2. The first adjustment unit 25 transmits the communication frame a whose transmission timing has been adjusted and the transmission cycle notification frame merged between periodic communications of the communication frame a to the first transmission unit 26.

[0039] 4, the predetermined transmission period on the LAN side (of the master device 10) is, for example, 250 microseconds (μs), but is not limited to this. The transmission timing on the TSN side is adjusted based on the time on the LAN side and the TSN transmission offset value. The transmission timing for fixed-period communication differs between the LAN side and the TSN2 side. Therefore, the first adjustment unit 25 adjusts the transmission timing on the LAN side, which transmits the communication frame a and the transmission period notification frame, to match the transmission timing on the TSN2 side.

[0040] 5 is a table showing an example of a transmission schedule for TSN2. The transmission scheduler for TSN2 manages the transmission schedule for each user. In FIG. 5, the numbers 1 to 5 indicate time slots, "O" indicates transmission possible, "C" indicates transmission impossible, and "time" indicates the transmission period. In the present disclosure, the first adjustment unit 25 uses, for example, time slot 1, but is not limited to this.

[0041] FIG. 6 is a flowchart illustrating a transmission timing adjustment method by the first adjustment unit 25. As shown in FIG. 6, the first adjustment unit 25 may request a transmission schedule (transmission start time and transmission cycle) for the first time slot from the transmission scheduler of TSN2 via the first transmission unit 26 (described later). When the first adjustment unit 25 receives the transmission schedule for the first time slot via the second reception unit 31 (described later), it calculates and acquires a transmission offset value. Based on the time on the LAN side and the acquired transmission offset value, the first adjustment unit 25 calculates the transmission timing for transmitting the communication frame a and the transmission cycle notification frame to TSN2. Note that the first adjustment unit 25 may use a transmission offset value for TSN2 previously stored in the storage unit 28 (described later).

[0042] The first transmitting unit 26 transmits the communication frame a rewritten by the first converting unit 23 and the transmission period notification frame generated by the period management unit 24 to TSN2 at a timing adjusted based on the time of the master device 10 and the transmission offset value of TSN2.

[0043] The second port 27 is responsible for inputting and outputting the communication frame a and the transmission cycle notification frame between the conversion device 20 and the TSN 2. The second port 27 may be configured by a physical layer transceiver device (EtherPHY) for transmitting and receiving Ethernet frames (communication frames).

[0044] The memory unit 28 records (i) header information that communication devices operating on TSN2 refer to to control the network, (ii) the transmission period at which the master device 10 transmits communication frame a, (iii) the time of the master device 10, and (iv) the transmission offset value of TSN2, but the information stored is not limited to these.

[0045] The second receiving unit 31 receives communication frame a returned from TSN2 after being transmitted to TSN2 and the transmission period notification frame transmitted from TSN2, and reads the transmission period written in the received transmission period notification frame. The second receiving unit 31 stores the transmission period read from the received transmission period notification frame in the memory unit 28 and terminates the transmission period notification frame. The second receiving unit 31 transmits communication frame a received from TSN2 to the second converting unit 32.

[0046] The second conversion unit 32 rewrites the information in the frame format of the communication frame a received by the second receiving unit 31 into information that can be identified by the master device 10 or the slave device 40. The second conversion unit 32 rewrites the type code "0x8100" in the frame format, which specifies the protocol used by the communication devices on the source TSN for communication, into the type code "0x88A4" which specifies the protocol used by the destination EtherCAT for communication. Furthermore, if the number (VID) for identifying each of multiple networks, which is written as header information in the frame format of the communication frame a, is unnecessary, the second conversion unit 32 deletes the number. The second conversion unit 32 transmits the communication frame a, whose information in the frame format has been rewritten, to the second adjustment unit 33.

[0047] FIG. 7 is a diagram illustrating the communication method conversion performed by the second conversion unit 32. FIG. 7 illustrates the frame format differences between a communication frame a before the communication method conversion and a communication frame a after the communication method conversion, for example, when a communication frame is transmitted from TSN2 (WAN) to EtherCAT (LAN) in a factory. One of the frame format differences is that header information (VID) is deleted from the communication frame a after the communication method conversion. While the LAN frame format may have header information added, the header information is not processed on the LAN side. On the other hand, if header information is necessary, the header information may be rewritten. In FIG. 7, the transmission period on the LAN side is assumed to be 250 microseconds (μs), but this is not limited to this.

[0048] The second adjuster 33 divides the communication frame a rewritten by the second converter 32 into an aperiodic communication frame a1 for aperiodic communication and a cyclic communication frame a2 for cyclic communication.

[0049] Control data communication between devices according to the present disclosure is performed using fixed periodic communication. However, management information for each device, mail box communication (communication between connected devices requesting and responding to transmissions), and the like are performed using aperiodic communication. As described above, the transmission of communication frame a from the LAN side to the TSN2 side increases the communication speed. Therefore, even if aperiodic communication frames are inserted between cyclic communication frames when communication frame a is input to the conversion device 20, the cyclic communication frames and the aperiodic communication frames are transmitted to the TSN2 side in the order in which they were input to the conversion device 20. However, as described above, the transmission of communication frame a from the TSN2 side to the LAN side decreases the communication speed. Therefore, the aperiodic communication frame a1 is temporarily separated from the communication frame a, and the transmission timing of the cyclic communication frame a2 is adjusted.

[0050] The second adjustment unit 33 stores the assigned aperiodic communication frame a1 and periodic communication frame a2 in their respective reception queues, thereby absorbing the fluctuation amount f occurring on TSN2.

[0051] Fig. 8 is a diagram illustrating transmission fluctuations that occur at TSN2. As shown in the upper diagram of Fig. 8, transmission fluctuations may suddenly occur in the transmission timing of communication frame a transmitted on the TSN2 side. In such cases, the transmission timing of communication frame a is shifted by an amount of fluctuation f from the normal transmission timing shown in the lower diagram of Fig. 8. In Fig. 8, the transmission period on the LAN side is assumed to be 250 microseconds (μs), but this is not limited to this.

[0052] The second adjustment unit 33 adjusts the transmission timing of the periodic communication frame a2 allocated from the rewritten communication frame a based on the transmission period read by the second reception unit 31.

[0053] FIG. 9 is a diagram illustrating adjustment of transmission timing by the second adjustment unit 33. FIG. 10 is a diagram illustrating merging of periodic communication frames and aperiodic communication frames by the second adjustment unit 33. To achieve fixed-period communication on the LAN side, the second adjustment unit 33 stores the aperiodic communication frame a1 and the periodic communication frame a2 after sorting in their respective receive queues. The second adjustment unit 33 temporarily holds the aperiodic communication frame a1 and the periodic communication frame a2 in a transmission waiting state to absorb the fluctuation amount f. Note that in FIGS. 9 and 10, the transmission period on the LAN side is assumed to be 250 microseconds (μs), but this is not limited to this.

[0054] The second adjustment unit 33 adjusts the transmission timing of the periodic communication frame a2 retrieved from the reception queue based on the transmission period read by the second reception unit 31. As shown in Fig. 9, the fluctuation amount f of the periodic communication frame a2 is absorbed, and the transmission timing is adjusted to a transmission period of 250 microseconds (µs).

[0055] The second adjustment unit 33 merges the aperiodic communication frame a1 between the periodic communication frames a2 whose transmission timing has been adjusted. As shown in Fig. 10, the second adjustment unit 33 merges the aperiodic communication frame a1 extracted from the receive queue between the transmission periods of the cyclic communication frames a2 whose transmission timing has been adjusted, which are determined-periodic communication frames. The second adjustment unit 33 transmits the communication frame a, in which the aperiodic communication frame a1 and the cyclic communication frame a2 have been merged, to the second transmission unit 34.

[0056] The second transmitter 34 transmits the communication frame a, which is obtained by combining the non-periodic communication frame a1 received from the second adjuster 33 and the periodic communication frame a2, to the master device 10 or the slave device 40.

[0057] 11 and 12 are flowcharts showing an example of a data communication method executed by the data communication system 1 according to this embodiment.

[0058] In step S101, the master device 10 transmits a communication frame a containing data to the conversion device 20-1 (the first conversion device 20-1 installed downstream of the master device 10) at a predetermined transmission period.

[0059] In step S102, the first conversion device 20-1 rewrites the frame format of the communication frame a received from the master device 10.

[0060] In step S103, the conversion device 20-1 transmits the communication frame a with the rewritten frame format to TSN2.

[0061] In step S104, the conversion device 20-2 (the second conversion device 20-2 installed in the preceding stage of the slave device 40) receives the communication frame a from TSN2.

[0062] In step S105, the second conversion device 20-2 rewrites the frame format of the communication frame a received from TSN2.

[0063] In step S106, the second conversion device 20-2 transmits the communication frame a with the rewritten frame format to the slave device 40.

[0064] In step S107, the slave device 40 reads and writes data from and to the communication frame a received from the second conversion device 20-2.

[0065] In step S108, the slave device 40 transmits the communication frame a after reading and writing data to the second conversion device 20-2.

[0066] In step S109, the second conversion device 20-2 rewrites the frame format of the communication frame a received from the slave device 40.

[0067] In step S110, the second conversion device 20-2 transmits the communication frame a with the rewritten frame format to TSN2.

[0068] In step S111, the first conversion device 20-1 receives the communication frame a from TSN2.

[0069] In step S112, the first conversion device 20-1 rewrites the frame format of the communication frame a.

[0070] In step S113, the first conversion device 20-1 transmits the communication frame a with the rewritten frame format to the master device 10.

[0071] 13, 14, and 15 are flowcharts showing an example of a conversion method executed by the conversion device 20 according to this embodiment. The flowcharts in Fig. 13, 14, and 15 provide a more detailed explanation of the conversion method executed by the conversion device 20 described in the flowcharts in Fig. 11 and 12.

[0072] In step S201, the first receiving unit 22 receives a communication frame a from the master device 10 or the slave device 40.

[0073] In step S202, the first conversion unit 23 rewrites the information in the frame format of the communication frame a received by the first receiving unit 22 into information that can be identified by the communication device on TSN 2. The following steps S202-1 to S202-4 show the details of step S202.

[0074] In step S202-1, the first conversion unit 23 rewrites the type code in the frame format of the communication frame a that identifies the protocol used by the sending master device 10 or slave device 40 to communicate with a type code that identifies the protocol used by the communication device on the destination TSN to communicate with.

[0075] In step S202-2, the first conversion unit 23 determines whether or not it is necessary to rewrite the header information of the destination TSN 2. If it is necessary, the process proceeds to step S202-3, and if it is not necessary, the process proceeds to step S203.

[0076] In step S202-3, the first conversion unit 23 acquires the header information of TSN2 of the destination from the storage unit 28.

[0077] In step S202-4, the first conversion unit 23 rewrites the header information in the frame format of the communication frame a into header information for communication by a communication device on the destination TSN.

[0078] In step S203, the cycle management unit 24 determines whether communication frame a is the first communication frame received from the master device 10, or whether there has been a change in the transmission cycle at which the master device 10 transmits communication frame a. If either of these conditions is met, the process proceeds to step S204; if neither of these conditions is met, the process proceeds to step S206.

[0079] In step S204, the cycle management unit 24 generates a transmission cycle notification frame in which a predetermined transmission cycle is written.

[0080] In step S205, the first adjustment unit 25 merges the transmission cycle notification frame into the periodic communication of the communication frame a.

[0081] In steps S206 to S208, the first adjustment unit 25 adjusts the timing of transmitting the communication frame a and the transmission cycle notification frame to TSN based on the time of the master device 10 and the transmission offset value of TSN2 obtained from the memory unit 28.

[0082] In step S209, the first transmitting unit 26 transmits the communication frame a rewritten by the first converting unit 23 and the transmission period notification frame generated by the period management unit 24 to TSN2 at a timing adjusted based on the time of the master device 10 and the transmission offset value of TSN2.

[0083] In steps S210 to S213, the second receiving unit 31 receives communication frame a returned from TSN 2 after being transmitted to TSN 2 and the transmission period notification frame transmitted from TSN 2, and reads the transmission period written in the received transmission period notification frame. The second receiving unit 31 transmits communication frame a received from TSN 2 to the second converting unit 32, and if it determines that the received communication frame is a transmission period notification frame, it stores the transmission period information written in the transmission period notification frame in the memory unit 28 and terminates the transmission period notification frame.

[0084] In step S214, the second conversion unit 32 rewrites the information in the frame format of the communication frame a received by the second receiving unit 31 into information that can be identified by the master device 10 or the slave device 40. The following steps S214-1 to S214-4 show the details of step S214.

[0085] In step S214-1, the second conversion unit 32 rewrites the type code in the frame format that specifies the protocol used by the communication device on the source TSN2 to communicate with a type code that specifies the protocol used by the master device 10 or slave device 40 on the destination EtherCAT to communicate.

[0086] In step S214-2, the second conversion unit 32 determines whether header information is required in the frame format of the communication frame a. If header information is required, the process proceeds to step S214-3, and if header information is not required, the process proceeds to step S214-4.

[0087] In step S214-3, the second conversion unit 32 rewrites the header information in the frame format of the communication frame a.

[0088] In step S214-4, the second conversion unit 32 deletes the header information on the frame format of the communication frame a.

[0089] In step S215, the second adjustment unit 33 determines whether the communication frame a acquired from the second conversion unit 32 is an aperiodic communication frame a1 for aperiodic communication or a cyclic communication frame a2 for cyclic communication, and assigns the aperiodic communication frame a1 or the cyclic communication frame a2. The second adjustment unit 33 stores the assigned aperiodic communication frame a1 and cyclic communication frame a2 in their respective receive queues. If the communication frame a is an aperiodic communication frame a1 for aperiodic communication, the process proceeds to step S219. If the communication frame a is a cyclic communication frame a2 for cyclic communication, the process proceeds to step S216.

[0090] In steps S216 to S218, the second adjustment unit 33 stores the sorted aperiodic communication frame a1 and cyclic communication frame a2 in their respective reception queues and temporarily keeps them in a state of waiting for transmission, thereby absorbing the fluctuation amount f. Furthermore, the second adjustment unit 33 adjusts the transmission timing of the cyclic communication frame a2 based on the transmission period read by the second reception unit 31.

[0091] In steps S219 to S220, the second adjustment unit 33 determines whether the aperiodic communication frame a1 can be merged between the periodic communications of the periodic communication frame a2 whose transmission timing has been adjusted, and merges the aperiodic communication frame a1 and the periodic communication frame a2 at a timing when they can be merged.

[0092] In step S221, the second transmitting unit 34 transmits a communication frame a, which is a combination of a non-periodic communication frame a1 and a periodic communication frame a2, to the master device 10 or the slave device 40 at a transmission timing adjusted by absorbing the amount of fluctuation that occurs on TSN2.

[0093] Conventionally, when a carrier network such as TSN2 is interposed between a master device 10 (controller) and a slave device 40 (industrial robot / machine), there is a problem that the fixed periodic communication realized within the same LAN (EtherCAT) is interrupted.

[0094] The conversion device 20 according to this embodiment has a format conversion function for the communication frame a and a periodic communication maintenance function for the communication frame a. The format conversion function is a function for rewriting information on the frame format of the communication frame a, which is performed by the first conversion unit 23 and the second conversion unit 32. The periodic communication maintenance function includes (i) a function for reproducing deterministic periodic communication that requires reliability on the LAN side within the factory, (ii) a function for adjusting the transmission timing of the sender in order to perform time synchronization operation on the WAN side such as TSN2, and (iii) a function for rewriting header information (such as VID and CoS value) so that communication devices on the WAN side such as TSN2 can control the TSN2 network.

[0095] The function of reproducing the fixed cycle communication of (i) is realized by the second adjustment unit 33 adjusting the timing of transmitting the communication frame a after rewriting by the second conversion unit 32 to the master device 10 or the slave device 40 based on the transmission cycle read by the second receiving unit 31, and by the cycle management unit 24 generating a transmission cycle notification frame in which the transmission cycle at which the master device 10 transmits the communication frame a is written, and both the first conversion device 20-1 and the second conversion device 20-2 sharing the transmission cycle (cycle time).

[0096] The function of adjusting the sending timing of the sender (ii) is realized by the first adjustment unit 25 adjusting the timing of sending communication frame a to TSN2 based on the time of the master device 10 and a transmission offset value such as TSN2.

[0097] The header information rewriting function (iii) is realized by the first conversion unit 23 and the second conversion unit 32 rewriting the VID and CoS, which are information necessary for controlling the network on the TSN 2 side.

[0098] The data communication system 1 according to this embodiment includes a pair of conversion devices 20-1 and 20-2 that implement the above-described format conversion function of communication frame a and the periodic communication maintenance function of communication frame a. Therefore, even in cases where the installation location of the master device 10 and the installation location of the slave device 40 are far apart and the periodic communication is interrupted, it is possible to continue EtherCAT communication (determined period communication) between the master and slave, thereby improving the technology for implementing deterministic period communication through remote operation.

[0099] A computer capable of executing program instructions can also be used to function the conversion device 20. Fig. 16 is a block diagram showing a schematic configuration of a computer functioning as the conversion device 20. Here, the computer functioning as the conversion device 20 may be a general-purpose computer, a dedicated computer, a workstation, a PC (Personal Computer), an electronic notepad, etc. The program instructions may be program code, code segments, etc. for performing the necessary tasks.

[0100] 16, the computer 100 includes a processor 110, a memory unit including a read-only memory (ROM) 120, a random access memory (RAM) 130, and a storage 140, an input unit 150, an output unit 160, and a communication interface (I / F) 170. The components are connected to each other via a bus 180 so as to be able to communicate with each other.

[0101] The ROM 120 stores various programs and various data. The RAM 130 temporarily stores programs or data as a working area. The storage 140 is configured with an HDD (Hard Disk Drive) or an SSD (Solid State Drive) and stores various programs including an operating system and various data. In the present disclosure, the program related to the present disclosure is stored in the ROM 120 or the storage 140.

[0102] Specifically, the processor 110 is a CPU (Central Processing Unit), an MPU (Micro Processing Unit), a GPU (Graphics Processing Unit), a DSP (Digital Signal Processor), a SoC (System on a Chip), or the like, and may be configured with multiple processors of the same or different types. The processor 110 reads a program from the ROM 120 or the storage 140 and executes the program using the RAM 130 as a working area, thereby controlling the above components and performing various arithmetic processing. Note that at least a portion of these processing contents may be implemented by hardware.

[0103] The program may be recorded on a recording medium readable by the conversion device 20. If such a recording medium is used, the program can be installed in the conversion device 20. Here, the recording medium on which the program is recorded may be a non-transitory recording medium. The non-transitory recording medium is not particularly limited, and may be, for example, a CD-ROM, a DVD-ROM, a USB (Universal Serial Bus) memory, or the like. Furthermore, the program may be downloaded from an external device via a network.

[0104] The following additional notes are provided regarding the above-described embodiments.

[0105] (Supplementary Item 1) A conversion device comprising: a controller that receives communication frames transmitted from a master device or a slave device that transmits communication frames at a predetermined transmission period, rewrites information on a frame format of the received communication frames into information that can be identified by communication equipment on a predetermined network, generates a transmission period notification frame into which the predetermined transmission period is written, transmits the rewritten communication frame and the generated transmission period notification frame to the predetermined network at a timing adjusted based on a time of the master device and a transmission offset value of the predetermined network, receives the communication frame that has been transmitted to the predetermined network and returned from the predetermined network, and a transmission period notification frame that has been transmitted from the predetermined network, reads the transmission period written in the received transmission period notification frame, rewrites information on the frame format of the received communication frame into information that can be identified by the master device or the slave device, and adjusts the timing of transmitting the rewritten communication frame to the master device or the slave device based on the read transmission period. (Supplementary Item 2) The conversion device according to Supplementary Item 1, wherein, when the predetermined network is divided into a plurality of networks, the controller writes a number for identifying each of the plurality of networks into the frame format of the communication frame received from the master device, and deletes the number from the frame format of the communication frame received from the predetermined network. (Supplementary Item 3) The conversion device according to Supplementary Item 1 or 2, wherein the controller writes a value representing the priority of the communication frame into the frame format of the communication frame received from the master device.(Supplementary Item 4) The conversion device according to any one of Supplementary Items 1 to 3, wherein the controller sorts the communication frames received from the predetermined network and having information on the frame format of the communication frames rewritten into aperiodic communication frames for performing aperiodic communication and cyclic communication frames for performing periodic communication, and stores the sorted aperiodic communication frames and the cyclic communication frames in their respective receive queues. (Supplementary Item 5) The conversion device according to Supplementary Item 4, wherein the controller adjusts the transmission timing of the cyclic communication frames sorted from the rewritten communication frames based on the read transmission period, and merges the aperiodic communication frames between periodic communication frames of the cyclic communication frames whose transmission timing has been adjusted. (Supplementary Item 6) A data communication system comprising: a first conversion device and a second conversion device, each of which is a conversion device according to any one of Supplementary Items 1 to 5; a master device that transmits the communication frame, in which data is stored, to the first conversion device at a predetermined transmission period and receives the communication frame returned from the first conversion device; and a slave device that reads and writes data from the communication frame received from the second conversion device and returns the communication frame to the second conversion device.(Supplementary Item 7) A conversion method in which a conversion device receives communication frames transmitted from a master device or a slave device that transmits communication frames at a predetermined transmission period, rewrites information on the frame format of the communication frames received from the master device or the slave device into information that can be identified by communication equipment on a predetermined network, generates a transmission period notification frame into which the predetermined transmission period is written, transmits the rewritten communication frame and the generated transmission period notification frame to the predetermined network at a timing adjusted based on the time of the master device and a transmission offset value of the predetermined network, receives the communication frame that was transmitted to the predetermined network and returned from the predetermined network, and the transmission period notification frame that was transmitted from the predetermined network, reads the transmission period written in the received transmission period notification frame, rewrites the information on the frame format of the communication frame received from the predetermined network into information that can be identified by the master device or the slave device, and adjusts the timing at which the rewritten communication frame is transmitted to the master device or the slave device based on the read transmission period. (Supplementary Item 8) A non-transitory storage medium storing a program executable by a computer, the non-transitory storage medium storing a program that causes the computer to function as the conversion device described in any one of Supplementary Items 1 to 5.

[0106] Although the above-described embodiments have been described as typical examples, it will be apparent to those skilled in the art that many modifications and substitutions can be made within the spirit and scope of the present disclosure. Therefore, the present disclosure should not be interpreted as being limited by the above-described embodiments, and various modifications or alterations are possible without departing from the scope of the claims. For example, multiple building blocks shown in the block diagrams of the embodiments can be combined into one, or one building block can be divided.

[0107] 1 Data communication system 2 TSN (WAN) 10 Master device 20 Conversion device 20-1 First conversion device (conversion device) 20-2 Second conversion device (conversion device) 21 First port 22 First receiving unit 23 First conversion unit 24 Period management unit 25 First adjustment unit 26 First transmission unit 27 Second port 28 Storage unit (memory) 31 Second receiving unit 32 Second conversion unit 33 Second adjustment unit 34 Second transmission unit 40 Slave device 50 Control operation circuit (controller) 100 Computer 110 Processor 120 ROM 130 RAM 140 Storage 150 Input unit 160 Output unit 170 Communication interface (I / F) 180 Bus

Claims

a first receiving unit that receives communication frames transmitted from a master device or a slave device that transmits communication frames at a predetermined transmission cycle; a first conversion unit that rewrites information on the frame format of the communication frames received by the first receiving unit into information that can be identified by a communication device on a predetermined network; a cycle management unit that generates a transmission cycle notification frame into which the predetermined transmission cycle is written; a first transmitting unit that transmits the communication frames rewritten by the first conversion unit and the transmission cycle notification frame generated by the cycle management unit to the predetermined network at a timing adjusted based on the time of the master device and a transmission offset value of the predetermined network; a second receiving unit that receives the communication frames transmitted to the predetermined network and returned from the predetermined network, and the transmission cycle notification frame transmitted from the predetermined network, and reads out the transmission cycle written in the received transmission cycle notification frame; and a second conversion unit that rewrites information on the frame format of the communication frames received by the second receiving unit into information that can be identified by the master device or the slave device. a second adjustment unit that adjusts a timing of transmitting the communication frame rewritten by the second conversion unit to the master device or the slave device based on the transmission period read by the second reception unit.

2. A conversion device as described in claim 1, wherein the first conversion unit, when the specified network is divided into a plurality of networks, writes a number for identifying each of the plurality of networks into the frame format of the communication frame received by the first receiving unit, and the second conversion unit deletes the number from the frame format of the communication frame received by the second receiving unit.

3. A conversion device according to claim 1, wherein the first conversion unit writes a value representing the priority of the communication frame into the frame format of the communication frame received by the first receiving unit.

4. A conversion device as described in claim 1, wherein the second adjustment unit sorts the communication frames rewritten by the second conversion unit into aperiodic communication frames for performing aperiodic communication and periodic communication frames for performing periodic communication, and stores the sorted aperiodic communication frames and periodic communication frames in their respective receive queues.

5. A conversion device as described in claim 4, wherein the second adjustment unit adjusts the transmission timing of the periodic communication frame allocated from the rewritten communication frame based on the transmission period read by the second receiving unit, and merges the non-periodic communication frame between the periodic communications of the periodic communication frames whose transmission timing has been adjusted.

6. A data communication system comprising: a first conversion device and a second conversion device which are conversion devices as defined in any one of claims 1 to 5; a master device which transmits the communication frames in which data is stored to the first conversion device at a predetermined transmission period and receives the communication frames returned from the first conversion device; and a slave device which reads and writes data from the communication frames received from the second conversion device and returns the communication frames to the second conversion device.

7. A conversion device performs the steps of: receiving a communication frame transmitted from a master device or a slave device that transmits a communication frame at a predetermined transmission cycle; rewriting information on the frame format of the communication frame received from the master device or the slave device into information that can be identified by a communication device on a predetermined network; generating a transmission cycle notification frame in which the predetermined transmission cycle is written; transmitting the rewritten communication frame and the generated transmission cycle notification frame to the predetermined network at a timing adjusted based on the time of the master device and a transmission offset value of the predetermined network; receiving the communication frame transmitted to the predetermined network and returned from the predetermined network, and the transmission cycle notification frame transmitted from the predetermined network; reading out the transmission cycle written in the transmission cycle notification frame received from the predetermined network; rewriting information on the frame format of the received communication frame into information that can be identified by the master device or the slave device; and adjusting the timing of transmitting the rewritten communication frame to the master device or the slave device based on the read transmission cycle. The conversion method to perform.

8. A program for causing a computer to function as the conversion device according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Equipment for connecting networks with each other, and synchronous communication system

    JP2003124961A

  • Communication control device and communication control method

    JP2020184710A