This entry explains the configuration of an S7-300 CPU as DP slave to a CP 342-5 as DP master as well as the programming of data exchange between DP master and DP slave.
Proceed as follows to configure an S7-300 CPU as DP slave to a CP 342-5 as DP master and program data exchange between DP master and DP slave.
Download The STEP 7 project contains a sample program for calling FC1 "DP_SEND" and FC2 "DP_RECV" in the user program of the DP master. The load and transfer commands are used for data transfer in the user program of the DP slave. The load and transfer commands support consistent transfer of a maximum of 4 bytes.
The STEP 7 project contains a sample program for calling FC1 "DP_SEND" and FC2 "DP_RECV" in the user program of the DP master and a sample program for calling system functions SFC14 "DPRD_DAT" and SFC15 "DP_WR_DAT" in the DP slave. You use these system functions for transferring more than 4 bytes consistently.
KeywordsConsistent data transfer, Master-slave communication
0 Comments:
Post a Comment