7/25/2011 8:18 AM | |
Posts: 12 Rating:
|
Hello, We are trying to set communication between a CPU 317 2PN/DP and a CPU315 2PN/DP, using a CP343-1 in the CPU315. We want to be able to read/write bits datas, integers and reals (for example speed references, tank levels...) Please find attached the program and configuration we have tried, but it seems is not working. On the net we have not found any example with communication between one CPU and one CP. Which type of communication? can we connect both CPU and CP through a switch? if we connect directly, is a crossed cable necessary? Many thanks for your help. AttachmentBcn_test_COM.zip (283 Downloads) |
7/25/2011 9:00 AM | |
Joined: 3/21/2006 Last visit: 3/19/2025 Posts: 10239 Rating:
|
Hello, At the moment I don't have a Step7 in order to check your project. Yes, you can use a switch. And yes, you will need a crossed cable in case of directly connection. But is possible to use a straight cable:
Take a look at http://support.automation.siemens.com/WW/view/en/25209116 Best regards, Hristo Mihalev |
Last edited by: UMENCHO at: 7/25/2011 9:58 AMAdded jklm''s note! |
|
7/25/2011 11:49 AM | |
Posts: 12 Rating:
|
Thanks for your help. We have tried with the Open Communication Wizard, but we can only configure CPU and not CP. |
7/25/2011 2:57 PM | |
Joined: 3/21/2006 Last visit: 3/19/2025 Posts: 10239 Rating:
|
This is a normal behavior there. Even in case of "healthy" communication there is a red square. Because you are using sample project from there http://support.automation.siemens.com/WW/view/en/18516182 how did you understand that the exchanging of data is not working? You didn't "built" the logic in CP side. Make the same like in CPU side, just use a function blocks FB12 "BSEND" and FB13 "BRCV" from the "SIMATIC_NET_CP" library under "CP 300 > Blocks". Best regards, Hristo Mihalev |
7/26/2011 11:38 AM | |
Joined: 5/1/2011 Last visit: 4/26/2024 Posts: 19 Rating:
|
Hello, You may try the steps stated in attached. I think you have not finished your port connection. Then you canuse 'AG_SEND'-FC5 and 'AG_RECV'-FC6 to program. one CPU use FC5 and another one use FC6. Good Luck! Leon AttachmentYour port configuration is not done.zip (271 Downloads) |
Follow us on