Configuration, programming
4.7 FTP communication
CP 1543-1
Operating Instructions, 12/2019, C79000-G8976-C289-08
47
Requirements in the CPU configuration
Use the following settings to allow FTP access:
●
For all data blocks being used as file DBs, disable the "Optimized block access" attribute.
●
Only when using a CPU V1.x and a CP V1.1.x:
Enable the "Access via PUT/GET communication..." option in the configuration data of
the CPU under "Protection & Security" (PUT/GET must be released).
4.7.2.2
Input parameter - FTP_CMD
Explanation of the input parameters
You supply the FTP_CMD instruction with the following input parameters:
Table 4- 2
Formal parameters of the FTP_CMD instruction - input parameters
Parameter
Declaration
Data type
Memory area
Meaning / remarks
REQ
Input
BOOL
E, A, M, DB, L
Starts the send job on a rising edge.
ID *
INPUT
INT
1, 2 ... 64
The FTP jobs are handled on FTP connec-
tions. The parameter identifies the connection
being used.
CMD *
INPUT
BYTE
See following table
"Commands".
FTP command to be executed when the in-
struction is called. You will find value ranges
for the FTP command types after the table.
The FTP command specified here must be
specified identically in the job block (ARG
parameter).
If a command is not supported by the CP
firmware, an error message with STATUS =
8F6B
H
is output.
ARG *
INPUT
VARIANT
See following table
"Commands".
Job block
References the data area with the execution
parameters suitable for the FTP command.
Specific data types (UDT) are used depend-
ing on the FTP command. The UDTs are
shown below.
The ANY data type is not permitted for the
pointer to be specified here!
* The values of the input parameters "ID" and "CMD" overwrite the value of the input parameter "ARG".