Panasonic FP7 Series Command Reference Manual page 962

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

Advertisement

17.14 FTPcREQ (FTP Client Transfer Request)
● This instruction can be executed when the cable disconnection detection flag (X60) is OFF.
As an execution condition of the instruction, insert a program that checks the status of the
flag (X60). If this instruction is executed when the flag (X60) is ON, the system relay SR9
(carry flag CY) is set and the instruction is terminated without being executed.
● 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.
● This instruction is not available in interrupt programs.
Timing chart
● The following diagram shows the process in which a transfer request is executed and data
transfer from a server to FP7 is completed successfully.
● The control relays (bit0 to bit15) can be monitored by using the ETSTAT instruction to read
and store their state in arbitrary operation devices.
Ethernet initialization
active flag (X61)
FTP client preparation
done flag (X65)
Transfer request relay
ETSTAT [D] bit0
Transfer active relay
ETSTAT [D] bit1
Retry active relay
ETSTAT [D] bit2
Execution done relay
ETSTAT [D] bit3
Execution result relay
ETSTAT [D] bit4
Transfer direction relay
ETSTAT [D] bit5
Transfer cancel request
relay
ETSTAT [D] bit14
Transfer disable relay
ETSTAT [D] bit15
(1) RUN (Power on)
(2) FTP client preparation done
17-74
(1)
(2)
(3)
(4)
(5)
Turns OFF when transfer is requested.
(4) Transfer request (Executes FTPcREQ instruction)
(5) FTP client login succeeded (Starts transfer)
(6)
Normal completion
Execution result relay: 0
Transfer done code: 0
Transfer direction relay
Server→PLC: 1
PLC→Server: 0
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents