F_JoinFilename

F_JoinFilename 1:

Combines a filename or a relative path with an absolute base path and a file extension.

Example:

F_JoinFilename('File.csv', 'C:\Test', '.txt'); // returns 'C:\Test\File.txt
F_JoinFilename('Test\File', '', '.csv');       // returns 'C:\Machine\Data\Test\File.csv'

Syntax:

FUNCTION F_GetBasePath : T_MaxString

F_JoinFilename 2: Inputs

Name

Type

Description

sFile

T_MaxString

File name or relative path.

sBase

T_MaxString

Absolute base path. Uses F_BaseDirectory() if not assigned or if it is equal to ''.

sExtension

T_MaxString

Intended file extension (e.g., 'txt'). Not taken into account unless assigned.

F_JoinFilename 3: Outputs

Name

Type

Description

F_JoinFilename

T_MaxString

Resulting overall path

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT 4026 >= v3.1.4026.19
TwinCAT 4024 >= v3.1.4024.71

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v12.16.0.0)