6/4/2010 6:00 PM | |
Joined: 9/27/2006 Last visit: 3/26/2025 Posts: 12344 Rating:
|
Hello Vinny; As you will see in the following FAQ, the trick is configuring the slave first (both CPUs belonging to the same Step 7 project); this creates a specific CP 342-5 slave in the Profibus catalog of the HWConfig editor of Step 7, as a Configured Station. When you configure the master, you connect this specific CP 342-5 slave to the master's Profibus line.Communications are then easily started up. http://support.automation.siemens.com/WW/view/en/6518937 Look at the sequence of configuration presented here, it should clear things up for you. Hope this helps, Daniel Chartier |
This contribution was helpful to
1 thankful Users |
6/7/2010 4:27 PM | |
Joined: 9/27/2006 Last visit: 3/26/2025 Posts: 12344 Rating:
|
Hello Vinny; Do you mean you removed the ANY pointer, replacing it with an absolute address, and it worked? That would hold true on;ly if the data area you were using held exactly 4 bytes (MDxx contains 4 bytes), as I understand things.It would not work with any other size of data exchange. Strange, in any case. have a look at the following FAQ, with an extract that covers your last statement: http://support.automation.siemens.com/WW/view/en/18208090 Parameterizing the "SEND" and "RECV" inputsFor the "SEND" parameter you specify the data area which contains the data to be transferred to the slaves. Here you specify just the data source. The reverse holds for the "RECV" parameter. Here you specify only the area where the data from the slaves is to be stored. How the data then gets to the I/O or is read from there is explained in section 5. The "SEND" and "RECV" parameters require a pointer to be specified in the "ANY" format (e.g. "P#DB1.DBX3.0 BYTE 37"). In this example the pointer points to bit 0 in byte 3 of data block DB1. BYTE 37" specifies the length in bytes of the data field to be transferred. The "ANY" format permits in principle other length specifications. However, for the "DP_SEND" and DP_RECV" functions you must specify in bytes. Aha! Examine section 5 of the suggested FAQ, and see how the data from the slaves needs to be addressed from the CP 342-5 functions. And you really should open the CPU diagnostics buffer and look at the reasons that you still have diagnostic LEDs. A SF means something in your code or addressing is not correct. which might lead your program to take decisions on erroneous data. We can help you evaluate the contents of the buffer (save it aa a .txt file, and zip it, if it is too large to copy/paste). Hope this helps, Daniel Chartier |
6/7/2010 11:03 PM | |
Joined: 8/25/2005 Last visit: 3/21/2025 Posts: 1162 Rating:
|
Hello Vinny, if your problem still exist, please make some screenshots of the FC's, Hardwareconfiguration and the digostic information of the CP's. Have you seen this examples? Quick Start CP342-5 Hope this will be helpfull. Good luck Sabine |
Follow us on