Jetter JC-120MC User Manual page 170

Table of Contents

Advertisement

8 FTP client
Operating principle
File names
Related topics
170
In the following cases, the task is not processed further after issuing the
function call:
The controller must first read the file, e. g. LocalTestFile.txt and save it to
the file system of the remote network node as, e. g., ServerTestFile.txt.
An error has occurred.
This function is processed in the following steps:
Step
1
The controller sends a command to the FTP server that the content of the
file ServerTestFile.txt must be saved.
2
The controller sends the contents of the file LocalTestFile.txt.
3
The FTP server writes the contents to the file ServerTestFile.txt.
4
... no errors have occurred, ...
... errors have occurred, ...
The function parameter for the local file may contain the path to this file,
e.g.
"/Data/TestFiles/LocalTestFile.txt"
If the file system of the remote network node supports this, the function
parameter for the file located on the FTP server can also contain the path
to this file. Otherwise, the directory must be set beforehand using the
command FtpDirChange().
The file system of a JC-120MC supports both options.
Reading a file (see page 167)
Description
If ...
... the file has been copied
successfully, the function is
terminated and value 0 is returned.
the function is terminated and a
negative value is returned.
... then ...
.
Jetter AG

Advertisement

Table of Contents
loading

Table of Contents