79
Checking FTP Status Section 4-6
PPP: Path name
XXX: IP address
YY: Port number
MM: FINS error code
NN: Socket error code
4-6 Checking FTP Status
4-6-1 FTP Status Flag
The current status of the FTP server can be obtained from the service status
in the words allocated to the Ethernet Unit in the CPU Bus Unit Area in the
CIO Area. The word containing the FTP Status Flag can be computed as fol-
lows: CIO 1500 + (25 x unit number) + 17
Note 1. File operations for files on the Memory Card are performed during FTP
communications. Do not remove the Memory Card or turn OFF power to
the PLC while FTP is being used.
2. When using File Memory Instruction from the program in the CPU Unit,
program exclusive control using the FTP Status Flag so that the same data
is not manipulated simultaneously by more than one instruction.
3. The FTP status can also be checked using the software switch settings on
the CX-Programmer.
■ FTP Indicator
The FTP indicator on the Ethernet Unit indicates FTP status as shown in the
following table.
Status of
bit 00
Meaning
1 FTP server busy (a user is connected)
0 FTP server free
FTP Status Flag
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
n+17
FTP indicator Meaning
Lit FTP server busy (a user is connected)
Not lit FTP server free