The present invention relates to a method for ensuring the function of a field bus, wherein the field bus is controlled with two control servers, one of which is at a time set active and one is set passive, and the control servers are connected with a backup bus. The invention also relates to a system, which comprises at least one field bus, two control servers for controlling the operation of the field bus, one of which servers is at a time set active and one is set passive, and the control servers are connected with a backup bus. In addition, the invention relates to a control server to be used in the system, which comprises at least one field bus, and which control server comprises means for controlling the operation of the field bus, means for setting the operating state of the control server either active or passive, and means for connecting the control server to another control server with a backup bus.
Different bus structures have been developed for distributed process automation systems, by means of which structures data can be transferred between different parts of the process automation system, such as measurement data from the object being measured to the control room, and control data from the control room to the object being controlled. The process automation system connects to the process via different field buses. With these field buses it is possible to e.g. perform measurements of different points of the process and process control, when necessary.
The field devices communicate with the other parts of the system via a so-called field bus. In connection with process automation systems, a field bus refers to a data transfer bus between the control system and the field devices. It is possible to connect e.g. I/O-modules, field devices and control servers to the field bus. By means of the field bus, the process actuators and the rest of the process automation system can communicate with each other. The field bus is typically arranged as a straight, point-to-point-type of a bus, but also a star form and a circular form are used in some applications. Data transfer is mainly in sequence format and it is usually possible to simultaneously transfer data on the bus to two different directions (Full Duplex). In some bus structures that have been developed, it is possible to transfer the operating voltage required by the interface devices via the same bus, in which case no separate operating voltage lines are required.
One such field bus construction is the so-called PROFIBUS-bus (Process Field Bus). It is based on an open standard, wherein physical characteristics of a field bus are determined, as well as characteristics connected to data transfer, such as the applied protocols. The protocol stack of the PROFIBUS field bus is based on the OSI-model developed by the international standardization system ISO, in which model there are seven different layers and a precise task is defined for each layer. Three of the OSI layers are used in the PROFIBUS field bus: layer 1, i.e. the physical layer; layer 2, i.e. the data link layer; and layer 7, i.e. the application layer.
The physical layer takes care of transferring the bit string along the physical bus cable. The bit timing, data transmission rate and the signal voltage level used in the bus cable in data transfer are determined in the physical layer. The connection of the physical layer complies with the RS-485 standard with an asynchronous NRZ bit coding (Non Return to Zero).
The data link layer takes care of e.g. the bus control with some bus control protocol. The data link layer includes a bus access procedure service (MAC, Medium Access Control), whose task is, among other things, to monitor that only one node at a time has the right to transmit data to the field bus. In addition, the Medium Access Control ensures that each station has enough time to perform its communication tasks within the set time period. In the PROFIBUS field bus the Medium Access Control is divided into two parts: the token ring procedure, which operates e.g. in the mutual communication between server devices (master-master communication) and the master-slave procedure, which operates in the communication between a server device and a field device. In the token passing procedure, such a master device has the bus access right, which has the smallest token of the token message. There is only one active master device at a time in one field bus. In the master-slave procedure that data transfer can begin only by initiation of the master device. Thus the other devices cannot transfer data otherwise than as a result of a request from the master device.
The application layer is responsible for offering management services, data file services and transaction services.
Some tasks of the control server include controlling the operation of the field bus and the field devices connected to it. The control server sends messages to the field devices, by means of which the operating state of the field devices can be controlled, and e.g. data on the process from the field devices can be read, such as measurement data, position data, etc. Via the control server is carried out also the connection of the field bus to the rest of the process automation system, e.g. in order to transmit measurement data to the control room, and the transmission of the control operations performed in the control room to the field devices connected to the field bus. In some applications, a field bus controller (FBC) is formed in connection with the control server, which controller's task is to operate as an interface between the control server and the field bus. Typically the field bus controller is implemented by program preferably in connection with the program server.
The reliable operation of the process automation system also in different disturbance and fault situations is important. There has been an aim to ensure this by e.g. different duplications, in which case a part of the functional parts of the process automation system is implemented as two substantially identical parts. An example of this type of a partly duplicated system is presented in the appended
In solutions according to prior art, a fault situation in the passive (redundant) part of the system is detected only in a situation, wherein a fault is detected in the active part and the passive part of the system is switched over to active. Thus the operation of the system may be significantly disturbed, because the part of the system that is to be activated (=the passive part) is not necessary in working condition. If the activation is caused by a fault in the active system part, neither part of the system duplication is in working condition. This type of a system malfunction may cause relatively long breaks and it can also cause great costs.
It is an aim of the present invention to provide an improved method and system for ensuring a field bus and a field bus construction. The invention is based on the idea that a check message is sent at intervals from the active control server to the passive server, and a response to the sent check message is waited. If no response is received to the check message within a set time, it is assumed that there is a fault situation in the bus and/or in the passive control server, and information on this situation can be sent to the rest of the process automation system. Also, the passive control server monitors the arrival of check messages and if check messages are not received in the passive control server within a set time, the passive control server concludes that either the active control server and/or the field bus is malfunctioning. In addition, application data is copied from the active control server or an additional check message is sent to the passive control server via some other bus than the field bus. In a fault situation, copying the application data to the passive control server is stopped. The copying of the application data can be used in the passive control server for monitoring the working condition of the control server preferably so that if the passive control server does not within a set time receive new application data from the active control server, it is assumed that there is a fault situation in the active control server. Thus, the passive control server starts procedures for setting the passive control server active, and correspondingly, to set the active control server passive, if possible.
To put it more precisely, the method according to the present invention is mainly characterized in that in the method a first message is sent at intervals from the active control server via said field bus to the passive control server, a response message from the passive control server to said first message is waited at the active control server, in which case if the active control server does not receive said response message within a set time, first data on the fault situation is set, that another message is sent from the active control server via said backup bus to the passive control server, and that the passive control server waits for said second message, in which case if the passive control server does not receive said second message within a set time, another data on the fault situation is set. The system according to the present invention is mainly characterized in that the system comprises means for sending a first message at intervals from the active control server via said field bus to the passive control server, means for forming a response message to said first message at the passive control server, means for clarifying the arrival of the response message at the active control server, means for determining time data on the sending of the latest sent first message, means for comparing said determined time data with a previously set first threshold value, means for setting first data on the fault situation on the basis of the comparison, means for sending a second message at intervals from the active control server via said backup bus to the passive control server, means for clarifying the arrival of the second message at the passive control server, means for determining time data on the receipt of the latest received second message, means for comparing said determined time data with a previously set second threshold value, and means for setting second data on the fault situation on the basis of said comparison. The control server according to the present invention is still mainly characterized in that the control server comprises means for sending a first message at intervals via said field bus to the second control server connected to the field bus, means for clarifying the arrival of a response message to the first message, means for determining time data on the sending of the latest sent first message, means for comparing said determined time data with a previously set first threshold value, and means for setting first data on the fault situation on the basis of said comparison, and means for sending a second message at intervals via said backup bus to said second control server.
The present invention shows remarkable advantages over solutions of prior art. In order to apply the method according to the invention, the field bus and the functional parts connected to it do not need to be duplicated, in which case the total expenses of implementing the system remain smaller than when using the redundancy solutions according to prior art. When using the method according to the invention, it is possible to monitor the operating state of the passive control server, as well as the operating state of the field bus. Thus, substantially instantaneously after detecting a fault situation, it is possible to take measures for repairing the fault without disturbing the rest of the operation of the system. With this type of an arrangement it is possible to mainly prevent the malfunctions and breaks caused by fault situations, which also decreases the expenses caused by fault situations. With a method according to an advantageous embodiment of the invention, it is possible to monitor in the passive control server the operation of the active control server, in which case when a fault situation is detected, the passive control server can be activated and the normal operation of the system can be resumed by using the previously passive control server. This makes it possible to repair the damaged part during the operation of the system. Thus, with the method according to the invention, it is possible to monitor the operating state of a duplicated system and to detect several different fault situations in the field bus and control servers. This increases the reliability of the entire system and makes it possible to react fast to possible fault situations.
In the following, the invention will be described in more detail with reference to the appended drawings, in which
In the following, the invention is described by using a field bus according to the PROFIBUS-specifications as an example, but it will be obvious that the invention is not limited to be used in connection with this type of field buses only. In the system 1 according to an advantageous embodiment of the invention in
It is obvious that in systems in practice the number of interface units 7a, 7b, 7c can also be other than three, typically there are more than three interface units 7a, 7b, 7c.
Each field device 8, 9 is connected together with the interface unit 7a, 7b, 7c via an interface bus 10. Usually it is possible to connect more than one field device 8, 9 to the same interface unit 7a, 7b, 7c, in which case each field device 8, 9 connected to the same interface unit 7a, 7b, 7c is preferably connected to the same interface bus 10.
The first control server 2 is connected to the field bus 5 via the first interface unit 7a. Correspondingly, the second control server 3 is connected to the field bus 5 via the second interface unit 7b. The control servers 2, 3 can thus communicate to the field bus 5 via these corresponding interface units 7a, 7b.
The control server 2, 3 that is at each moment active can communicate with the rest of the process automation system preferably via the backup bus 4. It is, however, obvious that the communication can in systems in practice also be performed via another data transfer bus. In
In the following, the operation of the system according to a preferred embodiment of the invention will be described. Let us assume that the first control server 2 is set as the active control server. Because there can only be one active control server at a time in one field bus 5, the other control server 3 is set as the passive control server. This type of a passive control server operates in the system according to the invention like a slave device, in which case a specific slave number is set to it, for example number 1. The first (at this time active) control server 2 sends at intervals a check message via the first interface unit 7a to the field bus 5 to be transmitted to the second (at this time passive) control server 3 via the second interface unit 7b. Thus, the slave number determined for the control server 3 in question is set as recipient information in the message. The message communication is preferably implemented in the second layer of said protocol stack, from which, by means of the message transmission mechanism of the protocol stack, known as such, a message suitable to be sent to the first layer, i.e. the physical transmission channel, is formed. Correspondingly, in the reception of the message the transforming of the message received from the physical transmission channel into a message according to the message structure of the second layer is performed. Preferably said check message does not include information connected to the field devices 8, 9.
In connection with sending the check message, in the control server 2 a first timer 11 (
In addition to sending the above-described check message, copying application data from the active control server to the passive control server is still performed in the method according to an advantageous embodiment of the invention. In a situation according to the example described above, this means that the application data is copied from the first control server 2 to the second control server 3. The application data describes e.g. the measurement values of different measurements, the control values of actuators, status data, and other information that is connected to the field buses 8, 9 and the status of the controlled process. This application data is transmitted advantageously via the backup bus 4. From the point of view of monitoring the working condition of the active device described hereinbelow, it is substantial, that in the transmission of application data some other bus than the field bus 5 is used.
In a system according to an advantageous embodiment of the invention, it is possible to use the transmission of application data in monitoring the working condition of the active control server 2 preferably in the following manner. The reception of the application data is monitored in the second control server 3, and if no new application data is received within a set time, it is assumed in the second control server 3 that there is a fault situation in the first control server 2 and/or in the backup bus 4. This means that the second control server 3 starts the necessary procedures, with which the second control server 3 is set to operate as an active control server and the first control server 2 is set to operate as passive, if possible. In monitoring the time, it is possible to use, for example, the first timer 11, because in the passive control server 3 there is no need to measure the time elapsing from sending the check message.
The following is a description of some possible fault situations in a system according to
In the first example, it is assumed that the first control server 2 is damaged in such a manner that it no longer sends application data to the second control server 3. As a result of this, the second control server 3 detects, after the predetermined time, that updating the application data has stopped, so therefore the second control server 3 is to be switched over to the active control server. During the switchover of the active control server, the updating of the measurement data is stopped (the measurements are frozen), in which case the latest decent measurement data is used as measurement data, which data the second control server 3 has received from the first control server 2 before it was damaged. If necessary, information on that the measurement data is not updated is sent to the other parts of the process automation system, such as the control room (not shown).
In connection with the activation, the second control server begins to perform control cycles, in which case during the first performance cycle, preferably the latest decent measurement results are used. The second control server 3 begins to send controls via the second interface unit 7b to the field bus 5. If several control tasks are determined in the control cycles, all the control tasks are to be performed at least once before scanning of the field bus is started. In scanning the field bus, the active control server reads information from the field devices preferably by query method (by polling) and sends controls to the field devices.
In the second fault situation example, it is assumed that the bus between the first control server 2 and the first interface unit 7a and/or the first interface unit 7a is damaged. Thus, the check messages from the first control server cannot access the field bus 5. However, copying the application data via the backup bus 4 to the second control server 3 continues. In this situation the second control server 3 detects that check messages have not arrived within a predetermined time. Because, however, the copying of the application data is not interrupted, it is assumed, that there is a malfunction in the field bus interface of the first control server 2. As a result of this, the activation of the second control server 3 is performed and the first control server 2 is set passive. This can be performed advantageously in such a manner that the second control server 3 sends information on switching the active control server via the backup bus 4 to the first control server 2. Thus, the first control server 2 can perform the necessary procedures for setting its working condition as passive. Correspondingly, the second control server 3 performs the above-described procedures to set its working condition active and to continue the operation of the system.
In the third fault situation example, it is assumed that there is some malfunction in the backup bus 4. Thus copying the application data is stopped, but the transmission of check messages continues normally. The second control server 3 can from this situation conclude that there is a malfunction in the backup bus 4. Thus the rest of the operation of the system can continue normally. Information on the fault situation can be sent from the second control server 3 to the first control server 2 either via the field bus 5 or via the possibly flawless bus part of a duplicated backup bus 4. Information on the fault situation is transmitted preferably also to the control room, if possible. Because the backup bus 4 is duplicated, copying the application data can be attempted to continue via the flawless bus part of the backup bus 4.
In the fourth fault situation example, it is assumed that there is a malfunction in some segment (optical fiber) of the field bus 5. The field bus 5 is ring-like, in which case the damaging of one segment does not prevent data transmission in the field bus 5, because all the interface units 7a, 7b, 7c can send information to the field bus into either direction. The interface unit that has detected the damage can transmit information on the fault situation to the first control server 2 in that stage, when a query message to the interface unit 7a, 7b, 7c comes from the first control server 2.
A fault situation, which is important from the point of view of the operation of the method according to the invention, is still the type, wherein either the second control server 3, the second interface unit 7b, and/or the bus between the second control unit 3 and the second interface unit 7b is damaged. Thus, the first control server 2 does not receive response messages to its check messages. Thus, it is possible to conclude in the first control server 2 that the second control server 3 cannot be activated. In this situation, the rest of the operation of the system can continue, but copying the application data is not necessarily continued.
In a method according to an advantageous embodiment of the invention, it is also possible to operate in such a manner that the second control server 3 sends receipt data to the application data it receives. Thus, the first control server 2 can in the above-mentioned fault situation more clearly establish whether the damage is in the second control server 3 or in the field bus interface, i.e. in the second interface card 7b or in the bus between the second interface card 7b and the second control server 3.
If, for example, such an interface unit is damaged, to which a field unit is connected, that type of a fault situation is not processed within the present invention, but other methods are applied to it.
In all the fault situations presented above, the aim is usually to send information to the rest of the system 13, for example to the control room. The information can be transmitted, for example, via the backup bus 4, if it is in working condition.
In an advantageous embodiment of the invention, check messages are sent at intervals of 50 to 500 ms, preferably approximately at intervals of 100 ms. Copying the application data is performed preferably every few seconds, preferably at intervals of 2 to 5 seconds. However, it is obvious that within the scope of the present invention, it is also possible to apply other time intervals than the ones presented above.
It is obvious that the present invention is not limited solely to the above-presented embodiments but it can be modified within the scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
20020774 | Apr 2002 | FI | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/FI03/00310 | 4/17/2003 | WO | 9/26/2005 |