6/26/2009 5:17 AM | |
Joined: 1/17/2006 Last visit: 1/14/2025 Posts: 554 Rating: (29) |
Hello, I read the answer below (link) of Mr. J_Bell and I have tried to communicate two S7-300 (CPU 315-2 PN/DP and317-2 PN/DP) over Ethernet using S7-connectionunsuccessfully. /tf/WW/en/Posts/22852 Here ismy issue: I have doubts about how to set "Local ID" and "Partner ID" and "Active connection partner" in Netpro and how to usethe ID and ID_R in FB12/FB13 ?? I am trying send datas (3 integers/6 bytes)from DB10 (CPU 315) to DB14 (CPU 317) using FB12 (BSEND) and FB13 (BRCV), but I´m not having success. The "Connection Status" in NetPro is set as "Set Up" (green icon).The test is being donewith PLCSIM V5.4 SP3 (two S7-PLCSIM windows are openned). Another problem that I have had is when Itransfer the stations to "CPU" (PLCSIM) using NetPro.Sometimes both CPU "PLCSIM Window"receives the samestation e.g.S7-PLCSIM1 window receives CPU 315 station and S7-PLCSIM2 window receives the same CPU315station. Must I transfer the stations using HW Config instead NetPro? Which the right procedure? Pleaseseemy project example attached and tell mewhere is my mistake ?? Best regards, Berg AttachmentS7_pro1_pn.zip (293 Downloads) |
"Educate the children and it won't be necessary to punish the men." |
|
6/26/2009 6:36 AM | |
Joined: 10/7/2005 Last visit: 1/15/2025 Posts: 3029 Rating: (1058) |
Dear Berg replaceFB12/13 with SFB12/13 (i.e. program the comms as if you'd use S7-400 PLC's) and see if it works (which it should). More on the subject why S7-PLCSIM V5.4 SP3 has "issues" with S7-300 type programmed comms can be found in this thread. (and future relases of S7-PLCSIM will hopefully fix this). I hope this helps cheers fritz |
Cheers |
|
This contribution was helpful to1 thankful Users |
6/26/2009 8:58 AM | |
Joined: 3/21/2006 Last visit: 1/14/2025 Posts: 10239 Rating: (1182) |
Hello Berg, Why did you set ID=1 and ID=2?Of course this could works also with this Nrs, but is possible to make mistake in assigns into program. Just set in both CPU, ID=1 in NetPro and then in CPU1 SEND block (ID = W#16#1 and ID_R = DW#16#1) RECV block (ID = W#16#1 and ID_R = DW#16#2) in CPU2 SEND block (ID = W#16#1 and ID_R = DW#16#2) RECV block ( ID = W#16#1 and ID_R = DW#16#1). Like How do you program communication blocks FB12 "BSEND" and FB13 "BRCV" for data exchange on the S7-300? Regards Hristo Mihalev |
This contribution was helpful to1 thankful Users |
6/27/2009 1:36 AM | |
Joined: 1/17/2006 Last visit: 1/14/2025 Posts: 554 Rating: (29) |
Hello, I tried to test the sample project suggested by UMENCHOusing PLCSIM V5.4 SP3 unsuccessfully. "Connection status" in NetPro is showed as Set up (green icon), but the datas were not transferred. The STATUS of FB12 and FB13change between values 0 and 19 and ERROR between0 and 1. Is a problem with PLCSIM version orwith my program? Is possible test this communication using PLCSIM or only with "real" CPU ? Thanks again ! regards, Berg |
Last edited by: Berg at: 6/28/2009 6:46 PM"Educate the children and it won't be necessary to punish the men." |
|
Follow us on