Codesys 3.5.21 fails to copy file to USB

canplum
2025-05-23
2025-05-27
  • canplum - 2025-05-23

    Although I have set in /etc/codesyscontrol/CODESYSControl_User.cfg
    the
    [SysFile]
    PlaceholderFilePath.1=/media/pi, $usb$
    PlaceholderFilePath.1.View=1
    PlaceholderFilePath.1.Volatile=1

    I am not able to copy a file to this directory defined by the placeholder.
    Neither SysProcess.SysProcessExecuteCommand2 nor SysFileCopy nor FileCopy is working.

    If I try to copy the same file to /home/pi all is working fine.

    I also can create and open a different file by using SysFileOpen. I don't understand why the system allows to open (create) and write files into that directory but doesn't allow to copy into it.

    Obviously there is a rights problem with the USB drive.
    I have already set the permissions to drwxr-xr-x 2 and the user to pi but without any success.
    With 3.5.16 I never had such an issue.

    Is there anybody with some hints how to solve that problem?

    Cheers,
    canplum

     

    Last edit: canplum 2025-05-23
  • Dave_T - 2025-05-26

    i had a similar problem trying to send files to C: on local computer.
    Ended up using Oscat ftp to transfer file with filezilla.
    i read there is an "write protection", possibly to do with windows, issue with sp19 and up.
    there are some config files in the codesys dir you can change, which may help.
    after i was able to transfer to local PC\downloads but not c: so went the ftp route. works well.

    https://forge.codesys.com/forge/talk/Runtime/thread/5cac1390b4/

     
  • canplum - 2025-05-26

    Hello Dave_t,
    thank you for your reply but the modifications of the config files are already done.
    Unfortunatealy with no success until now.
    Cheers,
    canplum

     
    • Dave_T - 2025-05-27

      So did you get it working?

       
  • canplum - 2025-05-27

    No unfortunately not until now.

     

Log in to post a comment.