DP_SEND and DP_RECV

As far as I understand, with DP_SEND and DP_RECV the important things to note is the SEND/RECV target type (I, Q, DBxx) and the number of bytes starting from 0.
As it says in the help for CP342-5 you can specify up to 2160 bytes with the later version CPs. The CP will then put all the bytes into its internal i/o image table and the update its physical i/o from that table.
The CP may use only a small fraction of that i/o table, but that is how it works.

I think that using the Q area is a little bit more "direct" than normal, but I cannot see why it should not work.

One thing is that I think it will take many cycles to update both CPs with 2048 bytes. Maybe it would be a good idea to put the i/o that is accessed via the CP in the start of the i/o image, and then only send the fraction of the i/o table that is necessary.
 
I think I have it now - if they are doing what I think then that is truly terrible !

"Ideally need the config from netpro too - can't see the connections otherwise"
 
Hello Guys, I have a question relating DP_SEND/DP_RECV and felt this was the appropriate thread...
Would you know the packet formats used by the DP_SEND/DP_RECV primitives for use on the Profibus? Is it standardized?
 

Similar Topics

I'm trying to understand how the various PLC's in our machine are communicating and I've gotten so far but come with a bit of a dead end... Basic...
Replies
15
Views
8,970
Hello! Slightly confused at the moment regarding the maximum number of bytes transferable via the AG_SEND (FC5, V4.2),AG_RECV (FC6 V4.7)...
Replies
8
Views
12,281
I am using SCL for a bit of TCP programming on an S7-400. How do I link the DB to the AG_SEND or AG_RECV FC? In the case of FBD or ST, you use...
Replies
5
Views
4,558
I'm looking for documentation for the functions PDAT_CY, PCD_SEND and PCD_RECV that are part of an existing Step-7 program. The best I can find so...
Replies
1
Views
2,394
Hi I just came back from a project where I had to help someone else with his PLC where he was using a CP342-5 to exchange data with a Profibus...
Replies
0
Views
1,502
Back
Top Bottom