File management and file access with FTP/FTPS
9.5 Program blocks for FTP services
Configuring and commissioning S7 CPs for Industrial Ethernet
160 Configuration Manual, 09/2013, C79000-G8976-C182-13
Program blocks for FTP services
Using the program blocks
Use the following program block in the user program for data transfer using FTP/FTPS:
● FTP_CMD (FB40)
The program block FTP_CMD can be used for FTP/FTPS with the following module
types:
– As of CP 343-1 Advanced (GX30)
– As of CP 443-1 Advanced (GX20)
● FTP program blocks FC40-FC44
All module types continue to support the following program blocks for FTP (not for FTPS):
FTP_CONNECT (FC40)
FTP_STORE (FC41)
FTP_RETRIEVE (FC42)
FTP_DELETE (FC43)
FTP_QUIT (FC44)
The module types listed below, on the other hand, do not support FTP_CMD (FB40):
– Advanced CPs up to CP 343–1 Advanced (GX21)
– Advanced-CPs up to CP 443–1 Advanced (EX41)
FTP_CMD has the following advantages compared with the previous program blocks
(FC40...FC44):
● Simplification in the user program by using a command variable instead of different
function calls
● Additional function "APPEND"
"APPEND" allows data to be appended to an existing file.
● Additional function "RETR_PART"
"RETR_PART" allows selected data areas to be retrieved from a file.
● Additional function "CONNECT_TLS_PRIVATE"
You set up SSL FTP connections (FTPS) for CP operation with security enabled. CHECK
For more detailed information on the structure of the file DB and the program blocks for FTP,
refer to the documentation on the SIMATIC NET program blocks /10/ (Page 230).