Ftp_sendfile, Parameters – Yaskawa MotionWorks IEC Toolboxes User Manual
Page 188

Communications Toolbox: Function Blocks
MotionWorks IEC61131-3 Toolboxes: 2013-09-13
175
FTP_SendFile
This function block uses the FTP (File Transfer Protocol) to send a file on the controller to a specified FTP server.
Parameters
*
Parameter
Data Type
Description
VAR_INPUT
Default
B
Execute
BOOL
Upon the rising edge, all inputs are read and the
file transfer is performed. To resend the file or
send a different file, change the value(s) and re-
trigger the execute input.
V
File
YC_STRING128
The full file name and location on the controller,
e.g. '/flash/user/data/example.csv'.
V
Destination
YC_STRING64
The full file name and destination on the FTP
server, e.g. 'metrics/example.csv'.
V
FTPData
The input structure that configures the FTP
transfer such as FTP server address, port, etc.
VAR_OUTPUT
B
Done
BOOL
Set high upon the completion of a successful file transfer.
B
Busy
BOOL
Set high upon the start of the file transfer and low upon
'Done' or 'Error' becoming true.
B
Error
BOOL
Set high when an error occurs during the file transfer. Set low
upon Execute being reset.
B
ErrorID
BOOL
If 'Error' is true, this output provides the Error ID. Cleared
upon 'Execute' being reset.
V
ErrorString
YC_STRING256
If 'Error' is true and it is an FTP response code related error
then this output contains the response string from the FTP
server.