COMMUNICATIONS SYSTEM

Abstract: A communications system has a data highway made up of two optical communications channels (28,30) forming a ring to interconnect stations (10,11) whose signals are interfaced with the ring by an optical-electrical repeater (24,25). Each repeater (24,25) includes an optical detector (32) and an optical transmitter (39) for each channel and normally functions as a repeater except when the associated station is transmitting. A control element (31) can prevent the repeater from repeating and a line (33) is provided for receiving the transmitted signal at the transmitting station after it has gone around the ring (28) for checking the condition of the ring. The transfer of mastership is accomplished by grouping into a logical loop of high traffic stations those stations which must be serviced frequently, and the grouping into at least one other logical loop of low traffic stations those requring less frequent service. The token signifying mastership is passed from station to station in the high traffic loop at a maximum speed compatible with the work to be done by each station until a predetermined time period has lapsed since the mastership was passed through the low traffic group. Upon expiration of that time period, mastership is passed sequentially through the low traffic loop stations. Mastership is then returned to a previously determined high traffic loop station. Each local network has two metallic cables (20,22) providing redundant channels between stations (10,11) of a group, the redundant optical rings (28,30) forming the highway interconnecting those networks. The control ele­ ment (31) connects the output of the detector (32) with the transmitter (39). A control signal supplied over one metallic line (35) from the station which is transmitting causes the control element (31) to disconnect the detector (32) and transmitter (39) to prevent operation of the combination as a repeater. The transmission is supplied over another metallic line (38) from the station to the transmitter (39) and thence around the ring until it is converted to an electrical signal at the corresponding detector (32). The resulting electrical signal is then conducted to the transmitting station over still another metallic line (33) for checking as a means for determining if the ring is complete.

Description: COMMUNICATIONS SYSTEM This invention relates to providing for transfer of information among controller stations in a distributed control system. In particular it relates to a data highway, where the several stations or group of stations are arranged sequentially along one transmission line rather than being arranged radially around a central junction point or a master station. Electrical transmission. lines have been used for effecting such information transfer, but they suffer from limited bandwidth, are subject to radio frequency interference, and can present a safety hazard. Fiber optic transmission lines do not suffer from the deficiencies cited for electrical lines, but their use in sequential mul-ti- station applications has been limited by the cost and design constraint imposed by the difficulty of tapping fiber cables. An object of this invention is to effect a reliable fiber optic two-way communication system among many controller stations which may be distributed over a large area. The invention according to one aspect thereof uses repeater stations in a bi-directional loop with a fiber optic data highway. It requires no signal mixing, switching, or splitter devices, and provides fault tolerance for either station failure or transmission line failure. There are two major requirements of the communication system for an industrial process distributed control system. The first is that it be capable of serving numerous stations over distances commonly found in industrial process plants. The second is that it be fault tolerant. That is, the system must not fail as a result of a station fault or a transmission line fault. The fault tolerance criterion could be met by employing a bi-directional in-line cabling arrangement with passive tapping at each station, but high insertion and tapping losses would preclude such.a system serving more than a few stations, regardless of distance. A "star" configuration is also fault tolerant, and could serve a significantly larger number of.stations, but practical system distances are limited. Furthermore, sudh.systems have excessive cabling costs because each station is connected to the others through a central mixing, splitting device. .In-line and ring repeater station systems have been described in the prior art, some using by-pass switches to guard against station failure, but such systems are still vulnerable to cable faults. In contrast with the prior systems, the present aspect of the invention uses a bi-directional ring of repeater stations. Repeater action is halted at whichever station is.transmitting to prevent perpetually circulating signals. In accordance with one preferred aspect of this invention there is therefore provided a communications system having a data highway made up of two optical communications channels forming a ring to interconnect stations whose signals are interfaced with the ring by an optical-electrical repeater. The repeaters include an optical detector and an optical transmitter for each channel. These are coupled so that they normally function as repeaters except when the repeater is associated with a station which is transmitting. Means are provided for preventing that repeater from repeating and further means are provided for receiving the transmitted signal at the transmitting station after it has gone around the ring.for checking the condition of the ring. The present invention also relates to distributed electronic process control systems having a number of widely spaced control stations interactively communicating in the control of a complex industrial process,. and more particuiarly,#to a methodand apparatus for controlling access rights to a multi-master communications channel for such a system. The control of complex industrial processes has evolved from the use of a large number of simple single loop controllers, which either perform without central direction or alternatively are directed by a central computer, to the use of distributed systems. In distributed systems, widely spaced control stations are connected for communication with one another and with a host computer, and each of the stations must be capable of controlling a large number of loops. The individual stations are usually microprocessor-based and a host computer is employed for complex computing, control, and storage functions beyond the capability of the stations. In complex data communication systems, an issue always arises as to how traffic conflicts can be avoided when the network shares a common data highway with no central control being exercised over the rights the individual stations have to access to the network communication channels. A large number of different methods exist for arbitrating access rights when no central control of those rights is exercised. These methods include, among others r the Carrier Sense Multiple Access with Collision Detect .(CSMA/CD) method and the token passing method. In the CStiA/CD method, if a device wants to transmit, it first listens to find out if any other station is transmitting. The station does not interrupt any other transmission. When the transmission medium is not busy, the station transmits. With light data traffic on the medium, there is little conflict with the CSMA/CE method. However, with alarge number of stations, they will occasionally transmit simultaneously.. These occasions can be sensed so as to cause an abort.of.the transmission, at which time each station will wait a random amount of time before attempting to transmit. A major disadvantage of this system is the increasing uncertainty of data delivery as traffic increases in addition to the limitations which arise because the data rate, data packet size, and the physical length of the cable all depend upon each other. Token passing, on the other hand , is a generic name for line-access methods whose control of the rights to access (holding the token or mastership) are distributed among all the stations using the data highway. Only one station has the right to transmit to the remaining stations (slaves), that right having been granted by the previous holder of the token. After the station finishes transmission, it passes the token to another station. The token is passed from station to station in a predetermined logical sequence. While the token passing method is more complicated, it provides an increased flexibility which has many advantages. Also, its deterministic nature commends its use in process control systems where the probalistic nature of the CSMA/CD method would present problems due to the necessity for certain control .loops to be looked at frequently in order to maintain rapidly changing process variables under control. The present invention provides in accordance with another aspect thereof an improved token passing method which provides for increased efficiency in data transmission and which assures with greater certainty that critical process loops are looked at with the requisite frequency to accomplish the necessary control of those loops. In accordance with this other preferred aspect of the present invention, there is provided a method and means for transferring mastership in a multi-master communication channel of a system having a plurality of intercommunicating stations. The method includes the grouping into a logical loop of high traffic stations. those stations which must be serviced frequently, and the grouping into at.least one other logical loop of low traffic stations those requiring less frequent service. The token signifying mastership is passed from stations to station in the high traffic loop at a maximum speed compatible with the work to be done by each station until a predetermined time period has lapsed since the mastership was passed through the low traffic group. Upon expiration of that time period, mastership is passed sequentially through the low traffic loop stations. Mastership is then returned to a previously determined high traffic loop station. The present invention further relates to data highway systems for providing communications channels for distributed electronic process control systems having a number of widely spaced control stations interactively communicating in the control of a complex industrial process, and more particularly, to apparatus for connecting a large number of microprocessor-based stations which are spaced over distances approaching 6096 metres. In complex data communication systems, such as an interacting system in accordance with the present invention, the question arises as to the type of communication channels which will provide the necessary communications between the existing stations without inordinate cost. The disadvantages of both electrical and fiber optic transmission lines can be overcome by using a hybrid system wherein stations geographically close, as when associated with a particular part of an industrial process, are grouped.by..be ing interconnected electrically with the groups being interconnected by.optical fibers. The interface between electrical and optical lines is provided in the-retransmitting units which are serially connected in the optical lines with the interface being controlled so that retransmission is stopped at the interface for the group which includes the transmitting station. The connections at the interface allow the message transmitted over the optical lines to.be received by the transmitting station so that a check on the continuity of the optical and electrical .lines can be made. Bidirectional optical lines and duplicate electrical lines are provided to give fault tolerant service. In accordance with this further preferred aspect of the present invention there is provided a communications system with a local network having two metallic cables providing redundant channels between stations of a group with redundant optical rings forming a highway interconnecting those networks. An optical-electrical interface connects the networks and the ring. This interface includes an optical detector producing a corresponding electrical signal., an optical transmitter which repeats the detected message, and a control element connecting the output of the detector with the transmitter. A control signal supplied over one metallic line from the station which is transmitting to .its.interface causes the control element to disconnect the detector and transmitter to prevent operation of the combination as a repeater. The transmission is then supplied over another metallic line from the station to the transmitter and thence around the ring until it is converted to an electrical signal at the corresponding detector. The resulting electrical signal is then conducted to the transmitting station over still another metallic line for checking as a means for determining if the ring is complete. The invention will now be described by way of example with reference to the accompanying drawings, in which: Fig 1 illustrates a distributed process control system embodying the present invention. Fig 2 illustrates an Optical-Electrical interface (OEI). Fig-3 illustrates a control station of the system. Fig 4 illustrates one logical arrangement of the high and low traffic loops. Figs 5a, Sb and 5c are flow charts which, when taken together, show the algorithm for controlling the token passing between the stations. Fig 6 is an example of a system map kept by-a monitor station showing which stations are in operation. Fig 1 illustrates.a distributed process control system embodying the present invention. This system is shown as including a number of stations such as the controller stations 10 and 11, the operator station 12, and a host computer station 14. The controller stations are.shown as receiving inputs relating to the magnitude of process variables PV from measuring units such as 16.and 17, and producing a control signal to associated control valves such as 18 and 19 for the control of the loops of the process. The controller stations are shown in groups which are interconnected by a redundant multi-drop type electrical data network made up of a pair.of cables such as 20 and 22. These local data highways or networks are each connected to a corresponding node, such as nodes 24, 25, 26 and 27, of a dual simplex optical repeater ring of the global data highway, shown.as fiber optic cables 28 and 30. The nodes of the.global..highway are each an Optical-Electrical interface (OIL) which couples the local electrical network cables such as 20, 21, 22 and 23, with the global fiber optical cables 28 and 30. As shown in Fig 1, the optical data highways 28 and 30 are arranged so that the transmitters of the OEI's carry data 'in opposite directions around their individual ring configuration#s. .In the event there is an interruption in either of the rings as by the inoperability of a retransmitter, then communications is provided by the other ring. Also, in the event that both optical cables are broken in the same location, there is-still continuity of communication. The operator station 12 and host computer station 14 are connected to the global highways by a pair of local data network cables 21 and 23 and repeater nodes 26 and 27. The operator station will normally include a cathode ray tube and a keyboard with the appropriate microprocessor and associated elements to provide for interfacing an operator with the system for monitoring and other operating functions. The operator station will also frequently include a printer and disc file. The host computer is connected to the local data network by the host computer interface HCI. It can be used for a number of control functions. The most used type of computer control carried out by the control stations will be a supervisory type of control wherein the host computer generates setpoint updates for the control loops and transmits those values over the data highway to the appropriate control station which then carries out a normal PID control.function by means of a supervisory algorithm in the control station. In the event the computer relinquishes control, the algorithm can revert to a normal PID control holding the last setpoint, or it can be configured.to revert to manual control, if required. The computer can generate updated setpoint values continu6us'ly, based upon system models and special algorithms. Normally only a fraction of the control loops will be on supervisory control and they will normally be updated at a slow rate such as once every five seconds. The host computer can also be employed for direct digital control on those control loops where conventional PID control is unsuitable. Normally in such cases the control algorithm requires several process variable measurements and utilizes nonlinear control or linear programming to attain some optimum operating condition. The calculated desired valve position or the multiple valve positions determined by the operator are sent over the data highways to the appropriate controller for producing the required valve currents. The desired setpoint values for thevariouscont- rol loops are usually entered by the operator at the operator station 12 while the process variables are measured by the control station as previously mentioned and where the computer is involved in the control function, these values are sent to the computer over the data highway. With the arrangement of Fig 1, each of the control stations can communicate with other control stations, with the host computer, or with the operator station. Likewise, the operator station and the host computer station can communicate with any of..the control stations or between themselves. The data highway system of Fig 1 is a high speed, high data rate, real time communications network. It may, for example, be designed to operate with 31 nodes in the global optical highway, spanning distances on the order of 6096 metres with a maximum of 2133 metres between adjacent optical-electrical interface nodes. The local networks connected to the nodes may, for example, connect between 15 stations over a distance of 61 metres. Data may be - transmitted from this network at rates on the order.of 50D,000 bits per second. The interchange protocol can be made simple to facilitate high speed processing and still provide flexibility for future additions and the frame.format can be based on the High Level Data Link Control (HDLC) format with appropriate extensions for the particular environment. The highway system supports transactions that are ¯either closed or open. Closed transactions have explicit responses and open trnasactions have no .explicit responses. Closed transactions are simple querylresponse interchanges or complex sequences to ensure correct message transfers. Transactions are either link control or information carrying. Closed transactions are composed of a query message from the master (primary) and the response from the suave (secondary). The query message may be a question or a command and the response message an acknowledgement or answer. Messages may be up to four frames long where a frame.is information bracketed.by the address, control, and error detecting bytes. .A 272 byte frame, for example, may be established as the maximum frame size to maximize the effect of the error detecting codes. Further, .the control field and information field key the message for the number of bytes within the message, for error detecting capabilities. In.the communications network,#the transfer time for.the information to be sent from one station to another is directly proportional to the network's efficiency and network rate. The information rate can be established at 500,000.bits per second, the overhead.minimum network can be divided into three components. The first, which can be addressed. independently from a master, is the algorithm of token passing. .The distributive highway system roates the token as fast as the stations will allow when there is no.useful work to be performed. The token slows down as the workload increases. Therefore, it can be seen that the toke2 overhead is inversely proportional to. the data rate. The second component is the overhead of each frame. This overhead can be minimized while still.providing all of the information to ensure reliable transfers. The distributed data highway minimizes the number of overhead bytes by transmitting the information as effectively as possible in encoded fields. Provisions can be made .for future additions by.using only 25%, for example, of the available decodes. Thirdly, the overhead on a message is caused by.the pressure in generating the message. In other words, the computer or microprocessor .processing directly affects the number of layers involved in generating the message. This overhead of generating a message is commonly called turnarounds. In order to maintain the real-time properties of the distributed system, the turnaround time must be minimized. The communications format is frame oriented. Multiple frames may be concatenated within a message. Information is bracketed by a preamble and a postamble. A frame may be composed of only a preamble and a postamble. The preamble is a flag byte, destination address byte, control byte, and a source address byte. The postamble is a two-byte Cyclic Redundancy Check (CRC) character and a flag byte. The control byte and source byte are both expandable to additional bytes. The flag bytes and CRC bytes conform to the High Level Data Link Control (HDLC) procedure specified by the International National Standards Organization (ISO). The destination address provides the address the frame is being sent to. The source address is the address of.the sending station. The control field contains either the function code or link code of the frame. The function code is used to start a message indicating which operation is to be performed. The function code encodes the following functions into four bits: Read, write, command, read check, write check'befqre .execute, command check before execute, response#data,' response command, and ACKNOWLEDGE. The link code defines the operational state of the link. The link code operation is encoded into a four-bit field. .The link codes are: no-op; execute; busy; link reject; continue 0, 1, 2; IGAP; GAS; GAPS; GAE, GARE; and Acknowledge. All control bytes are expanded by.a one bit key The end of the message is indicated by a unique bit. The extended control bytes provide the delayed response permitted indication and the routing address of the destination. The CRC is the remainder of a modular.two division of the complete transmission, .less the flags. .The generator polynomial is the recommended CCITT divisor. Data transparency is provided by the HDLC zero bit insertion procedure. All bytes are transmitted--least significant bit first and multiple byte information is transmitted, low order bit first. Any frame may be aborted at any time up to when the last flag byte is transmitted by a special bit pattern called "abort". The communications network control is distributed to all stations that wish to establish a logical connection with any other device (mastership). The mastership of the system is passed from station to station. When a station receives the mastership, it can initiate a transaction. The passing of mastership is called token passing and is a sequence of interchanges .of link codes. The token passing algorithm categorizes the stations as high usage devices and low usage devices. High usage devices are passed the mastership.in a high traffic loop. -Low usage devices are divided up into two low traffic loops. The high traffic loop stations receive mastership on a line availability algorithm where the system's parameters guarantee.mastership a minimum number of times. The low traffic loop devices receive mastership on a time-dependent algorithm. The two lines 20 and 22 is transmitting, then the signal received by 32 passes through. control element.31 to line 37 for retransmission by optical transmitter 39 over optical fiber 28 to the next Optical-Electrical Interface 26 and so on around the global highway ring. This continues until the signal arrives at an Optical Electrical Interface which is connected to a local. data network having a station which is transmitting. The Optical-Electrical Interface with a transmitting station is conditioned so as not to retransmit the received signal. Thus, for example, if station 10 was granted mastership and had access to the data highways, it would transmit a control signal over.Transmitter Active line 35 which would be effective to cause control element 31 to block signals on line 34. In this case OEI 24.would-cease to operate as a repeater. Thus, messages transmitted from the station 10 would go over the Bidirectional Data line 38 to the transmitter 39 from which they would be transmitted over cable 28 and be repeated by the successive Optical-Electrical Interfaces of the global highway and eventually received by receiver 32. Those messages would then be-transmitted back along the cable Ring Data line 33 and would be nicked up by station 10 which could then confirm that the global highway was intact. Thus, the transmitting station uses its .transmitted signal to check on the continuity of the optical ring. If the station intended as the destination of the message transmitted by station 10 happened to be station 11, low traffic device times are offset to minimize their effect on the high traffic loop. The token (symbol of mastership) is passed from the high loop to the low loop by a high traffic station. A class of stations (system monitors) monitor the token to ensure correct operation and further correct any malfunctions. The system. is self-balancing. with initialization- by outside intervention. Once the initialization procedure is started bya station, all stations monitor the sequence. Stations which have malfunctioned are removed from the normal loop.operation and periodically placed in the loop until permanently removed by an initialization sequence or when the malfunction has been corrected. Each station must limit its transaction time and the time it retains the token. System monitors will further monitor the highway for stall outs. When a device receives the token and .would like to inform the entire system of its operational status, it will broadcast its status to all devices and-key the token passing that.it has done so. Fig 2 shows in more detail the Optical-Electrical Interfaces such as.24 and 25. These units each have one transmitter-receiver combination. Each transmitterreceiver combination converts optical data from the cable to an electrical form and back again to the optical form for retransmission. Thus, the optical detector 32 is a receiver which receives data from the fiber optic highway 28 in the forward (clockwise) direction and converts it to electrical data on line 34. If none of the stations 10 and 11 connected to the local network which is on the same local data network with station 10, then it would have received those signals over the Bidirectional Data line 38. This is also the case where the receiving station is connected to another Optical Electrical Interface in that the signal will be received by that station over its Bidirectional Data line. All stations are listening at all times so that they can accept transmission intended for them. The metallic wiring as shown in Fig 2 is in duplicate in.that lines 34, 36 and 37 carry the same signals as lines 33, 35 and 38, respectively. These lines are each a twisted pair of metallic wires. The three different .lines shown are a Bidirectional Data line, a Ring Data line, and a Transmitter Active line. Whenever a station is transmitting on a local data network, both of the duplicate wirings are us#ed and .in the same way. In receiving messages both are used to carry the received message for that message.is propagated around both optical rings 28 and 30 simultaneously. The modem at the destination station accepts the first valid signal which it detects from the duplicate lines. The stations on the local networks are connected via the EIA RS485 party line technology and, of course, each device on the-l6cal networks has a microprocessor and associated logic to carry out its function and the necessary modem for interfacing with the network. The network's information is modulated using frequency-shiftkeyed modulation shifting between three frequencies (a prefix, logic zero, and logic one), which are respectively 2 MHz, 1MHz, and 0.5 MHz. As mentioned, the information to be transferred over the local network is presented on.both sets of lines 20 and 22, simurtaneouly. Both sets of lines in the network are, of course, totally independent of each other, that is, each has its own receiving gate and driving gate with the modem selecting the first valid information stream. It will be evident that the global data highway of Fig 1, as well as the.local data networks, are both redundant and thus the system will be extremely tolerant to single fault conditions. The optical data highway of this invention replaces the normal electrical highway which is commonly used but which suffers from bandwidth limitations and also presents a safety hazard in certain surroundings. In addition, the optical data highway is not subject to radio-frequency interference as would be the case with an electrical highway. The ring configuration is used for the global highway in this invention instead of the normal star confi#guration because or the fact.that.the star configuration entails excessive cabling costs since each node would necessarily #be connected to each of the othernodes through a central mixing-splitting device. Each of the controller stations, such as stations 10 and ll,.is constructed as shown in Fig 3. The connection of the controller stations to the local data network #is provided by way of the modems 40 and 42 The modem cards serve to convert data from the Highway Interface cards 41 and 43.respectively into a modulated signal which may be sent on the data highway and to demodulate signals from the.data highway before sending them to the Highway Interface cards. The Highway Interface cards 41 and 43 receive data from the data bus 46. The data bus 46, as noted, may, for example, be suitable for carrying 24 bits in parallel. The data bus, of course, serves to proi;ide an intercommunication channel between the various printed circuit cards which make up the controller and, as shown in Fig 3, the data bus is connected not only to the Highway Interface cards but also to the Data Acquisition Digital card 48, the Data Base card 52, the Algorithm card 54, and the Hold Station card 58. The Data Acquisition Digital card 48 includes a microprocessor and the necessary logic circuitry so that it can perform the function of acquiring digital input data from the Data Acquisition Analog card 50 over the bus 51 so that the information acquired can be transmitted to the Data Base card 52, the Algorithm card 54, or to the Hold Station card 58. The Data Base card 52 may, for example, include CMOS RAM storage such as may be required.to provide information as to the algorithm which is to be used for the control. The data.base serves as one of the resources for the controllerof Fig 3 and provides the central memory storage needed to operate the system. The other resource of Fig 3 is provided by Hold Station card 58 which, as shown in.Fig 3, provides analog outputs.to.the control devices such as valve 18 or 19 used to operate the process under control. The Hold Station card.58 contains a number of digital to analog converters for the purpose of.converting the digital information supplied over data bus 46 to analog form as,.for example#, to a current output indicative of the position required for the process control devices being operated. The Hold Station card 58 is underthe..control of the Algorithm card.54. The Algorithm card itself includes a microprocessor and logic circuitry as required to execute the control algorithms -which are to be used for the control functions of the controller of Fig 3. After the Algorithm card has used the particular algorithm to determine the output required for control, the Algorithm card writes the digital form of these outputs to the main data bus on card 52 and also to the Hold Station card 58. It will be noted that the analog inputs in the form of process variables, as measured .in the process under control by elements such as 16 and 17 (Fig 1), .are provided as inputs to the Data Acquisition Analog card 50, which is shown as being connected over bus 51 to the Data Acquisition Digital card 48. The various cards 41, 43, 48, 50, 52, 54 and 58, are all.interconnected by way of control lines 60 which provide for the intercommunication between the various cards of the several control signals required to provide the necessary control of the operations of the various cards involved. As has been mentioned above, the Highway Interface cards 41 and 43, the Data Acquisition Digital card 48, as well as the Algorithm card 54, all contain microprocessors which must communicate with each other for the proper operation.of the system and which must, in some circumstances#, communicate with the Data Base card 52, or the Hold Station card 48, which act as resources for the system. For.this.intercommunication,.the data bus 46 is provided. Stations which are master stations have the pote#ntial for sending commands.to another station. .Some of the master stations are.called monitors.in that they have the ability to monitor or eavesdrop on the highway. The monitor stations not only determine if the highway is functioning properly, but also keep track of which stations are active and capable of receiving mastership. This is done with a system map as shown by Fig 6 which will be described below. The stations which are not system monitors receive messages for their station address as well as:. those for the universal address, that is, those which are sent to all stations without requiring a reply. Other.stations may operate as remote stations for data acquisition and storage but without the ability to assume mastership. As stated before, the communication network is divided up into three address spaces which are logical loops: these are a high-traffic and two low-traffic loops. The high-traffic loop has addresses 1.to 31 and the first low-traffic loop A has addresses 32-47 and the second low-traffic loop B has addresses 48 to 63. The token is passed normally around the high-traffic loop at the maximum obtainable speed. A monitor station will pass the token to either of theilow loops, starting at the lowest active address of that loop. The .token is passed through that low loop and is returned to the high loop by the last active station in the low loop. The high loop return address is carried in the Go Ahead Return Execute (GARE) message. The monitors pass the token to the low loops once every half second with low loops offset by 1/4 sec. To ensure system performance, each station can hold on.to the token for no more than 50 ms. Stations participating in the mastership transfer process in the high-traffic loop have two.datÅa bytes of storage to retain a permanent and temporary address of the next.valid station in the high-traffic.loop.to which it will pass mastership. The permanent pointer is set during -the --IGAP sequence, as explained below. The temporary pointer is set during startup and abnormal operation. The highest numbered active high-traffic station's pointer points to the lowest numbered hightraffic station. Sy.stem monitors which may jump to the low-traffic loops will also maintain pointers containing the lowest numbered active low-traffic station address of each low-traffic loop. This ¯pointer is set either by the IGAP sequence being executed.by that system monitor or by eavesdropping on other .system monitors. The highest numbered active low-traffic station's pointer in each low-traffic loop will point to the lowest high-traffic station. This will be effective to cause the return to the high-traffic loop to be in accordance with the return address carried by GARE. This token passing scheme is illustrated in Fig 4 where station 2 is shown passing the token to low-traffic loop A by passing it to the lowest numbered# active station in that loop, namely. 35. This token pass:occurs when the time period set for passing to loop A has passed. The token then passes successively to 36, 37 and 38. Station 38 returns the token to the return address carried by the GARE message, namely station 3. After another time period has passed, the token is sent to the other low-traffic loop B. Thus, if station 2 has the token when this time period expired, it would.pass the token to station 51, the lowest numbered active station in loop B. As before, the token is passed successively through loop B, stations 52, 53 and 54. Station 54 then returns the token to the address in the high-traffic loop carried by the GARE message, namely station 3. The current master, upon concluding normal traffic, will initiate a Go Ahead Sequence (GAS) on the active data highway channel. If the specified station completes the GAS sequence correctly, it will, within 100 microseconds maximum, place the link in an active link state. The current master will detect carrier ON and consider the transfer sequence to be sudcessfully completed. If the current master does not detect this condition within 200 microseconds, it will consider the attempt to transfer as failed, and enter a recovery procedure as specified below. On failure, the current master attempts a second time to transfer mastership to the next.station by. repeating the GAS command on the primary data highway channel. If this attempt fails also, it will issue the GAS command to the same station. If the transfer still fails the current master will move the permanent address into the temporary address, increment by 1 and repeat the procedure. If the transaction is again not completed, the temporary address is incremented again and again until the mastership is successfully transferred or until the Go Ahead Pointer.value¯equals.the current master's address. If the above procedure was initiated by a hightraffic loop station, the permanent address.would be used once a second and the temporary address regenerated for that transfer. All other mastership transfers within-the second would be made through the temporary address. If the Go Ahead Pointer ever.incr#ments to equal the current master's address, the master will cease transmission and let the Data Highway completely stall. If the current master fails, preventing .initiation of the Go Ahead Sequence, the data highway will stall out. .At this time selected devices with .System Status Monitor capability will initiate a Restart of the data highway link. When a device is powered up, the permanent Go Ahead Pointer is set to the station address+l and the token. is passed via the normal algorithm. Transfer of mastership utilizes the following commands: IGAP - Initialize Go..Ahead.Pointers. When a station receives this command, it sets its permanent pointer to its station address plus one. This is an operator initiated instruction used when a new station is added to the highway or when a failed station has been repaired. .IGAP initiates a search for the next active station in a loop so that the next active station can be used from then on for mastership token transfers. IGAP is normally broadcast to the highway but may also be directed to one station, in which case an ACK is returned to the sender indicating'that the station has set its next station address to its station address plus one unless that results in 32, 48 or 64, i.e. at the end of the loop, in which case the next station is set to "1" so that the token will return to station No 1 on the high traffic loop. The loop utilized flags are set to indicate that a GAPS code should be used for the token passing next time instead of a GAS so that the highway monitors will know that.a search for the next active station is being performed. The first address in each. low loop is reset and the system map of permanent next stations is reset. GAS - Go Ahead Select. The GAS command is used to select the .next master during normal token transfers. The GAS command signals the intent of a station to pass the token, and the reception of a GAS command when a station..is a highway slave primes the station to receive the mastership token. An ACK is returned on the highway, and the station is primed to accept a GAE as the next command. Also certain token monitoring functions are done as a result of #this command. GAPS - Go Ahead Pointer Select. The GAPS command is used when a station is zeroing in on the normal next station address.. This zeroing-in sequence takes place during the first mastership.pass after the IGAP is received. The station receiving a GAPS command treats it exactly as a GAS reception but in addition it updates the permanent and current system map entry. GAE - Go Ahead Execute. The GAE command is used to complete the token passing sequence.once the present master has assured itself that the next master is capable of.being master. Most of the work associated with token passing occurs upon the observation of a GAE command. This work includes a number of housekeeping chores. GAPE - Go Ahead Return Execute. A GARE command performs the same function as the GAE command except it contains a return station address. It is used exclusively in the low-traffic loop. The last station in a low-traffic loop will use the return address to indicate.the station in the high-traffic loop to which the token is to be passed. ACK - Acknowledge. Acknowledges are ignored. by the monitor unless they follow a GAS or.a.GAPS. When following a GAS, the monitor checks to see that it was an ACK from the expected station. When following a GAPS, an additional check is made to see whether this is the first station in a low loop to respond with an ACK. -If that is true, the saved, permanent, and current first low loop address is set to the station of the ACK. It will thus be evident that the mastership transfer sequence is as follows: 1. Master station issued the GAS or GAPS command to the station address of its permanent pointer. 2. The addressed station acknowledges .(ACK) the GAS or GAPS command fr#om the master. 3. The master having.received ACK issues a GAE or GARE command to the station intended to receive the token indicating that the token has been passed to it. 4. The master station awaits an indication that the carrier has come on. A token passing algorithm is shown in Figs 5a, 5b, and 5c. When the station is in a non-master state (block .70) and the line becomes active (block 72), indicating a. carrier or a transmission is occurring, the stall out counter is reset (block 74) 'and the message is examined to see if it is for this station (block 76). If it is, it is determined whether or not the message is a GAS (78). If a GAS has been received for this station, the message is tested for validity (connection C and block 80) and if valid, an ACK is sent (block 82) back to the present master. The program then tests to see if the line is active (block 84) and if so, if the message is a GAE or a GARE (block 86). If it is, the message .validity is determined (block 88) and if the GAE or GARE message is valid, the carrier is turned on (block 90) and the mastership flag is raised (block 92) indicating mastership has been transferred to this station. The station then goes about making the transmission necessary to carry out its function, and when no more information is to be sent (block 94), the program then operates to transfer mastership to the next station (connection E). It is first determined whether or not it is time to go into a low priority loop (block 96) and if it is not, there is a determination made of the address. fqr Next Station as stored in the permanent address pointer during the IGAP procedure (block 98).. If the address in the permanent pointer is this station (block 100), then a stall-out condition is allowed to occur (block '102) for that indicates that during the previous IGAP a search was made for the next active station in the high priority loop and none was found; therefore, the only. station active is this station. This makes it impossible to transfer mastership and a stall.condition is appropriate. If the address in the permanent pointer is not this station, then a determination is made as to whether or. not this is an IGAP sequence (block 104). An IGAP sequence is the sequence of mastership transfers following an IGAP command. If it is not, a GAS message is sent to the address in the permanent pointer (block 106) and when an ACK is received (block 108), its validity is checked (block 110) and if it is valid, a GAE is sent to the next station (block 112). As evident from the algorithm in Fig Sc, if it is determined that an IGAP sequence is occurring (block 104), then the permanent pointer is set to the Next Station address (block 114) and since it is an IGAP procedure, a GAPS command is sent instead of a GAS (block 116). If this station determines that it is time for a low priority loop (block 96), the low loop address to which the token should be passed is determined (block 118) and if this is not an IGAP sequence (block 120), a GAS command is sent (block 122) whereas, if it is an IGAP sequence, the permanent pointer address is set to the Next Station (block 124) and a GAPS command is sent (block 126). When an acknowledgement (ACK) message is received in response to the GAS or GAPS (block 128), its validity is determined (block 130) and if valid, a GARE is sent to the next station (block.132 connection D) as shown in the algorithm of Fig 5c. If the ACK is not received to the GAS or GAPS commands, or if they are not valid, the retry counter is incremented (block .134, connection F) as it is concluded that the station whose address us .in the permanent pointer is not responding and therefore it must be. tried again. Every time it. is retried by resending the GAS or GAPS command, the retry counter is incremented until it reaches its allowable maximum count (block 136), at which time the algorithm calculates the next station by incrementing the number of the station in the permanent counter by one (block 138) then that# station is tried by sending a GAS or GAPS command. Returning to Fig 5a, if the message received is not a GAS, then the question is asked as to whether or not it is a GAPS (block 140). If it is a GAPS message, then the system map is undated (block.142). The system map is the tubular data such as shown in Fig 6 which indicates for each station whether or not it is active and if so, what the address number is in the permanent pointer or, in other words, the the address to which it will pass the token. As previously mentioned, these system maps are maintained only by monitor stations. If the message is not a GAPS as determined in block 140, it is determined whether or not the message is an IGAP (block 144). If it is not, the message is processed as needed (block.146) since it is then not a message which involves the passing of the token. Otherwise, the address in the permanent pointer is set to this station address plus 1 (block 148)-and if this station is a monitor, the IGAP message is processed (block 150). If this station's address plus 1 equals 32, 48 or 64 (the end of a loop), the next station address is set to 1. Also, the permanent address for the next station stored in the system map are reset to the station number plus 1. As shown in Fig 5a, when the line is not active, that is, when there isnot a carrier on (block 72), then it must be determined if the stall out time is up (block 152). This determination is a predetermination as to whether or not a predetermined period has been exceeded, which period.was set to be the maximum period during which, if the line is not active, it.must be assumed that a stall condition has occurred, and the network must be restarted (block 154).. .If the stall out time is not up then, of course, the station awaits an active line as stated in block 72. Upon restarting the,network (block 154) mastership is assigned again to this station (block 92 and connection B). Referring to Fig 5b, if the questions asked in blocks 80, 86 and 88 are answered negatively because of invalid messages or failure to get a GAE or GARE after. acknowledging a GAS, then the program returns to await the next command (connection A). When the GAE or GARE commands are sent to the next station thus transferring mastership, the program returns to the beginning (connection D). The program also returns if the message is not for this station (block 76) and after the message has been processed (block 146) as well as after processing IGAP (block 150). In the IGAP sequence the reception of.the IGAP command causes the permanent pointer for each station "N" to be set to N+1 (block 148). That is the next station address determined in block 98. If an IGAP sequence is occurring then block 114 sets the permanent pointer to the next station as calculated.by block 138. During the first attempt to pass the token after receiving an IGAP, that number is N+l, -however, if N+l is inactive and no acknowledgement is received (block 108), then the next station number is increased by 1 to N+2 and before sending the next GAPS (block 116), the permanent pointer is set to the new number (N+2). This sequence for incrementing the permanent pointer continues until a valid ACK is received. Fig 6 is a set of examples of a system map ¯maintained by the monitor stations as it would appear under various conditions. For example, the first column shows a system.map which would be applicable after power up initialization has occurred. Under that condition, all of the stations are identified as having in their permanent pointer the address of the next station (N+1) except for the last station in each of the loops where the permanent pointer is set to one and.all of the stations are identified as being inactive.. In the maps of Fig 6, the first number identifies the station number involved, the next number after the dash is the number of the address in the permanent pointer. After the comma, the zero (0) identifies the station as being an inactive station and an x.identifies the station as being active. In column 2, the system map is shown for the condition in which all of the stations are active except station 32, 63 and 3. Column 3 shows the system map-under the conditions in.which stations 33-47, 3-30 are not active. In column 4, the system map for the conditions under which all stations are not active except station 2 are shown, while column 5 shows the system map for the condition in which stations 33, 63 and 4 have come up after the map was in the state shown in column 4.

Claims: CLAIMS 1. A communication system for a large number of control stations (10, 11) which are widely spaced, characterised by a redundant data highway having two optical communication channels (28, 30), each forming a ring interconnecting all stations, with signal transmission around one ring oppositely directed from the direction around the other; an optical-electrical interface (24,25) for said stations (10,11) inserted to be in series in said rings (28,30) for coupling signals from said stations (10,11) to said optical channels (.28,30), said interface (24,25) including; an optical detector (32) for receiving optical data from each optical channel (28) and converting it to corresponding electrical data signals; an optical transmitter (39) for converting electrical data signals to optical data on an,optical channel (28); ; means (31) for coupling corresponding detectors (32) and transmitters (39) to repeat signals received by said detectors (32) when stations (10,11) associated with the interface (24) are not'transmitting and prevent repetition when an associated station is transmitting, and means (20,22) providing reception by nontransmitting stations of signals propagating around said rings (28,30). 2. In a'distributed process control system having a host computer (14) for overseeing the control effected by a large number of microprocessor based control stations (lO,ll) which are widely spaced, a communication system characterised by a data highway.having two optical communication channels (28,30) each forming a ring for providing redundant signal transmission in opposite directions to interconnect the stations (10,11); and optical-electrical repeaters (24,25,26,27) for said stations (10,11) inserted to be in series in said rings (28,30) for repeating messages on said rings and for coupling signals into said optical channels, said repeaters including optical detectors (32) for receiving optical data from each optical channel (28) and converting it to corresponding electrical data signals, an optical transmitter (39) for each optical channel for converting electrical data signals to optical data to originate transmission of messages or repeat messages received by the associated detector (32) to further propagate said-messages'around said ring (28), means (31) for preventing the repeater associated with the transmitting station from acting as a repeater; and means (33) for receiving the transmitted signal after it has gone completely around the ring (28) for checking on the condition of the ring. 3. A method for transferring mastership in a multi-master communications channel of a distributed process control system having a plurality of microprocessor based stations intercommunicating in the control of a large number of variables of a complex industrial process, characterised by the steps of: grouping into a sequence forming a first logical loop the active stations requiring the most frequent attention; grouping into a sequence forming at least one other logical loop the active stations requiring less frequent attention; passing mastership repetitively through the sequence of stations in the first loop at a maximum speed compatible with the work to be done by each station until a predetermined time period has elapsed since passing mastership through said other loop; an#d upon expiration--of said time period passing mastership once through the sequence of stations of the other loop and thence from the last station in that sequence to a predetermined station of the first loop for continuing repetitive passage through said first loop. 4. The method of claim 3 characterised in that mastership is transferred to the next active station by: issuing a select signal from the present master to the address of the next active station in the loop through which mastership is being passed; responding from said next station to the master with an acknowledgement .signal if the next station is prepared to assume mastership; issuing a select signal in sequence to the next subsequent active station in the loop when an acknowledgement signal is not received by said master station in response to any select signal; and issuing to the first acknowledging station an execute signal passing mastership. 5. The method of claims 3 or 4 characterised by the step of monitoring the passing of mastership among the stations at preselected monitor stations by keeping a system map identifying the active station in each loop and the stations to which each will pass mastership. 6. The method of claim 3, characterised in that the stations requiring less frequent attention are divided into two loops and mastership is passed to the second of said less frequent loops from said first loop after a predetermined time has expired since that second loop was previously scanned. 7. In a system having a plurality of intercommunication stations, a first group of which requires frequent attention and a second group of which requires less frequent attention, and communications channels to support intercommunications therebetween, apparatus for transferring mastership over said channels to said stations characterised by means operable to sequentially pass mastership repetitively through the first group of stations at a maximum speed compatible with the work to be done by said stations- until a predetermined time period has elapsed following the passagethe-passage of mastership through the second group of stations; and means operable upon expiration of said period to pass mastership once only through said second group of stations in a.predetermined sequence and thence to a predetermined station of said first group. 8. A method for transferring mastership over the communications channels in a distributed process control system having a plurality of controlestations arranged¯ in a first logical loop consisting of those stations which require frequent a#ttention and other logical loops each consisting of a group of stations which require less frequent attention, characterised by the steps of repetitively and sequentially passing mastership to the stations of the first loop at a maximum speed compatible with the work to be done by said stations when they receive mastership; and periodically passing mastership once #only to the stations in the groups forming each of said other loops. 9. A method as set forth in claim 3, characterised in that the grouping of active stations into logical loops is accomplished by assignment of each station to either said first loop or said other loop depending on its priority status and by then eliminating the inactive stations from the loops during an initialization procedure. 10. A method as set forth in claim 9, characterised in that the initialization procedure is carried out by each station only when it first receives mastership after initialization has been started, said procedure including the steps of addressing the next station in the same loop with a request to pass mastership when the station acting as master-has completed its work unless it is time to go to another loop; completing the passing# of mastership to that next station unless that next station is not active; and if said next station is not active as indicated by lack of a response to said request, then addressing the station next in order with a request to pass mastership, then addressing the station next in order with a request to pass mastership; continuing addressing the stations in order until said request is answered and mastership passed, and storing the address of the successful mastership pass as the permanent next station address. 11. A communications system for a large number of control stations which are widely spaced, characterised by local data transmission networks having two metal wired interconnections (20,22) providing redundant communication channels between all of the control stations (10,11) of a group determined'by geographical location; a global data highway having two optical communication channels -(28,30) each forming a ring for providing redundant signal transmission in opposite directions between the transmission networks of each of said groups; and an optical-electrical'interface (24,25) for each of said groups interposed in each ring for coupling each-metal,wired interconnection (20,22) to a separate one of said optical channels (28,30), said interface (24,25) including an optical detector (32) and an optical transmitter (39) connected to provide forretransmission of thedata received by the detector (32) so that data will flow around said global rings in opposite directions; and means (31,33,34,35,38) for disabling said connection between the detector (32) and transmitter (39) at the interfaces (24) associated with the group of stations (10,11) which includes the transmitting station while making the connection between the network of the transmitting station and the detector and transmitter of its interface for receipt at said transmitting station of the transmission sue'nut after it has passed through the optical rings to thereby provide a check on the continuity of said rings. 12. In a distributed process control system having a host computer (14) for overseeing the control effected by a large number of microprocessor based control stations (10,11) which are widely spaced, a communication system characterised by local data transmission networks having duplicate metallic wiring (20,22) providing redundant communication channels between all of the control stations (10,11) of a geographically determined group; a global data highway having two optical communication channels (28,30) each forming a ring for providing redundant signal transmission in opposite directions to interconnect the networks of each of each of said groups; and an optical-electrical interface (24,25) for each of said groups inserted to be in series.in said rings (28,30) for coupling signals from-each metal wired network (20,22) to a separate one of said optical channels (28,30), said interface (24,25). including: optical detectors (32) for receiving optical data from each optical channel (28) and converting it to corresponding electrical data signals; optical transmitters (39) for converting electrical data signals -to optical data on an optical channel (28); control elements (31) each connecting corresponding detectors (32) and transmitters (39) to provide repeater-operation in ea#ch channel and operable upon receipt of a.control signal from a transmitting station of the associated group of stations (10,11) to disconnect the detector'(32) from the transmitter (39) to half said repetition; a connection between a first line (33,34) of each of the duplicate wiring (20,22) of the local' network and the output of the corresponding detectors (32) to return in duplicate transmitted signals to the transmitting station; ; a connection between a second line (37,38) of each of the duplicate wiring (20,22) of the local network and the input of the corresponding transmitters (39) t6 carry transmitted signals from the transmitting station to the transmitters for propagation on the optical channels (28,30) and also provide for reception of signals transmitted from'other'groups; and a connection between a third line (35,36) of each of the duplicate wiring (20,22) of the local network and the corresponding control element (31) to carry said control signals to said control element (31).

Inventors: KOROWITZ, SIMON, MCMENAMIN, FRANCIS E., WEISS, EDWARD L.
Applicants: GENERAL SIGNAL CORPORATION
Application year: 1983
Main classification: H04L11
IPC codes: H04B10, H04L12, G06F13