Technical Forum

Communication / Networks

CPU 315-2DP communication with PCS 7 using CP-342-5 card

Thread Starter: Raul0905   Started: 11/10/2008 6:26 AM   Replies: 8

« Previous thread Next thread »
Page 1 of 1 (9 items)
  11/10/2008, 6:26 AM
Joined 6/10/2008
Last visit: 12/18/2014
Posts: 41
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 

Hi all,

I have CPU-315-2DP .
i have to communicate (send & Receive ) data between PCS 7 sysem(CPU not known) with the help of CP-342-5 card.pls guide me how to transfer data(to & fro). which r the instructions i have
 to use for that. and what r the configurartions i have to do?
I have to send around 210 bytes and 150 bytes to recive. pls help me.


Thanks in advance.


Rahul

Top
  11/10/2008, 6:54 AM
Joined 10/31/2005
Last visit: 12/19/2014
Posts: 2348
Rating:
Rated: Excellent [4.08 out of 5 / rated 226 time(s)]. (226) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
To get overview you can see
http://support.automation.siemens.com/WW/view/en/21628388

Also take a look on
http://support.automation.siemens.com/WW/view/en/15007089 
Top
  11/10/2008, 6:05 PM
Joined 2/14/2006
Last visit: 10/16/2014
Posts: 5820
Rating:
Rated: Outstanding [3.96 out of 5 / rated 369 time(s)]. (369) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Dear Raul0905,

as I am not sure if you use DP or FDL I would just like to add a FDL Sample.

The sample is rather complex, but I hope you fill find the simplicity in the FDL communication too.

FDL communication with SDA service via PROFIBUS CPs and Send/Receive interface

or for the AG_SEND / AG_RECV

How do you program the communication blocks FC5 and FC6?

I hope this may help.

Best regards
J_Bell
Top
  11/11/2008, 5:51 AM
Joined 6/10/2008
Last visit: 12/18/2014
Posts: 41
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
 Hello sir,

thank u for ur valuable reply.
I am a programmer. and i just know about the hardware that i have to use to communicate between PCS 7 and my PLC (CPU315 -2DP). How i come to know that which protocol I have to use to send and receive data. i.e FDL or DP. how can I select.
communication card is -  CP-342-5 Lean
Top
  11/11/2008, 10:47 AM
Joined 2/14/2006
Last visit: 10/16/2014
Posts: 5820
Rating:
Rated: Outstanding [3.96 out of 5 / rated 369 time(s)]. (369) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Dear Rahul,

well this is a good question but I have one first.

What interface are you using?
Is it industrial Ethernet with a CP 343-1 Lean...

or is it PROFIBUS,
is it the PROFIBUS CP 342-5

As soon as we know which Interface you have we can decide what your possibilities are.

Best regards
J_Bell
Top
  11/11/2008, 11:47 AM
Joined 6/10/2008
Last visit: 12/18/2014
Posts: 41
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 

hello sir ,

 It is   PROFIBUS CP 342-5 Lean card.
I also want to know setting to be done in the PC station.
ie what i have to take CP softnet , hardnet or using OPC .
I dont understand how to select it?
help



Rahul

Top
  11/11/2008, 1:15 PM
Joined 2/14/2006
Last visit: 10/16/2014
Posts: 5820
Rating:
Rated: Outstanding [3.96 out of 5 / rated 369 time(s)]. (369) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Dear Rahul,

well, first of all... there is no PROFIBUS CP 342-5 Lean. The add-on "Lean" is only available for Industrial Ethernet.

As you have a PROFIBUS CP 342-5 you may have 3 choices to choose from:

Either:
  • FDL Communication,
  • DP Master / Slave Communication or
  • S7 Communication.
 

The easiest way for PCS7 would be to use S7 Communication on PROFIBUS. In this case you may only read or write data to the PLC CPU. A configured connection with WinCC would not work in this case because some services are being used in WinCC that prevent the CP from working.

In this case, S7 Communication you do not have to do anything in the CPU, besides putting all information required by PCS7 to one DB maybe. This eases the communication and rises the performance.

On PC side, as you use PCS7 you may need PROFIBUS Hardnet, because PCS7 is that expensive it should not be a big thing to spend some more on a CP 5613 A2 and S7-5613.
You will have to put your PC Station to the Project your S7-300 is already part of. Than you have to configure a single sided connection form the PC to the a unspecified node with the address of the PLC and you have to download the configuration with the updated Bus profile to both, the PLC and the PC. If you did that you may create your variables... and so on.

It is needless to say that this is no official way, because PCS7 does not support S7-300 at all. 

Good luck trying.

Best regards

J_Bell
Top
  11/12/2008, 5:57 AM
Joined 6/10/2008
Last visit: 12/18/2014
Posts: 41
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
sir,

thanks for the valuable reply.
I am sorry, its not a lean.( ethernet card is used for the wincc communication)
I am little confuse on ur last line ,i.e. PCS7 does notr support 300.
My project is having CPU 315-2DP  and i want to read / write data with PCS& system CPU416-2DP V 6.1.
u said that u should go for hardnet at PCS 7 end.what should i use at my end S7 300 side.


Thanks.

Rahul
Top
  11/12/2008, 12:24 PM
Joined 2/14/2006
Last visit: 10/16/2014
Posts: 5820
Rating:
Rated: Outstanding [3.96 out of 5 / rated 369 time(s)]. (369) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Dear Rahul,

I am sorry but Hardnet and Softnet are only components for the PC Station you use, not for the PLC.
If you study the manual of PCS7 you will find that the S7-300 is not supported by some... I am not sure of how many features... of PCS7. This does not mean that you are not able to communicate between a S7-400 PLC and a S7-300 PLC on PROFIBUS.

As you want to read and write Data by the S7-400 PLC from / to the S7-300 I would personally choose a single sided configured Connection from the S7-400 to the S7-300,
Independent from the PCS7 System running on any PC you use.

With this connection you may use PUT / GET Function blocks to do what you intend to do.

Best regards


J_Bell
Top
Page 1 of 1 (9 items)
Actions