Persistence Manager Archive Path

2021-01-05
2021-01-05
  • yannickasselin

    yannickasselin - 2021-01-05

    Hello,

    In Codesys help, it is said that the location for the archive files is defined via the placeholder $ac_persistence$. I am trying to figure out how to set this placeholder to a different value. For exemple, I would like to save the archive files to a usb stick and set my raspberry pi in read only mode.
    Where can I define the value of the placeholder $ac_persistence$.

    Thank you.

     
  • i-campbell

    i-campbell - 2021-01-05

    in your CODESYSControl.cfg file, add an entry like this to the SysFile section

    [SysFile]
    PlaceholderFilePath.1=/mnt/USBDevice/persistance, $ac_persistence$
    PlaceholderFilePath.1.Volatile=1
    PlaceholderFilePath.1.View=1
    

    Note that the .1 should be unique for any other placeholder file paths in your .cfg file.

    Volatile means that the folder is not created on startup if it doesn't yet exist. This would be important for USB disks, as if they are not plugged in, the runtime will create the folder itself.

    View means you can view the folder in Device Editor > Files

    Note that the capitalization is important.

     
    πŸ‘
    2

Log in to post a comment.