Jun 5, 2015

I.       Configuration Simatic Manager.
1.   To open Simatic Manager, select File > “New” project, Insert Name is following box. Then click OK.


2.   Right Click on “S7400 Master S7300 Slave” at  the above left corner of Simatic Manager. Please insert the following picture :



3.   Click Hardware to open “HW Config” :

Ø At the right side of “HW config” click SIMATIC 400 > RACK-400 to insert UR1:

Ø Please insert PS 307 10A (Power Supply). At CPU 414C – 2DP and select serial version of CPU 414C – 2DP exactly. Seeing the following picture :

Ø The box “ Properties – PROFIBUS interface DP (R0/S2.1) ” show to choose profibus networked. Please click “ New ”:

Ø At Tab “ Network Setting ” to select the paramater as the above pictrure. Then click “OK”.

Ø To connect S7 300 Slave, Click line “PROFIBUS (1) DP master system (1)” then select CPU 31x at The tree folder PROFIBUS DP.  

Ø Open Simatic Manager to add the station 300 of  S7 300 Slave to connect PLC S7 400 Master.




Ø Please config hardware to S7 300 the following picture:

Ø To config S7 300 is slave, you click into DP of Rail S7 300. On tab Operation Mode to select DP slave. Click Ok to save.



Ø Open HW config of S7 400 Master to connect Slave S7 300. You must enter into S7 300 Slave. On tab Connection of DP slave Properties you select CPU 314C – 2DP station already configured then click “connect”.


Ø To transfer data between Master and Slave, you must add new connection inside tab Configuration of DP slave properties.

Ø Insert all connections between Master and Slave as the following picture:
Notice: please Save and Complile HW Config Simatic 400 Master and HW Config Simatic 300 Slave. Then download HW Config Simatic 400 to PLC S7 400, HW Config Simatic 300 to PLC S7 300.



II.    Writing program PLC

1.      Transfer 1 byte from Master to Slave
Ø  Send 1byte signal from S7 400 Master to S7 300 Slave
Program S7 400 in OB1
  


Ø  Receive 1byte is transferd from S7 400 Master to S7 300 Slave
Program S7 300 in OB1



2.      Transfer 2 byte from Master to Slave
Ø  Send 2byte signal from S7 400 Master to S7 300 Slave
Program S7 400 in OB1

Ø  Receive 2byte are transferd from S7 400 Master to S7 300 Slave
Program S7 300 in OB1

3.      Transfer 5 byte from Master to Slave
Ø  Send 5 byte signal from S7 400 Master to S7 300 Slave
Program S7 400 in OB1

Ø  Receive 5byte are transferd from S7 400 Master to S7 300 Slave
Program S7 300 in OB1

4.      Transfer 1 byte from Slave to Master
Ø  Send 1byte signal from S7 300 Slave to S7 400 Master
Program S7 300 in OB1

Ø  Receive 1byte are transferd from S7 300 Slave to S7 400 Master
Program S7 400 in OB1

5.      Transfer 2 byte from Slave to Master
Ø  Send 2 byte signal from S7 300 Slave to S7 400 Master
Program S7 300 in OB1

Ø  Receive 2byte are transferd from S7 300 Slave to S7 400 Master
Program S7 400 in OB1


6.      Transfer 5 byte from Slave to Master
Ø  Send 5 byte signal from S7 300 Slave to S7 400 Master
Program S7 300 in OB1

Ø  Receive 5 byte are transferd from S7 300 Slave to S7 400 Master
Program S7 400 in OB1






0 comments :

Post a Comment