1/13/2011 12:06 PM | |
Posts: 4 Rating:
|
Hi. I am working on my Univerity project and I need to make cyclic and acyclic communication. I am completely new in Simatic programing. Last 7 days I read a lot manuals and everything but I still do not have anything. I need to save parameters on my DP Slave and read some data from it. My Slave is Gateway which do CANOpenOverPROFIBUS and work like motor controller. I have manual and example from one company for them version on this Slave, but that is the 95% same Slave like my, and my version is full open so i can program it. This manual is all on German so I do not understand everything but i translate with translator the most. I do everything what is in manual. When i I make my own hardware configuration and then I paste their S7 Program, but when i try download it, that always give me error. I try find what is error and read on this site did anyone have this problem but i did not find anything which i can use. The biggest problem for me is that example is written in STA and I just know how make/read programs in LAD so i do not have idea how debug this program. Can someone just try download this example on their CPU and see is it work. I just need Download this example on my CPU and then I will set all parameters and use this program to finish my project. Errors what I got are: For FB100: Download (33:53786)-(D21A) Incorrect local data length or write-protection code faulty. For OB82: 33:53888-(D280) Error compiling block in S7-300 CPU. My CPU is CPU315-2 DP (315-2af03-0ab0). In attachment is SW what I make(DNKR Copy) and in folder is their example and manual. AttachmentS7_PROBLEM.zip (113 Downloads) |
1/14/2011 8:41 AM | |
Joined: 10/7/2005 Last visit: 6/7/2023 Posts: 2966 Rating:
|
Hello Perodot a few things have unfortunately conspired against you. 1.) FB100 problem: Your somewhat older type S7 315 CPU (6ES7 315-2AF03-0AB0) has a fixed limit of 256 Bytes of so called "Local data per priority class" which creates the FB100 download error. Local data are TEMP variables which you'll create/find in the variable declaration sectionof the Block. Your FB100 has unfortunately a total of 276 Bytes which exceeds what your CPU can handle (right click on FB100, select "Object properties" and go to the "General Part 2" tab to find this value. Alternatively open the Cross reference and display the Program structure). 2.) FB82 & FB100 problem: SFB52, 53 & 54 are used inside them and neither is supported/available in your (somewhat older) S7 315 CPU. To find out what SFC's/SFB's exist in your CPU,select the Block folder, use "CTRL & D" to open the Module Diagnostic window and have a look in the"Performance" tab. 3.) DPV1: Your DP Master port is NOTDPV1 capable. The best(easiest) solution I can offer is toget hold of a newer CPU (e.g. a 6ES7315-2AH14-0AB0 supports 2000 Bytes of local data per priority class,all required the SFB's and is a DPV1 capable Master). Alternatively (assuming you can live with DPV0 capability) you doa substantial rewrite of your program (e.g. move some TEMP's to STAT's in FB100, replace SFB52/53 with SFC58/59 and replaceSFB54 with some OB82 evaluation logic in combination and SFC13). I hope this helps |
Cheers |
|
This contribution was helpful to
2 thankful Users |
Follow us on