iQ-R - FTP Server using SD card

This article explains how to prepare the iQ-R PLC to use the FTP Server function with access to files on the SD card.
1. FTP Server configuration in Module Parameter
First, go to the Module Parameter window to enable the FTP Server. You can also change the login name, password and monitoring times if necessary:
The default password depends on what device you are using:
2. Setting special registers to use SD card
Other than iQ-F PLCs (where the FTP Server function supports only the SD card), in iQ-R the FTP Server can use multiple locations for storing data, with PLC Data Memory set as default. This can be changed using some special registers as explained in
MELSEC iQ-R Programmable Controller CPU Module User's Manual:
Because of that, to use the SD card inserted in the PLC as the FTP Server's storage location, add this piece of code to your program:
3. Testing with FTP Client
With configuration like above, FTP Clients can connect with the FTP Server on your iQ-R PLC and exchange files with its SD card, for example using the command prompt: