11/5/2010 3:11 PM | |
Posts: 66 Rating:
|
Hello, Question about communication with an external CPU via DP. I'm using a CPU317F-2 PN/DP I want to communicate with a ET200S IM151-8 PN/DP CPU (plc of another company) I want to get/put datafrom/in the ET200S without changing something in their PLC. Since there is no Ethernet communication between the PLC's i cannot use an S7 connection in NetPro. I have tried to set up a connection using SFC 67 & SFC 68. But it isn't working. Can somebody give me some information about how to set up a connection. (I have attached the project) Thanks in advance! AttachmentDP_COMMUNICATION.zip (250 Downloads) |
11/8/2010 8:18 AM | |
Posts: 2348 Rating:
|
Generally 2 ways - DP master-slave exchange or S7 communications. Both require HW change, sorry. |
This contribution was helpful to
1 thankful Users |
11/8/2010 9:17 AM | |
Joined: 10/7/2005 Last visit: 3/25/2025 Posts: 3042 Rating:
|
Hello timmermans Question: Can you physically link your CPU317F-2 PN/DP withIM151-8 PN/DP CPU via Ethernet? Ifthe answer is "YES", then you can use your 317 toread from andwrite to the IM151-8without making any changes to the IM151-8. What you need to do is to configure an so called "unilateralconnection" in your 317 and use GET and PUT (FB14 and 15) in your 317. The IM151-8 can act as a Server for incoming S7 communications requests and does NOT require any changes to it NetPro nor any comms blocks or program changes to handle your 317 GET/PUT requests(it is handled by it OS, you'll obviosuly need to know which data areas in the IM151-8 you want to read from and/or write too). A unilateral configured connection requires also that you manually type in the connection details of the Partner CPU via a "unspecified" connection and how to do this as well as links to GET/PUT examples can be found in the FAQ below: What should you watch out for when configuring an unspecified S7 connection for data communication between an S7-300 and an S7-400? While the aboveexample has a 400 CPU in it, the principle is the same, only thing to look out foris that the "Slot" number in the TSAP is always "2" for an S7-300 (or IM151-x)CPU. I hope this helps |
Cheers |
|
This contribution was helpful to
2 thankful Users |
11/9/2010 12:14 AM | |
Joined: 10/7/2005 Last visit: 3/25/2025 Posts: 3042 Rating:
|
Apologies for being confused dear timmermans, would you mind clarifying something: Your Post heading does indeed state "Communication via Profibus DP with external CPU". Your first post contentstates that the external CPU is an IM151-8 PN/DP (which has a PN port). You now say that "The external company wants to communicate via DP and not via Ethernet. Possible reason is that they use a CPU without PN." So my questions is: 1.) Is the "other" CPU indeed an IM151-8 PN/DP? 2.)If not, what type is it and what additional comms cards to they have in it? If the external company have an IM151-8 PN/DPCPU but insist on DP comms, then the already given advise byjklmand Arethold true and your choices are to either make your 317 a DP Slave of the IM151-8 or link them via DP/DP coupler (either ways do require changes to the IM151-8 configuration). Alternatively, try to talk tothem to convince them thatan Ethernet link may be the easiest and in everyones interest. I hope this helps |
Cheers |
|
This contribution was helpful to
1 thankful Users |
11/11/2010 3:13 PM | |
Joined: 9/27/2006 Last visit: 3/23/2025 Posts: 12344 Rating:
|
Hello timmermans; Here is a description of the ET 200S CPUs, from the Siemens Automation technology site: The following Interface Modules with integrated CPUs are available:
In any case, your CPU 317-2DP can acteither as master or slave on Profibus-DP. Just decide first which of the CPUs will act as slave, before you start configuring it following the next link. This FAQ shows how tro connect S7-300/400 CPUs in a master-slave relationship when they exist in seperate projects, which is the case you describe: http://support.automation.siemens.com/WW/view/en/19449428 Adapt the example to your own project; the hardest thoing will be to determine the amount and type of data you want to ewxchange between the 2 CPUs. Simply start with the example as described to understand the implied mechanism, and the modufy it to suit your needs. Since the document is rather dated (from 2004) some links are not usefule now; here are links to the gsd files for both the IM 151-x and the S7-300 CPUs, depending on what you will configure as slave.: PROFIBUS GSD files : ET 200S PROFIBUS GSD files : SIMATIC Hope this helps, Daniel Chartier |
This contribution was helpful to
1 thankful Users |
Follow us on