9/9/2020 9:10 PM | |
Joined: 9/27/2006 Last visit: 9/2/2024 Posts: 12282 Rating:
|
Hello EngOpp; There are 2 main points in this reply: 1- Using the CP 342-5 as a DP master is always confusing the first time, because its interface is very different than the integrated DP ports you usually work with. The following FAQ describes it in great detail, but here are the fundamental differences: -a CP 342-5 communicates to the DP slave you configure in the network without any intervention from the CPU. However, data is not exchanged between the CP and the CPU (over the backplane) unless you program the DP_SEND and DP_RECV functions. - the module address of the CP 342-5 is given to you as a decimal number, in the module para,meter screens. However, you must convert this address to hex before you use it as the parameter CPLADDR (CP logical address) in the DP_SEND and DP_RECV functions. What should you watch out for when configuring a CP342-5 as DP master and why is it necessary to call the FC1 'DP_SEND' and FC2 'DP_RECV' functions in the user program of the CPU in order to transfer data? https://support.industry.siemens.com/cs/ww/en/view/18208090 Note: if you have any other Profibus slave available, I suggest you practice to configure it as a slave to the cP 342-5 and communicate with it. Once you understand the procedure, then attempt to connect the Simocode, because...: 2- The Simocode can be selected as either a DPV0 or a DPV1 slave, If the master is a CP 342-5, it must be selected as DPV0 slave, so it allows only cyclic polling from the master. What are the differences between an integrated DP interface of my CPU (e.g. CPU 315-2 DP) and the DP interface of the CP 342-5? https://support.industry.siemens.com/cs/ww/en/view/689920 “The CP342-5(6GK7 342-5DA00-0XE0) only supports standard slaves. Consequently, you can only use the slaves that are contained in the HW Catalog under "PROFIBUS-DP > CP 342-5 as DP-Master" or "PROFIBUS-DP > DP V0-Slaves". Whenever GSD files are used, please bear in mind that you can only use DP standard slaves here, too.” 3UF5: SIMOCODE: What is the difference between DP-Slaves and DPV1-Slaves? https://support.industry.siemens.com/cs/ao/en/view/21453946 Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 09/09/2020 21:11:57 |
|
9/10/2020 4:07 PM | |
Joined: 9/27/2006 Last visit: 9/2/2024 Posts: 12282 Rating:
|
Hello EngOpp; I am very sorry, the information provided earlier was not complete, I omitted a very important pair of parameters for the DB_SEND and DB_RECV functions: the size of the data exchange must cover the highest address of the slaves configued with the CP 342-5. This is explained very well in the following document (designed for TIA Portal, but the information applies also to Simatic Manager programs): Using S7-300 PROFIBUS CP as DP master or DP slave https://support.industry.siemens.com/cs/ww/en/view/109744374 Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 09/10/2020 16:08:56Last edited by: dchartier at: 09/10/2020 17:08:18Last edited by: dchartier at: 09/10/2020 17:09:34 |
|
9/11/2020 1:00 PM | |
Joined: 8/12/2019 Last visit: 10/2/2020 Posts: 7 Rating:
|
|
9/11/2020 3:15 PM | |
Joined: 9/27/2006 Last visit: 9/2/2024 Posts: 12282 Rating:
|
Hello EngOpp; Go back to my first reply, and look at the first document proposed: What should you watch out for when configuring a CP342-5 as DP master and why is it necessary to call the FC1 'DP_SEND' and FC2 'DP_RECV' functions in the user program of the CPU in order to transfer data? https://support.industry.siemens.com/cs/ww/en/view/18208090 Do you mean you cannot even configure your system as in the screenshot below? Please show us what you have done up to now (screenshots are best) and tell us what issues you discover, or the error messages that come up. Hope this helps, Daniel Chartier |
9/11/2020 4:23 PM | |
Joined: 8/12/2019 Last visit: 10/2/2020 Posts: 7 Rating:
|
Attachment1.pdf (341 Downloads) |
9/11/2020 5:17 PM | |
Joined: 9/27/2006 Last visit: 9/2/2024 Posts: 12282 Rating:
|
Hello EngOpp; Good start, you have your basic configuration started, without faults. Now, look at the contents of this document, reproduced in the screenshot below. 3UF5: SIMOCODE-DP 3UF5 Purpose of GSD-files https://support.industry.siemens.com/cs/ww/en/view/21453813 One of the (many) information points I provided earlier is that as a DP slave, the Simocode can only operate as a DPV0 slave to a CP 342-5, you seem to have a gsd file for DPV1. This is what is giving you a fault. Sabine provides a link and an identification for the SIEM8031.gsd file in this discussion. Note that the gsd extension is a generic name, you will find different extensions such as gse (English), gsg (German), gss (Spanish)... these refer to the language used to create them. Select the one you are most at ease with. wher can i find SIMCODE DP software? Remove the instance of Simocode you have installed, download and integrate the Simocode-DP gsd file proposed by Sabine and insert a new Simocode based on that gsd file in your network. Normally you should not have active LEDs on the CP 342-5. Next step will be to examine your DP_SEND and DP_RECV functions, something feels not quite right about them. Compare to the example screenshot in my second post. Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 09/11/2020 17:22:13 |
|
9/11/2020 6:25 PM | |
Joined: 8/12/2019 Last visit: 10/2/2020 Posts: 7 Rating:
|
I'll check here and tell you |
9/11/2020 8:20 PM | |
Joined: 8/12/2019 Last visit: 10/2/2020 Posts: 7 Rating:
|
Daniel, I added the GSD file you indicated, and replaced it. Even the error persists. If the problem is not in the DP_SEND and DP_RECV block, can it be hardware then? Here are some pictures .. Attachment5.pdf (354 Downloads) |
9/14/2020 5:28 PM | |
Joined: 9/27/2006 Last visit: 9/2/2024 Posts: 12282 Rating:
|
Hello EngOpp; In your last screenshot, you seem to have installed the correct gsd file as was suggested earlier, but you have not chosen a Basic Type (1, 2 or 3) for your data exchange. You have chosen Universal module, but this has no data size or recognized addresses, Have you ever seen these Basic Type formats with a Simocode? The screenshot below will give you an idea of what they contain and how they differ.This will help you select between them. System manual - Simocode Pro: https://support.industry.siemens.com/cs/us/en/view/109743957 See if the actiove LED goes off after selecting the Basic Type you want, and downloading to the CPU. One question: you are using a COU 315-2DP, correct? Since it seems difficult to work with a CP 342-5, why not try connecting the Simocode directly to the integrated port of the CPU? Every indication on the forum states that this interface is much easier to use with a Simodcode... https://support.industry.siemens.com/cs/us/en/view/109743960/122544035083 Hope this helps, Daniel Chartier |
Follow us on