5/14/2013 4:26 PM | |
Posts: 55 Rating:
|
Dear experts, I am using S7300 PLC with CP 343. Normally we can create connections in NetPro but,I need to create connections programmatically using Send/Receive interface. after little search I found this manual on internet http://support.automation.siemens.com/WW/view/en/8777865 But procedure is little bit complex Thanks in adavance Regards, |
Last edited by: O_Moderator at: 5/15/2013 11:39 AM |
|
5/14/2013 5:28 PM | |
Joined: 1/17/2007 Last visit: 3/10/2025 Posts: 1557 Rating:
|
If I understand you correctly, you want to manage (open / close) TCP connections via AS calls? If that is correct, then the way I have done it in the past is to use TCON and TDISCON SFB's which are part of the open comminucations library. This manual contains the details. |
Programming today is the race between software engineers building bigger and better idiot proof programs, and the universe producing bigger and better idiots. |
|
5/15/2013 2:59 AM | |
Joined: 10/7/2005 Last visit: 3/17/2025 Posts: 3042 Rating:
|
Hello prasad.sawantdesai as far as I'm aware you can NOT usethe T-blocks (e.g. TCON, TSEND, TRCV ) for communciation via a CP343-1. Have a loook to at the thread FB 65 "TCON" with CP card for more on this. Providing you have an S7-300 CPU with onboard PN port, you can of course use the T-blocks and a good starting point including links to examples is What are the commonalities and differences between configured communication connections and the open Ethernet communication? I hope this helps |
Cheers |
|
5/15/2013 9:10 AM | |
Posts: 55 Rating:
|
Dear experts, Thanks for the valuable information. I have already implemented Open IE Communication (T Blocks) on integrated IE interface with CPUs 317-2PN/DPand It is works well. As you said, T blocks are not compatible with CP300 series soI am using send/receive interface. Here I am creating TCP connections manually in the Netpro and everything works well. My question is I need to create these connections programmatically at runtime instead of creating themin Netpro. So that I can configure IP and connections on CP at runtime. 6 th point in the following manual focuses on this idea. http://www.google.co.uk/url?sa=t&rct=j&q=s7-cps%20for%20industrial%20ethernet%20configuring%20and%20commissioning&source=web&cd=1&cad=rja&ved=0CDEQFjAA&url=http%3A%2F%2Fsupport.automation.siemens.com%2FWW%2Fllisapi.dll%2Fcsfetch%2F8777865%2FHB_s7-cps-ie_76.pdf&ei=pTOTUcz8Lc65hAeg4YDIBw&usg=AFQjCNHhvRkLxLnA-DPYoyUCLyrgTTAY9g&bvm=bv.46471029,d.ZG4 Thanks |
5/16/2013 3:01 AM | |
Joined: 10/7/2005 Last visit: 3/17/2025 Posts: 3042 Rating:
|
Hello prasad.sawantdesai I suppose I should have read your original question properly as you did mention that you want to use FB55 IP_config for this Anyhow, can't offer hands on experience (haven't hadthe need to use FB55 yet), but below are acouple of links which will hopefully help: What should you watch out for when using the function block FB55 "IP_CONFIG" to configure an Industrial Ethernet CP? Example: How can you configure an S7 CP during runtime? |
Cheers |
|
Follow us on