Dear Sir,
How are you and your Family. I hope you are all fine. Thank you for the last time. I really appreciate your sense of understanding.
Sir,please i need your guide and Support with respect to address format and Data transfer between CP342-5(as Master) and ET200L(as Slave). I am working with a CPU 312C which has DI10/DO6 and a CP342-5 attached to it. The CP 342-5 is configured as Master on a Profibus Network while ET 200L is configured as Slave on the same profibus Network. Outputs from the ET 200L are used to control Valves and Sensor on a Mixer machine
In order to exchange data between the Master(CP342-5) and the Slave(ET 200L), I learnt i will need to use FC1:DP_SEND and FC2: DP_RECV. I have already included the two functions in my OB1 block. However i am having Problem on how to map/ Format the Byte Address between the Master and Slave.
For example, if the Input Signal I0.0 from Master is ONE, this will in turn make the Output Q4.3 and Q4.4 of the Slave ET 200L to be ONE this will then turn ON the Motors of the Mixer. Once the Motors starting running a Feedback Signal(which will be confirmed at the I2.6 and I2.7) will be sent to the Master from the Slave.
My Question:
Since i am using I0.0 from Master to turn ON the Motors of the Mixer attached to Slave, is this address Format correct: P# I0.0 Byte 2 for (DP_SEND) function
Then the Feedback Signal sent from the slave to the Master will be
P#I2.0 Byte 2 for (DP_RECV) function
Sir I would be very grateful if you could help me confirm this address Format. Thank you for the usual Support. Best regards.
Your Student
Nurudeen.
Hi Nurudeen,
When you're using the CPU ports, the CPU will communicate with the ports automatically but when you use a CP instead the CPU will not communicate data with the ports automatically. So you need to write some codes to make the CPU able to communicate data with these ports properly.
Here area few resources that I think will help you solve the problem:
What should you watch out for when configuring a CP342-5 as DP master and why is it necessary to call the FC1 "DP_SEND" and FC2 "DP_RECV" functions in the user program of the CPU in order to transfer data?
Processing the data from DP slaves via CP342-5 on CPU31x:
What are the differences between an integrated DP interface of my CPU (e.g. CPU 315-2 DP) and the DP interface of the CP 342-5?
Discussion on plctalk.net