Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

Specifying Retrying Connection Processing with the FTP Server
Connection processing with the FTP server times out and ends when the specified timeout time Retry-
Cfg.TimeOut is exceeded before a connection is successfully established. If the FTP server rejects the
connection, processing ends before reaching the timeout time. After failing to connect, connection pro-
cessing is retried after the specified retry interval RetryInterval. If a connection with the FTP server is
not established within the number of retries specified with RetryCfg.RetryNum, an instruction execution
error occurs.
If, after a successful connection to the FTP server, a problem occurs on the network that interrupts file
transfer for longer than the time specified with RetryCfg.TimeOut, a timeout occurs and retry process-
ing is not performed.
The data type of RetryCfg is structure _sFTP_RETRY_CFG. The specifications are as follows:
Name
RetryCfg
TimeOut
RetryNum
RetryInterval
*1 If 0 is set, the timeout time is 20 s.
*2 If 0 is set, the retry interval is 1 s.
The following figure shows the relation between the timeout time, number of retries, and retry interval
when an FTP client performs connection processing to a FTP server.
Connection request from
FTP client to FTP server

NY-series Instructions Reference Manual (W560)

Meaning
Description
Execution
Instruction execution
retry settings
retry settings
Timeout time for a
Timeout time
connection to the FTP
server
Number of
The number of retries
retries
when connection fails
The interval for retrying
Retry interval
when connection fails
Timeout time
Connection
failed
Data type
_sFTP_RETR
Y_CFG
UINT
UINT
UINT
1st retry
2nd retry
Retry interval
2 Instruction Descriptions
Valid range
Unit
---
---
---
*1
Seconds
20
0 to 60
0 to 3
Times
0
*2
Seconds
1
0 to 65535
Time
2
Default
2-1107

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents