2/17/2013 2:06 AM | |
Joined: 9/27/2006 Last visit: 9/28/2023 Posts: 12153 Rating:
|
Hello aante; The best example I know to set a CP 342-5 as a DP master is found in the following FAQ: What should you watch out for when configuring a CP342-5 as DP master? It is important you note that the CP 342-5 must use special functions “DP-SEND” (FC1) and “DP_RECV” (FC2) to exchange data between the CPU and the CP over the backplane. The FAQ explains step-by-step the choice of parameters you will need to setup, such as the LADDR (which must be written as a hexadecimal value: w#16#100, if the decimal address of the CP is 256), and the SEND and RECV parameters, ANY pointers that must cover the total data area up to the last address used by the Profibus slaves. These last parameters seem to be the most problematic for beginners, see the example extracted from the FAQ for clarifications: Note Example Hope this helps, |
Follow us on