7-5
Section
Using FTP Commands
151
PPP:
Path name
XXX:
IP address
YY:
Port number
MM:
FINS error code
NN:
Socket error code
Checking FTP Status
Note
1. File operations for files on the Memory Card are performed during FTP com-
munications. Do not remove the Memory Card or turn OFF power to the PC
while FTP is being used.
2. When using File Memory Instruction from the program in the CPU Unit, pro-
gram exclusive control using the FTP Status Flag so that the same data is
not manipulated simultaneously by more than one instruction.
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 follows:
1500 + (25 x unit number) + 17
FTP Status Flag
PS Status Flag
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
n+17
Status of
bit 00
Meaning
1
FTP server busy
0
FTP server free
Note The FTP status can also be checked from the CX-Programmer.
The FTP indicator on the Ethernet Unit indicates FTP status as shown in the fol-
lowing table.
FTP indicator
Meaning
Lit
FTP server busy
Not lit
FTP server free
File transfers using FTP can require up to 5 or 10 minutes depending on the ca-
pacity of the file. Approximate file transfer time are provided in the following table
for reference.
All times are in seconds unless otherwise specified.
File system
Memory Card
EM File Memory
CPU Unit status
Operating mode
PROGRAM
RUN
PROGRAM
RUN
Cycle time
---
20 ms
---
20 ms
Transfers using
1 KB
3
17
1
3
put
30 KB
10
53
5
24
60 KB
17
91
11
52
120 KB
31
173
24
128
Transfers using
1 KB
1
2
1
1
get
30 KB
6
22
4
14
60 KB
10
43
9
37
120 KB
19
100
22
113
Note
1. The above times assume that the peripheral servicing time setting in the PC
Setup is set to the default value of 4%.
2. If the peripheral servicing time setting in the PC Setup is increased, FTP files
will be transferred faster.
FTP Status Flag
FTP Indicator
FTP File Transfer Time