Jetter AG
171
JC-120MC
FTP client
Deleting a file
This function lets you remove a file from the file system of a remote network
node.
Function
FtpFileRemove(FtpConnection:Handle,
Const Ref
ServerFile: String
)
:Int;
Description of the function parameters:
Parameter
Value
Remarks
FtpConnection
Handle
Value returned by the
function
FtpConnect()
ServerFile
File name
Name of the file to be
removed.
If the returned value is negative, an error has occurred. If the returned value is
0
, the file could not be removed from the file system of the remote network
node.
Return value
0
No error
-1
Invalid handle
-2
Communication error, there is, for example, no response from
FTP server
-3
Error message from FTP server, for example, file does not
exist
In the following cases, the task is not processed further after issuing the
function call:
The FTP server must first delete the file
ServerTestFile.txt
. Please note:
This file name serves as an example only.
An error has occurred.
This function is processed in the following steps:
Step
Description
1
The controller sends a command to the FTP server that the file
ServerTestFile.txt
must be deleted.
2
The FTP server deletes the file
ServerTestFile.txt
.
3
If ...
... then ...
... no errors have occurred, ...
... the file has been deleted
successfully, the function is
terminated and value
0
is returned.
... errors have occurred, ...
the function is terminated and a
negative value is returned.
Introduction
Function declaration
Function parameters
Return value
Operating principle
Содержание JC-120MC
Страница 1: ...User Manual JC 120MC Controller 60880901 We automate your success...
Страница 18: ......
Страница 40: ...40 Jetter AG 3 Identifying Hardware revisions see page 38 Related topics...
Страница 160: ......
Страница 186: ......
Страница 196: ......
Страница 395: ...Jetter AG 395 JC 120MC Programming Result When initializing the JX2 system bus the adjusted baud rate values were used...
Страница 485: ...Jetter AG 485 JC 120MC Programming Topic Page Programming 486 Registers 498 Contents...
Страница 521: ...Jetter AG 521 JC 120MC Programming Use 29 bit identifier Default 11 bit identifier...
Страница 586: ......
Страница 604: ......
Страница 633: ......