Configuration, programming
4.7 FTP communication
CP 1543-1
Operating Instructions, 12/2019, C79000-G8976-C289-08
51
Job block for FTP connection establishment with server name
For FTP connection establishment specifying the server name, the following data structure is
used. The server name is assigned to an IP address using DNS.
Table 4- 6
FTP_CONNECT_NAME
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]
’benutzer’
User name for the login on the FTP server
Password
STRING[32]
’passwort’
Password for the login on the FTP server
FTPserverName
STRING[254]
IP address of the FTP server