1/19/2023 5:27 PM | |
Joined: 10/5/2021 Last visit: 2/5/2025 Posts: 10 Rating:
|
I have been able to make some progress, although I have not been able to upload a station successfully yet. Here's what I have done so far: I have been able create an UploadConfigurationDelegate. Here's the code I have for it, which is mostly derived from the examples in the Openness documentation:
I have created a subroutine that configures a ConnectionConfiguration object and calls the StationUpload method of the UploadProvider. Here's the code I have for it:
I have compiled and executed a program that connects to TIA Portal, loads a project, and calls TestUpload. Unfortunately, TestUpload generates an exception indicating the connection to the device failed. I used Wireshark to capture the packets between my PC and the controller. The packet capture is in the attached ZIP file. The packet capture indicates that my PC can reach the controller and vice-versa. It shows multiple sets of SYN, SYN-ACK, and ACK sequences for the establishment of the TCP connection, followed by a COTP packet, a TCP ACK packet, and then a TCP RST-ACK packet that terminates the connection. (See screenshot below for an example.) The sequence continues until the StationUpload command exhausts the number of allowable retries and then it throws the exception. Attempts to download to the controller generates a similar sequence of packets. I can connect to the PLC with TIA Portal. Packet capture shows sequences of TCP, COTP, and S7COMM packets but very few TCP RST-ACK packets, if any. There is likely something very fundamental that I'm not doing correctly. Any insight into what that is would be greatly appreciated. AttachmentTestUpload 20230119A filtered.zip (629 Downloads) |
Last edited by: FlexMickeyBob at: 01/19/2023 17:28:39 |
|
This contribution was helpful to
1 thankful Users |
4/16/2025 11:43 AM | |
Joined: 5/23/2022 Last visit: 5/11/2025 Posts: 1 Rating:
|
Hi Did anyone manage to solve this issue? |
Follow us on