6 FUNCTIONS
6 - 101
(2) Instruction execution timing
Network connection processing
Network connection status
(X4)
FTPPUT instruction
FTPPUT instruction
Completion Device
FTPPUT instruction
Completion Device + 1
(Completion/Failure)
(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 FTPPUT instruction and disconnected
after completion of the instruction.
(b)
The FTPPUT instruction is executed.
The file specified by the FTPPUT instruction is sent to the FTP server.
(c)
When file transfer to the FTP server is completed, the FTPPUT instruction
completion device turns on.
When the completion device + 1 turns on (failed), the error code is stored
into completion status ((S1)+1).
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 (PUT) logging data to the FTP
server when M21 is turned ON.
(a)
(b)
Normal processing
Abnormal processing
MELSEC-Q
File transfer
FTPPUT
1 scan
(c)
When abnormally
completed
Logging data transfer/
clock data setting required
Transfer destination No. 1
Logging No. 3
Logging history No. (latest)
6 - 101