11/9/2014 7:27 PM | |
Posts: 122 Rating:
|
Hello Experts, I am trying to use tow S7 1200 module to communicate each other. I found one example in Siemens forum as ZIP file. I tried to create a similar one for my testing to understand its functioning using the TSEND_C and TRCV_C instructions. I did undstand from each instructions settings in the example that , since it has an individual IP address like 192.168.0.1 and 192.168.0.3. I should have to download each instruction's PLC program into corresponding PLC although both are in the same project as you can see it in the picture which I attach you down. Is there any possibility in TIA portal V13 an option to deactivate one PLC and its Program say in my case PLC_2 should be deactivated when downloading PLC_1 Program. And vice versa. So that only only the particular program in a Particular PLC. For example in Visual studio once can deactivate a class or a project while using the other. I would like to know is there a similar option. It would be nice if any one can let me know about it. Looking forward to hear from you. Below you can find the snap shots related to my question as ZIP file. Hope to hear from you. With regards Johannes
AttachmentZipFile.zip (121 Downloads) |
11/10/2014 6:59 AM | |
Posts: 122 Rating:
|
Hello Experts and William, Thank you for your response. I shall explain you again. I have TOW PLC'S which is assigned with tow different IP address but in the same project. Thats is PLC_1 with (192.168.0.3) and PLC_2 with (192.168.0.1). The PLC_1 has a main program (which receives data) and the PLC_2 with a main program (which sends data). I want to first download the program of PLC_1 whose IP address is (192.168.0.3), when I connect the Ethernet from PG to PLC_1 and go to TIA portal's online menu and choose accessable devices it shows the IP address of PLC_2 i.e (192.168.0.1) which is wrong, actually its assigned IP address is 192.168.0.3 . I do not know why it shows the second PLC'S IP address ?. But when I connect to the sencond PLC i.e PLC_2 through ethernet from My PG and go to the menu of online and choose accessable devices it shows the correct IP address of it i.e (192.168.0.1). So in order to download the correct program into the correct PLC. I thought may be I can deactivate one PLC and its program in the Project tree and go to the menu of online in TIA portal and if I click accessable node or device it should show correct IP address. Then I can download its corresponding program into the PLC. So I want to know whether it is possible ? Or any other suggestion from you. I here with attach you with the snap shots that corresponds to my question in a ZIP file. Looking forward to hear your response. With regards Johannes AttachmentZipFile.zip (127 Downloads) |
This contribution was helpful to
1 thankful Users |
11/10/2014 2:46 PM | |
Posts: 122 Rating:
|
Hello Experts, I tried to split the project of my past post and deployed the program into the respective PLC'S i.e PLC_2 and PLC_1. SendData in PLC_2 and Receive data in PLC_1. I connected the tow PLC's with the ethernet. I expected the following result. I initiated the data block (with the name MyDataToSend) with 0's and 1's (Zeors and ones). Once the request I0.0 is made true I expected in the received data to be the same. But unfortunately I did not get the correct result. Can any one correct if any mistake also suggest me a good example. At the moment I have 2 CPU 1211C DC/DC/DC. I want to understand the Tsend instruction and receive instruction with this module how it works . So far I haven't found a correct example. But I am not giving up. If any one could correct my posting or would like to send me a new example would be greatly appriciated and welcomed. I here with attach you some snap shots with regard to my question in a ZIP file below. Looking forward to hear your response. With regards Johannes
AttachmentZipFile.zip (120 Downloads) |
Follow us on