Communication device, communication system, communication method and program

DE112020006604B4Active Publication Date: 2024-08-29MITSUBISHI ELECTRIC CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
DE112020006604
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-03-30
Publication Date
2024-08-29
Estimated Expiration
2040-03-30

Smart Images

  • Figure DE112020006604B4_0000_ABST
    Figure DE112020006604B4_0000_ABST
Patent Text Reader

Abstract

A communication device (10) for communicating with another device (20, 30) in each of time intervals defined by a shared time which is shared with the other device (20, 30), the communication device (10) comprising: a clock means (11) for measuring the shared time; a reference means (13) for obtaining from the other device (20, 30) error information about a first error of the other device (20, 30) in measuring the shared time; and a setting means (14) for setting for the other device (20, 30) an interruption duration at at least one beginning or one end of each of the time intervals, the interruption duration being a duration for which the other device (20, 30) interrupts data transmission, the interruption duration being set by the setting means (14) being greater than or equal to a greater error resulting from the first error and a second error, which is an error of the clock means (11) in measuring time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical area The present disclosure relates to a communication device, a communication system, a communication method and a program. State of the art Facilities such as factories operate using a system that controls multiple devices. A technology developed for such a system enables the multiple devices to operate accurately and cooperate with each other (see, for example, Patent Literature 1). Patent Literature 1 describes a coordination instruction device. The coordination instruction device measures in advance the communication delivery time required for communication with multiple devices, determines the accuracy of the clock counters of the multiple devices in advance, and transmits to each device an execution signal indicating a clock that operates based on the communication delivery time and the accuracy of the clock counter. The coordination instruction device coordinates the multiple devices with fewer errors. Citation list Patent literature Patent Literature 1: Unexamined Japanese Patent Application Publication No. JP 2017-142740 A. Relevant prior art also includes US 2018 / 0212697 A1 and JP 2011-234400 A. Brief description of the invention Technical problem The technique in Patent Literature 1 enables multiple devices to work in coordination with each other without depending on an absolute time common to the devices. However, to perform real-time processing at multiple factory automation (FA) sites, the times measured by the respective devices are synchronized before communications are performed in predetermined cycles. In this communication method, the multiple devices that use common data must transmit and receive the data in common cycles. However, synchronization between the devices may involve a certain degree of deviation. This deviation may cause data transmitted in one cycle according to the time measured by one device to be received in another cycle according to the time measured by another device.To prevent this, each cycle includes a period during which data transmission from the devices is disabled. For devices with the same synchronization accuracy, communication efficiency can be maintained by minimizing the transmission-disabled period, which is determined based on potential deviations. However, synchronization accuracy can vary between devices connected to an FA network, and some devices may have different levels of synchronization accuracy. In this system, the synchronization accuracy of each device must be determined individually, and an optimal period must be set for each device. This requires the operator to perform complex adjustment procedures. In response to the above problem, an object of the present disclosure is to reduce adjustment actions performed on devices with different levels of synchronization accuracy. Solution to the problem To achieve the above object, a communication device according to one aspect of the present disclosure is a communication device for communicating with another device in each of time periods defined by a shared time shared with the other device. The communication device includes clock means for measuring the shared time, obtaining means for obtaining, from the other device, error information about a first error of the other device in measuring the shared time, and setting means for setting, for the other device, an interruption period at at least a beginning or an end of each of the time periods. The interruption period is a period for which the other device interrupts data transmission. The interruption period set by the setting means is greater than or equal to a larger error among the first error and a second error, which is an error of the clock means in measuring time. Advantageous effects of the invention In the structure according to the above aspect of the present disclosure, the acquiring means acquires error information about a first error of the other device in timekeeping, and the setting means sets, for the other device, a suspension period for which the other device suspends data transmission. The suspension period set by the setting means is greater than or equal to a larger error among the first error and the second error of the clock means in timekeeping. This structure eliminates an operator's action for checking and adjusting the synchronization accuracy of the other device, and therefore reduces adjustment actions on a device with a different degree of synchronization accuracy. Short description of the drawings Fig. 1 is a block diagram of a communication system according to Embodiment 1; Fig. 2 is a block diagram of a communication device according to Embodiment 1, showing the hardware configuration; Fig. 3 is a diagram describing first communications performed in each time period in the communication system according to Embodiment 1; Fig. 4 is a diagram describing second communications performed in each time period in the communication system according to Embodiment 1; Fig. 5 is a diagram describing third communications performed in each time period in the communication system according to Embodiment 1; Fig. 6 is a functional block diagram of the communication device according to Embodiment 1; Fig. 7 is a flowchart of a setting process according to Embodiment 1; Fig. 8 is a flowchart of a setting process according to Embodiment 1;9 is a diagram describing communications performed in the communication system according to Embodiment 1; FIG. 10 is a functional block diagram of a communication device according to Embodiment 2; FIG. 11 is a diagram illustrating exemplary allocation information according to Embodiment 2; FIG. 12 is a functional block diagram of a communication device according to Embodiment 3; FIG. 13 is a diagram describing communications performed in a communication system according to Embodiment 3; FIG. 14 is a functional block diagram of a communication device according to Embodiment 4; FIG. 15 is a diagram describing first communications performed in a communication system according to Embodiment 4; and FIG. 16 is a diagram describing second communications performed in the communication system according to Embodiment 4. Description of embodiments A communication system 1000 according to one or more embodiments of the present disclosure will now be described in detail with reference to the drawings. Sharing time and synchronization between multiple devices refers to synchronization of clocks contained in the respective devices. When the clocks in the respective devices measure the same time and share the measured time with each other, the devices are synchronized. Embodiment 1 The communication system 1000 according to the present embodiment corresponds to a part of an FA system installed in a factory. The communication system 1000 includes devices of a production system, an inspection system, a processing system, and other systems connected to each other via communication channels, which serve as an FA system. As shown in Fig. 1, the communication system 1000 includes communication devices 10, 20, and 30. Each of the communication devices 10, 20, and 30 is, for example, an industrial personal computer (IPC), a programmable logic controller (PLC) as an industrial controller, a unit in a PLC, a network switch, an actuator or robot controlled by a PLC, a sensor device including a sensor, or another device. In the example described below, the communication device 10 is an IPC, the communication device 20 is a network switch, and the communication device 30 is a PLC. Fig. 2 shows the hardware configuration of the communication devices 10, 20, and 30. Each of the communication devices 10, 20, and 30 is referred to as a communication device 40 shown in Fig. 2. The communication device 40 includes, as hardware components, a processor 41, a main memory 42, an auxiliary memory 43, a clock 44, an input device 45, an output device 46, and a communicator 47. The main memory 42, the auxiliary memory 43, the clock 44, the input device 45, the output device 46, and the communicator 47 are connected to the processor 41 via an internal bus 49. The processor 41 comprises a central processing unit (CPU). The processor 41 executes a program P1 stored in the auxiliary memory 43 to implement various functions of the communication device 40 and to perform the processes described later. Main memory 42 includes random access memory (RAM). Program P1 is loaded from auxiliary memory 43 into main memory 42. Main memory 42 is used as the work area for processor 41. The auxiliary memory 43 includes non-volatile memory, such as an EEPROM (Electrically Erasable Programmable Read-Only Memory) and a hard disk drive (HDD). In addition to the program P1, the auxiliary memory 43 stores various data items used for processes performed by the processor 41. The auxiliary memory 43 provides the processor 41 with data to be used by the processor 41 according to instructions from the processor 41 and stores data provided by the processor 41. The clock generator 44 includes, for example, a clock generator circuit comprising a quartz resonator, a silicon resonator, a quartz oscillator, or other oscillator circuit. The clock generator 44 generates a clock signal based on the clock generated by the clock generator circuit and outputs the clock signal. The clock signal includes a clock pulse and is used by the processor 41 to measure time by counting the number of rises of the clock pulse using a built-in hardware device or through software processing. The accuracy of the time measurement using the clock generator 44 is based on the structures of the processor 41 and the clock generator 44. The time measurement accuracy of the communication devices 10, 20, and 30 may therefore vary, as described later. Input device 45 is typically an input key or a pointing device. Input device 45 receives information input by a user into communication device 40 and provides the received information to processor 41. The output device 46 includes, for example, a liquid crystal display (LCD) or a speaker. The output device 46 provides a user with various information elements according to an instruction from the processor 41. Communicator 47 includes a network interface circuit for communicating with external devices. Communicator 47 receives external signals and outputs data indicated by these signals to processor 41. Communicator 47 transmits signals indicating the data output by processor 41 to the external devices. Although Fig. 2 shows a single communicator 47, communication device 40 may include communicators 47 for connection to multiple transmission lines. Referring again to Fig. 1, the communication devices 10 and 20 are connected via an industrial network 401 to communicate with each other. The communication devices 20 and 30 are connected via an industrial network 402 to communicate with each other. Each of the industrial networks 401 and 402 may be an FA network, such as a field network, or another network. The communication devices 10, 20, and 30 may be connected in a manner different from the example shown in Fig. 1. For example, the communication devices 20 and 30 may be connected to each other by a dedicated line. The communication devices 10, 20, and 30 may be connected by a single network. The communication device 40 is synchronized via the industrial networks 401 and 402. Specifically, each of the communication devices 10, 20, and 30 shares time with the other devices based on a synchronization protocol. The synchronization protocol is used to accurately synchronize the devices on a communication network. For example, when IEEE802.1AS is used as the synchronization protocol, a master corresponding to a node on the network periodically distributes an accurate reference clock over the communication network. When data is transmitted and retransmitted between the master and a slave corresponding to another node, a communication latency is measured. The slave obtains a reference clock by correcting the communication latency. Therefore, the time at which the communication latency is corrected is shared.The time shared between the devices is hereinafter referred to as shared time. The communication device 40 performs communications according to a communication protocol for transmitting and receiving data based on the shared time and based on a predetermined schedule. The communication protocol is, for example, IEEE802.1Qbv, which is used with a Time-Sensitive Networking (TSN) technique. Specifically, as shown in Fig. 3, the communication devices 10, 20, and 30 communicate by time division multiplexing in each of time periods 51 and 52 with a predetermined length based on the shared time. Time periods 51 and 52 follow one another. In other words, time period 52 follows time period 51, and the end time of time period 51 coincides with the start time of time period 52. Although Fig. 3 shows the two time periods 51 and 52, time periods that are essentially the same as time periods 51 and 52 are defined before time period 51 and after time period 52. Time periods 51 and 52 each contain time slots TS1, TS2, and TS0. Time slots TS0 to TS2 are set to perform two-way communications in predetermined different modes, channels, or protocols. For example, in time slot TS1, data for synchronization is transmitted according to the synchronization protocol. In time slot TS2, data for cyclic communication is transmitted. In time slot TS0, other communication may be performed, such as Internet Protocol (IP) communication. In another example, time slot TS0 may not be assigned any communication and may be dispensed with in the future. In Fig. 3, data transmission in time slot TS1 is indicated by dashed arrows, and data transmission in time slot TS2 is indicated by solid arrows. Time periods S1 and S2 have the same length, and therefore, communication in each time slot is performed in cycles. In cyclic communication, communications for storing data shared by the devices' memories are performed in cycles to synchronize data stored in each memory in the subsequent cycle. In this case, each piece of information transmitted between the devices is assigned a cycle number to distinguish the cycle in which the data is synchronized from other cycles based on the information. In the same manner as in such cyclic communication, each of the time periods 51 and 52 in the communications performed by the communication device 40 is assigned a cycle number to distinguish the time periods 51 and 52 at least from consecutive time periods. Specifically, data transmitted in the time periods 51 and 52 each includes information indicating the cycle number. The communications in the time periods 51 and 52 are distinguished from the communications in other time periods to enable real-time processing. In other words, data transmitted in one time slot and received in another time slot is determined as a communication irregularity, and this data is excluded from a normal process. For example, as indicated by a dashed arrow in Fig. 4, when data transmitted from the communication device 30 in the time slot 52 is received by the communication device 10 in the time slot 51, the data is discarded without being processed. As indicated by a solid arrow in Fig. 4, when data transmitted from the communication device 20 in the time slot 51 is received by the communication device 10 in the time slot 52, the data is discarded. In Fig. 4, the blocks representing the time slots TS0 to TS2 are denoted by the reference numerals of the time slots comprising the time slots.For example, the blocks representing the time slots TS1 of the time period 51 are labeled TS1

[51] . The communication irregularity shown in Fig. 4 may occur when the shared time measured by the communication device 40 contains a deviation. When each communication device 40 measures time with dedicated hardware, such as an application-specific integrated circuit (ASIC), the synchronization is accurate and the shared time has a small deviation. In contrast, when the communication device 40 measures time through software processing, the synchronization is not accurate and the shared time has a larger deviation. In the example in Fig. 4, the time measured by the communication device 20 is delayed by a deviation 20d from the time measured by the communication device 10, and the time measured by the communication device 30 is ahead of the time measured by the communication device 10 by a deviation 30d. To prevent such communication irregularity, the time periods 51 and 52 have interruption periods at the beginning and end of each period, during which the communication devices 10, 20, and 30 interrupt data transmission, as indicated by hatched blocks in Fig. 5. During the interruption period, data transmission is disabled in each device, but data reception is permitted. As shown in Fig. 5, although the deviations 20d and 30d occur as in Fig. 4, data transmitted from the communication device 30 in the time period 52 is normally received and processed by the communication device 10 in the time period 52. Similarly, data transmitted from the communication device 20 in the time period 51 is normally received and processed by the communication device 10 in the time period 51.The interruption period at the beginning of each of the time periods 51 and 52 may be part of the time slot TS1, but may be set separately from the time slot TS1 before the time slot TS1. The interruption period at the end of each of the time periods 51 and 52 may be part of the time slot TS0, but may be set separately from the time slot TS0 after the time slot TS0. The interruption duration is greater than or equal to the maximum value of the divided time errors measured by the communication devices 40. For example, the communication device 10 has a divided time synchronization accuracy of ±2 µs, the communication device 20 has a divided time synchronization accuracy of ±5 µs, and the communication device 30 has a divided time synchronization accuracy of ±20 µs. In this case, the interruption duration is set equal to or greater than ±20 µs. The synchronization accuracy indicates an error in the time measurement. In particular, the synchronization accuracy can be determined to include a maximum error in the time measurement, can be a standard deviation defining a confidence interval of 1σ in a normal distribution, or can be specified with another error type. The functional structure for setting an appropriate interruption duration for the communication device 40 will now be described with reference to Fig. 6. In Fig. 6, the communication device 10 corresponds to a management device that sets the interruption duration for the communication devices 20 and 30 serving as the other devices. The communication device 10 also sets an appropriate interruption duration for the communication device 10. Fig. 6 does not show the communication device 30, which has the same structure as the communication device 20. In the communication system 1000, the communication devices 20 and 30 each correspond to an example of a first communication device, and the communication device 10 corresponds to an example of a second communication device that communicates with the first communication device in each of time periods defined by the shared time shared with the first communication device. The communication device 10 comprises, as functional components, a clock unit 11 which measures a shared time, a sharing unit 12 which synchronizes and shares the shared time with the communication devices 20 and 30, a obtainer 13 which obtains error information about an error of the shared time measured by the respective communication devices 20 and 30, a setter 14 which sets the interruption durations for the communication devices 20 and 30, a setter 15 which sets the interruption duration, and a communicator 16 which periodically communicates with the communication devices 20 and 30 in a time period which contains the interruption duration with the set length. The clock unit 11 is mainly implemented by the processor 41 and the clock generator 44 of the communication device 10, which work together. After synchronization of the divided time performed by the dividing unit 12, the clock unit 11, which measures the time, calibrates the measured time to the synchronized divided time and makes it equal to it. The time measured by the clock unit 11 is calibrated with the periodically synchronized divided time and is therefore substantially equal to the divided time. However, as described above, the time measured by the clock unit 11 may not be equal to the divided time to which the time is to be synchronized and may contain an error. The clock unit 11 of the communication device 10 corresponds to an example of a clock means for measuring the divided time. The sharing unit 12 is primarily implemented by the processor 41 and the communicator 47 of the communication device 10, which work together. When the sharing unit 12 communicates with the communication devices 20 and 30 according to the above synchronization protocol, the sharing unit 12 synchronizes the shared time with the communication devices 20 and 30 and notifies the clock unit 11 of the shared time. The acquirer 13 is mainly implemented by the processor 41 and the communicator 47 of the communication device 10, which cooperate with each other. The acquirer 13 requests from the communication devices 20 and 30 a message containing information indicating the synchronization accuracy of the communication devices 20 and 30 in measuring the shared time, and acquires the information from the communication devices 20 and 30. An error of the communication devices 20 and 30 in measuring time is hereinafter referred to as a first error, where appropriate, and the information acquired by the acquirer 13 is referred to as error information. The acquirer 13 of the communication device 10 corresponds to an example of an acquisition means for acquiring, from the communication devices 20 and 30, error information about the first errors of the communication devices 20 and 30 in measuring the shared time.The subscriber 13 transmits the received error information to the setter 14. The setter 14 is mainly implemented by the processor 41 and the communicator 47 of the communication device 10, which cooperate with each other. Based on the error information, the setter 14 obtains information indicating the first timekeeping errors of the communication devices 20 and 30. The setter 14 obtains information indicating the timekeeping error of the clock unit 11. The timekeeping error of the clock unit 11 is hereinafter referred to as a second error. For example, based on the error information, the setter 14 obtains information indicating 2 µs as the synchronization accuracy of the communication device 20 and information indicating 20 µs as the synchronization accuracy of the communication device 30.The setter 14 also obtains information indicating 5 µs as the synchronization accuracy of the clock unit 11, which is stored in advance in the additional memory 43 of the communication device 10. The setter 14 obtains the interruption duration to be set for the communication device 40 based on the first errors and the second error. The interruption duration is equal to the largest error among the first errors indicated by the error information collected by the acquirer 13 and the second error. If the first errors of the communication devices 20 and 30 are 2 µs and 20 µs, respectively, and the second error is 5 µs, the interruption duration is equal to 20 µs, which is the largest error among the errors. The setter 14 instructs the adjuster 15 and adjuster 25 of the communication devices 20 and 30 to set the interruption duration based on the first errors and the second error. The setter 14 of the communication device 10 corresponds to an example of a setting means for setting, for the communication devices 20 and 30, the interruption duration for which the communication devices 20 and 30 interrupt data transmission at least at the beginning or end of the time period. The interruption duration set by the setting means is greater than or equal to the largest error from the first errors and the second error of the clock unit 11 when measuring time. The adjuster 15 is primarily implemented by the processor 41 of the communication device 10. The adjuster 15 sets the interruption duration as instructed by the setter 14. Specifically, the adjuster 15 stores the interruption duration by storing data indicating the interruption duration contained in the instruction from the setter 14 in a predetermined area of the main memory 42 or the auxiliary memory 43. Communicator 16 is primarily implemented by processor 41 and communicator 47 of communication device 10, which operate together. As shown in Figures 3 to 5, communicator 16 communicates with communication devices 20 and 30 in each time period defined by the divided time measured by clock unit 11. The communication device 20 includes, as functional components, a clock unit 21 that measures the shared time, a sharing unit 22 that synchronizes and shares the shared time with the communication devices 10 and 30, a transmitter 23 that transmits error information to the communication device 10 according to a request from the communication device 10, the setter 25 that sets the interruption duration as instructed by the communication device 10, and a communicator 26 that periodically communicates with the communication devices 10 and 30 in a time period that includes the interruption duration with the set length. The clock unit 21 is mainly implemented by the processor 41 and the clock generator 44 of the communication device 20, which cooperate with each other, and has the same structure as the clock unit 11 of the communication device 10. The sharing unit 22 is mainly implemented by the processor 41 and the communicator 47 of the communication device 20, which cooperate with each other, and has the same structure as the sharing unit 12 of the communication device 10. The setter 25 is mainly implemented by the processor 41 of the communication device 20 and has the same structure as the setter 15 of the communication device 10. The setter 25 of the communication device 20 corresponds to an example of setting means for setting the interruption duration set by the setting means.The communicator 26 is mainly implemented by the processor 41 and the communicator 47 of the communication device 20, which work with each other, and has the same structure as the communicator 16 of the communication device 10. The transmitter 23 is mainly implemented by the processor 41 and the communicator 47 of the communication device 20, which cooperate with each other. When the receiver 13 of the communication device 10 requests error information, the transmitter 23 reads information indicating the first error stored in the auxiliary memory 43 of the communication device 20 in advance. The transmitter 23 then generates error information indicating the first error and transmits the error information to the receiver 13. The transmitter 23 of the communication device 20 corresponds to an example of a transmission means for transmitting the error information to the second communication device. The processes performed by the communication device 40 will now be described with reference to Figs. 7 and 8. Fig. 7 shows a determination process performed by the communication device 10. The determination process is a process for determining the interruption duration and is part of a sequence performed by the communication device 40 for starting communications in each time period. In the determination process, the communication devices 40 transmit information to each other, for example, through IP communication. In the determination process, the acquirer 13 requests a message containing the error information from the communication devices 20 and 30 to obtain error information indicating the first errors from the communication devices 20 and 30 (step S11). Subsequently, the determiner 14 obtains information indicating the second error (step S12). Specifically, the determiner 14 reads information about the synchronization accuracy of the clock unit 11 stored in the auxiliary memory 43 of the communication device 10. The determiner 14 may obtain information indicating the second error from another information source. For example, the determiner 14 may obtain information indicating the second error by querying the synchronization accuracy of the clock unit 11 or from a server on the Internet by informing the server of the model number of the communication device 10. Subsequently, the setter 14 obtains the interruption duration to be set based on the first errors obtained in step S11 and the second error obtained in step S12 (step S13). Specifically, the setter 14 sets the largest error among the first errors and the second error and uses the length equal to the set error as the interruption duration. The setter 14 may obtain the interruption duration based on the first errors and the second error in other ways. For example, the setter 14 may calculate the interruption duration by multiplying the largest error among the first errors and the second error by a safety factor greater than 1.If the first error and the second error correspond to the standard deviation in a normal distribution, the setter 14 can set the interruption duration to three times the largest error so that the interruption duration corresponds to the confidence interval of 3σ of the normal distribution. The setter 14 can set the sum of the largest error and the second largest error of the first error and the second error as the interruption duration. Subsequently, the setter 14 instructs the adjusters 15 and 25 to set the interruption duration obtained in step S13 (step S14). Specifically, the setter 14 transmits setting commands for setting the interruption duration to the adjusters 15 and 25. The adjuster 25 sets the interruption duration as instructed in step S14 (step S15). In this way, the communication devices 40 can share the interruption duration to be included in the time periods S1 and S2 to enable communications between the communication devices 40. The communicator 16 then repeats communications in each of the time periods S1 and S2 (step S16). Fig. 8 shows a setting process performed by the communication device 20. The setting process is performed in response to the determination process performed by the communication device 10. The communication device 30 performs the setting process in the same manner as the communication device 20. In the setting process, the transmitter 23 determines whether error information is requested by the communication device 10 (step S21). If it is determined that the error information is still to be requested (No in step S21), the transmitter 23 repeats the determination in step S21 and waits for a request for the error information. If it is determined that the error information has been requested (Yes in step S21), the transmitter 23 generates error information indicating the first error and transmits the error information to the communication device 10 (step S22). Specifically, the transmitter 23 obtains information indicating the first error by reading information about the synchronization errors of the clock unit 21 in time measurement, which is stored in advance in the auxiliary memory 43 of the communication device 20. The transmitter 23 may obtain information indicating the first error from other information sources. The transmitter 23 may transmit the error information in a manner different from the request by the communication device 10 shown in Fig. 8. For example, when the communication devices 10 and 20 are connected and a sequence for establishing communication has begun, the transmitter 23 may spontaneously transmit error information. Next, the adjuster 25 determines whether the adjuster 25 has been instructed by the communication device 10 to set the interruption duration (step S23). If it is determined that the adjuster 25 has yet to receive the instruction from the communication device 10 (No in step S23), the adjuster 25 repeats the determination in step S23 and waits for the instruction from the communication device 10. If it is determined that the adjuster 25 has received the instruction from the communication device 10 (Yes in step S23), the adjuster 25 sets the interruption duration according to the instruction (step S24). The communicator 26 then repeats communications in each of the time periods S1 and S2 (step S25). The sequence diagram in Fig. 9 shows an example of communications performed by communication devices 10, 20, and 30. As shown in Fig. 9, communication device 10 requests the error information from communication devices 20 and 30 (step S31). Step S31 corresponds to step S11 in the setting process shown in Fig. 7. Subsequently, communication devices 20 and 30 transmit the error information in response to the request from communication device 10 (step S32). Step S32 corresponds to step S22 in the setting process shown in Fig. 8. Subsequently, the communication device 10 calculates an interruption duration based on the error information collected from the communication devices 20 and 30 (step S33). The interruption duration indicates the length of the interruption. Step S33 corresponds to step S13 in the setting process shown in Fig. 7. After that, the communication device 10 instructs the communication devices 20 and 30 to set the interruption duration calculated in step S33 (step S34). Step S34 corresponds to step S14 in the setting process shown in Fig. 7. The communication devices 20 and 30 set the interruption duration as instructed in step S34 (step S35). Step S35 corresponds to step S24 in the setting process shown in Fig. 8. The communication device 10 sets the interruption duration calculated in step S33 in the communication device 10 (step S36). Step S36 corresponds to step S15 in the setting process shown in Fig. 7. As described above, the acquirer 13 of the communication device 10 acquires the error information about the first errors of the communication devices 20 and 30 in timing, and the setter 14 sets the interruption duration for the communication devices 20 and 30, for which the communication devices 20 and 30 interrupt data transmission. The interruption duration set by the setting means is greater than or equal to a larger error among the first errors and the second error of the clock means in timing. This structure eliminates an operator's action for checking and adjusting the synchronization accuracy of the communication devices 20 and 30. This reduces the adjustment work for devices with different synchronization accuracies. Devices with higher synchronization accuracy typically have high initial costs, whereas devices with lower synchronization accuracy have low initial costs. Synchronization accuracy may be a synchronization performance that varies depending on the communication process or the type of synchronization. It is likely that devices with different architectures developed by different manufacturers will be connected to an industrial network. Although multiple devices with different levels of synchronization accuracy may be connected to a single network, in such a case, the communication system 1000 can easily set an appropriate interruption duration for the devices. The interruption duration set by setter 14 is equal to the largest error among the first errors and the second error. This structure can prevent reduced communication efficiency resulting from an increased interruption duration and minimize communication irregularities. In the example described above, the interruption duration specified by setter 14 is greater than the largest error from the first errors and the second error. For example, if a new device with low synchronization accuracy is newly connected to a network through which communication devices 10, 20, and 30 communicate with each other, the interruption duration greater than the largest error is expected to include any time measurement error of the new device. In other words, the interruption duration has a preset tolerance for the synchronization accuracy of a new device for the shared time. Embodiment 2 Embodiment 2 will now be described, focusing on the differences from Embodiment 1. Like reference numerals denote like or similar components in Embodiment 1. The present embodiment differs from Embodiment 1 in that the interruption duration is determined based on a predetermined table. As shown in Fig. 10, the communication device 10 according to the present embodiment includes a memory 102. The memory 102 is implemented by the main memory 42 and / or the auxiliary memory 43 of the communication device 10. The memory 102 stores allocation information that assigns a predefined value to a fault range, which defines the interruption duration to be set for the fault range. Fig. 11 shows an example of allocation information stored in the memory 102. In the example shown in Fig. 11, the allocation information assigns a value predefined as the interruption duration to the range containing the largest error among the first errors and the second error. The setter 14 identifies the predefined values assigned in the allocation information for the first errors and the second error and instructs the adjusters 15 and 25 to set the predefined values. In other words, the interruption duration set by the setter 14 for the adjusters 15 and 25 is equal to the predefined value assigned in the allocation information to the range containing the largest error among the first errors and the second error.The memory 102 of the communication device 10 corresponds to an example of a storage means for storing allocation information that allocates a predetermined value to an error range. The communication device 10 according to the present embodiment can easily determine and set the interruption duration larger than the largest error among the first errors and the second error by providing the interruption duration as the allocation information in advance. Embodiment 3 Embodiment 3 will now be described, focusing on the differences from Embodiment 1. Like reference numerals denote like or similar components in Embodiment 1. The present embodiment differs from Embodiment 1 in that the communication device 10 changes the interruption duration as needed depending on the communication state. As shown in Fig. 12, the communicator 16 of the communication device 10 according to the present embodiment includes an abnormality detector 161. In communications in each of the time periods S1 and S2, the abnormality detector 161 detects any communication abnormality resulting from the reception of data assigned a cycle number different from a cycle number assigned to the data to be received. For example, if the interruption period due to an error is set shorter, a communication abnormality occurs as shown in Fig. 4. The interruption period set based on the first errors and the second error may cause a communication abnormality even if an actual error of the communication devices 10, 20, and 30 in timekeeping increases, for example, due to age-related wear.When such a communication irregularity occurs, the communicator 16 discards the received data to exclude the data from processing targets, and the abnormality detector 161 detects the communication irregularity. The abnormality detector 161 notifies the setter 14 of the abnormality detection. The abnormality detector 161 of the communication device 10 corresponds to an example of an abnormality detection means for detecting an abnormality in communication with another device. When the abnormality detector 161 detects a communication abnormality, the setter 14 instructs the adjusters 15 and 25 to set an interruption duration greater than the current interruption duration. For example, the setter 14 may instruct the adjusters 15 and 25 to double the interruption duration, or may specify a new duration greater than the previously specified duration and instruct the adjusters 15 and 25 to set the specified duration. Fig. 13 shows exemplary communications according to the present embodiment. In the example shown in Fig. 13, the communication device 30 with lower synchronization accuracy is added to the normal communication performed by the communication devices 10 and 20 in each time period. The communication device 30 transmits data assigned a cycle number to the communication device 10 (step S41). Although the data can be received normally by the communication device 30, the communication device 10, which receives data at least once from the communication device 30 with low synchronization accuracy, detects a communication irregularity (step S42). Therefore, the communication device 10 determines a break duration that is longer than the current break duration (step S43). Subsequently, the communication device 10 performs steps S34 and S36 in the same manner as in the example shown in Fig.9, and the communication devices 20 and 30 perform step S35. Therefore, when the communication device 30 with low synchronization accuracy is reconnected to a network through which the communication devices 10 and 20 communicate with each other and causes a communication irregularity, the interruption time is appropriately extended to correct such a communication irregularity. Embodiment 4 Embodiment 4 will now be described, focusing on the differences from Embodiment 1. Like reference numerals denote like or similar components in Embodiment 1. The present embodiment differs from Embodiment 1 in that the communication device 10 detects a communication device 40 connecting to or disconnecting from a network and changes the disconnection duration in response to the detection. As shown in Fig. 14, the communicator 16 of the communication device 10 according to the present embodiment includes a failure detector 162 which detects a communication device 40 which has been disconnected from the network and whose communications have failed, and a device detector 163 which detects a communication device 40 which has been connected to the network to restart communications with the communication device 10 every time period. The failure detector 162 detects a communication failure by monitoring the transmission source of data to be periodically transmitted by the communication devices 40 on the network. For example, the failure detector 162 monitors a Media Access Control (MAC) address to identify the communication device 40 serving as the transmission source for data transmitted according to the synchronization protocol in each time slot in the TS1 time slot and for data in cyclic communications in the TS2 time slot. The failure detector 162 also determines whether reception of data assigned to the MAC address received in the past has failed at least once. If the failure detector 162 determines that data reception has failed, the failure detector 162 detects a communication failure with the communication device 40 corresponding to the MAC address.The failure detector 162 notifies the setter 14 of a detection result containing information indicating the failed device whose communications have failed. The failure detector 162 of the communication device 10 corresponds to an example of failure detection means for detecting, among the plurality of communication devices 40, a failed device whose communications with the communication device 10 have failed. Similar to the outage detector 162, the device detector 163 detects a new communication device 40 connecting to the network by monitoring the MAC address of the received data. For example, the device detector 163 determines whether data is newly received that is assigned a MAC address that has not been received in the past. When the device detector 163 determines reception of data from a new communication device 40, the device detector 163 detects addition of the new communication device 40. The device detector 163 notifies the subscriber 13 of the detection result, which includes information indicating the new communication device 40. The device detector 163 of the communication device 10 corresponds to an example of device detection means for detecting a new communication device 40 that communicates with the communication device 10 every time period. When the device detector 163 detects a new communication device 40, the acquirer 13 acquires error information from the new communication device 40 indicating a first shared time measurement error of the new communication device 40 and transmits the acquired error information to the setter 14. If the first time measurement error of the new communication device 40 is greater than the currently set interruption duration for the communication devices 20 and 30, the setter 14 sets an interruption duration for the setters 15 and 25 that is greater than the current interruption duration. This allows the setters 15 and 25 to set the interruption duration that corresponds to the synchronization accuracy of the communication device 40 newly connected to the network. When the failure detector 162 detects a failed device, the setter 14 determines whether the interruption period can be shortened based on the synchronization accuracy of the communication devices 40 excluding the failed device. If it is determined that the interruption period can be shortened, the setter 14 instructs the adjusters 15 and 25 to shorten the interruption period. Specifically, if the initial timing error of the failed device was the largest among the timing errors of the communication devices 40 that were communicating before the communication failure, the setter 14 sets the interruption period for the plurality of communication devices 40 excluding the failed device to be shorter than the current interruption period. Fig. 15 shows communications performed when a new communication device 31 having the same structure as the communication devices 20 and 30 is connected to the network through which the communication devices 10, 20, and 30 normally communicate with each other. As shown in Fig. 15, when the communication device 31 transmits data to the communication device 10 (step S51), the communication device 10 detects the new communication device 31 (step S52). The communication device 10 requests error information from the detected communication device 31 (step S53), and the communication device 31 transmits the error information (step S54). The communication device 10 then performs steps S33, S34, and S36 in the same manner as in the example in Fig. 9, and the communication device 20 performs step S35 in the same manner as in Fig. 9.In step S33, the communication device 10 calculates the interruption duration based on an error including the first error of the communication device 31. The communication device 31 performs step S35 in the same manner as the communication devices 20 and 30. In the example shown in Fig. 15, the interruption duration is recalculated and set independently of the first error of the communication device 31 during timing. However, if the acquisition of the interruption duration acquired in step S33 shows that the interruption duration does not need to be changed from the current value, the communication device 10 can skip providing setting instructions to the adjuster 15 of the communication device 10 and the adjusters 25 of the communication devices 20 and 30. If the first error of the communication device 31 is greater than one of the errors of the existing communication devices 10, 20, and 30, the interruption duration must be extended and reset in all communication devices 40. For example, if the errors of communication devices 10, 20 and 30 are 5 µs, 2 µs and 20 µs respectively and the error of communication device 31 is 25 µs, the interruption duration shall be reset to 25 µs. Fig. 16 shows communications performed when the communication device 31 is disconnected from the network over which the communication devices 10, 20, 30, and 31 normally communicate with each other. As shown in Fig. 16, when the communication device 31 transmits data to the communication device 10 (step S61) and is then disconnected from the network (step S62), the communication device 10 detects the communication device 31 as a failed device based on the failure of data to be received from the communication device 31 (step S63). The communication device 10 then performs steps S33, S34, and S36 in the same manner as the example in Fig. 9, and the communication devices 20 and 30 perform step S35 in the same manner as the example in Fig. 9. In step S33, the communication device 10 calculates the interruption duration based on the errors excluding the error of the failed device. In the example shown in Fig. 16, the interruption duration is recalculated and set regardless of the first fault of the communication device 31. However, if the acquisition of the interruption duration obtained in step S33 shows that the interruption duration does not need to be changed from the current value, the communication device 10 can skip steps S34 and S36. However, if the first fault of the communication device 31 alone is a largest fault among the faults of the communication devices 10, 20, 30, and 31, the interruption duration can be shortened. Therefore, the interruption duration can be shortened to improve communication efficiency. For example, if the faults of the communication devices 10, 20, 30, and 31 are 5 µs, 2 µs, 20 µs, and 25 µs, the interruption duration can be reset to 20 µs when the communication device 31 is disconnected from the network. As described above, the communication device 10 according to the present embodiment detects communications with the new communication device 40 via a network and a communication failure to appropriately change the interruption duration depending on the communication devices 40 connected to the network. Therefore, communication efficiency can be improved. Although one or more embodiments of the present disclosure have been described above, the present disclosure is not limited to the above embodiments. For example, in the above embodiments, error information is described as information directly indicating the synchronization accuracy corresponding to errors. However, the error information is not limited to this. For example, the error information may be information indicating a label corresponding to the synchronization accuracy from a plurality of labels including high, medium, and low. The setter 14 may determine the interruption duration depending on the label. The error information may be information indicating the source of the information indicating the errors.For example, the transmitter 23 of the communication device 20 transmits to the communication device 10 as error information, an address of a server operated by the manufacturer of the communication device 20, along with the model number of the communication device 20. The receiver 13 of the communication device 10 can obtain information indicating the error of the communication device 20 by querying the synchronization accuracy corresponding to the model number from the server. The setter 14 can obtain the clock rate of the processor 41 of the communication device 20 as information about the errors and calculate the errors of the communication device 20 based on the clock rate. The communication system 1000 may include any number of communication devices 40 other than that in the above embodiments. The number of communication devices 40 may be changed as needed. In the above embodiments, the interruption period is set at the beginning and end of each of the time periods 51 and 52, but may be set differently. For example, if no communication is performed in the last time slot TS0 included in each of the time periods 51 and 52, the interruption period does not need to be set at the end of each of the time periods 51 and 52, and the interruption period may only be set at the beginning. Similarly, if no communication is performed in the first time slot TS1, the interruption period may only be set at the end. The functions of the communication device 40 can be implemented either by dedicated hardware or a normal computer system. For example, the program P1 executed by the processor 41 can be stored in a non-volatile computer-readable recording medium, distributed, and installed on a computer to implement a device that performs the above processes. Examples of such a non-volatile recording medium include a floppy disk, a CD-ROM (Compact Disc Read-Only Memory), a DVD (Digital Versatile Disc), and a magneto-optical (MO) floppy disk. The program P1 may be stored in a drive device included in a server device on a communication network such as the Internet, and may be superimposed on a carrier wave and downloaded to a computer, for example. The above processes can also be performed by starting and executing the program P1 while transmitting the program P1 over a communication network. The above processes can also be performed by executing the program P1 in whole or in part on the server device, and executing the program while a computer transmits and receives information about the processes via a communication network. In the system having the above functions, which are partially implementable by the operating system (OS) or by cooperation between the OS and applications, parts executable by applications other than the OS may be stored in a non-volatile recording medium that can be distributed or may be downloaded to a computer. Means for implementing the functions of the communication device 40 are not limited to software and may be implemented partially or entirely by dedicated hardware with a circuit. The foregoing describes some exemplary embodiments for illustrative purposes. Although the foregoing discussion has presented specific embodiments, it will be understood by those skilled in the art that changes may be made in form and detail without departing from the broader spirit and scope of the invention. Accordingly, the specification and drawings are to be regarded as exemplary rather than restrictive. This detailed description, therefore, is not to be considered limiting, and the scope of the invention is defined solely by the appended claims, along with the full scope of equivalents assigned to such claims. Industrial applicability The present disclosure is applicable to a communication system in which devices communicate with each other in each of time periods defined by a time shared between the devices. List of reference symbols 1000 communication system 10, 20, 30, 31, 40 communication device 11, 21 clock unit 12, 22 sharing unit 13 subscriber 14 setter 15, 25 adjuster 16, 26 communicator 161 irregularity detector 162 failure detector 163 device detector 102 memory 23 transformer 41 processor 42 main memory 43 auxiliary memory 44 clock generator 45 input device 46 output device 47 communicator 49 internal bus 51, 52 time period 401, 402 industrial network P1 program

Claims

A communication device (10) for communicating with another device (20, 30) in each of time periods defined by a shared time shared with the other device (20, 30), the communication device (10) comprising:a clock means (11) for measuring the shared time;a reference means (13) for obtaining, from the other device (20, 30), error information about a first error of the other device (20, 30) in measuring the shared time; and a setting means (14) for setting, for the other device (20, 30), an interruption duration at at least a beginning or an end of each of the time periods, wherein the interruption duration is a duration for which the other device (20, 30) interrupts a data transmission, wherein the interruption duration set by the setting means (14) is greater than or equal to a larger error from the first error and a second error, which is an error of the clock means (11) in measuring time. A communication device (10) according to claim 1, wherein the obtaining means (13) obtains the error information indicating the first error from the other device (20, 30), and the interruption duration determined by the determining means (14) is equal to the larger error of the first error and the second error. A communication device (10) according to claim 1, further comprising: a storage means (102) for storing allocation information which allocates an error range to a predefined value, wherein the obtaining means (13) obtains the error information indicating the first error from the other device (20, 30), and the interruption duration set by the setting means (14) is equal to the predefined value allocated in the allocation information to a range containing the larger error from the first error and the second error. A communication device (10) according to any one of claims 1 to 3, further comprising:an abnormality detection means (161) for detecting an irregularity in communication with the other device (20, 30), wherein the setting means (14) sets for the other device (20, 30) an interruption duration that is greater than the currently set interruption duration when the irregularity is detected by the irregularity detection means (161). The communication device (10) according to any one of claims 1 to 4, further comprising: a device detection means (163) for detecting a new device configured to communicate with the communication device (10) in each of the time periods, wherein the obtaining means (13) obtains from the new device the error information about the new device's first error in measuring the shared time when the new device is detected by the device detection means (163), and the setting means (14) sets a break duration for the other device (20, 30) that is longer than the currently set break duration when the new device's first error in measuring time is longer than the break duration set for the other device (20, 30). Communication device (10) according to one of claims 1 to 5, wherein the communication device (10) communicates with a plurality of other devices (20, 30), the setting means (14) sets the interruption duration for the plurality of other devices (20, 30), and the interruption duration set by the setting means (14) is greater than or equal to a largest error from the first errors of the plurality of other devices (20, 30) in time measurement and the second error. A communication device (10) according to any one of claims 1 to 6, further comprising:a failure detection means (162) for detecting, among the plurality of other devices (20, 30), a failed device in which communications with the communication device (10) have failed, wherein the setting means (14) sets, for the plurality of other devices (20, 30) excluding the failed device, an interruption duration that is shorter than the currently set interruption duration when the first error of the failed device in time measurement is a largest error among the first errors of the plurality of other devices (20, 30) in time measurement. A communication system (1000) comprising: a first communication device (20, 30); and a second communication device (10) communicating with the first communication device (20, 30) in each of time periods defined by a shared time shared with the first communication device (20, 30), wherein the second communication device (10) comprises: a clock means (11) for measuring the shared time; a reference means (13) for obtaining, from the first communication device (20, 30), error information about a first error of the first communication device (20, 30) in measuring the shared time; and a setting means (14) for setting, for the first communication device (20, 30), an interruption duration at at least a beginning or an end of each of the time periods, wherein the interruption duration is a duration for which the first communication device (20, 30) interrupts data transmission.wherein the interruption duration set by the setting means (14) is greater than or equal to a larger error from the first error and a second error, which is an error of the clock means (11) in measuring time, wherein the first communication device (20, 30) comprises: a transmission means (23) for transmitting the error information to the second communication device (10), and a setting means (25) for setting the interruption duration set by the setting means (14). A communication method to be implemented with a communication device (10) that communicates with another device (20, 30) in each of time periods defined by a shared time shared with the other device (20, 30), the method comprising: setting, for the other device (20, 30), an interruption duration at at least a beginning or an end of each of the time periods, wherein the interruption duration is a duration for which the other device (20, 30) interrupts a data transmission, the set interruption duration being greater than or equal to a larger error of a first error of the other device (20, 30) in measuring the shared time and a second error of the communication device (10) in measuring the shared time. A program to be executed by a computer (10) communicating with a device (20, 30) in each of time periods defined by a shared time shared with the device (20, 30), the program causing the computer (10) to perform operations comprising:setting, for the device (20, 30), an interruption duration at at least a beginning or an end of each of the time periods, the interruption duration being a duration for which the device (20, 30) interrupts a data transmission, the set interruption duration being greater than or equal to a major error of a first error of the device in measuring the shared time and a second error of the computer (10) in measuring the shared time.

Citation Information

Patent Citations

  • Cooperation instruction device, cooperation instruction program, and cooperation instruction method

    JP2017142740A

  • Radio communication apparatus and radio communication system

    JP2011234400A

  • Wireless communication device, wireless information collection system, and wireless communication method

    US20180212697A1

  • JP002011234400A