Configuration, programming
4.7 FTP communication
CP 1543-1
Operating Instructions, 12/2019, C79000-G8976-C289-08
45
4.7.2
FTP client
4.7.2.1
The program block FTP_CMD (FTP client function)
FTP_CMD
Using the FTP_CMD instruction, you can establish FTP connections and transfer files from
and to an FTP server.
Data transfer is possible using FTP or FTPS (secure SSL connections).
You will find the block in STEP 7 in the "Instructions" task card under "Communication >
Communications processor > SIMATIC NET CP" when the Main [OB1] is open.
Note
Block versions
You can use the version V2.x of FTP_CMD in a station only in conjunction with a CPU and a
CP V2.x V2.x.
As soon as the station obtains a CPU V1.x or CP V1.x, you must use FTP_CMD in the older
version V1.x (e.g. V1.4). To do this, change the version of the "SIMATIC NET CP" library to
V3.4. You can then select an older version of the block.
The table below shows the compatibility.
Table 4- 1
Compatibility of the block FTP_CMD with versions of the CPU and CP
FTP_CMD
CPU
CP 1543-1
V1.5
V1.x
Any
V1.5
Any
V1.x
V2.0
V2.x
V2.x
Data transfer is possible using FTP or FTPS (secure SSL connections).
Note
FTPS: Comparing certificates
FTPS requires a comparison of the certificates between FTP server and FTP client. If the
FTP server is configured outside the STEP 7 project of the FTP client, the certificate needs
to be imported from the FTP server. Import the certificate of the FTP server as a trusted
certificate in the certificate manager.