10/29/2008 3:28 AM | |
Posts: 510 Rating: (119)
|
This is from a note on page 57 of the CTI 2572 ETHERNET TCP/IP MODULE, INSTALLATION AND OPERATION GUIDE, Version 2.4, CTI Part # 062-00146-024 If you choose to open an Active connection, the partner must not open an Active connection. For S7 communications, ensure that the Active selection is not enabled. Configuring the 2572 as the Active partner tends to establish the connection quicker. I would set the 545 as the active partner. The 2572 uses command blocks to manage connections and transfers. The second word of the block is the command code. 2E01 = Open Active Connection 2E03 = Send 2E04 = Receive 2E05 = Close Connection Since you have the connection with the 300 working you probably used the code examples from Section 5.4 of the above referenced manual. So every time you close the connection (command 2E05) you will have to change the the IP address stored in words 4 and 5, The local TSAP information in words 7 and 8 can stay the same. The Remote TSAP information in words 9 and 10 must be changed to reflect the new partner. For the Send and Receive Blocks, you have to change the The number of words and the starting V Memory address (words 4 and 5) Repeat the process as many times as required, then start over again. Bill Attachment2572cti.pdf (849 Downloads) |
10/30/2008 12:41 AM | |
Posts: 510 Rating: (119)
|
I have taken the pages from the manual with the 505 code and annotated it in PDF. I hope this will help you. Yell if you need more Bill AttachmentPages from 505-8132-2.pdf (857 Downloads) |
Follow us on