1/30/2013 10:15 AM | |
Joined: 1/29/2013 Last visit: 8/20/2023 Posts: 33 Rating: (0) |
Good day PLC-lovers I’m a pupil studying , support technician in automation. My task today is to set up a Master/Slave system. The described problem is to use two S7-300c 2DP. One as Master and one as slave. This is done, thanks to his forum. I followed the document “d06_cpu315_315.doc” From this forum (sorry can’t find the link). When downloading to the dual PLCs all is fine, as long as I don’t use The Move- function Block. I suspect there is something wrong with the memory block. In the OB1 I wrote as described: L IB 0 //Load input byte T QB 40 //Transfer into computer Byte 1 L IB 40 //Load input communication byte 1 T QB 4 //Transfer into Display byte However I don’t have a clue of what to do. As you can see in my project in FC 1 (Master) and FC11 (Slave) I’ve tried to get I working. AS soon as I download the project, containing FC1 and FC11, both PLCs show System Failure and the Slave is in Stop-mode. As long as I don’t try to send data between the devices, e.g. with FC2 and FC 11 called in OB1 in both Master And slave, it seems to work properly. Please, teach me to do right. AttachmentCPU313C-.zip (387 Downloads) |
Last edited by: Mr Lof at: 1/30/2013 10:20 AMLast edited by: Mr Lof at: 1/30/2013 10:17 AM |
|
1/30/2013 10:33 AM | |
Joined: 4/22/2010 Last visit: 1/15/2025 Posts: 5697 Rating: (715)
|
Hello, In your hardware config you have specified i/o adresses 40 for the slave, in your program you use PQB 100, that's not right. Have a look at the diagnostic buffer, must be complaining about adressing there. The link btw is training_material/download_training_material/d_industrial_field_bus_systems/ Regards, Marcjan |
Problem solved? |
|
This contribution was helpful to1 thankful Users |
1/30/2013 10:46 AM | |
Joined: 1/28/2009 Last visit: 1/17/2025 Posts: 6858 Rating: (1366)
|
Hello , I also support idea of MarcJan plus checking sample provided here with more complex structure to exchange between Master and slave(s7400cpu315_02.exe): DP link between CPU 315-2DP (slave) and S7-400 (master) with STEP 7 V5.3 Your problem may be originated from non-existing peripheral I/Os. [code]//reading non consistent data L IB 100 T "DB_RECV".recv1[1] //reading consistent data of 2 bytes L IW 101 T DB14.DBW 1[/code] and finally our previous discussion on same issue: 2plc via profibusBest regards Hamid Hosseini |
Last edited by: hdhosseini at: 1/30/2013 10:55 AM |
|
1/30/2013 1:09 PM | |
Joined: 1/29/2013 Last visit: 8/20/2023 Posts: 33 Rating: (0) |
How and where can I find which I/Os is valid? I tried to follow the guide "DP link between CPU 315-2DP (slave) and S7-400 (master) with STEP 7 V5.3" No succes. Then i found the training module "D6 - PROFIBUS DP with Master CPU 315-2 DP / Slave CPU 315-2DP". No succes I recently open the ARJ-file and that is quite similar to "my" (it isn't mine. I just followed your description) solution. I tried quite a lot of different I/Os. No succes. I guess I just lack knowledge to solve this problem.I don't understand what to do and why. At this moment both PLCs is up and running, no faults and internal program is executable. But there is no transmitting or receiving of data between them. I guess this it it........ or... AttachmentCPU313C-.zip (361 Downloads) |
1/30/2013 1:25 PM | |
Joined: 4/22/2010 Last visit: 1/15/2025 Posts: 5697 Rating: (715) |
Hello, In attached document you can see where to find and change the settings. Regards, Marcjan Attachmentmaster slave settings.pdf (587 Downloads) |
Problem solved? |
|
1/30/2013 4:05 PM | |
Joined: 1/29/2013 Last visit: 8/20/2023 Posts: 33 Rating: (0) |
Thank's for trying, but I can't manage to succes. I have to continue with nextcourse if I don't manage to assembly the network by tomorrow -but I will return, someday. If you still are interested in helping and can spare the time, I would be very happy if either of you all, will structure the code for proper connection and monitoring, both the initial Load/transmit section in OB1and a simple funtion where the the data is sent and recieved by both the master and slave. I have deleted all mine and suggestive code, but saved the symbols in the attached projekt. Regards Mr Lof Future PLC-programmer (I hope) AttachmentCPU313C-.zip (295 Downloads) |
1/30/2013 4:24 PM | |
Joined: 1/28/2009 Last visit: 1/17/2025 Posts: 6858 Rating: (1366) |
Hello , You did not provide us any snapshots or content of your Diagnostics Buffer.I am personally against providing final solution.But , as you are working on that issue,this is what I can offer as the attachment.Go, online to Both CPUs(Be sure they are test CPUs and not running live machine).Delete all blocks inside both.Keep CPUs in STOP and download the following codes in master and slave. If you do every thing on plan,Monitor MB100 in slave and see if you receive B#16#FF????If not report LED status of master and slave and upload their Diagnostics buffer ! Best regards Hamid Hosseini AttachmentCpu313c-.zip (320 Downloads) |
1/30/2013 5:29 PM | |
Joined: 1/29/2013 Last visit: 8/20/2023 Posts: 33 Rating: (0) |
The LED on both är green -Run and 5VDC, but no transfer,what I can determine. The MB100 contains 00. I tried both to run with "your" project and edited my own. I made factore reset on both PLCs. I havechanced cable, to eliminate connection failure (even thoughtthe bf-led is unlit). I hope I monitored with correct tool. Simatic manager/PLC/Monitor modify variables. Kindly Mr Lof AttachmentNew Compressed (zipped) Folder.zip (309 Downloads) |
Last edited by: Mr Lof at: 1/31/2013 9:40 AMMemory reset is what I did and nothing else |
|
1/30/2013 6:50 PM | |
Joined: 1/28/2009 Last visit: 1/17/2025 Posts: 6858 Rating: (1366) |
Hello , In the attachment, I defined some other connection between Master and slave, both consistent and non-consistent data types.Try it and inform us about the BF status. Best regards Hamid Hosseini Attachmentmaster_slave_new.zip (672 Downloads) |
Follow us on