I have installed Oscat Network Library 1.2.1 with Oscat Basic Library 3.3.1 into my Codesys 3.5 SP12 project. I have compared my code with FTP client demo project and then, Ftp client parameters are Ok but, I have little problem with upload file.
When I upload text file into my FTP server the first time, all is correct. But when I try again new upload text file into my FTP server, there is no error but only excessive time reponse (44 seconds) and finally, file is correctly transferred after this long time.
When I check using download text file from FTP server, I have no problem and there is correct transfer file under 6 seconds time.
Do you have any idea for problem, please?
Thanks a lot for help
for me this works like charm on my PFC
See attached file from the examples directory:
l viewtopic.php?f=23&t=6247 l
This example use the OSCAT Basic Version 184.108.40.206
and Oscat Network version 220.127.116.11 library installed from CODESYS Store.
PFC <-> FTP Server on PC send and receive the logfile.txt
around 9s the upload of the file, no mather how often this will executed
I use the 2th generation PFC with ~20% more Performance.
FTPCLient.project [127.85 KiB]
Thank you for your quick reply.
I have already used this Ftp client demo file for checking communication.
What is strange, that the first upload file is Ok because time response is 1 second.
But when, I try again second upload file. Ftp client function is waiting on step 200 and step 210 during 44 sec and after that, upload is finished correctly.
I'm not sure but, maybe, there is problem with my Oscat Library installation into my application project ?
Effectively, with newer PFC, it is faster than my controller. And with this newer PFC compatible with my Ethercat application project, I could use another FTP Library like WagoAppFtp for example.
...guess using WagoAppFtp is only possible if you are using eCockpit
I would like to give my feedback using Oscat Ftp Server for my application.
Problem is linked with text file size because, with my communication machine Mitutoyo Kogame, I need to transfer very short text file size (90 bytes).
If I increased text file size, time response for transfer file will reduce until file size reach 4096 bytes.
So, with 4096 bytes file size, my response time has reduced from 44 seconds to 3 seconds
ok good to know.
So you could probably deal with this?!
Log in to post a comment.