Open User Communication
6.9 Setting up communication via FTP
Communication
136
Function Manual, 05/2021, A5E03735815-AJ
Procedure for setting up FTP client functionality
Requirement:
The FTP server can be reached via the IPv4 network
.
1.
Configure an S7-1500 automation system with CPU and CP 1543-1 in the device view of the
Devices & networks editor of STEP 7.
At the same time, you need to select the check box "Permit access with PUT/GET
communication from remote partner (PLC, HMI, OPC, ...)" in the HW configuration of the
S7-1500 CPU under the "Protection" area navigation in the section "Connection
mechanisms".
2.
Call the FTP_CMD instruction in the user program of the CPU.
3.
Set the connection parameters for the FTP server in the FTP_CMD instruction.
4.
Create a global DB and within this DB a tag of the type FTP_CONNECT_IPV4,
FTP_CONNECT_IPV6 or FTP_CONNECT_NAME.
5.
Interconnect the tag within the data block with the FTP_CMD instruction.
6.
For the connection to the FTP server, specify the following in the DB:
–
The user name, the password and the IP address for the FTP access in the relevant data
type (FTP_CONNECT_IPV4, FTP_CONNECT_IPV6 or FTP_CONNECT_NAME)
7.
Download the hardware configuration and user program to the CPU.
Application examples
•
Application example: FTP communication with S7-1500 and CP 1543-1
You can find the application example on the Internet
https://support.industry.siemens.com/cs/ww/en/view/103550797
•
Application example: FTP client communication with S7-1200/1500
You can find the application example on the Internet
https://support.industry.siemens.com/cs/ww/en/view/81367009
Additional information
The STEP 7 online help describes:
•
The system data types
•
The instructions for open communication
•
The connection parameters
Summary of Contents for SIMATIC ET 200AL
Page 2: ......
Page 143: ......
Page 218: ......
Page 250: ......
Page 296: ......
Page 337: ......
Page 365: ......
Page 392: ......
Page 419: ......
Page 451: ......
Page 483: ......
Page 597: ......
Page 648: ......
Page 702: ......
Page 739: ......
Page 781: ......
Page 804: ......
Page 828: ......
Page 853: ......
Page 880: ......
Page 906: ......
Page 996: ...Diagnostics ...
Page 1121: ......
Page 1565: ......