CN104009856A - Apparatus and method for determining the location of a fault in a fieldbus network - Google Patents
Apparatus and method for determining the location of a fault in a fieldbus network Download PDFInfo
- Publication number
- CN104009856A CN104009856A CN201310057426.6A CN201310057426A CN104009856A CN 104009856 A CN104009856 A CN 104009856A CN 201310057426 A CN201310057426 A CN 201310057426A CN 104009856 A CN104009856 A CN 104009856A
- Authority
- CN
- China
- Prior art keywords
- baud rate
- field bus
- network
- fault
- location
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 16
- 238000001514 detection method Methods 0.000 claims abstract description 20
- 238000012827 research and development Methods 0.000 abstract description 4
- 230000005540 biological transmission Effects 0.000 description 23
- 238000010586 diagram Methods 0.000 description 6
- 238000004092 self-diagnosis Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种确定现场总线网络中故障的位置的装置,包括:切换模块,用于当检测到现场总线网络中发生故障时,将所述现场总线网络当前所用的波特率切换到预定波特率,所述预定波特率低于所述现场总线网络当前所用的波特率;探测模块,用于利用所述预定波特率,探测所述现场总线网络中正常工作的从站;以及确定模块,用于确定所述正常工作的从站中位于最远端的从站的外侧为故障的位置。应用本发明实施例,能够快速准确地确定现场总线网络中故障的位置,因此避免了提高系统成本,并且使现场总线网络的研发更加容易。
The invention discloses a device for determining the location of a fault in a field bus network, comprising: a switching module, used to switch the currently used baud rate of the field bus network to a predetermined The baud rate, the predetermined baud rate is lower than the baud rate currently used by the field bus network; the detection module is used to use the predetermined baud rate to detect the slave station working normally in the field bus network; And a determining module, configured to determine that the outside of the farthest slave station among the normally working slave stations is the location of the fault. By applying the embodiment of the present invention, the location of the fault in the field bus network can be quickly and accurately determined, thus avoiding the increase of system cost and making the research and development of the field bus network easier.
Description
技术领域technical field
本发明涉及现场总线技术领域,具体涉及确定现场总线网络中故障的位置的装置和方法。The invention relates to the field bus technology field, in particular to a device and a method for determining the location of a fault in a field bus network.
背景技术Background technique
由于现场总线网络具有较强的环境适应性和互可操作性等特点,被普遍应用在工控领域。其中,应用广泛的基于RS-485的现场总线包括过程现场总线-分散外围设备(PROFIBUS-Decentralized Periphery,DP),基础现场总线&控制与通信链路系统(Foundation Fieldbus &Control & Communication Link,CC-Link)等。基于RS-485的现场总线利用双绞线或者同轴电缆作为传输电缆进行信号传输,传输使用的波特率越高,相应的传输距离就越短。对于采用了高波特率的传输来说,如果在传输电缆的两端未增加终端电阻,现场总线数据信号将在传输电缆的末端被反射,从而淹没部分现场总线数据信号并严重影响现场总线的通信质量,这种现象也被称为回波反射。因此,需要在传输电缆的两端增加终端电阻,用来降低回波反射对现场总线数据信号的影响。Because the fieldbus network has the characteristics of strong environmental adaptability and interoperability, it is widely used in the field of industrial control. Among them, the widely used RS-485-based fieldbus includes process fieldbus-decentralized peripheral equipment (PROFIBUS-Decentralized Periphery, DP), foundation fieldbus & control and communication link system (Foundation Fieldbus & Control & Communication Link, CC-Link )wait. RS-485-based fieldbus uses twisted pair or coaxial cable as the transmission cable for signal transmission. The higher the baud rate used for transmission, the shorter the corresponding transmission distance. For the transmission with high baud rate, if no terminal resistance is added at both ends of the transmission cable, the fieldbus data signal will be reflected at the end of the transmission cable, thus submerging part of the fieldbus data signal and seriously affecting the performance of the fieldbus. communication quality, this phenomenon is also known as echo reflection. Therefore, it is necessary to add terminal resistance at both ends of the transmission cable to reduce the influence of echo reflection on the fieldbus data signal.
在实际应用中,现场总线网络中的故障主要包括终端电阻故障和传输电缆故障。例如终端电阻在传输电缆的两端或一端未被正确配置,或者传输电缆断开等等。为了维护现场总线网络,需要及时准确地确定故障的位置。In practical applications, the faults in the fieldbus network mainly include terminal resistor faults and transmission cable faults. For example, the terminating resistor is not configured correctly at both ends or one end of the transmission cable, or the transmission cable is disconnected, etc. In order to maintain the fieldbus network, it is necessary to determine the location of the fault in time and accurately.
在现有的故障检测方法中,现场总线设备所具备的自诊断功能可以通过诊断信息确定故障点的位置。但是,自诊断功能通常只在短距离传输中使用,当传输距离较长时,自诊断功能会受到回波反射的影响严重,无法准确地确定故障点的位置。为了在现场总线网络中准确地确定故障点的位置,通常需要采用专用的硬件诊断设备。在使用某些硬件诊断设备时,还需要切断整个现场总线网络的电源。但是,采用专用的硬件诊断设备会提高系统成本,并且在工控领域中,随时将整个现场总线网络断电是很难实现的。In the existing fault detection method, the self-diagnosis function of the fieldbus device can determine the location of the fault point through the diagnostic information. However, the self-diagnosis function is usually only used in short-distance transmission. When the transmission distance is long, the self-diagnosis function will be seriously affected by echo reflection, and the location of the fault point cannot be accurately determined. In order to accurately determine the location of the fault point in the fieldbus network, it is usually necessary to use a dedicated hardware diagnostic device. When using some hardware diagnostic equipment, it is also necessary to cut off the power supply of the entire fieldbus network. However, the use of dedicated hardware diagnostic equipment will increase the cost of the system, and in the field of industrial control, it is difficult to power off the entire fieldbus network at any time.
可见,根据现有技术,在确定现场总线网络中的故障的位置时,缺少一种能够快速准确地确定故障点并且不会提高系统成本的检测方法和装置。It can be seen that according to the prior art, when determining the location of a fault in a fieldbus network, there is a lack of a detection method and device that can quickly and accurately determine the fault point without increasing the system cost.
发明内容Contents of the invention
本发明实施例提供了一种确定现场总线网络中故障的位置的装置和方法,能够快速准确地确定现场总线网络中的故障的位置,并且不提高系统成本。Embodiments of the present invention provide a device and method for determining the location of a fault in a field bus network, which can quickly and accurately determine the location of a fault in the field bus network without increasing system cost.
本发明实施例提供如下技术方案。Embodiments of the present invention provide the following technical solutions.
本发明实施例提供的确定现场总线网络中故障的位置的装置包括:The device for determining the location of the fault in the field bus network provided by the embodiment of the present invention includes:
切换模块,用于当检测到现场总线网络中发生故障时,将所述现场总线网络当前所用的波特率切换到预定波特率,所述预定波特率低于所述现场总线网络当前所用的波特率;A switching module, configured to switch the baud rate currently used by the field bus network to a predetermined baud rate when a fault occurs in the field bus network, and the predetermined baud rate is lower than that currently used by the field bus network baud rate;
探测模块,用于利用所述预定波特率,探测所述现场总线网络中正常工作的从站;A detection module, configured to use the predetermined baud rate to detect slave stations working normally in the field bus network;
确定模块,用于确定所述正常工作的从站中位于最远端的从站的外侧为故障的位置。A determining module, configured to determine that the outside of the farthest slave station among the normally working slave stations is the location of the fault.
在本发明的一种实施方式中,所述预定波特率为所述现场总线网络中允许使用的最低波特率。In one embodiment of the present invention, the predetermined baud rate is the lowest baud rate allowed in the fieldbus network.
在本发明的一种实施方式中,所述现场总线网络中包括中继器;所述探测模块用于经过所述中继器,利用所述预定波特率,探测所述现场总线网络中正常工作的从站。In one embodiment of the present invention, the field bus network includes a repeater; the detection module is used to detect the normal Working slave.
在本发明的一种实施方式中,所述现场总线网络为基于RS-485的现场总线网络。In one embodiment of the present invention, the field bus network is a field bus network based on RS-485.
本发明实施例提供的确定现场总线网络中故障的位置的方法包括:The method for determining the location of the fault in the field bus network provided by the embodiment of the present invention includes:
当检测到现场总线网络中发生故障时,将所述现场总线网络当前所用的波特率切换到预定波特率,所述预定波特率低于所述现场总线网络当前所用的波特率;When a fault occurs in the fieldbus network, switching the baud rate currently used by the fieldbus network to a predetermined baud rate, the predetermined baud rate being lower than the baud rate currently used by the fieldbus network;
利用所述预定波特率,探测所述现场总线网络中正常工作的从站;Utilizing the predetermined baud rate, detecting a slave station working normally in the field bus network;
确定所述正常工作的从站中位于最远端的从站的外侧为故障的位置。It is determined that the outer side of the slave station located at the farthest end among the normally working slave stations is the location of the fault.
在本发明的一种实施方式中,所述预定波特率为所述现场总线网络中允许使用的最低波特率。In one embodiment of the present invention, the predetermined baud rate is the lowest baud rate allowed in the fieldbus network.
在本发明的一种实施方式中,所述现场总线网络中包括中继器;所述探测所述现场总线网络中正常工作的从站包括:经过所述中继器,探测所述现场总线网络中正常工作的从站。In one embodiment of the present invention, the field bus network includes a repeater; the detection of the normal working slave station in the field bus network includes: detecting the field bus network via the repeater normal working slave station.
在本发明的一种实施方式中,所述现场总线网络为基于RS-485的现场总线网络。In one embodiment of the present invention, the field bus network is a field bus network based on RS-485.
可以看出,在本发明实施例中,当检测到现场总线网络的发生故障时,降低了现场总线网络所用的波特率,从而减少了回波反射对现场总线数据信号的影响,保证了现场总线网络中正常工作的从站能够全部被探测到,进而快速准确地确定现场总线网络中故障的位置。由于无需采用硬件诊断设备就可以快速准确地确定现场总线网络中故障的位置,因此避免了提高系统成本,并且使现场总线网络的研发更加容易。It can be seen that in the embodiment of the present invention, when a failure of the field bus network is detected, the baud rate used by the field bus network is reduced, thereby reducing the impact of echo reflection on the field bus data signal, ensuring that the field bus The normal working slave stations in the bus network can all be detected, and then the location of the fault in the field bus network can be quickly and accurately determined. Since the location of a fault in the fieldbus network can be quickly and accurately determined without the use of hardware diagnostic equipment, system cost increases are avoided and development of the fieldbus network is made easier.
附图说明Description of drawings
图1是本发明实施例中确定现场总线网络中故障的位置的装置的结构的示意图。Fig. 1 is a schematic diagram of the structure of a device for determining the location of a fault in a fieldbus network in an embodiment of the present invention.
图2是现有技术中确定现场总线网络中故障的位置的示意图。Fig. 2 is a schematic diagram of determining the location of a fault in a fieldbus network in the prior art.
图3是本发明实施例中确定现场总线网络中故障的位置的示意图。Fig. 3 is a schematic diagram of determining the location of a fault in a fieldbus network in an embodiment of the present invention.
图4是本发明实施例中确定现场总线网络中故障的位置的方法的流程图。Fig. 4 is a flowchart of a method for determining the location of a fault in a fieldbus network in an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明实施例的目的、技术方案和优点更加清楚,以下举例对本发明实施例进行进一步的详细说明。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the following examples are used to further describe the embodiments of the present invention in detail.
图1是本发明实施例中确定现场总线网络中故障的位置的装置的结构的示意图。如图1所示,本发明实施例提供的确定现场总线网络中故障的位置的装置包括切换模块11,探测模块12和确定模块13。Fig. 1 is a schematic diagram of the structure of a device for determining the location of a fault in a fieldbus network in an embodiment of the present invention. As shown in FIG. 1 , the device for determining the location of a fault in a fieldbus network provided by an embodiment of the present invention includes a switching module 11 , a detecting module 12 and a determining module 13 .
其中,切换模块11用于当检测到现场总线网络中发生故障时,将现场总线网络当前所用的波特率切换到预定波特率,该预定波特率低于该现场总线网络当前所用的波特率。其中,切换模块11进行波特率的切换时,可以采用现有切换波特率的方式,例如通过软件设定故障发生后需要切换的预定波特率等,在此不再赘述。Wherein, the switching module 11 is used to switch the baud rate currently used by the field bus network to a predetermined baud rate when a fault occurs in the field bus network, and the predetermined baud rate is lower than the currently used wave rate of the field bus network. special rate. Wherein, when the switching module 11 switches the baud rate, the existing way of switching the baud rate can be adopted, for example, the predetermined baud rate to be switched after the failure occurs is set by software, etc., which will not be repeated here.
探测模块12用于利用该预定波特率,探测该现场总线网络中正常工作的从站。其中,探测模块12进行从站的探测时可以采用现有的方式,例如在传输电缆上发送专门的诊断帧等,在此不再赘述。在实际应用中,经过切换模块11切换后的预定波特率可以是现场总线网络中允许使用的最低波特率,从而使探测模块能够更加准确地探测到全部正常工作的从站,进一步保证探测结果的准确性。The detection module 12 is used to detect the normally working slave stations in the field bus network by using the predetermined baud rate. Wherein, the detecting module 12 may adopt an existing method for detecting the slave station, for example, sending a special diagnostic frame on the transmission cable, etc., which will not be repeated here. In practical applications, the predetermined baud rate after switching by the switching module 11 can be the lowest baud rate allowed in the fieldbus network, so that the detection module can more accurately detect all normal working slave stations, further ensuring the detection the accuracy of the results.
确定模块13用于确定该正常工作的从站中位于最远端的从站的外侧为故障的位置。由于探测模块12已经探测到全部正常工作的从站,因此位于最远端的从站的外侧即为故障的位置。The determination module 13 is used to determine that the outer side of the most remote slave station among the normally working slave stations is the location of the fault. Since the detection module 12 has detected all the slave stations that are working normally, the outermost slave station is the location of the fault.
根据现场总线网络的特点,当现场总线网络所用的波特率较低时,反射信号较弱,由反射信号造成的回波反射对现场总线数据信号造成的影响较小,甚至可以忽略,现场总线网络所用的波特率越高,回波反射对现场总线数据信号造成的影响就越大。而现场总线网络在正常工作时采用的波特率通常都比较高,当传输电缆或者终端电阻出现故障时,终端电阻无法发挥作用,造成回波反射严重影响现场总线数据信号的传输。According to the characteristics of the fieldbus network, when the baud rate used by the fieldbus network is low, the reflected signal is weak, and the echo reflection caused by the reflected signal has little impact on the fieldbus data signal, and can even be ignored. The higher the baud rate used by the network, the greater the effect of echo reflections on the Fieldbus data signal. The baud rate used by the fieldbus network in normal operation is usually relatively high. When the transmission cable or the terminal resistor fails, the terminal resistor cannot play its role, causing echo reflection to seriously affect the transmission of the fieldbus data signal.
根据本发明实施例提供的确定现场总线网络中故障的位置的装置,当有故障发生时,切换模块11将现场总线网络当前所用的波特率降低,从而减轻回波反射对现场总线数据信号的影响,探测模块12可以快速准确地对全部正常工作的从站进行探测,进而确定模块13可以确定正常工作的从站中位于最远端的从站的外侧为故障的位置。可以看出,根据本发明实施例,无需采用硬件诊断设备就可以快速准确地确定现场总线网络中故障的位置,从而避免了提高系统成本,并且使现场总线网络的研发更加容易。According to the device for determining the location of the fault in the field bus network provided by the embodiment of the present invention, when a fault occurs, the switching module 11 reduces the baud rate currently used by the field bus network, thereby reducing the impact of echo reflection on the field bus data signal As a result, the detection module 12 can quickly and accurately detect all the normally working slave stations, and then the determining module 13 can determine that the outermost slave station among the normally working slave stations is the location of the fault. It can be seen that according to the embodiment of the present invention, the location of the fault in the fieldbus network can be quickly and accurately determined without using hardware diagnostic equipment, thereby avoiding increasing the system cost and making the research and development of the fieldbus network easier.
在本发明实施例中,该现场总线网络可以是基于RS-485的现场总线网络,或者是其他波特率与回波反射之间存在上述关系的现场总线网络。In the embodiment of the present invention, the field bus network may be a field bus network based on RS-485, or other field bus networks with the above-mentioned relationship between baud rate and echo reflection.
在本发明实施例中,该确定现场总线网络中故障的位置的装置可以位于现场总线网络的主站中,切换模块,探测模块和确定模块可以作为主站的新增加的功能模块,或者切换模块,探测模块和确定模块也可以集成在独立的功能模块中,实现确定现场总线网络中故障位置装置的功能。In the embodiment of the present invention, the device for determining the location of the fault in the fieldbus network can be located in the master station of the fieldbus network, and the switching module, detection module and determination module can be used as newly added function modules of the master station, or the switching module , the detection module and the determination module can also be integrated in an independent functional module to realize the function of determining the fault location device in the fieldbus network.
下面以PROFIBUS-DP网络为例,对本发明实施例提供的确定现场总线网络中故障位置的装置进行详细说明。在本实施例中,确定现场总线网络中故障的位置的装置位于现场总线网络的主站中,切换模块,探测模块和确定模块作为主站新增加的功能模块。在实施例中的预定波特率为PROFIBUS-DP网络允许使用的最低波特率,即9.6kbps。Taking the PROFIBUS-DP network as an example, the device for determining the fault location in the field bus network provided by the embodiment of the present invention will be described in detail below. In this embodiment, the device for determining the location of the fault in the fieldbus network is located in the master station of the fieldbus network, and the switching module, detection module and determination module are newly added functional modules of the master station. The predetermined baud rate in the embodiment is the lowest baud rate allowed by the PROFIBUS-DP network, that is, 9.6 kbps.
在PROFIBUS-DP网络中,波特率与传输距离的关系如表1所示。In PROFIBUS-DP network, the relationship between baud rate and transmission distance is shown in Table 1.
表1Table 1
在实际应用中,PROFIBUS-DP网络通常以高波特率工作,在本实施例中,PROFIBUS-DP网络在工作时所采用的波特率为1.5Mbps。In practical applications, the PROFIBUS-DP network usually works at a high baud rate. In this embodiment, the PROFIBUS-DP network works at a baud rate of 1.5 Mbps.
图2是现有技术中确定现场总线网络中故障的位置的示意图。如图2所示,从站5和从站6之间的传输电缆断开,导致PROFIBUS-DP网络的故障。现有技术中的主站可以利用自诊断功能确定故障的位置。但是,由于强烈的回波反射,影响了主站对现场总线数据信号的接收,主站只能探测到从站1至从站3,无法准确地确定故障的位置,很可能将从站3的外侧确定为故障的位置。Fig. 2 is a schematic diagram of determining the location of a fault in a fieldbus network in the prior art. As shown in Fig. 2, the transmission cable between the slave station 5 and the slave station 6 is disconnected, resulting in the failure of the PROFIBUS-DP network. The master station in the prior art can use the self-diagnosis function to determine the location of the fault. However, due to the strong echo reflection, the reception of the fieldbus data signal by the master station is affected. The master station can only detect slave station 1 to slave station 3, and cannot accurately determine the location of the fault. The outer side is identified as the location of the fault.
图3是本发明实施例中确定现场总线网络中故障的位置的示意图。如图3所示,PROFIBUS-DP网络的故障仍然位于从站5和从站6之间,主站中的切换模块检测到该故障时,将现场总线网络当前所用的波特率1.5Mbps切换到预定波特率9.6kbps。探测模块利用该预定波特率对从站进行探测。由于预定波特率的值较小,回波反射对现场总线数据信号的影响可以忽略不计,所以探测模块能够准确的探测到所有正常工作的从站,即从站1至从站5。确定模块将正常工作的从站中位于最远端的从站的外侧,即从站5的外侧确定为故障的位置,从而得到准确的故障位置。Fig. 3 is a schematic diagram of determining the location of a fault in a fieldbus network in an embodiment of the present invention. As shown in Figure 3, the fault of the PROFIBUS-DP network is still located between the slave station 5 and the slave station 6. When the switching module in the master station detects the fault, it switches the baud rate 1.5Mbps currently used by the fieldbus network to The predetermined baud rate is 9.6kbps. The detection module uses the predetermined baud rate to detect the slave station. Since the value of the predetermined baud rate is small, the impact of echo reflection on the fieldbus data signal is negligible, so the detection module can accurately detect all slave stations that are working normally, that is, slave station 1 to slave station 5 . The determining module determines the outer side of the farthest slave station among the normally working slave stations, that is, the outer side of the slave station 5, as the location of the fault, so as to obtain an accurate location of the fault.
在应用本发明实施例时,当现场总线网络所需的传输距离较长,超过PROFIBUS-DP网络允许的最长传输距离(1000米)时,可以通过中继器来延长传输距离,每个中继器可以延长的传输距离同样为1000米。此时,主站可以通过中继器,对现场总线网络中正常工作的从站进行探测。由于中继器并不影响整个网络的传输速率等性能,主站仍然可以探测到经过中继器扩展的整个现场总线网络中正常工作的从站。When applying the embodiment of the present invention, when the transmission distance required by the fieldbus network is longer than the longest transmission distance (1000 meters) allowed by the PROFIBUS-DP network, the transmission distance can be extended by repeaters, each The transmission distance that can be extended by the repeater is also 1000 meters. At this time, the master station can detect the normally working slave stations in the fieldbus network through the repeater. Since the repeater does not affect the transmission rate and other performances of the entire network, the master station can still detect the normal working slave stations in the entire fieldbus network extended by the repeater.
可以看出,根据本发明实施例,无需采用专用的硬件诊断设备就可以快速准确地确定现场总线网络中故障的位置,从而避免了提高系统成本,并且使现场总线网络的研发更加容易。It can be seen that according to the embodiment of the present invention, the location of the fault in the fieldbus network can be quickly and accurately determined without using a dedicated hardware diagnostic device, thereby avoiding increasing system costs and making the development of the fieldbus network easier.
相应地,本发明实施例还公开了一种确定现场总线网络中故障的位置的方法。Correspondingly, the embodiment of the invention also discloses a method for determining the fault location in the field bus network.
图4是本发明实施例中确定现场总线网络中故障的位置的方法的流程图。如图4所示,本实施例中确定现场总线网络中故障的位置的方法包括如下步骤。Fig. 4 is a flowchart of a method for determining the location of a fault in a fieldbus network in an embodiment of the present invention. As shown in FIG. 4 , the method for determining the fault location in the fieldbus network in this embodiment includes the following steps.
步骤41,当主站检测到现场总线网络中发生故障时,将现场总线网络当前所用的波特率切换到预定波特率,该预定波特率低于该现场总线网络当前所用的波特率。Step 41, when the master station detects that a fault occurs in the fieldbus network, switch the currently used baud rate of the fieldbus network to a predetermined baud rate, which is lower than the currently used baud rate of the fieldbus network .
较佳地,该预定波特率为该现场总线网络中允许使用的最低波特率,从而尽可能的降低回波反射对现场总线数据信号的影响。Preferably, the predetermined baud rate is the lowest baud rate allowed in the field bus network, so as to reduce the impact of echo reflection on the field bus data signal as much as possible.
步骤42,主站利用该预定波特率,探测该现场总线网络中正常工作的从站。In step 42, the master station uses the predetermined baud rate to detect slave stations working normally in the field bus network.
当预定波特率是现场总线网络中允许使用的最低波特率时,回波反射对现场总线数据信号的影响被降到最低,从而使主站能够更加准确地探测到全部正常工作的从站,进一步保证探测结果的准确性。When the predetermined baud rate is the lowest baud rate allowed in the field bus network, the impact of echo reflection on the field bus data signal is minimized, so that the master station can more accurately detect all normal working slave stations , to further ensure the accuracy of the detection results.
当该现场总线网络中包括中继器时,在本步骤中主站可以经过该中继器,探测该现场总线网络中所有正常工作的从站。When the field bus network includes a repeater, in this step the master station can detect all normally working slave stations in the field bus network through the repeater.
步骤43,主站确定该正常工作的从站中位于最远端的从站的外侧为故障的位置。In step 43, the master station determines that the outside of the farthest slave station among the normally working slave stations is the location of the fault.
在本实施例中,上述步骤由现场总线网络中的主站来执行,在实际应用中,上述步骤也可以由独立的功能模块来执行。In this embodiment, the above steps are performed by the master station in the fieldbus network, and in practical applications, the above steps can also be performed by independent functional modules.
在本发明实施例中,该现场总线网络可以是基于RS-485的现场总线网络,或者是其他波特率与回波反射之间存在上述关系的现场总线网络。In the embodiment of the present invention, the field bus network may be a field bus network based on RS-485, or other field bus networks with the above-mentioned relationship between baud rate and echo reflection.
可以看出,根据本发明实施例,当有故障发生时,将现场总线网络当前所用的波特率降低,从而减轻回波反射对现场总线数据信号的影响,从而可以快速准确地对全部正常工作的从站进行探测,进而可以确定正常工作的从站中位于最远端的从站的外侧为故障的位置。可以看出,根据本发明实施例,无需采用硬件诊断设备就可以快速准确地确定现场总线网络中故障的位置,从而避免了提高系统成本,并且使现场总线网络的研发更加容易。It can be seen that, according to the embodiment of the present invention, when a fault occurs, the baud rate currently used by the fieldbus network is reduced, thereby reducing the impact of echo reflection on the fieldbus data signal, so that all normal operations can be performed quickly and accurately. The secondary stations of the system can be detected, and then it can be determined that the outer side of the remotest slave station among the normal working slave stations is the location of the fault. It can be seen that according to the embodiment of the present invention, the location of the fault in the fieldbus network can be quickly and accurately determined without using hardware diagnostic equipment, thereby avoiding increasing the system cost and making the research and development of the fieldbus network easier.
本发明公开了一种确定现场总线网络中故障的位置的装置,包括:切换模块,用于当检测到现场总线网络中发生故障时,将所述现场总线网络当前所用的波特率切换到预定波特率,所述预定波特率低于所述现场总线网络当前所用的波特率;探测模块,用于利用所述预定波特率,探测所述现场总线网络中正常工作的从站;确定模块,用于确定所述正常工作的从站中位于最远端的从站的外侧为故障的位置。应用本发明实施例,能够快速准确地确定现场总线网络中故障的位置,因此避免了提高系统成本,并且使现场总线网络的研发更加容易。The invention discloses a device for determining the location of a fault in a field bus network, comprising: a switching module, used to switch the currently used baud rate of the field bus network to a predetermined The baud rate, the predetermined baud rate is lower than the baud rate currently used by the field bus network; the detection module is used to use the predetermined baud rate to detect the slave station working normally in the field bus network; A determining module, configured to determine that the outside of the farthest slave station among the normally working slave stations is the location of the fault. By applying the embodiment of the present invention, the location of the fault in the field bus network can be quickly and accurately determined, thus avoiding the increase of system cost and making the research and development of the field bus network easier.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。在具体的实施过程中可对根据本发明的优选实施例进行适当的改进,以适应具体情况的具体需要。因此可以理解,本文所述的本发明的具体实施方式只是起示范作用,并不用以限制本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Appropriate improvements can be made to the preferred embodiments according to the present invention in the specific implementation process, so as to meet the specific needs of specific situations. Therefore, it can be understood that the specific implementation manners of the present invention described herein are only exemplary, and are not intended to limit the protection scope of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310057426.6A CN104009856A (en) | 2013-02-22 | 2013-02-22 | Apparatus and method for determining the location of a fault in a fieldbus network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310057426.6A CN104009856A (en) | 2013-02-22 | 2013-02-22 | Apparatus and method for determining the location of a fault in a fieldbus network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104009856A true CN104009856A (en) | 2014-08-27 |
Family
ID=51370352
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310057426.6A Pending CN104009856A (en) | 2013-02-22 | 2013-02-22 | Apparatus and method for determining the location of a fault in a fieldbus network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104009856A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112702145A (en) * | 2020-12-22 | 2021-04-23 | 北京城建智控科技有限公司 | CAN bus baud rate self-configuration method and system |
DE102016004095B4 (en) | 2016-04-05 | 2024-02-08 | WAGO Verwaltungsgesellschaft mit beschränkter Haftung | Automatic isolation of a physical network error at runtime |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR0150422B1 (en) * | 1995-11-04 | 1998-11-02 | 이준 | T-bus monitoring and relay device in electronic switchboard |
CN101699923A (en) * | 2009-11-11 | 2010-04-28 | 广州中大中鸣科技有限公司 | Lighting control system based on DMX512 protocol and method thereof |
CN102347879A (en) * | 2011-05-23 | 2012-02-08 | 大连理工计算机控制工程有限公司 | D-BUS High Speed Bus Technology Based on Ring Ethernet and Auxiliary Network |
CN203151526U (en) * | 2013-02-22 | 2013-08-21 | 西门子公司 | Device of determining fault position in on-site bus network |
-
2013
- 2013-02-22 CN CN201310057426.6A patent/CN104009856A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR0150422B1 (en) * | 1995-11-04 | 1998-11-02 | 이준 | T-bus monitoring and relay device in electronic switchboard |
CN101699923A (en) * | 2009-11-11 | 2010-04-28 | 广州中大中鸣科技有限公司 | Lighting control system based on DMX512 protocol and method thereof |
CN102347879A (en) * | 2011-05-23 | 2012-02-08 | 大连理工计算机控制工程有限公司 | D-BUS High Speed Bus Technology Based on Ring Ethernet and Auxiliary Network |
CN203151526U (en) * | 2013-02-22 | 2013-08-21 | 西门子公司 | Device of determining fault position in on-site bus network |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102016004095B4 (en) | 2016-04-05 | 2024-02-08 | WAGO Verwaltungsgesellschaft mit beschränkter Haftung | Automatic isolation of a physical network error at runtime |
CN112702145A (en) * | 2020-12-22 | 2021-04-23 | 北京城建智控科技有限公司 | CAN bus baud rate self-configuration method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100366029C (en) | Communication controller, host-side controller, communication equipment, communication system and method | |
CN101404556B (en) | One-wire bus communication method | |
CN109560838B (en) | A bluetooth communication method for power metering field detection data | |
CN104143999B (en) | Power-line carrier communication method and device | |
CN104199795B (en) | Data transferring and receiving method of bus framework | |
CN103916284A (en) | RS485 communication interface automatic baud rate and communication address detection method | |
CN101494571A (en) | CAN bus self detection recovery device and method | |
CN104796329A (en) | Automatic link switching method and automatic link switching device | |
CN103777576B (en) | Adaptive CAN Bus baud rate converter | |
CN104243246B (en) | A kind of FlexRay bus tests and optimization method and device based on ZigBee technology | |
CN104009856A (en) | Apparatus and method for determining the location of a fault in a fieldbus network | |
CN101547526A (en) | Fault handling method, wireless device and communication system | |
JP2014507898A5 (en) | ||
CN112013505A (en) | Method and device for controlling communication compensation and air conditioner | |
CN104198857B (en) | Fault detector distant communication terminal | |
CN105242283A (en) | Excavator GPS terminal fault detection system | |
CN105100000B (en) | Interface conversion device and network system | |
KR101501247B1 (en) | Dual handling device between tester or repeater and data concentration unit, and dual handling method by data concentration unit | |
CN102724144B (en) | Self-adaptive gateway device and data transmission method thereof | |
CN104022934A (en) | Communication method of communication equipment based on PROFIBUS-DP protocol | |
CN103517307B (en) | A kind of remote debugging system based on TD-SCDMA | |
CN103531002B (en) | A kind of remote debugging method based on TD-SCDMA | |
CN203151526U (en) | Device of determining fault position in on-site bus network | |
CN201541271U (en) | Part of the bus node automatic recovery device | |
CN208076997U (en) | A kind of equipment high in the clouds monitoring management system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140827 |