plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need some help with exchanging data between 2 PLC's

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> SIEMENS SIMATIC HMI- Reg. U
View previous topic :: View next topic  
Author Message
MosesKhan
Junior
Junior


Joined: 05 Sep 2019
Posts: 1

PostPosted: 05/09/2019 15:50    Post subject: Need some help with exchanging data between 2 PLC's Reply with quote

Hello i am quite new to this world so any help is appreciated! I have 2 1212 CPU's in the field that are connected with PROFINET, PLC 1 is collecting data from 2 flow measurements and PLC 2 is collecting data from 1 flow measurement. These 3 measurements need to be added ontop eachother. All the data is being stored in data blocks.

I want to take the DB values from the PLC with 1 measurement and put it in the PLC with 2 measurements, then do simple math functions to save the global flow in a fourth DB and visualise these on a panel. Any tips on how to tackle this?

I heard about Tsend and Treceive but my research has done nothing but confuse me more
Back to top
View user's profile Send private message
electro
Junior 2
Junior 2


Joined: 26 Apr 2012
Posts: 21

PostPosted: 06/09/2019 03:55    Post subject: Reply with quote

Take a look on this:

https://support.industry.siemens.com/tf/ww/en/posts/trasfer-value-from-master-into-slave-plc/151419/?page=0&pageSize=10
Back to top
View user's profile Send private message
ilyia
Junior
Junior


Joined: 09 Jul 2019
Posts: 5

PostPosted: 03/10/2019 03:29    Post subject: Reply with quote

From the same thread maybe help you
SIMATIC S7 S7-1200
https://support.industry.siemens.com/cs/attachments/91696622/s71200_system_manual_en-US_en-US.pdf
Data synchronization over open communication between multiple field devices (S7-1200) and a head PLC (S7-1200/ S7-300/ WinAC) (Set 17).
https://support.industry.siemens.com/cs/document/39040038/data-synchronization-over-open-communication-between-multiple-field-devices- (s7-1200)-and-a-head-plc-(s7-1200-s7-300-winac)-(set-17)
Sample program: S7 communication GET and PUT instructions
https://support.industry.siemens.com/tf/ww/en/posts/sample-program-s7-communication-get-and-put-instructions/68281/?page=0&pageSize=10

https://support.industry.siemens.com/tf/ww/en/postattachments/download/?attachmentId=25106

https://support.industry.siemens.com/tf/ww/en/postattachments/download/?attachmentId=42317

https://support.industry.siemens.com/cs/document/92269951/how-do-you-configure-and-program-an-s7-connection-and-the-fb15-put-und-fb14-get-function-blocks-for-data-transfer-between-an-s7-1200-cpu-and-an-s7-300-cpu

Configuration and Application of the PROFINET I-Device Function
https://support.industry.siemens.com/cs/document/109478798/configuration-and-application-of-the-profinet-i-device-function
Back to top
View user's profile Send private message
ilyia
Junior
Junior


Joined: 09 Jul 2019
Posts: 5

PostPosted: 17/04/2020 19:21    Post subject: open communication S7-1200 S7-1200/ S7-300/ WinAC) Reply with quote

Data synchronization over open communication between multiple field devices (S7-1200) and a head PLC (S7-1200/ S7-300/ WinAC) (Set 17).
https://support.industry.siemens.com/cs/document/39040038/data-synchronization-over-open-communication-between-multiple-field-devices- (s7-1200)-and-a-head-plc-(s7-1200-s7-300-winac)-(set-17)
Need some help with exchanging data between 2 PLC's open communication S7-1200 S7-1200/ S7-300/ WinAC)
The application example demonstrates with a concrete example the data synchronization between one head PLC and several field PLCs.

For synchronization tasks and the exchange of control and status information between one head PLC and several field PLCs, a performant cyclic communication is needed.
The following points must be noted here:
Supply of all the field PLCs with the same or different sets of data from the head PLC (down sync).
Updating the sets of data from all the field PLCs in the head PLC (up sync).
For solving the task, the block DATASYNC_X has been developed, which automatically assumes the control of the data synchronization:
Function block DATASYNC_HEAD for the head PLC
Function block DATASYNC_SUB for the field PLC
The application example is demonstrated with a concrete example - the control of solar trackers. The expression solar tracker means solar energy systems which can be tracked according to the position of the sun to ensure the best possible energy yields.
For the field PLC, a CPU S7-1200 is used in this example. For the head PLC, this solution uses two types of devices:
An S7-1200 controller
An S7-300/400/ IPC with WinAC
The head PLC sequentially establishes an ISO-on-TCP communication connection with each field PLC and terminates it again. Data is sent to the field PLCs and data is received from them. After all field PLCs have been operated, the process is repeated.
The data communication among the PLCs is displayed in images by the HMI panel.
The realization of the data synchronisation with the DATASYNC_X function block has the following advantages for you:

simple and transparent integration of the DATASYNC_X blocks in your existing user program.
flexible modification of the quantity structure for the send and receive of the data.
number of field PLCs is variabel.

https://anonfile.com/Z8g9w4q7of/39040038_DATASYNC_DOKU_V31_en_pdf
https://anonfile.com/h3h9waq4o0/39040038_datasync_code_v22_zip

https://openload.cc/Fbh7wbq3o7/39040038_DATASYNC_DOKU_V31_en_pdf
https://openload.cc/P9hbweqdo6/39040038_datasync_code_v22_zip
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> SIEMENS SIMATIC HMI- Reg. U All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro