5/22/2019 12:12 PM | |
Joined: 5/22/2019 Last visit: 11/28/2023 Posts: 43 Rating: (0) |
Since I didn't quite like the example project here: https://support.industry.siemens.com/cs/ww/en/view/103550797 I implemented my own wrapper around FTP_CMD on a 1500 cpu with tia portal V15. The documentation at the above link says that the ftp client of the cp can operate in passive mode, but for the life of me I couldn't find a way to enable it. I tried everything I could think of: trying every possible FTPCmd (apart from the documented ones from 0 to 7), trying to change the ConnentionType (really, that's the spelling) in FTP_CONNECT_IPV4, trying to change the ActiveEstablishment everywhere, etc. How do I activate passive mode? |
Last edited by: olivluca at: 05/22/2019 12:13:19Last edited by: Jen_Moderator at: 05/23/2019 09:28:46Optimized link. |
|
5/22/2019 5:41 PM | |
Joined: 5/22/2019 Last visit: 11/28/2023 Posts: 43 Rating: (0) |
And I also have implemented an FTP client without the cp, using only open communications (though the tdiscon block has another problem: https://support.industry.siemens.com/tf/ww/en/posts/s7-1500-tdiscon-doesn-t-close-the-connection-cleanly/213859/?page=0&pageSize=10) In my block I can use both active (which requires a passive connection establishment) and passive ftp mode (active connection establishment), so I have no problem with tcon, only with FTP_CMD and tdiscon. |
5/22/2019 5:47 PM | |
Joined: 7/7/2010 Last visit: 5/16/2024 Posts: 14744 Rating: (2370)
|
Dig down into the connection parameters, and when you get to the TCON_IP_V4, the parameter "ActiveEstablished" may help. FYI, the structure (layout) of the TCON_IP_V4 datatype varies depending on the version of TCON in use........
|
science guy |
|
Follow us on