The present invention relates to industrial controllers used for real-time control of industrial processes, and in particular to high-reliability industrial controllers appropriate for use in devices intended to protect human life and health. “High reliability” refers generally to systems that guard against the propagation of erroneous data or signals by detecting error or fault conditions and signaling their occurrence and/or entering into a predetermined fault state. High reliability systems may be distinguished from high availability systems, however, the present invention may be useful in both such systems and therefore, as used herein, high reliability should not be considered to exclude high availability systems.
Industrial controllers are special purpose computers used in controlling industrial processes. Under the direction of a stored control program, an industrial controller examines a series of inputs reflecting the status of the controlled process and changes a series of outputs controlling the industrial process. The inputs and outputs may be binary, that is, on or off, or analog, providing a value within a continuous range. The inputs may be obtained from sensors attached to the controlled equipment and the outputs may be signals to actuators on the controlled equipment.
“Safety systems” are systems intended to ensure the safety of humans working in the environment of an industrial process. Such systems may include the electronics associated with emergency stop buttons, interlock switches and machine lockouts. Traditionally, safety systems have been implemented by a set of circuits wholly separate from the industrial control system used to control the industrial process with which the safety system is associated. Such safety systems are “hard-wired” from switches and relays, some of which may be specialized “safety relays” allowing comparison of redundant signals and providing internal checking of conditions such as welded or stuck contacts. Safety systems may use switches with dual contacts providing an early indication of contact failure, and multiple contacts may be wired to actuators so that the actuators are energized only if multiple contacts close.
Hard-wired safety systems have proven inadequate, as the complexity of industrial processes has increased. This is in part because of the cost of installing and wiring relays and in part because of the difficulty of troubleshooting and maintaining the “program” implemented by the safety system in which the logic can only be changed by rewiring physical relays and switches.
For this reason, there is considerable interest in implementing safety systems using industrial controllers. Such controllers are easier to program and have reduced installation costs because of their use of a high-speed serial communication network eliminating long runs of point-to-point wiring.
Unfortunately, high-speed serial communication networks commonly used in industrial control are not sufficiently reliable for safety systems. For this reason, efforts have been undertaken to develop a “safety network” being a high-speed serial communication network providing greater certainty in the transmission of data. Currently proposed safety networks are incompatible with the protocols widely used in industrial control. Accordingly, if these new safety networks are adopted, existing industrial controller hardware and standard technologies may be unusable, imposing high costs on existing and new factories. Such costs may detrimentally postpone wide scale adoption of advanced safety technology.
What is needed is a safety network that is compatible with conventional industrial controller networks and components. Ideally such a safety network would work with a wide variety of different standard communication protocols and would allow the mixing of standard industrial control components and safety system components without compromising reliability.
The present invention provides a network-independent, high-reliability communications system by imposing two levels of protocol on data being transmitted over the network. The first level of protocol provides the high-reliability necessary for a safety system while the second level of protocol encapsulates the protocol of the safety system allowing it to be transmitted on a standard network.
The safety network of the present invention is compatible with a wide variety of standard networks and standard network hardware and also allows safety and non-safety components to be intermixed through the medium of the standard network. The safety protocol adds error detection data to transmitted data, all of which is treated as data by the standard network. The safety protocol also adds timing requirements for message transmission that ensure reliable transmission but that can remain invisible to the protocol of the standard network.
Specifically the present invention provides a network-independent, high-reliability communication system for an industrial controller making use of a standard serial communication network. The communication system includes a first I/O communication circuit receiving I/O data for control of an industrial process. This I/O data may be input or output data and the circuit may be at an industrial controller or at its I/O module. The I/O data is received by a first network-independent protocol circuit which formats it for transmission under a network-independent protocol to produce high-reliability formatted data, formatted so as to reduce errors in transmission. The high-reliability formatted data is received by a standard network protocol circuit, which further formats it for transmission under a protocol of the standard serial communication network. In this way, it produces doubly-formatted data for transmission on the standard serial communication network. The formatting of the protocol for the standard serial communication network also reduces errors in transmission. After transmission over a standard serial communication network, the doubly-formatted data is received by a second standard network protocol circuit, which extracts the high-reliability formatted data according to the protocol of the standard serial communication network. The data is then received by a second network-independent protocol circuit extracting from the high-reliability formatted data, the original I/O data. A second I/O communication circuit receives the I/O data for control of the industrial process.
Thus it is one object of the invention to provide for a high-reliability communication system that may nevertheless use the standard circuitry and protocols of common, well-developed and commercially available serial communication networks. The safety formatting is embedded in the standard protocol of the serial network, which treats the formatted safety data as normal data to be transmitted.
The first network-independent protocol circuit may format the I/O data by adding error detection methods selected from the group consisting of cyclic redundancy codes related to the I/O data and sequence counts related to the local order of transmission of the I/O data with respect to other I/O data being transmitted.
Thus it is another object of the invention to provide for high-reliability communication for safety systems regardless of the presence or absence of error reduction data in the protocol of the standard serial network.
The second network-independent protocol circuit may further generate an acknowledgement message upon receipt of the I/O data formatted under the network-independent protocol to produce high-reliability formatted acknowledgement data. The second standard network protocol circuit may receive the high-reliability formatted acknowledgement data and further formats it for transmission under the protocol of the standard serial communication network to produce doubly-formatted acknowledgement data for transmission on the standard serial communication network. The first standard network protocol circuit may receive the doubly-formatted acknowledgement data from the standard serial communication network and extract the high-reliability formatted acknowledgement data according to the protocol of the standard serial communication network. Finally, the first network-independent protocol circuit may receive the high-reliability formatted acknowledgement data to detect transmission errors.
Thus it is another object of the invention to provide for the detection of lost messages regardless of this capability in the standard serial network. The timing protocol may operate invisibly to the standard serial network as implemented at a higher level. By providing a closed loop of transmission, the present invention can detect errors not only in the transmission media but also in the processing circuitry and other components such as processors within that communications loop. Errors introduced from any one or all of these sources will be termed “transmission loop errors”.
Upon detection of an error, the second network-independent protocol circuit may assume a default safety state of the I/O data.
Thus it is another object of the invention to provide not simply for the detection of errors but for the defaulting of I/O data to default states as is necessary for proper safety operation.
The foregoing and other objects and advantages of the invention will appear from the following description. In the description, reference is made to the accompanying drawings, which form a part hereof, and in which there is shown by way of illustration a preferred embodiment of the invention. Such embodiment does not necessarily represent the full scope of the invention, however, and reference must be made to the claims herein for interpreting the scope of the invention.
The present invention can be part of a “safety system” used to protect human life and limb in the industrial environment. Nevertheless, the term “safety” as used herein is not a representation that the present invention will make an industrial process safe or that other systems will produce unsafe operation. Safety in an industrial process depends on a wide variety of factors outside of the scope of the present invention including: design of the safety system, installation and maintenance of the components of the safety system, and the cooperation and training of individuals using the safety system. Although the present invention is intended to be highly reliable, all physical systems are susceptible to failure and provision must be made for such failure.
Referring now to
Input module 14 may accept input signals 18 (on like-designated lines) which are communicated over the network 15 to the industrial controller 12. At the industrial controller 12 the signals 18 may be processed under a control program implementing a safety system (such as a machine lock-out or emergency stop) and further signals sent to the output module 16 which may produce output signals 20 (on like-designated lines) to an actuator 22.
The input signals 18 may come from a switch 19 which may be any of a variety of devices producing safety input signals including but not limited to emergency stop switches, interlock switches, light curtains and other proximity detectors. The actuator 22 may be a relay, solenoid, motor, enunciator, lamp or other device implementing a safety function.
Also connected to the network 15 is a standard computer, which may be used as a configuration terminal 24 whose purposes will be described below.
Referring now to
The input module 14 may include redundant interface circuitry 28a receiving signals 18a and interface circuitry 28b receiving signal 18b. Alternatively, but not shown, interface circuitry 28a and 28b may each receive both signal 18a and 18b (for internal comparison) or may receive signals 18a and 18b from a single contact. The contacts, in generating signals 18a and 18b, may each be provided with a separate voltage from the input circuitry 28a and 28b or from a common voltage source (not shown). Other redundant variations on these wiring systems, known in the art, may also be used.
Each of the interface circuitry 28a and 28b may in turn provide signals to associated microcontrollers 30a and 30b. Microcontrollers 30a and 30b provide a computer processor, memory and a stored program for executing safety protocol programs as will be described below. Alternatively, or in addition, the safety protocol may be executed by safety protocol circuits 32 with which microcontrollers 30a and 30b communicate. In this case, the safety protocol circuits 28a and 28b may be application-specific integrated circuits (ASIC). As it is well known in the art to implement protocols through hardware or software or combinations of each, the term “protocol device” as used herein and in the claims should be understood to embrace generally any combination of software and hardware components implementing the indicated functions.
The microcontrollers 30a and 30b may communicate with each other through an internal bus 34 to compare signals 18a and 18b as will be described.
Microcontrollers 30a and 30b or safety protocol circuits 28a and 28b in turn connect to standard network protocol circuits 36a and 36b of a type well known in the art for handling the low level protocol of the standard network 15. Typically, the standard network protocol circuits 36a and 36b are implemented by an ASIC whose implementation represents considerable development time and which cannot be easily modified.
The standard network protocol circuits 36a and 36b transmits signals from the input module 14 on the network 15 to be received at the controller 12 through a similar standard network protocol circuits 38a and 38b. These signals are processed by the standard network protocol circuit 38 and provided to redundant safety protocol circuits 40a and 40b, being similar to safety protocol circuits 32a and 32b described before. These safety protocol circuits 40a and 40b communicate with processors 42a and 42b, respectively, which include separate memory systems and control programs according to well-known redundancy techniques and which intercommunicate on internal bus 34′. Output signals generated by the processors 42a and 42b may be communicated back through the safety protocol circuits 40a and 40b to implement the safety protocol, as will be described below (or alternatively, the safety protocol may be handled by the processor 42a and 42b), and the output signals communicated to the standard network protocol circuits 38a and 38b for transmission again on network 15 to output module 16.
Output module 16 may receive output data through a standard network protocol circuit 44a and 44b being similar to standard network protocol circuits 36a and 36b and 38a and 38b. The standard network protocol circuits 44a and 44b provide the data to safety protocol circuits 46a and 46b, which in turn provide them to redundant controllers 48a and 48b. As before, alternatively, the safety protocol may be handled by the controllers 48a and 48b instead. The controllers 48a and 48b communicate by internal bus 34″ and in turn provide signals to output interface circuits 50a and 50b which provide the output signals 20a and 20b. The output signals may be connected to the actuator 22 so that outputs must be enabled for the actuator 22 to be powered. In this sense, a default safety state is produced (of no power to the actuator 22) if there is an inconsistency between the signals received by processors 48a and 48b. A change in the wiring to parallel configurations could create a safety state where the actuator is actuated unless both signals received by processors 48a and 48b are not enabled.
Alternatively, and as will be described, a safety state may be enforced by a safety state signal transmitted from the controller 12 or the input module 14 to the microcontrollers 48a and 48b of output module 16, the latter which may respond by producing outputs to output interface circuits 50a and 50b determined by stored values of desired safety states programmed through the configuration terminal 24 as will be described further below.
A bridge circuit 17 per the present invention could use the basic structure shown in the input module 14 but replacing the interface circuitry 28a and 28b of input module 14 with network protocol circuits 38a and 38b and safety protocol circuits of 40a and 40b (where the network protocol circuits 38 and 36 are for different protocols, thereby allowing seamless transmission of safety data per the techniques described below).
Referring now to
Likewise, referring to
Referring now to
Referring now to
The data encapsulated in the safety-network protocol 54 and standard network protocol 56 can then be received (e.g., by the controller 12) and extracted through the successive operation of the standard network protocol circuits 36, 38 and 44 and the safety protocol circuits 32, 40 and 46 to provide the I/O data 52 in its basic state. Note that
This dual level encapsulation and de-encapsulation is performed for each transmission of I/O data 52 on the network 15 that requires a high level of reliability commensurate with safety systems. For non-safety system data, the standard network protocol 56 may be used alone without the safety-network protocol 54 for communication with non-safety elements of the industrial control system 10. Because all data transmitted on the network 15 is embedded in the standard network protocol 56, the safety-network protocol 54 will work seamlessly with a variety of networks 15 providing they have data transmission capacity suitable for the I/O data 52 and sufficient in capacity to accept some added safety error detection data 58 of the safety-network protocol 54 as will be described.
Referring now to
Also appended to the I/O data 52 and part of the safety error detection data 58 is a cyclic redundancy code (CRC) selected in the preferred embodiment to be twelve-bits. The cyclic redundancy code is functionally generated from the I/O data 52 and the sequence count so that an error in the transmission of either of those data elements can be detected when the CRC is recalculated by the receiving device and doesn't match. As is understood in the art, a twelve bit error code will allow the detection of errors with odd numbers of bit errors, all two-bit errors, all burst errors up to twelve bits and 99.951% of burst errors larger than twelve bits, for up to two-thousand and forty seven bits of data of the safety message 60.
The safety message 60 is embedded in the network headers and footers 62 and 64, which vary depending on the standard network protocol 56 of the network 15. Depending on the network 15, the network header and footer 62 and 64 may include a CRC code and sequence count and other similar safety error detection data 58 operating redundantly with the safety error detection data 58. Nevertheless, the safety message 60 includes its own safety error detection data 58 so as to be wholly network-independent to the degree possible.
As mentioned above, the safety error detection data 58 forms only part of the safety-network protocol 54. The safety-network protocol 54 also includes a configuration step that ensures proper communication under a connected messaging scheme. Referring now to
The connected messaging protocol may be implemented as part of the safety network protocol 54 or as part of the standard network protocol 56, the latter option limiting somewhat the types of standard networks 15 that may be used. Some standard network protocols that support connected messaging are DeviceNet and Control Net, Ethernet, and ATM.
Referring now to
For the implementation of
Controller 12 likewise includes two producers 80 exchanging data with consumers 82 either in a single output module 16 per
The bridge circuit 17, not shown in
Referring now to
The configuration process involves developing configuration data at the configuration terminal 24 and ensuring that accurate copies of that configuration data are at each of the input module 14, the controller 12, and the output module 16. The configuration data is unique to each connection, provides essential components of the safety protocol, and identifies intercommunicating parties so as to reduce the possibility of improper connections injecting spurious data into the safety system. This is particularly important in allowing mixing of systems components observing the safety network protocol 54 with standard components observing only the standard network protocol. Devices may support multiple connections, in which case multiple configuration data specific to each connection will be used.
Generally, the configuration data include data uniquely identifying the particular device of the input module 14, the controller 12, and the output module 16 holding the configuration data, and particularly the serial number of that device. The serial number is a unique and immutable part of the physical devices and thus together with an internal address of the logical devices within the physical device (which may establish independent connections) the serial number provides each connection with a unique identity eliminating the possibility of crossed connections between different devices once the configuration data is properly disseminated. To augment the serial number, the configuration data may also include a vendor identification number, a device code, a product code, major revision, minor revision, as well as network data including the logical, physical address of the device, all known in the art and identifying the particular device. Similarly, the configuration data within a device may include the serial number of the device to which it is connected.
As mentioned, the connection data may also include data necessary for the implementation of the other aspects of the safety protocol as are yet to be described, including variables of “periodic time interval”, “reply timer interval”, “filter count”, and “retry limit”. The configuration data also includes the safety state to which the device will revert in the case of network error and a list of related I/O points indicating other I/O points (related to other connections), which should revert to the safety state if the present connection has an error. This later feature allows selective and intelligent disabling of the safety system upon a communication error as will be described. As will be evident from context, some of this data, for example, data related to how particular devices should respond to a failure of any one device (e.g., the list of related I/O points, is dependant on the devices and their application and the system programmer must develop this data on an application specific basis.
Referring to
The receiving input module 14, the controller 12, and the output module 16 store the configuration and respond with the same configuration message but changed to a one's complement form (being simply a different binary coding (the inversion)) of the configuration data received. This one's complement message is returned by messages 66d, 66e, and 66f from the respective input module 14, the controller 12, and the output module 16. If the configurations of messages 66a, 66b and 66c exactly match (after complementing) configuration data of messages 66d, 66e and 66f, the configuration was successful.
The configuration data may be shown to a human operator for confirmation. If the operator finds that the configuration is correct, the configuration is applied as indicated by process 68 shown in FIG. 10 through messages 68a, 68b and 68c from the configuration terminal 24 to the respective input module 14, the controller 12, and the output module 16. The devices must acknowledge these messages via messages 68d, 68e and 68f within a predetermined time interval or the configuration will be cleared and no configuration will be considered to have occurred. The configuration data of messages 66 and 68 may be sent using only the standard network protocol 56.
Once the configuration is complete, the safety protocol enters a start-up phase shown generally in
In this start-up process, indicated by process block 70 of
Referring again to
(1) Normal Transmission
Referring generally to
Referring now to
Referring now to
If the periodic timer has expired, a failure is indicated and the program proceeds to process block 134, a safety state, as will be described below.
If timer value 86 has not expired, then at decision block 90, the consumer 82 checks to see if the message 84 has arrived. If no message 84 has arrived the program proceeds back to decision block 92 to again check if the periodic timer 86 has expired.
Assuming that a message 84 has arrived prior to expiration of the periodic timer 86, then the program proceeds to decision block 112 to check the CRC of the message 84.
Assuming that the CRC is correct, the program proceeds to decision block 96 and checks to make sure that the sequence count is one greater than the sequence count of the last message received.
If the sequence count is correct, then the program proceeds to process block 94 and the periodic timer 86 is reset. At process block 95, the data is applied, for example, to an output or to update variables, and then at process block 98, an acknowledgment message 100 is returned to the producer 80.
Referring again to
Assuming that the periodic timer has not expired, the program proceeds to decision block 124 to check the CRC of the acknowledgement message 100. The cyclic redundancy code should match the data of the safety message 60 transmitted.
Again, assuming that the CRC is correct, the program proceeds to decision block 125 to determine whether the sequence count of the acknowledgment message 100 matches that of the message 84 that was sent.
If so, then at decision block 127, the data sent in message 84 is compared to the data of the acknowledgement message 100. If there is a match, then the program proceeds to decision block 129 where it loops until the periodic timer has expired, and then proceeds to process block 110 to prepare a new message 84.
This process is repeated for multiple transmissions of safety messages 84 and acknowledgement messages 100.
(2) Message Received but Corrupted
Referring now to
Referring to
If the periodic timer interval 86 has not expired, the program will proceed to decision block 118 to see if the shorter reply timer interval 88 has expired. If not, the program will loop back to process block 102. If so, the program will proceed to process block 120 to check if the retry limit has been exceeded. Initially this may not be the case and the program will proceed to process block 122 and a repeat message 84′ having the same sequence count will be sent at process block 84, as also indicated by FIG. 12. If the retry limit has been exceeded, the program proceeds to the safety state 126.
This repeat message 84′ will be received at the consumer 82 as indicated by process block 90 of FIG. 18 and assuming that it is correct it and that it has arrived within the periodic timer interval 86′ based on the previous non-erroneous message, this message 84′ results in the sending of an acknowledgment message 100 at process block 98 per the steps described above.
Typically, if only one missed transmission has occurred, the acknowledgment message 100 will occur within the periodic timer interval 86 of the producer and messages will be continued to be exchanged normally as has been previously described with respect to FIG. 11.
(3) Message Not Received
Referring now to
The “no action” block 114 of
Thus, as described previously with respect to
(4) Acknowledgement Message Received but Corrupted
Referring now to
If the CRC is correct as determined by decision block 124 and it is the sequence count that is wrong per process block 124, then the program enters the safety state 126 in which outputs and inputs of the consumer 82 are set to a predefined safety state of the configuration data. Similarly, if the sequence count is correct but the acknowledgement data does not match per decision block 127, the program proceeds to the safety state 126. If the consumer 82 is the controller 12 messages may be sent to other I/O devices, indicated in the configuration data signaling them to move to the safety state as well.
Assuming at process block 124 that the CRC code does not match the safety message 60. indicating a corruption in the safety message rather than an erroneous duplicate message, the program proceeds to decision block 118 to see if the reply timer has expired as described above. When the reply timer expires the program proceeds to process block 120 as described above and checks the retry counter to see if the retry limit has been exceeded. If so, the program proceeds to the safety state 126 however often this will not have occurred and the program proceeds to process block 122 and a retry message 84′ is prepared as indicated in FIG. 14.
Assuming this retry message evokes a non-corrupted acknowledgment message 100′ communication continues in normal fashion.
(5) Acknowledgement Message Not Received
Referring now to
(6) No Messages Received
Finally as shown in
The above description has been that of a preferred embodiment of the present invention, it will occur to those that practice the art that many modifications may be made without departing from the spirit and scope of the invention. In order to apprise the public of the various embodiments that may fall within the scope of the invention, the following claims are made.
This application claims the benefit of provisional application 60/171,439 filed on Dec. 22, 1999.
Number | Name | Date | Kind |
---|---|---|---|
5745268 | Eastvold et al. | Apr 1998 | A |
5910778 | Klein et al. | Jun 1999 | A |
6331978 | Ravikanth et al. | Dec 2001 | B1 |
Number | Date | Country |
---|---|---|
0 977 391 | Feb 2000 | EP |
Number | Date | Country | |
---|---|---|---|
60171439 | Dec 1999 | US |