8 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
8.5 File Transfer Function Instructions
1123
8
8.5 File Transfer Function Instructions
Sending FTP client files
SP.FTPPUT
This instruction sends files in the CPU module, which are specified by (s2), to the folder path of the FTP server, 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_FTPPUT(EN,U,s1,s2,s3,d);
FBD/LD
Instruction Execution condition
SP.FTPPUT
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 CPU module (transfer source)
*1
Unicode string
*2
ANYSTRING_DOUBLE
(s3) Folder path of the FTP server (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)
EN ENO
U
s1
d
s2
s3