7/15/2009 9:55 PM | |
Joined: 3/18/2009 Last visit: 5/6/2024 Posts: 306 Rating: (94) |
Hi Dave, me again..
You cannot have a simple TCP connection in H-system. It has to be S7 connection, S7 Fault tolerant connection (Iinherently using TCP protocol, but S7 connection in NetPro) or ISO transport connection.
Contrary to what I posted earlier H-system may support AG_XXXX blocks with ISO transport. connection. (not TCP though)
Ok, I believe Rack 0 CPU can be MSTR and communication can happen using Rack 1 CP (and vice versa) in redundant mode. This is true at least in case of S7 fault-tolerant connection and I believe should also be the case when using single sided S7 or ISO transport connection i.e if there is no error. You can approach the method ofAPRED libraryto communicate to your external device or as described in the manual in section 11.6.1 for single sided S7 connectioni.e it is a better to call one block for one connection and conditionally calling the second block configured for second connection, when there is communication error in the first block. (In my view it is irrelevant which CPU is master or which is reserve) You have to diagnose connections and not CPU state. Hope it solves some queries. |
This contribution was helpful to1 thankful Users |
7/17/2009 9:50 PM | |
Joined: 7/2/2008 Last visit: 9/30/2024 Posts: 928 Rating: (309) |
Hello Smiffy,
I must confess I wasn't able to catch up with all of what had been said in this thread but the question is very good and leads to a good discussion as well. There are some points I want to share, 1-
An easier way is to use the pre made block to distinguish between master and standby CPUs. 2-
I've searched the manual quickly to find any piece of information saying that master CPU transfers values of data blocks in standby CPU. This is what typically happens in software redundancy but it's totally different since only one of the CPUs execute the application program and the other just receives data and use the last received data at switching over (Don't ever ask about data transfer time). H-System technique (Active redundancy) assumes that both CPUs execute the same and typical piece of application program. Execution is synchronized using event driven synchronization and this means that probability of time shift in SW execution between both CPUs is very small. So when switching over takes place there's no probability that the values in data blocks are little old or little different (They should be the same of the master data blocks). There's a phase called UPDATE (extracted from Link UP & Update) and in this phase the master CPU transfers contents of data blocks to the standby CPU (Starting CPU). If data blocks are exchanged at each cycle then what's the use of update phase?! Now, you want to jump over some instructions in standby CPUand change values in a data block inmaster CPUs. No one can tell you the results. You have to test it yourself. 3-
As I told you the technique assumes that there's no probability to have different values in data blocks if both CPUs are reading the same inputs and taking the same decisions at the same time. My explanation would be that it will take much time to exchange values of data blocks at each cycle(S7-400H project most likely means many data blocks with big volumes of data). Well, let's hope I'm wrong but being wrong or right will never change the fact that H-system is very powerful and has proven itself in the market over the whole world for a long long time since S5-H. 4- I hope you'll be able to do what you want to do but there's one solution which you may put in your pocket. Siemens says you can use PC with CP1613 as a gateway. This gateway allows you to link any kinds of single-channel system (e.g. TCP/IP with a manufacturer-specific protocol). Look at the attached PDF.
AttachmentH-System.pdf (387 Downloads) |
This contribution was helpful to3 thankful Users |
Follow us on