11-13
11 FTP Client
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
11-3 FTP Client Application Example
11
11-2-2 Restrictions on the FTP Client Communications Instructions
FTPPutFile_instance(
Execute := TRUE, // Execution
ConnectSvr := FTPAddr, // Connected FTP server
SvrDirName := '/Backup/yyyy-mm-dd',// FTP server directory name
LocalDirName := '/', // Local directory name
FileName := '*.*', // File name
PutFileResult := PutResult) ; // Uploaded file results
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;