6 FUNCTIONS
Network connection status (X4)
FTPGET instruction
FTPGET instruction completion
device
FTPGET instruction completion
device + 1
(Completion/Failure)
6 - 104
(2) Instruction execution timing
Network connection processing
a)
(a)
The Web server module is connected to the network.
When the module is not connected to the network, it is automatically
connected during execution of the FTPGET instruction and disconnected
after completion of the instruction.
(b)
The FTPGET instruction is executed.
The file specified by the FTPGET instruction is transferred from the FTP
server.
(c)
When file transfer from the FTP server is completed, the FTPGET
instruction completion device turns on.
When the completion device + 1 turns on (failed), an error code is stored
into the completion status ((S1)+1) area of the control data.
Refer to Section 9.3 for the error code.
(3) Sample program
The following is a program in which the Web server module mounted in the
position of I/O number X/Y00 to X/Y1F transfers (GET) the user data file
"DATA.CSV" from the FTP server when M25 is turned ON.
File transfer
b)
FTPGET
Normal processing
Abnormal processing
MELSEC-Q
1 scan
c)
When abnormally
completed
CSV file transfer/clock
data setting not required
Transfer source No. 1
File name
6 - 104