168
Jetter AG
8 FTP client
In the following cases, the task is not processed further after issuing the
function call:
The controller must first read the file, e. g.
ServerTestFile.txt
and save it to
the local file system as, e. g.,
LocalTestFile.txt
.
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 content of the
file
ServerTestFile.txt
must be transmitted.
2
The controller receives the contents of the file
ServerTestFile.txt
.
3
The controller writes the contents to the file
LocalTestFile.txt
.
4
If ...
... then ...
... no errors have occurred, ...
... the file has been copied
successfully, the function is
terminated and value
0
is returned.
... errors have occurred, ...
the function is terminated and a
negative value is returned.
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.
Writing to a file
(see page 169)
Operating principle
File names
Related topics
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: ......