The present invention relates to the field of industrial automatic control devices, and more particularly of master devices, called “masters”, that is to say devices capable of managing clusters of equipment or of instruments on a fieldbus.
More precisely, the present invention proposes a solution for managing the redundancy of such masters on a fieldbus. The method according to the invention comprises autonomous means of determining the active master device, the arbitration being carried out directly between the redundant master devices without requiring the presence of an independent third device. The redundancy in this instance relates to a question of availability of at least one master device on the fieldbus and not to a problem of security.
In a known manner, when two master devices are connected to one and the same fieldbus, for redundancy purposes, in order to alternately control said fieldbus, there are three conventional types of connection of these master devices. First, the interchanges between these master devices and the processor of the host machine are managed via a dedicated connection. Then, the said master devices are linked to the fieldbus on which they will be required to perform a control function. Finally, each master device is linked to a common “arbiter” responsible for allocating to each of said master devices the role that it must assume at a given moment.
Usually, the role of the arbitration system lies essentially in the following functions:
A known basic solution consists in using a mechanical means, that is to say a switch, to determine which one of the two redundant master devices is active by default.
Another standard solution frequently used consists in having a dedicated communication channel between the two redundant master devices. This specific channel is used to determine the state and the operating conditions of each master device and to mutually detect the possible default modes.
As an example, document US 2011/0161538 A1 illustrates a technological background of the invention. It describes the management of two redundant master devices on one and the same motherboard, with an auto-addressing mechanism on the common fieldbus to which they are connected.
Document U.S. Pat. No. 6,757,777 B1 describes an arbitration system for arbitrating between two redundant master devices comprising an “elector” situated on a standardized fieldbus. This arbitration system is therefore external to the master devices; and the two master devices are not directly connected to the fieldbus.
Finally, document US 2002/0083364 A1 describes a method for managing two redundant programmable logic controllers, linked via a software link, but without this method being capable of performing the auto election, by intrinsic means of this link, of the active master programmable logic controller.
The object of the invention is therefore to propose a more efficient system of selecting an active master device from two redundant master devices. The present invention thus relates to a mechanism of auto election of the active master device.
Accordingly, the subject of the invention is a method for electing an active master device from two redundant primary and secondary master devices, said primary and secondary master devices being directly connected to a fieldbus and linked together by a terminal cable and each having an active operating mode and a standby mode with active monitoring. According to the invention, each of said primary and secondary master devices also has one and the same interface and one and the same state machine comprising means for designating one of said primary and secondary master devices as the active master device, and the terminal cable comprises intrinsic means for establishing a directional relation of the primary master device to the secondary master device.
Moreover, the primary master device and the secondary master device each comprise a primary input, a primary output, a secondary input and a secondary output and a terminal cable links the primary output of the primary master device to the secondary input of the secondary master device and the secondary output of the secondary master device to the primary input of the primary master device. When they start up, the two, primary and secondary, master devices signal, in an identical manner, that they are capable of operating on the interface by transmitting a nominal signal on their primary output and secondary output, the directional relation established by the terminal cable being configured such that the secondary master device detects the presence of the primary master device, if it is capable of operating, on its secondary input, and the primary master device detects the secondary master device, if it is able of operating, on its primary input; moreover, for the primary master device having detected on its primary input the secondary master device, the state machine of the primary master device proposes the active state, and for the secondary master device having detected on its secondary input the primary master device, the state machine of the secondary master device proposes the standby state with active monitoring.
Advantageously, an arbitration system is placed in each master device in order to decide autonomously on the respective operating mode of each master device as a function of the operating mode recommendations made by each state machine.
Advantageously, said arbitration system is capable of commanding a restart of the state machine.
Advantageously, the terminal cable uses a current loop making it possible to designate one of the master devices as the primary master device, i.e. the one that is active by default.
Other features and advantages will appear in the following detailed description with reference to the appended drawings which represent:
With reference to
The master devices 10, 20 are linked together by the terminal cable 30. Via their respective interfaces 11, 21, the state machines 12, 22 are capable of communicating and of implementing a competitive “elector” system 31. The state machines 12, 22 are identical and are capable of determining which will be the active master device and which will be the standby master device. To do this, the state machines 12, 22 are based on a set of signals interchanged between the master devices 10, 20 via the terminal cable 30. This terminal cable 30, through a appropriate wiring, moreover makes it possible to determine which is the primary master device, active by default, and which is the secondary master device.
Each master device 10, 20 is linked, via a connection bus 2A, 2B to a host furnished with a processor. This may be a single host for both master devices 10, 20; alternatively, each master device 10, 20 may be linked to a distinct host.
The master devices 10, 20 are, as seen above, also linked to a fieldbus 1 to which a cluster of devices to be managed is connected. Between these connection busses 2A, 2B and the fieldbus 1, the master devices 10, 20 comprise respectively a gateway 15, 25.
In the preferred embodiment of the invention, an arbitration system 13, 23 is also used. As a function of the accessibility or of the fault detection over the bus for connection to the host 2A, 2B, respectively via the means 14, 24, or as a function of the accessibility or of the fault detection over the fieldbus 1, respectively via means 16, 26, the arbitration system 13 arbitrates between the operating modes M proposed by the state machines 12, 22 for each of the master devices and can command the abort A of the current active operating mode of a master device in the event of a problem; accessibility fault, operating fault of the host, of the connection bus 2A, 2B, of the gateway 15, 25, of the fieldbus 1, etc.
As an illustration, the arbitration system 13 of the master device 10, considered in the present case to be the primary master device, may be required to arbitrate and to take the following decisions, depending on the situation:
In the embodiment shown in
As an illustration, and for more clarity with respect to the references to the above figures, the state machine shown in
After the step ROOT, if the signals RA and RB are at 0, it means that the master device 20 is no longer transmitting on any of its outputs and that the master device 10 is therefore necessarily active ACT. From there, if RB switches to 1, the state machine returns to the step ROOT, and if RA is set at 1, the master device 10 remains active and is the primary master device 1ACT.
After the first step ROOT, if RB is set at 1, it means that the master device 20 has sent a signal SA set at 1 meaning that the master device 20 is the primary master device and that it is active. The master device 10 is therefore secondary and on standby 2SBY. If RB switches to 0, the master device 10 must switch to the active state 2ACT.
If while it is primary and active 1ACT, the primary device 10 detects on its primary input I10 a signal RA set at 1 or, conversely, if it is secondary and active 2ACT and it detects on its secondary input I11 a signal RB set at 1, the state machine of the master device 10 can instruct an abort ABD allowing a restart of said state machine.
The primary outputs O10, O20, are configured to transmit an electrical signal of a chosen intensity I. Because of the wiring 4 represented in
Starting from the respective values of SA, SB, RA, RB, the state machines of the master devices 10, 20 can be implemented according to
In summary, the present invention represents a method of autodetermination of the operating mode—active or standby—of each master device from two redundant master devices connected to one and the same fieldbus. This result is obtained essentially through the use of a specific terminal cable comprising a two-wire link and state machines assuming the function of elector according to a standalone principle of negotiation.
According to the invention, an arbitration system can be provided to make the decision if necessary on the respective operating mode of each master device, notably in the case of a link fault with the fieldbus or with the bus for connection to the host.
Number | Date | Country | Kind |
---|---|---|---|
12 51378 | Feb 2012 | FR | national |
Number | Name | Date | Kind |
---|---|---|---|
5682476 | Tapperson et al. | Oct 1997 | A |
5777874 | Flood et al. | Jul 1998 | A |
6047222 | Burns et al. | Apr 2000 | A |
6236334 | Tapperson et al. | May 2001 | B1 |
6446201 | Gunther | Sep 2002 | B1 |
6757777 | Griessbach et al. | Jun 2004 | B1 |
7797061 | El-Sayed | Sep 2010 | B2 |
7877625 | Mendu | Jan 2011 | B2 |
20010056304 | Nitta | Dec 2001 | A1 |
20020083364 | Christensen et al. | Jun 2002 | A1 |
20030043052 | Tapperson et al. | Mar 2003 | A1 |
20050047330 | Tapperson et al. | Mar 2005 | A1 |
20050047331 | Tapperson et al. | Mar 2005 | A1 |
20050049727 | Tapperson et al. | Mar 2005 | A1 |
20050066104 | Train et al. | Mar 2005 | A1 |
20050076151 | Tapperson et al. | Apr 2005 | A1 |
20070128895 | Kleyer et al. | Jun 2007 | A1 |
20080123522 | Elliott et al. | May 2008 | A1 |
20100074156 | Tapperson et al. | Mar 2010 | A1 |
20110161538 | Decker | Jun 2011 | A1 |
Number | Date | Country |
---|---|---|
198 42 593 | Mar 2000 | DE |
10 2007 040 425 | Feb 2009 | DE |
Entry |
---|
French Preliminary Search Report issued Sep. 19, 2012, in French 1251378, filed Feb. 15, 2012 (with English Translation of Categories of Cited Documents). |
Number | Date | Country | |
---|---|---|---|
20130211552 A1 | Aug 2013 | US |