12/29/2009 4:47 PM | |
Joined: 3/14/2008 Last visit: 1/22/2025 Posts: 2163 Rating: (974) |
Hello guys: The following question: - I have a project with 416-2DP as master - 6x remote I/O in the form of ET200M - 2x 315-2DP CPU - 3x 315 with CP342-5 The CPU's are individually configuredinone project. The remote I/O is attached to the Profibus master of the 416-2DP. I now have to connect the S7-300 cpu's to the profibus master.The CPU315-2DP will function in a master-slave mode and the CPU315 with CP342-5 will function in a Direct Exchange mode (using FC send and recieve). Following a manual (forgot the name), I have touse for my CP342-5 slavefrom the catalog the following station: Profibus DP->Configured Station->S7-300 CP 342-5DP->6GK7 342-5DA0x-0XE0(x=0for my CP) I then have to insert universal modules for my inputs and outputs. For theCPU315-2DP, I have to use Profibus DP->Configured Station->CPU 31x. Now, I just checked out a post in the forums and someone said he had trouble with this method. Instead, you have to use the station from the catalog: Profibus DP->Simatic->S7-300 CP342-5 and insertcorresponding modules. That was the answer. What is thedifferenceandwhat do I need touse? want to ask what the difference is when you insert |
If I could help you, you can use the RATE button. Thank you. |
|
12/29/2009 4:55 PM | |
Joined: 4/24/2006 Last visit: 1/24/2025 Posts: 8808 Rating: (1177) |
Dear Sandor-CRX, Perhaps this link might help: http://support.automation.siemens.com/WW/view/en/6519580 Best regards, Wizard |
12/30/2009 8:49 AM | |
Joined: 3/14/2008 Last visit: 1/22/2025 Posts: 2163 Rating: (974) |
Ok, I know I did right, One thing that is one my mind is the address configuration. When configuring the CP342-5 module in the DP master, what address area I have to send?. I have a old project which I need to restore and the following FC's exist: FC86 Send FC87 Recieve FC 85 containing: Network 1 CALL "Transmit to DP Module" CPLADDR :=W#16#170 RECV :=P#DB85.DBX10.0 BYTE 32 NDR :=DB85.DBX1.0 ERROR :=DB85.DBX1.1 STATUS :=DB85.DBW2 DPSTATUS:="DP module buffer".STAT0[4] Network 2 CALL "Receive from DP module" CPLADDR:=W#16#170 SEND :=P#DB85.DBX70.0 BYTE 32 DONE :=DB85.DBX5.0 ERROR :=DB85.DBX5.1 STATUS :=DB85.DBW6 DB85 is the "buffer" between CPU and CP342-5 and looks like this: 0.0 STRUCT +0.0 STAT0 ARRAY[0...9] *1.0 BYTE +10.0 STAT1 ARRAY[10...60] *1.0 BYTE +62.0 STAT2 ARRAY[61...69] *1.0 BYTE +72.0 STAT3 ARRAY[70...125] *1.0 BYTE =128.0 END_STRUCT My opinion is as follows: I have one datablock which is used for the send and recieve commands. So the DP mastersends data to the CP module and the CPU( 315 with the cp342-5) can get the data by using FCx Recieve. The other way around, the CPU sends data to the CP module using FCx Send and the DP master will recieve this data (no FCx recieve and send in theDP master program??). The way to configure the address area in the CP module (byadding one universal module) isdisplayed in the enclosure. So the Input address area should be 32 byteslong-> SEND :=P#DB85.DBX70.0 BYTE 32 and the output address area should be also 32 bytes long-> RECV :=P#DB85.DBX10.0 BYTE 32 How is my definition,because the manuals are not clear to me, also the examples of siemens doesn't seem clear. Thank you |
If I could help you, you can use the RATE button. Thank you. |
|
12/30/2009 2:26 PM | |
Joined: 3/14/2008 Last visit: 1/22/2025 Posts: 2163 Rating: (974) |
Hmm, ok getting to understand it now Thank you once again |
If I could help you, you can use the RATE button. Thank you. |
|
1/30/2010 11:35 AM | |
Joined: 3/14/2008 Last visit: 1/22/2025 Posts: 2163 Rating: (974) |
Hello again, I have one question about this matter: Below is a copy of the S7program in a S7300 cpu. The cpu has a cp342-5 module connected to a s7400 (DX mode). The creators of the s7program of the s7300 have created a DB where data is send to. First, important signals are written tomemory bits (M80.0 to M81.7). ThenMW80 is copied to DB85.DBW70 (see DB structure below). Thenthe data can be read by S7400. The thing I don't understand is the structure of the DB.Can I just createmy own datablock where i put in: DB85.DBW0? . Why the use of STRUCTS andARRAYS? Is there an important reasonwhy the didthis? Network 1 CALL "Transmit to DP Module" CPLADDR :=W#16#170 RECV :=P#DB85.DBX10.0 BYTE 32 NDR :=DB85.DBX1.0 ERROR :=DB85.DBX1.1 STATUS :=DB85.DBW2 DPSTATUS:="DP module buffer".STAT0[4] Network 2 CALL "Receive from DP module" CPLADDR:=W#16#170 SEND :=P#DB85.DBX70.0 BYTE 32 DONE :=DB85.DBX5.0 ERROR :=DB85.DBX5.1 STATUS :=DB85.DBW6 DB85 is the "buffer" between CPU and CP342-5 and looks like this: 0.0 STRUCT +0.0 STAT0 ARRAY[0...9] *1.0 BYTE +10.0 STAT1 ARRAY[10...60] *1.0 BYTE +62.0 STAT2 ARRAY[61...69] *1.0 BYTE +72.0 STAT3 ARRAY[70...125] *1.0 BYTE =128.0 END_STRUCT |
If I could help you, you can use the RATE button. Thank you. |
|
Follow us on