Sending via FTP - Path information
Contents
This information applies when sending all of the data listed below via FTP:

1.Path - Pre-defined names

If this option is used, only several parts of the generated path/file name can be defined themselves. Specifications of HS/FS Expert are used for the remaining parts.

Path

If this option is used, the option "Path/File name" is not available.
The path is specified here without specifying the FTP server and the file name.
This sequence of characters is appended to the address of the selected FTP server name.
The path must begin with a slash ("/")!

Subfolder

Only available for the "Path" option.
Selection of a preset period in which the data to be stored on the FTP server should be grouped.
The period name also serves as a basis for creating the subdirectory which is created automatically and attached to the "path".
Note
The period specified here is not used as a trigger for data storage, rather only as "grouping" for the saved data.
The data export itself has to be triggered elsewhere (e.g. via an alarm)!
The possible settings are listed in the Sample table below.
One of the following placeholders is used for the name of the subdirectory depending on the setting:
  • Hourly
  • Daily
  • Monthly
  • Annually

File name prefix

Only available for the "Path" option.
Constant part of the file name without ending. An underscore ("_") and a sequence of numbers corresponding to the time stamp for the transfer to the FTP server are automatically added to this part.

File name postfix

Only available for the "Path" option.
The sequence of characters specified here is attached to the previous path.
Note
The file ending is also part of the postfix. In the case of data archives, the usual ending is ".html", in the case of camera images, e.g., ".jpg" or ".png".
Important
The ending specified here does not determine the data format of the exported file, rather just the file name. The data format of the file is only determined by the type of exported data!

1.1.Examples

In the case of conditions adopted subsequently, the table displays how the file names (including path) generated from the settings made would be displayed in the Expert entry mask in the field "path preview":
  • FTP server path: 192.168.0.171/test/data
  • FTP server: 192.168.0.171
  • Entry at "path": /test/data
  • Current date: 25.01.2003
  • Current time: 9:34:27
SettingPlaceholder ( = sub-directory name)Path preview
Hourlyyymmdd_ss/test/data/030125_09/myftp_030125-093427.html
Dailyyymmdd/test/data/030125/myftp_030125-093427.html
Monthlyyymm/test/data/0301/myftp_030125-093427.html
Annuallyyy/test/data/03/myftp_030125-093427.html
Meaning of 2-digit placeholder:
  • yy = year
  • mm = month
  • dd = day
  • hh = hour

2.Path/File name - Self-defined names

If this option is used, the completely generated path/file name itself can be defined.

Path/File name

If this option is used, the option "Path" is not available.
The storage path of the data to be saved, including the file name, is specified in this field.
This concept can also include several variable text elements.
A relative path can therefore be generated. The variables can be added to the text using the operating button on the right-hand edge.

2.1.Examples

Example 1

/data/%Y/%j/myftp_%H.html

In this case, %Y is a variable for the 4-digit year and %j is a variable for the day of the year.
%H is embedded in the file names as a file index. In this way, for example, it is possible to create one directory per day and to store a file there hourly.
The result would look as follows for the 223rd day of 2003 (time 09:34):

/data/2003/223/myftp_09.html

Because %Y (the capital 'Y') was used, a 4-digit folder name is created. If %y (the small 'y') was used, a 2-digit folder name would be created, then the result (17.23) would look like this:

/data/03/223/myftp_17.html

Example 2

A path can also be defined as it would be created in the case of the option "path". As an example of the path as it would be generated with the setting "hourly" on 25.01.2003 at 9:34:27:

/test/data/%y%m%d_%H/myftp_%y%m%d-%H%M%S.html

Result:

/test/data/030125_09/myftp_030125-093427.html

3.Path preview

Displayed here is the complete name of the character chain which is attached to the name of the FTP server and contains the path and file names of the files to be stored.
You can also see here what the time stamp would look like for your current settings at 9:34 and 27 seconds on 25th January 2003, regardless of whether you have selected "Path" or "Path/File name".