Stage := INT#10; // Error end
END_IF;
2 : //Execute FTPPutFile
instruction.
FTPPutFile_instance(
Execute := TRUE, // Execution
ConnectSvr := FTPAddr, // Connected FTP ser
ver
SvrDirName := '/Backup/yyyy-mm-dd', // FTP server direct
ory name
LocalDirName := '/', // Local directory n
ame
FileName := '*.*', // File name
PutFileResult:= PutResult) ; // Uploaded file res
ults
IF (FTPPutFile_instance.Done = TRUE) THEN
Stage := INT#0; // Normal end
ELSIF (FTPPutFile_instance.Error = TRUE) THEN
Stage := INT#20; // Error end
END_IF;
0 : // Processing after
normal end
DoFTPTrigger :=FALSE;
Trigger :=FALSE;
ELSE // Processing after
error end
DoFTPTrigger :=FALSE;
Trigger :=FALSE;
END_CASE;
END_IF;
12 FTP Client
12-13
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
12-3 FTP Client Application Example
12