FB_FTP_DirRemove

FB_FTP_DirRemove 1:

Directories can be deleted from the FTP server with the function block FB_FTP_DirRemove. This function block uses an already open connection to an FTP server.

FB_FTP_DirRemove 2: Inputs

VAR_INPUT
sNetID    : T_AmsNetId := '';
hFTP      : T_HFTP;
sDirectory: T_MaxString:= '';
bExecute  : BOOL;
tTimeout  : TIME       := T#15s;
END_VAR

sNetID : Is a string containing the AMS network ID of the target device to which the ADS command is directed.

hFTP : Handle of the FTP server.

sDirectory : The name of the directory to be deleted.

bExecute : The function block is executed with the rising edge.

tTimeout : Specifies the timeout period.

FB_FTP_DirRemove 3: Outputs

VAR_OUTPUT
bBusy  : BOOL;
bError : BOOL;
nErrID : UDINT;
END_VAR

bBusy : Command is being transmitted via ADS. No new command will be accepted as long as "bBusy" remains TRUE.

bError: Becomes TRUE, as soon as an error occurs.

nErrID : Returns the associated error code in the event of a set bError output.

Requirements

Development Environment

Target Platform

PLC Libraries to include

TwinCAT v3.0 Build 3102

PC or CX (x86)

Tc2_FTP