Skip to main content

Using a USB Stick as Additional Storage

A USB stick can be used as additional storage (for example, for storing alarms or trend data).

To do this, you can configure the [SysFile] section in the configuration file for Linux-based CODESYS Control SL products. Adapt this section to the device names.

  1. Determine the path where your USB stick is mounted to the Linux device.

    Execute the mount command in order to display all mount points on your Linux system.

    Example of a mounted USB stick:

    /media/usbstick/.

  2. Open the configuration file located at the following path:

    /etc/codesyscontrol/CODESYSControl_User.cfg

    Tip

    The file uses the INI format.

  3. [SysFile] section: Find or create a section titled [SysFile].

  4. Configure this section to save alarms and trend data to the USB stick.

    Adapt the values according to your requirements.

    Example:

    [SysFile]
    PlaceholderFilePath.1=/media/usbstick/trend, $trend$
    PlaceholderFilePath.2=/media/usbstick/alarms, $alarms$
    PlaceholderFilePath.2.View=1
    PlaceholderFilePath.2.Volatile=1