10/19/2016 1:18 PM | |
Joined: 2/27/2014 Last visit: 3/27/2025 Posts: 689 Rating:
|
Hello, If both PLCs are S71200 then why are you going with Modbus TCP communication protocol. Simply without any communication instructions you can exchange the data between two PN PLC via I-Device functionality of Profinet, which is real time . You can do the S7 communication with the help of GET/PUT instruction . You need to write instruction either 1st or 2nd PLC only. Open user communication is also another option by Using TCON,TSEND,TRCV and TDISCON block for exchanging more that 1KByte data. Any way if you are going with Modbus TCP prtocol then i hate to use TCON_IP_V4 data block. Better way to generate Connection DB by using TCON block, no mistake. After that see the size of connection DB which you have created via TCON_IP_V4 and via TCON block. See the attached video for doing Modbus TCP communication between two S71200 PLC. Whenever you are changing mode either 0 or 1 (read/Write) then you need to reinitialize the DB. If you feel this post is useful then don't forget to rate it. AttachmentModbusTCP.zip (834 Downloads) |
With Best Regards, |
|
10/19/2016 1:20 PM | |
Joined: 2/27/2014 Last visit: 3/27/2025 Posts: 689 Rating:
|
Attaching the sample application.
AttachmentModbusTCP (2).zip (818 Downloads) |
With Best Regards, |
|
Follow us on