9/5/2019 9:04 PM | |
Joined: 9/4/2019 Last visit: 8/12/2024 Posts: 6 Rating:
|
Dear all, I work on a project at AGH University of Science and Technology in Cracow with a use of the Simatic S7-1500 CPU 1512SP and try to download files from FTP server. To realize this task I use FileZilla FTP server and “Ftp1X00Cmd” function block which is provided by Siemens: https://support.industry.siemens.com/cs/de/en/view/81367009 Communication works perfect in a case of small files (smaller than 10kB) but there are problems when I try to download bigger ones – only part of a file is downloaded. I give an example: I tried to download file: “Test_file.txt” (size: 13215 bytes). “Ftp1X00Cmd” function block downloaded only 10220 bytes and set “done” output TRUE. The FTP server confirmed that transfer was successful. Number of bytes which are downloaded is repetitive but it isn’t always the same, that’s mean when I tried to download this file again and again the function block downloaded: 10220 bytes, 10220 bytes, [other_value1], 10220 bytes, [other_value1], 10220 bytes, etc. With other files situation is similar, only numbers of bytes are different. Sometimes all file is downloaded correctly. For me it’s looks like problem with copying data form a buffer in the end of data transfer. The function block has the internal buffer which size is 8192 [bytes] but in code all received data are attached to the data vector so it seems to work well but it isn’t (fragment of code witch copies data from the buffer is shown on the picture). Do you have any idea what is a source of the problem? I would be grateful for same help. |
Last edited by: Jen_Moderator at: 09/06/2019 08:40:47Optimized link. |
|
Follow us on