Oscat FTP Client using Wago PFC200

  • j.jeronimo

    j.jeronimo - 2019-03-18


    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

  • eschwellinger

    eschwellinger - 2019-03-19

    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
    and Oscat Network version 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]

  • j.jeronimo

    j.jeronimo - 2019-03-19


    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.

    Best regards

  • eschwellinger

    eschwellinger - 2019-03-20

    ...guess using WagoAppFtp is only possible if you are using eCockpit

  • j.jeronimo

    j.jeronimo - 2019-03-25

    Hello Edwin,

    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

    Best regards

  • eschwellinger

    eschwellinger - 2019-03-25

    ok good to know.
    So you could probably deal with this?!


Log in to post a comment.