
Configuration, programming
4.7 FTP communication
CP 1543-1
50
Operating Instructions, 12/2019, C79000-G8976-C289-08
Parameter
Type
Range of values
Meaning / remarks
Password
STRING[32]
’passwort’
Password for the login on the FTP server
FTPserverIPaddr
IP_V4
ADDR(1) ...
ADDR(4)
IP address of the FTP server as Array[1..4] of Byte, where
1 byte specifies one block of the address.
Example: ADDR(1) specifies the first address block (the
first byte of the address).
Job block for FTP connection establishment with IP address according to IPv6
For FTP connection establishment with IP address according to IPv6, the following data
structure is used.
Table 4- 5
FTP_CONNECT_IPV6
Parameter
Type
Range of values
Meaning / remarks
InterfaceID
HW_ANY
Module start address
When you call an instruction, you transfer the module start
address of the CP in the LADDR parameter.
You will find the module start address of the CP in the
configuration of the CP under: "Proper-
ties>Addresses>Inputs"
ID
CONN_OUC
1, 2...64
The FTP jobs are handled on FTP connections. The pa-
rameter identifies the connection being used.
ConnectionType
BYTE
0
Connection type "FTP"
ActiveEstablishment BOOL
TRUE
TRUE = active connection establishment
FTPCmd
BYTE
1
FTP command "CONNECT"
FTP command that executes when the instruction is called.
You can find the value ranges for the command types in
the section Input parameter - FTP_CMD (Page 47).
Note:
The FTP command specified here must be specified identi-
cally in the CMD input parameter.
CertIndex
BYTE
0 = FTP
1 = FTPS
Here, choose between the protocol types FTP or FTPS.
Note on FTPS:
If the FTP server is configured outside the STEP 7 project
of the FTP client, the certificate must be imported from the
FTP server.
UserName
STRING[32]
'user'
User name for the login on the FTP server
Password
STRING[32]
'password'
Password for the login on the FTP server
FTPserverIPaddr
IP_V6
ADDR(1) ...
ADDR(16)
IP address of the FTP server as Array[1..16] of Byte, where
2 bytes specify one block of the address.
Example: ADDR(1) + ADDR(2) specify the first address
block.