Hello Coops;
You can setup a FDL connection over Profibus-DP (in Netpro) for each DP-master, which will allow some form of peer-to-peer connection; then use AG_Send and AG-Recieve functions (see below) to transfer a DB (up to 240 bytes long) between 2 partners in your program. You can also send multiple DBs (one at a tiome) between 2 partners. You identify the sender and reciever PLCs through their ID generated by Netpro.
For more details, look on the online help for AG_SEND and AG_RECV (Profibus)
From the S7_communications manual:
For the purpose of processing the communication via links, two loadable FC blocks are available:
Block Description
FC 5 AG_SEND This sends data blocks via a configured link to a
communication partner
FC 6 AG_RECV This receives data blocks via a configured link from a communication partner
You will find the loadable blocks in SIMATIC Manager, if you have installed the appropriate NCM option package, as follows:
Open file -> Library -> SIMATIC_NET_CP -> CP_300 or CP_400 ->
blocks.
Size of Useful Data: The maximum size of useful data that can be transferred is limited to 240 bytes for all subnets.
Data Consistency: In SIMATIC S7, data up to a maximum length of 240 bytes can be transferred consistently.
Link Resources: For each link, a link resource is required on the CP. STEP 7 checks during configuration whether sufficient link resources are available.
Interrupt Response:
The communication FCs AG_SEND and AG_RECV cannot be interrupted
by OBs of a higher priority and can in certain cases therefore cause the interrupt response time to be extended.
Addressing: The communication partner is addressed via the local link end point (local ID). The local ID is generated by STEP 7 when the link is configured. The communication partner can also be located within another S7 project. The local ID is only loaded when the communication FC is initially called and remains valid until the next complete restart.
Hope this helps,
Daniel Chartier