11/23/2015 9:48 PM | |
Joined: 9/27/2006 Last visit: 3/19/2025 Posts: 12344 Rating:
|
Hello Binit; Many options are available to communicate with these 2 CPUs: Industrial Ethernet, Profinet, Profibus-DP, MPI, Modbus/TCP... Do you have a preference, or any experience with any of these protocols? I can suggest an excellent document on CPU-CPU communications with Simatic controllers, to start guiding you: S7 communication
compendium: The first section presents generalities on the communication blocks between CPUs, and discusses notions like connections, media support for various protocols and the protocols supported natively by Siemens CPUs. The second section is populated with Selection Aids for various communication scenarios. I have attached an example for Profinet connections between 2 CPUs, which suggests that if you want to use the integrated Profinet ports to echange data, you could choose between "USEND/URCV", "BSEND/BRCV" or "PUT, GET" communication blocks, depending on the amount of data you want to exchange and the type of connection you plan to use. "PUT/GET" blocks are single-sided client-server blocks (no connection are required on each partner) so they are simple to implement; but they are limited to 160 bytes per exchange, whereas BSend/BRcv blocks can exchange up to 64 kBytes (and are more difficult to program for a first-timer).
Hope this helps, Daniel Chartier
|
Last edited by: dchartier at: 11/23/2015 9:53:25 PM |
|
11/25/2015 9:18 AM | |
Joined: 7/9/2015 Last visit: 3/20/2025 Posts: 4201 Rating:
|
Hi Binit,
if you are looking for some programming examples you can search on the Industry Online Support Homepage. I.E. a sample how to program PUT/GET https://support.industry.siemens.com/cs/de/en/view/1819293 or "How to configure a data exchange between S7-300 / S7-400 https://support.industry.siemens.com/cs/de/en/view/22385024 There are many other examples... Regards, Towome |
|
|
Follow us on