Jetter AG
169
JC-120MC
FTP client
Writing to a file
This function lets you copy the content of a file belonging a local file system to
a file belonging to the file system of a remote network node.
Function
FtpFileWrite(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
File name as which the FTP
server is to save the written
file
ClientFile
File name
Name of the file in the local
file system, the content of
which the controller is to
send to the FTP server
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 to the file system of the
remote network node.
Return value
0
No error
-1
Invalid handle
-2
Error when reading the local file, e.g. file does not exist
-3, -5, -8
Communication error, there is, for example, no response from
FTP server
-4, -7
Error message from the FTP server, e.g. file cannot be
created
Introduction
Function declaration
Function parameters
Return value
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: ......