1128
8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
8.5 File Transfer Function Instructions
Retrieving FTP client files
SP.FTPGET
This instruction retrieves files on the FTP server, which are specified by (s2), to the folder path of the CPU module, which is
specified by (s3).
■Execution condition
■Description, range, data type
*1 Unicode string or the start device where the Unicode string is stored
*2 Even though the data type is Unicode string, only one-byte alphanumeric characters, symbols, and kana characters; and two-byte
characters (Shift JIS codes) can be used. Unsupported characters are treated as "_".
• The RnCPU and RnENCPU with firmware version "22" or later support this instruction. (Use an engineering tool with version "1.025B" or later.)
Ladder ST
ENO:=SP_FTPGET(EN,U,s1,s2,s3,d);
FBD/LD
Instruction Execution condition
SP.FTPGET
Operand Description Range Data type Data type (label)
(U) Dummy String ANYSTRING_SINGLE
(s1) Start device where control data is stored Refer to the control data. Word ANY16_ARRAY
(Number of elements: 4)
(s2) Name of files stored in the FTP server (transfer source)
*1
Unicode string
*2
ANYSTRING_DOUBLE
(s3) Folder path of the CPU module (transfer destination)
*1
Unicode string
*2
ANYSTRING_DOUBLE
(d) Device that turns on for one scan upon completion of the
instruction
When the instruction completes with an error, (d)+1 also
turns on.
Bit ANYBIT_ARRAY
(Number of elements: 2)
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)