Configuration, programming
4.7 Setting up FTP communication
CP 1543-1
Operating Instructions, 05/2017, C79000-G8976-C289-07
47
Setting up FTP communication
4.7.1
The program block FTP_CMD (FTP client function)
Meaning
Using the FTP_CMD instruction, you can establish FTP connections and transfer files from
and to an FTP server.
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 ver
sion 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
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 serv
er as a trusted
certificate in the certificate manager.
The FTP_CMD instruction references a job block (ARG) in which the FTP command is
specified. Depending on the type of FTP command (CMD), this job block uses different data
structures for parameter assignment. Suitable data types (UDTs) are available for these
various structures.
The following diagram shows the call structure: