Upload

Upload 1:

Starts an upload operation.

Syntax

METHOD Upload : BOOL
VAR_INPUT
    fbFtpConnection        : REFERENCE TO FB_FtpConnection;
    sLocalSourcePath       : STRING;
    sServerTargetDirectory : STRING;
END_VAR

Upload 2: Return value

Name

Type

Description

Upload

BOOL

Returns TRUE when the method has completed. Whether the action was successful can be read from the bError variable of the function block.

nTransferHandle

UDINT

Handle for the transfer operation.

Upload 3: Inputs

Name

Type

Description

fbFtpConnection

FB_FtpConnection

References the server connection to be used for the operation.

sLocalSourcePath

STRING

Path to the local source. Can be a file path or a directory path. Supports wildcards.
Example: "C:\Temp\*" uploads everything in the Temp folder.

sServerTargetDirectory

STRING

Path to the target directory on the server.