8/24/2015 10:46 AM | |
Posts: 8 Rating: (1) |
Hello, I'm trying to establish communication between 2 cpu and exchange data between them. I have also used send & receive instructions but still its not working. kindly help me. ------------------------------------------------------------------------------------------ |
Last edited by: Min_Moderator at: 8/24/2015 2:59:44 PMNew subject after splitting |
|
8/24/2015 11:02 AM | |
Posts: 8 Rating: (1) |
hey, can you help mi programming for exchanging data between 2 plcs |
8/24/2015 3:16 PM | |
Joined: 5/12/2006 Last visit: 8/7/2024 Posts: 22337 Rating: (3000) |
Hello, which PLC? Regards |
8/25/2015 9:01 AM | |
Posts: 8 Rating: (1) |
s7 1200 plc TIA v13 SW Ethernet protocol |
Last edited by: Dhanesh.1 at: 8/25/2015 9:04:35 AM |
|
8/25/2015 9:07 AM | |
Joined: 3/5/2014 Last visit: 8/5/2022 Posts: 5521 Rating: (1054) |
hi, for 2 S7-1200 you need to establish a connection and tranfer data with PUT/GET. or use Open Communication with TCON and TSEND/TRCV see following FAQ: With which devices can the S7-1200 communicate over the integrated PROFINET interface and which protocols does the S7-1200 support?hope this helps,regards, |
FCK WAR! |
|
8/25/2015 9:16 AM | |
Posts: 8 Rating: (1) |
It's not working |
Last edited by: Dhanesh.1 at: 8/25/2015 10:14:56 AMLast edited by: Dhanesh.1 at: 8/25/2015 10:15:22 AM |
|
8/25/2015 10:19 AM | |
Joined: 5/12/2006 Last visit: 8/7/2024 Posts: 22337 Rating: (3000) |
why? |
8/25/2015 3:41 PM | |
Posts: 439 Rating: (108) |
Hi Dhanesh, Let's say you choose the PUT and GET instruction. You have to set a S7 connection between both plc. For this, you go into the "Device & network" tab, click on "Connections" button, choose S7 connection and drag and drop from one plc to the other. You now have a S7 connection in the hidden grey "Connections" tag on the right. (you can adjust the window with the little grey vertical line with two arrows) In fact you have one for both plc so 2 lines. You have to remember the "ID" of the connection, let's say W#16#100. You put a PUT instruction in OB to put data in the other PLC. You put a GET instruction in OB to get data in the other PLC. You put the ID of you connection into the input "ID" of the instruction. You put a clock bit from the "System and clock" properties of the PLC, in the input REQ because it works with positive edge. In ADDR_1 input, you choose where the data is in the other PLC, if you put "P#db1.dbx0.0 word 1" you will have one word of data from the bit 0.0 of the DB1 of the other PLC. In SD_1, you choose where to put the data on the current PLC. Finally, put something on the DONE, ERROR and STATUS output to see what is going on. I usually move the STATUS to and other tag when ERROR is TRUE to have information about the error. Click one time on the instruction and press F1 to see the error meaning. I put an archived project of a S7-1200 and S7-300 S7 connection with my post. You have to retrieve it, Project and Retrieve. It's the same thing for communication between two S7-1200. Ah, you also have to check if there is a protection on the "Protection" tab in the properties of the PLC. For those who use S7-1500, you have to check the box "Allow PUT/GET..." Best regards, Hugo AttachmentPUT GET S7-1200 S7-300 OK.zip (280 Downloads) |
Last edited by: HugoDufour1 at: 8/25/2015 3:44:17 PMLast edited by: HugoDufour1 at: 8/25/2015 3:45:48 PMLast edited by: HugoDufour1 at: 8/26/2015 2:26:43 PM |
|
This contribution was helpful to2 thankful Users |
Follow us on