Master device, slave device, network system, communication control method, and computer program
Patent Information
- Application Number
- JP2021006725
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-01-19
- Publication Date
- 2025-03-05
- Estimated Expiration
- 2041-01-19
AI Technical Summary
【0026】 本発明の一側面に係るマスタ装置、本発明の一側面に係るスレーブ装置、本発明の一側面に係るネットワークシステム、本発明の一側面に係る通信制御方法、本発明の一側面に係るコンピュータプログラムのいずれかによれば、通信ネットワークの通信状態が一時的に悪化している場合でも、通信不能となることを回避することが可能となる。
Smart Images

Figure 0007639355000001 
Figure 0007639355000002 
Figure 0007639355000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a master device, a slave device, a network system, a communication control method, and a computer program. [Background technology]
[0002] In the field of factory automation (FA), various types of devices that share the work process are controlled. In order to link various controllers, remote I / O, and manufacturing devices used for work in a certain area such as a factory facility, industrial network systems, also called field networks, are constructed to connect these devices.
[0003] A typical industrial network system uses a master-slave network consisting of various slave devices and a master device. The slave devices are devices that control or collect data from equipment installed in a factory. The master device is a device that centrally manages these slaves, and is called a Programmable Logic Controller (PLC), for example. EtherCAT (registered trademark) and Ethernet / IP (registered trademark) are examples of such industrial network system types (ETHERNET: registered trademark). In such industrial network systems, communication cables are stretched between each device to create a network.
[0004] A related technique is disclosed in the following Patent Document 1. Patent Document 1 relates to a mobile communication device having a data retransmission control function. The mobile communication device includes a setting unit that sets some of multiple wireless frames to dedicated retransmission frames according to the reception quality level of data in a receiving device, and a retransmission control unit that, when a failure response is received from the receiving device, reallocates and retransmits data that was not properly received to a wireless frame corresponding to the reception timing of the failure response, and further allocates and retransmits the data to the dedicated retransmission frame, and by setting the dedicated retransmission frame, the number of times data can be retransmitted is increased from the maximum number of retransmissions before the dedicated retransmission frame was set. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] International Publication No. 2008 / 120275 Summary of the Invention [Problem to be solved by the invention]
[0006] In industrial network systems, noise may occur due to various factors, and the noise may cause a state in which communication cannot be performed. The above-mentioned Patent Document 1 deals with failure responses by setting a dedicated retransmission frame and increasing the number of times data can be retransmitted beyond the maximum number of times before the dedicated retransmission frame was set.
[0007] However, Patent Document 1 relates to a mobile communication device, and this technology cannot be applied to an industrial network system.
[0008] The present invention has been made in consideration of the above problems, and aims to provide a master device or the like in an industrial network system that can avoid communication failure even when the communication status of a communication network temporarily deteriorates. [Means for solving the problem]
[0009] In order to solve the above problems, the present invention employs the following configuration.
[0010] A master device according to one aspect of the present invention includes a communication unit that communicates with a plurality of slave devices via a communication network, and a control unit that, when receiving from one of the plurality of slave devices via the communication unit that information regarding the signal quality of a communication cable is an abnormal value, changes an upper limit of the number of timeout detection counts for the plurality of slave devices and transmits the changed upper limit of the number of timeout detection counts to the plurality of slave devices via the communication unit.
[0011] According to the above configuration, the control unit transmits the changed upper limit value of the timeout detection count to the multiple slave devices via the communication unit, so that it is possible to avoid communication failure even if the communication status of the communication network temporarily deteriorates.
[0012] In the master device relating to the above-mentioned aspect, the master device further includes a memory unit that stores an upper limit value of the number of timeout detections for each of the multiple slave devices, and when the control unit receives from any of the multiple slave devices via the communication unit that information regarding the signal quality of the communication cable is an abnormal value, the control unit increases the upper limit value of the number of timeout detections for each of the multiple slave devices stored in the memory unit and transmits the upper limit values of the number of timeout detections corresponding to the multiple slave devices via the communication unit.
[0013] According to the above configuration, the upper limit of the number of timeout detections for each of the plurality of slave devices stored in the storage unit is increased, so that it is possible to avoid a situation in which a slave device is unable to transmit or receive packets.
[0014] In the master device relating to the above-mentioned aspect, when the control unit receives from any of the multiple slave devices via the communication unit that information regarding the signal quality of the communication cable is an abnormal value, the control unit transmits the same upper limit value of the number of timeout detections to all of the multiple slave devices via the communication unit.
[0015] According to the above configuration, the control unit transmits the same upper limit value of the timeout detection count to all of the multiple slave devices via the communication unit, thereby making it possible to avoid a situation in which a slave device whose information regarding the signal quality of the communication cable is normal is unable to send or receive packets.
[0016] In the master device relating to the above-mentioned aspect, when the control unit receives, via the communication unit, from a slave device whose information regarding the signal quality of the communication cable was an abnormal value, that the information regarding the signal quality of the communication cable has returned to a normal value, the control unit instructs the multiple slave devices to restore the upper limit value of the timeout detection count to the original value.
[0017] According to the above configuration, the slave devices are instructed to restore the upper limit value of the number of timeout detections to the original value, so that when the communication state of the communication network returns to normal, it is possible to respond to that.
[0018] A slave device according to one aspect of the present invention includes a communication unit that communicates with a master device, and a control unit that acquires information regarding the signal quality of a connected communication cable, and if the information regarding the signal quality of the communication cable is an abnormal value, notifies the master device via the communication unit that the information regarding the signal quality of the communication cable is an abnormal value, and upon receiving a changed upper limit value for the number of timeout detections from the master device via the communication unit, sets the upper limit value for the number of timeout detections.
[0019] According to the above configuration, when the control unit receives the changed upper limit value of the timeout detection count from the master device via the communication unit, the control unit sets the upper limit value of the timeout detection count, so that it is possible to avoid communication failure even if the communication status of the communication network temporarily deteriorates.
[0020] A network system according to one aspect of the present invention is a network system comprising a master device and a plurality of slave devices, wherein the master device includes a first communication unit that communicates with the plurality of slave devices via a communication network, and a first control unit that, when receiving from any of the plurality of slave devices via the first communication unit that information regarding the signal quality of a communication cable is an abnormal value, changes an upper limit of the number of timeout detections for the plurality of slave devices and transmits the changed upper limit of the number of timeout detections to the plurality of slave devices via the first communication unit, and each of the plurality of slave devices includes a second communication unit that communicates with the master device, and a second control unit that acquires information regarding the signal quality of the communication cable, and, if the information regarding the signal quality of the communication cable is an abnormal value, notifies the master device via the second communication unit that the information regarding the signal quality of the communication cable is an abnormal value, and when receiving the changed upper limit of the number of timeout detections from the master device via the second communication unit, sets the upper limit of the number of timeout detections.
[0021] According to the above configuration, the first control unit transmits the changed upper limit value of the timeout detection count to the multiple slave devices via the first communication unit, so that it is possible to avoid communication failure even if the communication status of the communication network temporarily deteriorates.
[0022] A communication control method according to one aspect of the present invention includes a step of changing an upper limit of the number of timeout detection counts of the multiple slave devices when a master device receives from one of multiple slave devices that information regarding the signal quality of a communication cable is an abnormal value, and a step of transmitting the changed upper limit of the number of timeout detection counts to the multiple slave devices.
[0023] According to the above configuration, the master device transmits the changed upper limit value of the timeout detection count to the multiple slave devices, so that it is possible to avoid communication failure even if the communication status of the communication network temporarily deteriorates.
[0024] A computer program according to one aspect of the present invention is a computer program for causing a computer to execute a communication control method, the communication control method including the steps of: when receiving from one of a plurality of slave devices information indicating that information regarding the signal quality of a communication cable is an abnormal value, changing an upper limit of the number of timeout detection counts for the plurality of slave devices; and transmitting the changed upper limit of the number of timeout detection counts to the plurality of slave devices.
[0025] According to the above configuration, the master device transmits the changed upper limit value of the timeout detection count to the multiple slave devices, so that it is possible to avoid communication failure even if the communication status of the communication network temporarily deteriorates. Effect of the Invention
[0026] According to any one of the master device according to an aspect of the present invention, the slave device according to an aspect of the present invention, the network system according to an aspect of the present invention, the communication control method according to an aspect of the present invention, and the computer program according to an aspect of the present invention, it is possible to avoid communication failure even when the communication status of the communication network temporarily deteriorates. [Brief description of the drawings]
[0027] [Figure 1] 2 is a block diagram showing a functional configuration of a master device included in the network system according to the embodiment of the present invention. FIG. [Diagram 2] 11A and 11B are diagrams illustrating changes made by the master device to the upper limit of the number of timeout detections. [Diagram 3] 1 is a diagram showing a schematic configuration of a network system including a master device according to an embodiment of the present invention. [Figure 4] 10 is a flowchart illustrating a processing procedure of the master device. [Diagram 5] 11 is a flowchart for explaining a processing procedure of a PC or an HMI. [Figure 6] FIG. 2 is a block diagram showing a functional configuration of a slave device included in the network system according to the embodiment of the present invention. [Figure 7] 5 is a flowchart illustrating a processing procedure of a slave device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0028] Hereinafter, an embodiment according to one aspect of the present invention (hereinafter, also referred to as "the present embodiment") will be described with reference to the drawings.
[0029] §1 Examples of application (Configuration example of master device 10) 1 is a block diagram showing a functional configuration of a master device 10 included in a network system 1 according to an embodiment of the present invention. The network system 1 includes a master device 10, a hub device 17, slave devices 21a to 21e, and a PC (Personal Computer) 30.
[0030] The master device 10, the slave device 21a, and the PC 30 are connected by a communication network such as EtherCAT (registered trademark), Ethernet / IP (registered trademark), etc. In this embodiment, a case where these devices are connected to an Ethernet / IP (registered trademark) communication network will be described, but is not limited to this. The communication network may be, for example, a network system such as Mechatrolink (registered trademark), CC-Link (registered trademark), etc.
[0031] 1, master device 10 and slave device 21a are connected by a communication cable 61. Similarly, slave device 21a and slave device 21b are connected by a communication cable 62, and slave device 21b and hub device 17 are connected by a communication cable 63. Hub device 17 and slave device 21c are connected by a communication cable 64, hub device 17 and slave device 21d are connected by a communication cable 65, and hub device 17 and slave device 21e are connected by a communication cable 66. Slave devices 21a to 21b are connected by a daisy chain connection, and slave devices 21c to 21e are connected by a star connection.
[0032] The slave devices 21a to 21e each have a circuit (hereinafter referred to as a PHY circuit) for controlling the physical layer, and are capable of acquiring an SQI (Signal Quality Indicator) value (information related to the signal quality of the communication cable) of the communication cable connected via the PHY circuit.
[0033] The master device 10 includes a control unit (first control unit) 101, a storage unit 102, and a communication unit (first communication unit) 103. The communication unit 103 is connected to the slave device 21a and the PC 30 via a communication network such as Ethernet / IP (registered trademark). Note that communication between the communication unit 103 and the slave devices 21a to 21e is performed by cyclic communication.
[0034] The storage unit 102 is configured with a RAM (Random Access Memory), a flash memory, a hard disk, etc., and stores data referenced by the control unit 101 and is used as a primary storage area.
[0035] The storage unit 102 stores an upper limit value of the timeout detection count for each of the slave devices 21a to 21e. This upper limit value of the timeout detection count is set in advance for each of the slave devices 21a to 21e by a user. Alternatively, the same upper limit value of the timeout detection count may be set for all of the slave devices 21a to 21e.
[0036] When control unit 101 receives information from any of the plurality of slave devices 21a-21e that the SQI value is an abnormal value, it reads out the upper limit value of the timeout detection count for each of slave devices 21a-21e stored in storage unit 102. Control unit 101 then changes the upper limit value of each timeout detection count and transmits it to the corresponding slave device 21a-21e via communication unit 103. For example, control unit 101 adds "1" to the upper limit value of each timeout detection count and transmits it to the corresponding slave device 21a-21e via communication unit 103.
[0037] In addition, the control unit 101 may add "1" to the largest upper limit value of the number of timeout detections of each of the slave devices 21a to 21e stored in the storage unit 102, and transmit the same upper limit value of the number of timeout detections to all of the slave devices 21a to 21e.
[0038] Thereafter, when control unit 101 receives a notification via communication unit 103 from a slave device whose SQI value was an abnormal value that the SQI value is now normal, control unit 101 reads out the upper limit value of the timeout detection count for each of slave devices 21a to 21e stored in memory unit 102, and transmits the upper limit value of the timeout detection count corresponding to slave devices 21a to 21e, thereby instructing each slave device to reset the timeout detection count to its original value.
[0039] Each of the slave devices 21a to 21e is provided with an input port and an output port, and a communication cable is connected to each of the ports. The slave devices 21a to 21e are capable of acquiring the SQI values of both the input port and the output port.
[0040] Each of the slave devices 21a to 21e periodically measures the SQI value of the communication cable connected to the slave device, and determines whether the SQI value is abnormal. For example, each of the slave devices 21a to 21e acquires the SQI value of the communication cable at a 100 ms cycle (predetermined cycle), and sets the average value of 10 SQI values (predetermined number of times) as the SQI value of each slave device.
[0041] Then, each of the slave devices 21a to 21e determines whether the SQI value is abnormal by comparing the SQI value with a predetermined value. For example, the predetermined value is "40", and if the SQI value is equal to or less than this value, the SQI value is determined to be abnormal.
[0042] As described above, communication between the master device 10 and the slave devices 21a to 21e is performed by cyclic communication, with the master device 10 transmitting a packet to the slave device 21a. Upon receiving the packet, the slave device 21a writes data into the packet and transmits the packet to the slave device 21b. In the same manner, packets are transmitted to the slave devices in sequence, and after the last slave device 21e writes data into the packet, the packet is transmitted to the master device 10. In this manner, each of the slave devices 21a to 21e sequentially writes data into one packet and transmits it, so that the master device 10 can acquire the data of each of the slave devices 21a to 21e at high speed.
[0043] If a state occurs in which packets cannot be transmitted between master device 10 and slave device 21a, or between slave devices 21a to 21e, master device 10 notifies slave devices 21a to 21e that it has detected a timeout since it was unable to receive a packet within a predetermined time. Then, master device 10 retransmits the packet.
[0044] Each of the slave devices 21a to 21e tolerates not being able to receive packets until the upper limit of the timeout detection count is reached. Therefore, if a small upper limit of the timeout detection count is set in a slave device other than the slave device in which communication is disabled, that slave device may detect a timeout first. To avoid such a situation, when the SQI value of any of the communication cables 61 to 66 becomes abnormal, the master device 10 performs a process of changing the upper limit of the timeout detection count of each of the slave devices 21a to 21e.
[0045] 2 is a diagram showing a schematic diagram of a change in the upper limit of the number of timeout detections for each of the slave devices 21a to 21e by the master device 10. The slave device 21a measures the SQI value of the communication cable 61 connecting the master device 10 and its own slave device 21a, and if the SQI value is abnormal, notifies the master device 10 that the SQI value is abnormal. The slave device 21a also measures the SQI value of the communication cable 62 connecting its own slave device 21a and slave device 21b, and if the SQI value is abnormal, notifies the master device 10 that the SQI value is abnormal.
[0046] Slave device 21b measures the SQI value of communication cable 63 connecting slave device 21b itself to hub device 17, and if the SQI value is abnormal, notifies master device 10 that the SQI value is abnormal. Note that the measurement of the SQI value of communication cable 62 connecting slave device 21a and slave device 21b may be performed by either slave device 21a or 21b.
[0047] Slave device 21c measures the SQI value of communication cable 64 connecting its own slave device 21c and hub device 17, and if the SQI value is abnormal, notifies master device 10 that the SQI value is abnormal. Slave device 21d measures the SQI value of communication cable 65 connecting its own slave device 21d and hub device 17, and if the SQI value is abnormal, notifies master device 10 that the SQI value is abnormal. Similarly, slave device 21e measures the SQI value of communication cable 66 connecting its own slave device 21e and hub device 17, and if the SQI value is abnormal, notifies master device 10 that the SQI value is abnormal.
[0048] For example, if the SQI value of communication cable 62 connecting slave device 21a and slave device 21b is below the abnormal value of "40", slave device 21a notifies master device 10 that the SQI value is abnormal. Upon receiving notification from slave device 21a that the SQI value is abnormal, master device 10 changes the upper limit of the number of timeout detections for each of slave devices 21a to 21e and transmits the upper limit of the number of timeout detections to each of slave devices 21a to 21e.
[0049] §2 Configuration Example (Overview of Network System 1) 3 is a diagram showing a schematic configuration of a network system 1 including a master device 10 according to an embodiment of the present invention. The network system 1 includes the master device 10, hub devices 15-17, slave devices 21a-21e, 22a-22c, and 23a-23c, a PC (terminal device) 30, and an HMI (Human Machine Interface) (terminal device) 40.
[0050] The network system may be, for example, a field network system configured by a group of manufacturing devices in a factory. The master device 10 may be, for example, a device such as a PLC.
[0051] Master device 10 is connected to a plurality of slave devices 21a to 21c, 22a to 22c, and 23a to 23 through a communication network via hub devices 15 and 16. Furthermore, slave device 21b is connected to slave devices 21c to 21e through hub device 17. For example, the plurality of slave devices 21a to 21b, 22a to 22c, and 23a to 23c are connected by a daisy chain connection, and slave devices 21c to 21e are connected by a star connection.
[0052] The PC 30 and the HMI 40 are connected to the master device 10 via the hub device 15, and transmit instructions to the master device 10 and transmit the upper limit value of the timeout detection count of each of the slave devices 21a to 21e to the master device 10. When the master device 10 changes the upper limit value of the timeout detection count of each of the slave devices 21a to 21e, the PC 30 and the HMI 40 receive the changed upper limit value of the timeout detection count from the master device 10. The PC 30 and the HMI 40 may then display the changed upper limit value of the timeout detection count on a display unit. The PC 30 and the HMI 40 are also referred to as terminal devices.
[0053] §3 Example of operation 4 is a flowchart for explaining the processing procedure of the master device 10. First, the control unit 101 determines whether or not a notification that the SQI value is an abnormal value has been received from any of the slave devices 21a to 21e via the communication unit 103 (S1). If no notification has been received from any of the slave devices (S1, No), the processing of step S1 is repeated.
[0054] Furthermore, when control unit 101 receives a notification from any of slave devices 21a-21e that the SQI value is abnormal, control unit 101 reads out the upper limit value of the timeout detection count for each of slave devices 21a-21e stored in storage unit 102, and increments the upper limit value of the timeout detection count by 1. Then control unit 101 transmits the corresponding upper limit value of the timeout detection count to each of slave devices 21a-21e via communication unit 103, and instructs them to change the upper limit value of the timeout detection count (S2).
[0055] Next, the control unit 101 judges whether or not the hold time has elapsed (S3). This hold time is the time for which the state is to be held after the upper limit value of the timeout detection count is changed. This hold time is assumed to be set in advance by the user. If the hold time has not elapsed (S3, No), the process of step S3 is repeated.
[0056] Furthermore, if the retention time has elapsed (S3, Yes), control unit 101 determines whether or not a notification that the SQI value is normal has been received from the slave device whose SQI value was abnormal via communication unit 103 (S4). If a notification that the SQI value is normal has not been received (S4, No), the process returns to step S2 and repeats the subsequent steps. In this case, the communication failure of the slave device whose SQI value was abnormal has not been resolved, so the number of timeout detections is changed again.
[0057] Furthermore, if a notification that the SQI value is normal is received via communication unit 103 (S4, Yes), control unit 101 reads out the upper limit value of the timeout detection count for each of slave devices 21a to 21e stored in memory unit 102, and transmits the upper limit value of the timeout detection count corresponding to slave devices 21a to 21e, thereby instructing them to reset the timeout detection count to the original value (S5).
[0058] Finally, the control unit 101 judges whether or not to end the process (S6). For example, if an instruction to stop the system is received, it judges that the process is to be ended. If the process is not to be ended (S6, No), the process returns to step S1 and the subsequent processes are repeated. If the process is to be ended (S6, Yes), the process is ended as it is.
[0059] 5 is a flowchart for explaining the processing procedure of the PC 30 or the HMI 40. First, the PC 30 or the HMI 40 determines whether or not the timeout detection count change function has been enabled by the user (S11). If the timeout detection count change function has not been enabled (S11, No), the process ends.
[0060] Furthermore, if the timeout detection count change function is enabled (S11, Yes), the PC 30 or the HMI 40 notifies the master device 10 of the upper limit value of the timeout detection count of each of the slave devices 21a to 21e set by the user (S12).
[0061] Next, the PC 30 or the HMI 40 notifies the master device 10 of the time for which the change in the upper limit of the number of timeout detections set by the user is to be held (S13).
[0062] Finally, it is determined whether or not the process is to be ended (S14). If the process is not to be ended (S14, No), the process returns to step S12 and the subsequent processes are repeated. If the process is to be ended (S14, Yes), the process is ended as it is.
[0063] (Example of the configuration of the slave device 21a) 6 is a block diagram showing the functional configuration of slave device 21a included in network system 1 according to the embodiment of the present invention. Slave device 21a includes a control unit (second control unit) 211, a storage unit 212, and a communication unit (second communication unit) 213. Note that since slave devices 21a to 21e have similar configurations and functions, only slave device 21a will be described as a representative.
[0064] The communication unit 213 is connected to the master device 10 and the slave device 21b via a communication network such as EtherCAT (registered trademark). The communication between the communication unit 213 and the slave devices 21b to 21e is performed by cyclic communication.
[0065] The storage unit 212 is configured from a RAM, a flash memory, a hard disk, etc., and stores data referenced by the control unit 211 and is used as a primary storage area.
[0066] The control unit 211 periodically acquires the SQI value of the communication cable 61 and stores it in the storage unit 212. For example, the control unit 211 acquires the SQI value of the communication cable 61 at 100 ms intervals (predetermined intervals) and sets the average of the SQI values for 10 times (predetermined number of times) as the SQI value of the communication cable 61. Then, the control unit 211 determines whether the SQI value (average value) is equal to or less than a predetermined abnormal value.
[0067] If the SQI value is abnormal, control unit 211 notifies master device 10 that the SQI value is abnormal via communication unit 213. Thereafter, when control unit 211 receives an instruction to change the upper limit of the number of timeout detections from master device 10 via communication unit 213, control unit 211 stores this upper limit of the number of timeout detections in storage unit 212. Control unit 211 allows packets to be received inappropriately based on this upper limit of the number of timeout detections.
[0068] Furthermore, after changing the upper limit of the number of timeout detections, the control unit 211 periodically acquires the SQI value of the communication cable 61 and determines whether the SQI value has recovered from an abnormal value to a normal value. If the SQI value has recovered from an abnormal value to a normal value, the control unit 211 notifies the master device 10 via the communication unit 213 that the SQI value has recovered from an abnormal value to a normal value.
[0069] 7 is a flowchart for explaining the processing procedure of the slave device 21a according to the embodiment of the present invention. First, the control unit 211 acquires the SQI value of the communication cable 61, and judges whether the SQI value is an abnormal value (S21). If the SQI value is not an abnormal value (S21, No), the processing of step S21 is repeated.
[0070] Furthermore, if the SQI value is abnormal (S21, Yes), control unit 211 notifies master device 10 that the SQI value is abnormal via communication unit 213 (S22). Thereafter, control unit 211 determines whether or not an instruction to change the upper limit of the number of timeout detections has been received from master device 10 via communication unit 213 (S23).
[0071] If an instruction to change the upper limit of the timeout detection count has not been received (S23, No), the process of step S23 is repeated. If an instruction to change the upper limit of the timeout detection count has been received (S23, Yes), the changed upper limit of the timeout detection count is stored in storage unit 212, and the upper limit of the timeout detection count is changed (S24).
[0072] Next, the control unit 211 acquires the SQI value of the communication cable 61, and judges whether or not the SQI value is normal (S25). If the SQI value is not normal (S25, No), the process of step S25 is repeated. If the SQI value is normal (S25, Yes), the control unit 211 notifies the master device 10 via the communication unit 213 that the SQI value is normal (S26).
[0073] Next, the control unit 211 determines whether or not an instruction to reset the upper limit value of the timeout detection count to its original value has been received from the master device 10 via the communication unit 213 (S27). If an instruction to reset the upper limit value of the timeout detection count to its original value has not been received (S27, No), the process of step S27 is repeated. If an instruction to reset the upper limit value of the timeout detection count to its original value has been received (S27, Yes), the control unit 211 resets the upper limit value of the timeout detection count to its original value (S28).
[0074] Finally, the control unit 211 judges whether or not to end the process (S29). For example, if an instruction to stop the system is received, it judges that the process is to be ended. If the process is not to be ended (S29, No), the process returns to step S21 and the subsequent processes are repeated. If the process is to be ended (S29, Yes), the process is ended as it is.
[0075] § 4 Action and effect According to an embodiment of the present invention, the control unit 101 of the master device 10 transmits the changed upper limit value of the timeout detection count to the multiple slave devices 21a to 21e via the communication unit 103, so that it is possible to avoid communication failure even if the communication state of the communication network temporarily deteriorates.
[0076] In addition, since the control unit 101 increases the upper limit of the number of timeout detections for each of the multiple slave devices 21a to 21e stored in the storage unit 102 and transmits the increased upper limit, it is possible to avoid a situation in which the slave devices 21a to 21e are unable to transmit packets.
[0077] Furthermore, since control unit 101 transmits the same upper limit value for the number of timeout detections to all of the plurality of slave devices 21a to 21e via communication unit 103, it is possible to avoid a situation in which a timeout is detected in a slave device whose SQI value is normal.
[0078] Furthermore, when the control unit 101 receives notification that the SQI value has returned to a normal value, it instructs the slave devices 21a to 21e to restore the upper limit value of the number of timeout detections to the original value, so that it becomes possible to respond when the communication state of the communication network has returned to normal.
[0079] Furthermore, when the control unit 211 of the slave device 21a receives the changed upper limit value of the timeout detection count from the master device 10 via the communication unit 213, the control unit 211 sets the upper limit value of the timeout detection count, so that it is possible to avoid communication failure even if the communication state of the communication network temporarily deteriorates.
[0080] [Software implementation example] The functional blocks of the master device 10 and the slave device 21a (particularly, the control units 101 and 211) may be realized by a logic circuit (hardware) formed on an integrated circuit (IC chip) or the like, or may be realized by software.
[0081] In the latter case, the master device 10 and the slave device 21a are equipped with a computer that executes instructions of a program, which is software that realizes each function. The computer is equipped with, for example, one or more processors and a computer-readable recording medium that stores the program. In the computer, the processor reads the program from the recording medium and executes it, thereby achieving the object of the present invention.
[0082] The processor may be, for example, a CPU (Central Processing Unit). The recording medium may be a "non-transitory tangible medium", such as a ROM (Read Only Memory), tape, disk, card, semiconductor memory, programmable logic circuit, or the like. The computer may further include a RAM for expanding the program. The program may be supplied to the computer via any transmission medium capable of transmitting the program (such as a communication network or broadcast waves). One aspect of the present invention may also be realized in the form of a data signal embedded in a carrier wave, in which the program is embodied by electronic transmission.
[0083] The present invention is not limited to the above-described embodiments and examples, and various modifications are possible within the scope of the claims. Embodiments obtained by appropriately combining the technical means disclosed in the different embodiments and examples are also included in the technical scope of the present invention. [Explanation of symbols]
[0084] 1 Network System 10 Master Device 15~17 Hub device 21a~21e, 22a~22c, 23a~23c Slave device 30 PC 40 Human Machine Interfaces 61~66 Communication cable 101,211 Control section 102,212 storage section 103,213 Communications Department
Claims
1. a communication unit for communicating with a plurality of slave devices via a communication network; a control unit that, when receiving from any of the plurality of slave devices via the communication unit that information regarding the signal quality of the communication cable is an abnormal value, changes an upper limit of the number of timeout detections of the plurality of slave devices and transmits the changed upper limit of the number of timeout detections to the plurality of slave devices via the communication unit.
2. the master device further includes a storage unit configured to store an upper limit value of the number of timeout detections for each of the plurality of slave devices; 2. The master device according to claim 1, wherein when the control unit receives from any one of the plurality of slave devices via the communication unit that information regarding the signal quality of the communication cable is an abnormal value, the control unit increases an upper limit value of the number of timeout detections stored in the memory unit for each of the plurality of slave devices, and transmits the upper limit values of the number of timeout detections corresponding to the plurality of slave devices via the communication unit.
3. 2. The master device according to claim 1, wherein when the control unit receives from any one of the plurality of slave devices via the communication unit that information regarding the signal quality of the communication cable is an abnormal value, the control unit transmits the same upper limit value of the number of timeout detections to all of the plurality of slave devices via the communication unit.
4. The master device according to any one of claims 1 to 3, wherein when the control unit receives, via the communication unit, from a slave device in which the information regarding the signal quality of the communication cable was an abnormal value, that the information regarding the signal quality of the communication cable has returned to a normal value, the control unit instructs the multiple slave devices to restore the upper limit value of the number of timeout detections to the original value.
5. A communication unit for communicating with a master device; acquiring information regarding a signal quality of a communication cable to be connected, and if the information regarding the signal quality of the communication cable is an abnormal value, notifying the master device via the communication unit that the information regarding the signal quality of the communication cable is an abnormal value; and a control unit that, when receiving from the master device via the communication unit an upper limit value for the number of timeout detections that has been changed in response to notification that the value has become abnormal, sets the upper limit value for the number of timeout detections.
6. A network system including a master device and a plurality of slave devices, the master device has a first communication unit that communicates with the plurality of slave devices via a communication network; a first control unit that, when receiving information indicating that information regarding signal quality of a communication cable is an abnormal value from any one of the plurality of slave devices via the first communication unit, changes an upper limit of a number of timeout detections of the plurality of slave devices and transmits the changed upper limit of the number of timeout detections to the plurality of slave devices via the first communication unit; Each of the plurality of slave devices includes a second communication unit that communicates with the master device; acquiring information regarding a signal quality of the communication cable, and if the information regarding the signal quality of the communication cable is an abnormal value, notifying the master device via the second communication unit that the information regarding the signal quality of the communication cable is an abnormal value; a second control unit that, when receiving a changed upper limit value for the number of timeout detections from the master device via the second communication unit, sets the changed upper limit value for the number of timeout detections.
7. a step of changing an upper limit of the number of timeout detections of the plurality of slave devices when the master device receives from any of the plurality of slave devices information indicating that the information on the signal quality of the communication cable is an abnormal value; transmitting the changed upper limit value of the number of timeout detections to the plurality of slave devices.
8. A computer program for causing a computer to execute a communication control method, The communication control method includes a step of changing an upper limit of a number of timeout detection counts of the plurality of slave devices when receiving, from any one of the plurality of slave devices, information indicating that the signal quality of the communication cable is an abnormal value; and transmitting the changed upper limit value of the number of timeout detections to the plurality of slave devices.
Citation Information
Patent Citations
Intermediate server device, transmission server device, communication system, and communication method
JP2010273297A
Connection abnormality detection method, network system, and master unit
JP2012195653A
Mobile communication apparatus
WO2008120275A1