Siemens SIMATIC NET S7-1500 Operating Instructions Manual page 48

Industrial ethernet
Hide thumbs Also See for SIMATIC NET S7-1500:
Table of Contents

Advertisement

Configuration, programming
4.7 FTP communication
FTP commands in the "CMD" parameter
The following table shows you the significance of the commands of the "CMD" parameter
and which UDTs you use to supply the job blocks.
Table 4- 3
Command types
CMD (command type)
0 (NOOP)
1 (CONNECT)
2 (STORE)
3 (RETRIEVE)
4 (DELETE)
5 (QUIT)
6 (APPEND)
7 (RETR_PART)
* With the command types 0 (NOOP) and 5 (QUIT) a freely selectable job block (UDT) must be specified. This is not evalu-
ated.
48
Relevant job blocks /
UDT
*
FTP_CONNECT_IPV4
FTP_CONNECT_IPV6
FTP_CONNECT_NAME
FTP_FILENAME
FTP_FILENAME
FTP_FILENAME
*
FTP_FILENAME
FTP_FILENAME_PART
Meaning / handling
The called FB does not execute any actions. The status codes are
set as follows when these parameters are supplied:
DONE=1; ERROR=0; STATUS=0
FTP connection establishment
With this command, the FTP client establishes an FTP connection to
an FTP server (port 21).
The connection is available under the connection ID specified here
for all further FTP commands. Data is then exchanged with the FTP
server specified for this user.
This function call transfers a data block (file DB) from the FTP client
(S7-CPU) to the FTP server.
Caution: If the file (file DB) already exists on the FTP server, it will be
overwritten.
This function call transfers a file from the FTP server to the FTP client
(S7-CPU).
Caution: If the data block (file DB) on the FTP client already contains
a file, it will be overwritten.
With this function call, you delete a file on the FTP server.
With this function call, you close the FTP connection specified in "ID".
Similar to "STORE", the "APPEND" command saves a file on the
FTP server. With "APPEND", the file on the FTP server is, however,
not overwritten. The new content is appended to the existing file.
If the file (file DB) does not exist on the FTP server, it will be created.
Using the "RETR_PART" command (retrieve part) , you can request
a section of a file from the FTP server.
If very large files are involved, this allows you to restrict the read to
the part you currently require.
To do this, you need to know the structure of the file.
Enter the required part of the file using the two parameters "OFFSET"
and "LEN" in FB40.
Operating Instructions, 12/2019, C79000-G8976-C289-08
CP 1543-1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic net cp 1543-1

Table of Contents