First , Insert 2 S7-400 CPU Stations and Connect them with S7-Connection using Ethernet Protocol
As Seen in the Picture Below
Start Programming ,
Insert Function FC1 With STL Programming Language in the Sending CPU Where
Note : >>>> Make MB500 Clock Memory
SFB12 >> SEnding Function Block Need Data block
ID >> the Connection we made in the netPro HEX
R_ID >> Make Same for both the functions SEND & RECEIVE you want to work together
SD_1 >> Pointer for the Data you want to Send
Len >> Length of the Data
Note : the Pointer Length [Byte 10] Must equal the Length LEN
Make the same on the Recieveing CPU with Recieving Function SFB13
Call the Functions in OB1 and Start the Program
the Data in Datablock DB1 in CPU 1 will be Sent to the DataBlock DB1 in CPU2
No comments:
Post a Comment