Jetter AG
173
JC-120MC
FTP client
Changing directories
This function lets you remove the current directory from the file system of a
remote network node.
Function
FtpDirChange(FtpConnection:Handle,
Const Ref
ServerDir: String
)
:Int;
Description of the function parameters:
Parameter
Value
Remarks
FtpConnection
Handle
Value returned by the
function
FtpConnect()
ServerDir
Directory name
Name of the directory into
which the user wants to
change
If the returned value is negative, an error has occurred. If the returned value is
0
, the system has managed to change directories.
Return value
0
No error
-1
Invalid handle
-2
Communication error, there is, for example, no response from
FTP server
-3
Error message from the FTP server, e.g. directory does not
exist
In the following cases, the task is not processed further after issuing the
function call:
The FTP server must first change directories.
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 it has to change
to a subdirectory.
2
The FTP server changes directories.
3
If ...
... then ...
... no errors have occurred, ...
... the new directory is set, the
function is terminated and value
0
has been returned.
... errors have occurred, ...
the function is terminated and a
negative value is returned.
Introduction
Function declaration
Function parameters
Return value
Operating principle
Summary of Contents for JC-120MC
Page 1: ...User Manual JC 120MC Controller 60880901 We automate your success...
Page 18: ......
Page 40: ...40 Jetter AG 3 Identifying Hardware revisions see page 38 Related topics...
Page 160: ......
Page 186: ......
Page 196: ......
Page 485: ...Jetter AG 485 JC 120MC Programming Topic Page Programming 486 Registers 498 Contents...
Page 521: ...Jetter AG 521 JC 120MC Programming Use 29 bit identifier Default 11 bit identifier...
Page 586: ......
Page 604: ......
Page 633: ......