Programming
4.5 ETHx_FTPC
CP 243-1
Operating Instructions, 03/2012, C79000-G8976-C244-02
101
Return parameters
Name Type Meaning
Done BOOL Status of the subroutine call
0: Subroutine not executed yet
1: Subroutine executed, e-mail request
completed, subroutine ready for next
execution.
Error BYTE Error code
16#00: No error occurred
Otherwise: Error (description: see
section Error messages of the CP 243-
1 (Page 108))
Return parameters (ETHx_EMAIL)
NOTICE
E-mail communication is subordinate to S7 communication.
Since reaction times vary depending on the particular configuration, no general predictions
can be made. The greater the number of simultaneous S7 connections and the more data
transferred per request, the longer the reaction times will be for an e-mail request.
4.5 ETHx_FTPC
Calling the subroutine ETHx_FTPC causes the CP 243-1 to transfer data to or request data
from an FTP server. This subroutine can also be used to delete files from the file system of
an FTP server.
The type of data access that your CP 243-1 uses is specified in the configuration.
A total of up to 32 FTP requests can be configured.
The following is specified during configuration:
● Whether you want data to be read from your S7-200 CPU and transferred to an FTP
server.
● Whether you want to request a file from an FTP server and copy it to your S7-200 CPU.
● Whether you want to delete a file from the file system of an FTP server.
● Which data lengths, start addresses, file names, FTP server addresses, user names and
passwords you want to use for the action.
When the subroutine ETHx_FTPC is called, you specify which of the configured FTP client
requests you want the subroutine to execute.
The ETHx_FTPC subroutine is created by the Internet wizard in STEP 7 Micro/WIN 32 if you
activated the FTP client service in the configuration of the CP 243-1. Only then can you sent
FTP client requests via a CP 243-1 from an S7-200 user program.