11/22/2009 9:57 AM | |
Joined: 5/28/2008 Last visit: 11/6/2024 Posts: 4516 Rating: (839) |
Dear Kurt_Enzlin, You can get the data you want without changing the software of the CPU using GDC "Global Data Communication" GDC can work only with MPI connection and you have to open the net pro and to fill in the table to identify which data should be send from which CPU to the other CPU. In any case, here's attached some screen shots that descripe how could you make it. It's very easy way. Regards, AttachmentGD.zip (974 Downloads) |
Ayman Elotaify |
|
This contribution was helpful to4 thankful Users |
11/22/2009 1:17 PM | |
Joined: 10/7/2005 Last visit: 11/14/2024 Posts: 3027 Rating: (1057)
|
Hello Kurt_Enzlin I agree in principle with IBN-Service, but suggest you take at look at system functions SFB14 (GET) and SFB15 (PUT) since you said you have an Ethernet connection between your 400 and the 300. Note that you will have to configure an S7 connection for your S7-400. It will in this case be a so called "unilaterally" configured one (i.e. the 300 won't need to know about it nor be configured/changed for this,you simply select the partner as "unspecified" and all you need to know is obviously the 300's IP address). The 300 will now act as a Serverand its S7 operating system will "serve" your 400's "GET" or "PUT" request without you having to touch the 300. You can find some examples (for 400s as well as300s for completeness) which should help you along the way below: Sample program: S7 communication with the blocks SFB14 ("GET") and SFB15 ("PUT") with S7-400 How do you program communication blocks FB14 "GET" and FB15 "PUT" for data communication on the S7-300? I hope this helps |
Last edited by: fritz at: 11/22/2009 1:37 PMFixed up 300''s description as a Server Cheers |
|
This contribution was helpful to7 thankful Users |
11/25/2009 9:02 AM | |
Joined: 10/7/2005 Last visit: 11/14/2024 Posts: 3027 Rating: (1057)
|
Hello again Kurt I don't have a "smoking gun" solution but suggest you start with the following basic test: Unplug you S7-400 from the Ethernet,connect your Laptop to it instead, give your Laptop the IP address and subnet mask that you had configured for your S7-400 has andsee if a "ping" of the 300 works. If the pingdoes NOT work, you either have a problem with your physicial Ethernet connection OR a configuration problem on the 300 side (e.g. CP343 not properly configured in HWconfig, HWconfig wasn't downloaded,IP address and/or subnet mask wrong etc.). Shouldthe ping work ok, the implementation of theGET/PUT should be as simple as in the example. Having said that, it just dawned on me that the example links that I gave you will probably have the two S7 PLC's integrated into one project, whereas your will only have your S7-400 in your project. The "minor detail" that now comes into play is that you will not only have to enter the S7-300's IP address into your NetPro'sS7 connection configuration BUT also fill in the "address details" tab (apologies for neglecting to mention this in my earlier post). Anyway, attached is an example screendump which should help you with this (Note that the partners"Slot" must be "2" as this refers to the CPU's Slot and NOT to the CP343'sSlot) Please check your NetPro config again and adjust if need be, compile and download it into your 400 and your link will hopefullybe established (and you can then "worry" about theGET/PUT calls) P.S: It is ok to have the CP343 in Rack 1 in the S7-300, as long as an IM360/IM361 combination is used to link the 300's CPU rack with the expansion rack (I presume this is the case as this is chekced in HWconfig) I hope this helps and good luck |
Cheers |
|
This contribution was helpful to5 thankful Users |
Follow us on