In this section, there is some more detailed explanation concerning the redundant configurations. The figure below shows the normal (non redundant) case and the case with redundant connections to one PLC. Redundant connectionsIn the normal configuration (neither redundant PLC nor redundant connection, see first case in the figure below) the S7 driver establishes two read and one write link to the PLC. If the config entry "UseOneConnection" is activated (see Possible config entries of the S7 driver for more information on this entry), only one link is used for reading and writing. The latter case might be better for old S7 300 equipment, which are very limited in available connections.
Figure: Redundant configurations part 1
The second case in the figure above shows the configuration with redundant links. For this case the several cases can be distinguished.
Active connectionIf a redundant connection has been defined the driver will establish the two connections and check the alive-status of the connection periodically. For this purpose it is important that the alive checking is not turned off via the "AliveInterval" config entry. Otherwise lost connections are not detected. The active connection is determined in accordance to the following rules:
The following table summarizes the behavior:
C1 ... means connection 1 (or first connection). C2 … means connection 2 (or redundant connection).
The table shows the active connection depending of working connections (columns) and selected mode (rows): |
|
C1 not connected C2 not connected |
C1 connected C2 not connected |
C1 not connected C2 connected |
C1 connected C2 connected |
C1 manually selected |
None |
C1 |
None |
C1 |
C2 manually selected |
None |
None |
C2 |
C2 |
Automatic - No tag |
None |
C1 |
C2 |
C1 or C2 |
Automatic - Tag value 0 |
None |
C1 |
None |
C1 |
Automatic - Tag value 1 |
None |
None |
C2 |
C2 |
|
P1 not connected P2 not connected |
P1 connected P2 not connected |
P1 not connected P2 connected |
P1 connected P2 connected |
P1 manually selected |
None |
P1 |
None |
P1 |
P2 manually selected |
None |
None |
P2 |
P2 |
Automatic - No tag |
None |
P1 |
P2 |
P1 or P2 |
Automatic - P1 Tag value 0 P2 Tag value 0 |
None |
None |
None |
None |
Automatic - P1 Tag value 1 P2 Tag value 0 |
None |
P1 |
None |
P1 |
Automatic - P1 Tag value 0 P2 Tag value 1 |
None |
None |
P2 |
P2 |
Automatic - P1 Tag value 1 P2 Tag value 1 |
None |
P1 |
P2 |
P1 or P2 |
Redundant PLC with redundant connectionsThis is the second case shown in the figure "Redundant configurations part 2". It is a combination of the cases described in the sections "Redundant connections" and "Redundant PLC". The active PLC is determined in accordance to the rules described in "Redundant PLC" and the active connection is selected as described in "Redundant connections". For switching the connection the corresponding PLC address tag is only used from the active PLC. |
V 3.11 SP1
Copyright