Jetter AG
167
JC-120MC
FTP client
Reading a file
This function lets you read the content of a file from a remote network node
and copy it to the local file system of the controller.
Function
FtpFileRead(FtpConnection:Handle,
Const Ref
ServerFile: String,
Const Ref
ClientFile: 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 in the file
system of the FTP server,
which the controller is to
read
ClientFile
File name
File name, as which the
controller is to save the file
read in the local file system
If the returned value is negative, an error has occurred. If the returned value is
0
, the controller was able to read the file and store it locally.
Return value
0
No error
-1
Invalid handle
-2, -6
Error when storing the file locally
-3, -5, -7, -8
Communication error, there is, for example, no response from
FTP server
-4
Error message from FTP server, for example, file does not
exist
Introduction
Function declaration
Function parameters
Return value
Содержание 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: ......