Download MELSEC-L CPU Module User`s Manual (Built-In
Transcript
(5) Precautions • When executing the SP.FTPPUT instruction, turn on SM721 (file accessing flag) for interlocking. When SM721 is on, the SP.FTPPUT instruction performs no processing. • When executing the SP.FTPPUT instruction by specifying an SD memory card as the transfer source or transfer destination, turn on SM606 (SD memory card forced disable instruction) for interlocking. When SM606 is on, the SP.FTPPUT instruction performs no processing. • When access is restricted by file password 32, the SP.FTPPUT instruction is completed with an error. • The SP.FTPPUT and SP.FTPGET instructions cannot be executed simultaneously. A subsequent instruction is ignored and not executed until the execution of the preceding instruction is completed. (6) Program example When XC is turned on, this sample program sends the file register (MAIN.QDR) stored in the standard RAM to the "\CPUData\ALine13G2\FileRegister\]20120530" directory in the FTP server. • Devices used Device number Application D100 SP.FTPPUT instruction control data D1000 Start number of the device in which string data of the transfer destination directory path is stored M100 SP.FTPPUT instruction completion device M101 SP.FTPPUT instruction completion device (when completed with an error) M150 Successful completion indication bit M151 Unsuccessful completion indication bit SM1298 FTP client connection status • Program Setting the directory Setting the directory Executing sending processing Normal completion Error completion 140