Configuration, programming
4.7 FTP communication
CP 1543-1
Operating Instructions, 12/2019, C79000-G8976-C289-08
49
4.7.2.3
Job blocks for FTP_CMD
Meaning
You supply the FTP_CMD instruction with a job block using the ARG parameter. The
structure depends on the FTP command type. By using the default data types (UDT), the
instruction recognizes the type of the job block. Below, you will find the relevant data types
(UDTs) for the following job blocks:
●
FTP connection establishment with IP address according to IPv4
●
FTP connection establishment with IP address according to IPv6
●
FTP connection establishment with server name
●
Write and read access and other FTP commands
●
FTP command RETR_PART
Job block for FTP connection establishment with IP address according to IPv4
For FTP connection establishment with IP address according to IPv4, the following data
structure is used.
Table 4- 4
FTP_CONNECT_IPV4
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