Configuration, programming
4.7 FTP communication
CP 1543-1
46
Operating Instructions, 12/2019, C79000-G8976-C289-08
How it works
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:
Job blocks (UDTs)
The following data structures are used for the job blocks:
●
Connection establishment
Various data structures are available for the connection establishment using the following
types of access:
–
FTP_CONNECT_IPV4: Connection establishment with IP addresses according to IPv4
–
FTP_CONNECT_IPV6: Connection establishment with IP addresses according to IPv6
–
FTP_CONNECT_NAME: Connection establishment with server name (DNS)
●
Data transfer
For the data transfer, two different data structures are available:
–
FTP_FILENAME: Data structure for access to a complete file
–
FTP_FILENAME_PART: Data structure for read access to a data area
Data transfer in the File_DB
The data transfer is achieved using data blocks containing a header for job data and the
area for the user data. The data block is specified in the job buffer.
You will find the description of an example file DB in the STEP 7 information system.