主权项 |
1. A communication apparatus connected to a plurality of slave stations via a network, comprising:
a transmitter and a receiver configured to communicate with the plurality of slave stations; and a processor configured to:
in response to the transmitter transmitting a delay time measurement frame to each of the plurality of slave stations and the receiver receiving a response frame to the delay time measurement frame from said each of the plurality of slave stations, measure, for said each of the plurality of slave stations, an elapsed time from a first point in time in which the transmitter transmitted the delay time measurement frame to a second point in time in which the receiver received the response frame, and calculate an individual delay time for said each of the plurality of slave stations based on the measured elapsed time for said each of the plurality of slave stations,compare said individual delay time for said each of the plurality of slave stations with an individual delay judgment value, wherein the individual delay judgement is an average of individual delay times calculated in previous communication cycles for a respective slave station, wherein the individual delay time of a current cycle is received after the individual delay times of the previous communication cycles,determine whether an abnormal delay is occurring in at least one of the plurality of slave stations,in response to the determining that the abnormal delay is occurring, identifying a position of a delay element using connection configuration information indicating connection states between the communication apparatus and the plurality of slave stations in the network, andin response to the determining that the abnormal delay is not occurring, updating the individual delay judgement by recalculating the average of the individual delay times using the calculated individual delay time of the current communication cycle and the delay times of the previous communication cycles, wherein, in response to the identified delay element being in a faulty slave station from among the plurality of slave stations, the transmitter transmits a warning indication to the faulty slave station in which the determined abnormal delay has been identified, wherein, in response to the identified delay element being not in one of the plurality of slave stations and being between two of the plurality of slave stations, the transmitter transmits the warning indication to an adjacent slave station from among the plurality of slave stations, which is adjacent to the identified delay element, and wherein, in response to the warning indication, one of the faulty slave station and the adjacent slave station is configured to output an alarm showing an occurrence of the determined abnormal delay. |