The invention relates to a communication method for a field bus configured according to the AS-interface standard according to the precharacterizing clause of claim 1. The invention also relates to a master-slave system for such a field bus according to the precharacterizing clause of claim 7 and to an associated control, actuator or sensor unit.
A field bus is an industrial communication system at the lowest control level of an automation system which connects a multiplicity of field devices such as sensors, actuators and drives (actuators) to a control device.
The AS interface (AS-I=Actuator-Sensor Interface) is one possible communication standard for communication between the control device (master) and the field devices (slaves) via such a field bus.
In the case of a field bus designed according to the AS-interface specifications, the master is the only component which has the right to access the field bus without being asked to do so. In this case, the master cyclically interrogates all slaves and interchanges the input and output data with the latter via a serial transmission protocol. The slaves must not and cannot access the field bus of their own accord and must wait until they are requested to do so by the master. A unique address is allocated to each of the slaves for this purpose. According to the current specification (vers. 2.11), a maximum of 62 subscribers can thus be connected to a master in an AS interface.
An unshielded two-core line which is preferably in the form of a ribbon cable and can also be simultaneously used as the power supply for slaves is used as the transmission medium for the field bus. For this purpose, the transmission protocol is modulated onto the voltage supply. Manchester coding and alternating pulse modulation coding (APM coding) are used in this case. Bit times of 6 μs can thus be achieved.
The master needs approximately 150 μs to interrogate each slave. A longer period of time is not currently provided in the AS interface since otherwise the cycle between two interrogations, in which the master always interrogates all 62 slaves in succession, would take too long. A message, via which a slave communicates with the master after the slave has been addressed, consists of 4 bits of useful data in this case. This results in extremely short master call and slave response times in the μs range during communication between the master and the slave.
The AS interface meets the interference immunity requirements for communication in industrial installations, inter alia, by virtue of the fact that, according to the AS-interface specifications, the messages can be repeated up to 6 times before an error message or stoppage of the installation results.
In order to increase the availability of the installation in the case of high interference levels as well, a second communication channel could be set up in parallel with the field bus, which communication channel is used to retransmit the same messages as those transmitted via the field bus. In the case of such redundant communication, it suffices for the respectively addressed subscriber to receive at least one of the two messages. Although such redundant systems then increase the installation availability as a result of the lower failure probability, they have the disadvantage that the same requirements in terms of volume of data to be transmitted and transmission speed as those imposed on the AS-interface field bus itself have to be imposed on this second communication channel. This renders such a solution complicated and thus expensive.
The object of the invention is to provide a communication method and a master-slave system as well as corresponding devices for a field bus configured according to the AS-interface standard, which reduce the failure probability of an installation planned in this manner.
This object is achieved with the communication method having the features of claim 1 and the master-slave system having the features of claim 7.
In this respect, the invention provides for a field bus configured according to the AS-interface standard to be used as a first communication channel via which a master connected to the field bus serially communicates with a number of slaves connected to the field bus in a cycle, the master communicating with the slaves in succession in a cycle using messages which are each uniquely assigned to a slave, and a message being repeated in the first communication channel and in a second communication channel between the master and the slave if the communication of this message via the first communication channel has failed.
In the event of an error, the erroneous message is therefore repeated not only via this first communication channel but, in a redundant manner, via two communication channels which are separate from one another. This redundant communication then increases the probability of the message being successfully interchanged between the master and the slave despite interference in the first communication channel.
However, as a result of the fact that communication via the second channel is only required when the error occurs, that is to say a message has not been transmitted, lower requirements in terms of transmission quality (for example data rate or timing) can be imposed on the transmission medium of this second communication channel. Unlike the field bus, this transmission medium or this communication link therefore need not comply with the AS-interface specifications but can be wired in a more cost-effective manner. The invention thus allows the interference immunity of the communication between the master and the slaves to be improved with little effort. The failure probability of the installation can therefore be reduced and the availability of the planned installation can thus be increased.
If the duration (usually defined in advance) of the messages for the communication between the master and the slaves in the second communication channel is designed to be longer than the duration in the first communication channel, the timing requirements imposed on this second communication channel are lower than those imposed on the first communication channel.
According to the invention, the control units as the master and actuators or sensors as the slaves of a master-slave system can thus also be additionally connected to one another by means of wireless communication links, for example W-LAN or Bluetooth etc., as a second communication channel.
If only the repetition of a failed message is transmitted via the second communication channel and, in the event of further failure, the process continues with the next message for the next slave, the duration of the messages in the second communication channel is at most twice as long as the duration of the messages in the first communication channel. This also makes it possible to correct (
According to one advantageous refinement of the invention, when repeating one of the messages, the master call is started in a parallel manner and thus at least at the same time via the first communication channel and the second communication channel. The period of time available for a slave response in the second communication channel is thus maximized.
The invention thus results in a number of features which, individually or in combination, increase the reliability of the communication between the control unit as the master and the actuator or sensor units as slaves in a planned installation and thus considerably increase the installation availability in a simple and thus cost-effective manner.
The invention is explained in more detail using exemplary embodiments. In the drawings:
In a field bus system planned as a master-slave system, a number of sensors and actuators of an industrial installation as slaves S1, S2, . . . , Sn are connected to a control unit as a master M via a bus system F. Such a system defined according to the AS-interface specifications is also referred to as a single-master system. The master M communicates in succession in recurring cycles with all slaves S1, S2, . . . Sn which are planned and are thus assigned to it in order to interchange input and output data with said slaves in this manner. The currently defined version 2.11 of the AS-interface specification thus makes it possible for the master M to communicate with up to n=62 subscribers (slaves) in messages containing 4 bits of useful data. The basic structure of such a master-slave system is illustrated in
Such planned installations are often situated in industrial environments having high interference levels which can interfere with the communication between the master and the slaves. Therefore, as indicated in
According to the invention, the master M has for this purpose, in addition to the first input/output interface MEA1 for connecting the field bus F, further input/output interfaces MEA2, MEA3 for connecting at least one second communication link K2. In this case, as indicated in
In this case, a message T1, T2, . . . , Tn consists of a so-called master call MA and a slave response SA and has a length of typically slightly more than 150 μs according to the current AS-interface specification. The master can use the master call MA to transmit a maximum of 14 bits to the respective slave determined by the address of the message during a period of 84 μs. In response to this master call MA, the slave must then have sent a slave response SA back to the master within these 150 μs which begin with the start of the master call MA. With this slave response SA, the slave then has the opportunity to send a maximum of 7 bits of information back to the master within 42 μs. The amount of time of approximately 28 μs which remains in a message with a duration of 150 μs in addition to this master call MA and slave response SA is required as a pause time for the master and the slave. These pause times are required so that the master and the slave can prepare for the next master call and the next slave response or can preprocess received master calls and slave responses. In addition, signal propagation times and delay times of the field bus and of possible repeaters arranged in the field bus are compensated for by these pause times.
As illustrated in
If too many errors now occur within individual messages during transmission, the installation may be disrupted. The manner in which this can be avoided is intended to be described below by way of example using the four scenarios illustrated in
In the case of the messages T illustrated in
Even if the invention was previously described, by way of example, for a master-slave system according to the present vers. 2.11 of the AS-interface specifications, it is not intended to be limited thereto. The concept according to the invention of providing a second communication channel with a lower transmission quality, in addition to the known AS-interface field bus as a first communication channel, for the case of erroneous communication in the first communication channel can be applied to any other AS-interface specification or specifications similar to the latter. The important factor is that the communication method according to the invention and the corresponding apparatuses are used to increase the interference immunity of the master-slave system and thus of the planned installation with as little effort as possible without influencing the communication via the first channel, as defined by the AS-interface specifications.
Number | Date | Country | Kind |
---|---|---|---|
10 2007 046 440.3 | Sep 2007 | DE | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP08/61700 | 9/4/2008 | WO | 00 | 3/25/2010 |