(0)| 6/22/2009 3:56 PM | |
|
Posts: 3 Rating:
|
Dear all. I need to communicate between two S7-315 PLCs PLC_1 has a CP342-5 Profibus card and is the Master PLC_2 only has the DP port on the CPU and is the slave. I can't get them talking to each other. The lights on the cards are all green. The diagnostics shows there is a connection between to the two nodes. I am using DP_SEND, DP_RECV for the CP342 in the Master I have tried various approaches in the Slave: - direct access to I/O - SFB14, 15 No luck so far. The attached PDF shows the hardware config and function blocks for master and slave. Please help NB AttachmentCP342-5 Profibus Master -Slave.pdf (295 Downloads) |
| 6/22/2009 6:46 PM | |
|
Posts: 3 Rating:
|
Hi Bhaskaran Thanks for your advice. I have changed the project so I am just sending and receiving 2 bytes. I still can't get it to work. I have updated the PDF with the new config and code. I found a sample project at the following location and mine is basically the same: https://www.automation.siemens.com/net/quickstart012003/html_76/profibus/pb_dp_342_5.htm CP 342-5 CPU 312-2 I/O download 342_5m_3_V30.exe Please help. Thanks in advance Niall AttachmentProfibus Master -Slave 2.pdf (274 Downloads) |
| 6/22/2009 8:19 PM | |
|
Joined: 3/21/2006 Last visit: 1/10/2026 Posts: 10247 Rating:
|
Hi, Perhaps following FAQ could helps... What should you watch out for when configuring a CP342-5 as DP master? Regards Hristo Mihalev |
| 6/23/2009 11:19 AM | |
|
Joined: 10/7/2005 Last visit: 1/15/2026 Posts: 3054 Rating:
|
Hello niallbowie please try this 1.) Get rid of your 1 second pulse flag for the DP_SEND call and make sure to call DP_SEND and DP_RECV every scan. 2.) GET and PUT are for S7 communications and will NOT work for the DP Master DP Slavesetup that you have (I know you only used them for a trial and am not too sure if they still exist in your logic). Just for future info, I noticed that you seemed to have used SFB 14 and SFB 15 inyour first example. These are for S7-400 CPU's and will not have worked in your 317 anyhow. I hoep this helps Cheers Fritz |
|
Cheers |
|
Follow us on