Abstract:
A communication bus containing master and slave devices includes a monitor unit for fault tolerant communications. In the event the master is unable to communicate, the monitor automatically assumes the master communication role. When more than one monitor is connected within the communications network, the monitor with the lowest communications address assumes the master communications role. The master includes software implementation that allows an operator to obtain data from any of the slave devices via the monitor.

Description:
BACKGROUND OF THE INVENTION 
     The interconnection of a number of electrical equipment for supervisory control and data acquisition is described within U.S. patent application Ser. No. 08/628,533 filed Apr. 3, 1996 entitled “Dynamic Data Exchange Server Simulator”. The electrical equipment is interconnected within a LAN utilizing a Modbus protocol which is a trademark of New Modicon Inc. for RS-485 data format. 
     The Modbus protocol calls for a master-slave regime for communicating with the PC or CPU, as master, on the communicationis bus and the associated electrical equipment or devices, as slaves. The master is able to communicate with any of the associated devices which are then only able to respond and communicate with the master. A good definition of the master-slave regime is found in U.S. Pat. No. 4,817,037 entitled “Data Processing System With Overlap Bus Cycle Operations”. 
     With such master-slave regimes, in the event the master is unable to period the corresponding slave electrical devices would operate independently without instructions from the master. Alternatively, the communications bus could be disabled while removal and repair of the master is undertaken. 
     U.S. patent application Ser. No. 08/804,052 filed on Feb. 21, 1997 entitled “Interface Monitor for Communicating Between Different Communications Protocols” describes a supplemental monitor unit that connects with the communication bus as well as with a PC, acting temporarily as a master, to allow the PC to interrogate the associated electrical devices without hardware connection between the PC and the communication bus. 
     It has been determined that the same monitor unit can also be used to act as a temporary master, i.e. provide “fault tolerance” in the event that the system&#39;s master becomes unable to communicate. 
     One purpose of the instant invention, is to provide a monitor unit that allows communication with electrical elements or slaves interconnected with a communication bus when the PC or master is no longer capable of transmission. 
     In some industrial applications, the master is remote from the associated electrical devices and the monitor is more readily accessible by an on-site operator. The monitor is then interrogated to obtain data from any of the electrical devices and the master addresses the electrical devices allow the monitor to obtain the data from the LAN. In accordance with the master-slave protocol the monitor, as a slave, is unable to directly interrogate the master to obtain the data. 
     Earlier attempts to improve this problem incur the use of additional multiplexing equipment for switching between the master and the monitor for communicating on the LAN such as proposed by the Square D Power Logic Network type 8030 CRM 565. A later approach to this problem is the incorporation of a pass-through module such as the Cutler Hammer type AEM11. 
     It would be advantageous as to time and expense to allow a monitor to obtain device data from any of the devices in real time. 
     A further purpose of the invention, is to provide an operating program within the master that allows the monitor to obtain data from any of the devices without incurring additional equipment and without having to incur a measurable time delay. 
     SUMMARY OF THE INVENTION 
     A monitor unit is connected with a LAN that is formatted with master-slave regime protocol and which is interconnected with a plurality of electrical devices. A stand-alone PC, acting as master, is able to communicate with any of the electrical devices as slaves which are unable to communicate with each other. The monitor includes a processor that is programmed to allow communication between the monitor unit and any of the electrical devices in the event the master becomes disabled. When more than one monitor is connected within the communication bus, a separate program decides which of the devices can act as the master. The monitor further allows an operator to directly obtain data from any of the electrical devices. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is schematic representation of the fault tolerant communication bus employing a monitor according to the invention; 
     FIG. 2 is an enlarged schematic representation of the communications components within the master, monitor and device depicted in FIG. 1; 
     FIG. 3 is a flow chart representation of the algorithms contained within the proxy and server units of FIG. 2; and 
     FIGS. 4A and 4B are flow chart representations of the algorithms contained within the monitor units of FIGS. 1 and 2. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
     A supervisory data acquisition and control system  10 , as shown in FIG. 1, includes a number of distributed electrical devices  18 ,  20 ,  22  such as relays, meters, circuit breakers and the like described in the aforementioned U.S. patent application Ser. No. 08/628,533, that are interconected within a LAN  11  by means of conductors  19 ,  21  and  23 , such master-slave communication regimes, a master  12  such as an IBM 350-P75 is required to address any of the devices to request status and other information, and is connected with the LAN by means of a conductor  13 . A good example of a circuit breaker having such communication facility is found in U.S. Pat. No. 4,672,501 entitled “Circuit Breaker and Protective Relay Unit”. In accordance with the invention, monitors  9 ,  14 ,  16  in the form of an enclosure containing a microprocessor, a keypad and an external display are connected with the LAN by means of conductors  8 ,  15 ,  17 . The monitors are similar to those described in the aforementioned U.S. Patent Application entitled “Interface Monitor for Communicating Between Different Communications Protocols” and are connected with the LAN as slaves for receiving instructions from the master  12 . In accordance with the invention, the monitors allow an operator to obtain data from any of the electrical devices at any time. 
     This feature is best understood by now referring to FIG. 2 wherein the master  12  is shown having an RS-485 port  26  arranged on a rear surface thereof. One monitor  9 , for example, includes both an RS-232 port  29  for receiving an RS-232 cable (not shown) as well as an RS-485 port  27  for receiving an RS-485 conductor  8  that connects with the LAN  11 . One electrical device  18 , consisting of a circuit breaker, meter or the like, connects with the LAN by means of the RS-485 conductor  19  and the RS-485 port  28 . Communication between the RS-232 port  29  and the RS-485 port  27  within the monitor  9  is made by a conversion algorithm resident within the monitor microprocessor as described within the aforementioned U.S. Patent Application entitled “Interface Monitor for Communicating Between Different Communications Protocols”. 
     A server unit  24  is arranged within the master  12  and internally connects between the RS485 port  26  and a proxy unit  25 . A good description of the server unit such as the Modbus DDEVO server is found within the aforementioned U.S. patent application Ser. No. 08/628,533. The proxy unit is a type 02-222 obtained from Wonderware Corp., Irvine, Calif. The server and proxy units interact to allow an operator to acquire data from any of the electrical devices  18 ,  20 ,  22  shown in FIG. 1 in the manner best seen by referring to the flow chart depicted in FIG.  3 . 
     The proxy requests a device data list (DDRL) from the server on a periodic basis ( 30 ) and the server queries the monitors to determine whether there has been an operator request for device data ( 31 ). If not, the server continues to query the monitors until a determination is made that an operator request has occurred ( 32 ). The server then asks the monitor for the DDRL ( 33 ) and the monitor sends the DDRL to the server ( 34 ). The server sends the DDRL to the proxy ( 35 ) and the proxy asks the server for the device data ( 36 ). The server asks the device for the data ( 37 ) and the device sends the data to the server ( 38 ). The monitor obtains the data from the LAN ( 39 ) and displays the data for observation by the operator ( 40 ). 
     In further accordance with the invention, the monitors are able to assume the function of the master in the event that the master is disconnected, or otherwise becomes inoperative. A priority is allocated to the monitors so that only one will act as the master when the master no longer communicates within the LAN. 
     The presence of the master is an integral part of the master-slave regime on the LAN and it is imperative that the operator be able to obtain device data at all times. A further function of the monitors is to act in the place of a master in the event the master becomes disable to allow fault tolerant communications. With more than one monitor connecting with the LAN, the following arrangement insures that only one monitor acts as master at any one time. 
     The operating program stored within the monitors  14 ,  16  of FIG. 1 is depicted in FIGS. 4A and 4B in flow chart format and operates in the following manner. At startup the monitors  9 ,  14 ,  16  of FIG. 1 default to slave mode ( 41 ), a 5 second timer is initialized ( 42 ) and the monitors begin monitoring the LAN for communication activity ( 43 ). 
     A determination is made as to the occurrence of communication on the LAN before the timer times out ( 44 ) and if there is communication ( 45 ) the monitor remains in slave mode and the timer is again initialized ( 42 ). 
     If there is no communication detected on the LAN ( 44 ), the monitors are set to master mode ( 46 ), a determination is made as to the presence of additional monitors on the LAN ( 47 ). If so ( 48 ), each monitor is polled ( 49 ), the lowest address is selected as the master ( 50 ) and this monitor performs the master role ( 51 ). 
     If there is no other monitor oil the LAN ( 47 ), the sole monitor performs the master functions ( 51 ) and a determination is then made as to whether a communication or checksum error has occurred, or if an unexpected message is received. If none has occurred ( 53 ), the sole monitor continues to perform the master role ( 51 ). 
     If any of the above conditions occur ( 52 ), each monitor restrains communication for a predetermined period of time to insure that there is only one monitor communicating on the LAN at one time ( 54 ). The monitor with the lowest address delays 5 seconds, the monitor with the next lowest address delays 10 seconds, the monitor with the next lowest address delays 15 seconds, and so on. In the event that the monitor with the lowest address fails to communicate within the prescribed time period ( 55 ), the monitor with the next lowest address begins communication ( 56 ). This assures that a “master” will be available at all times to perform the necessary communications functions to keep the associated electrical devices operational. 
     If there is communication ( 56 ), the monitor with the higher address is set to slave mode ( 57 ) and the monitor with the next lowest address resumes the master role ( 58 ). 
     This fault tolerant communications facet is an important feature of the invention and differs from that described within the aforementioned U.S. Pat. No. 4,817,037 by not requiring an additional arbiter device to determine the new master. 
     A supervisory control and data acquisition system has herein been disclosed that includes at least one monitor unit in slave mode along with the slave electrical devices. A program within the monitor allows fault tolerant operation of the system upon failure of the master to remain operational. A program in the master allows the monitor to be queried as to data relating to any of the electrical devices with the monitor enabled to respond, in real time.