1/30/2019 12:56 AM | |
Joined: 9/27/2006 Last visit: 8/21/2024 Posts: 12279 Rating:
|
Hello jomzki; The easiest way for you to exchange data between the 2 CPUs would be to use the GET and PUT functions (FB14 and FB15) Since GET and PUT use unilateral (single-sided) connections, I suggest you define the connections on the CPU 314C-2DP (with CP 343-1); this way it becomes the client in the network, the CPU 315-2PN/DP becomes the server. All you need in the CPU 314C-2DP configuration is the IP address of the server partner. No programming of any kind is necessary in the server. You will find explanations and a sample program for GET and PUT in the following link: How do you program communication blocks FB14 "GET" and FB15 "PUT" for data exchange in the S7 program of an S7-300 CPU? https://support.industry.siemens.com/cs/ww/en/view/18610307 Note this important information for your project:
Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 1/30/2019 3:11:42 AM |
|
1/30/2019 1:38 AM | |
Joined: 9/27/2006 Last visit: 8/21/2024 Posts: 12279 Rating:
|
Hello jomzki; You can integrate the communication functions in the program and modify the Netpro configuration in the existing CPU 314C-2DP program. However you will have to stop the CPU S7-314C-2DP when downloading the modified Netpro configuration, since it affects the hardware configuration of the CPU, which cannot be updated or changed in RUN. I forgot to ask how much data you needed to transfer between the CPUs, PUT and GET are limited to 160 bytes per call. This example shows how to sequence multiple PUT and GET calls to transfer more than 160 bytes between the partners: How do you program the function blocks FB14 "GET" and FB15 "PUT" in the S7 program of the S7-300 in order to transfer more than 160 bytes of data? https://support.industry.siemens.com/cs/ww/en/view/49450152 Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 1/30/2019 1:43:18 AM |
|
Follow us on