Panasonic FP7 Series Command Reference Manual page 958

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

17.13 FTPcLOG (FTP Client Logging/Trace Transfer Setting)
● The instruction can be executed when the transfer request relay of the FTPc logging/trace
control relay is OFF (0: No request). As an execution condition of the instruction, insert a
program that checks the state of the transfer request relay. The state of the FTPc logging
transfer request relay can be read with the ETSTAT instruction. Store the state that is read in
a device such as an internal relay. An operation error occurs if this instruction is executed
when the transfer request relay is ON.
● This instruction can be executed when the Ethernet initialization active flag (X61) is OFF. As
an execution condition of the instruction, insert a program that checks the status of the flag
(X61). If this instruction is executed when the flag (X61) is ON, the system relay SR9 (carry
flag CY) is set and the instruction is terminated without being executed.
● When the instruction is completed successfully, the system relay SR9 (carry flag CY) and the
system data register SD29 (Ethernet communication error code) are cleared.
Precautions for programming
● Insert the UNITSEL instruction immediately before this instruction and specify the unit (built-
in ET-LAN in the CPU unit) and the connection number.
● For [S1] to [S3], specify the starting address of the device area that stores the string data
that indicates the set parameters, or a character constant. When specifying a device area for
an operand, set string data using the SSET instruction in advance. However, the ESSET
instruction cannot be used because the format is different.
● Both upper and lower case characters can be used. "Abcd", "ABCD" and "abcd" are all
synonymous. However, the destination folder name is case-sensitive.
● This instruction is not available in interrupt programs.
Operand [S1] setting
Specify the starting address of the device area that stores the string data that indicates a
logging/trace number, or a character constant.
Setting item
Settings
S1
Specify a LOG number (0 to 15) as string data. Example) "LOG=0"
Operand [S2] setting
● Specify the starting address of the device area that stores the string data that indicates the
parameters for operation setting, or a character constant.
● Only one server can be specified at the same time. Specify an FTP server number with one-
byte three characters.
Setting item Settings
Specification of an
FTP server
(essential)
Specification of
transfer
operation (Can
S2
be omitted)
OVW
Overwrite
method
(Default)
17-70
Specify an FTP server (server 0 to 3) as string data. Example) "SV0
Select the operation for transferring logging/trace files. Specify the
operation after the keyword "MODE=". When either method is not specified,
"Overwrite method" is applied.
MODE=OVW or MODE=REN
Performs transfer files with file names specified by the logging/trace setting.
When the transfer is interrupted due to any trouble with the network or the
server, the file transferred partway remains in the server.
Confirm if the transfer has succeeded with an instruction such as ETSTAT
instruction.
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents