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.
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.