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

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

Advertisement

Function
The FTPGetFileList instruction gets a list of files and file details from the specified directory
SvrDirName on the connected FTP server ConnectSvr.
Specify the number of files to list in GetFileNum. Specify the order in which to sort the obtained file
information in SortOrder.
The data type of ConnectSvr is structure _sFTP_CONNECT_SVR. The specifications are as follows:
Name
ConnectSvr
Adr
PortNo
UserName
Password
*1 A separate DNS or Hosts setting is required to specify a host name.
*2 You can use the following single-byte characters: A to Z, a to z, 0 to 9, - (hyphen), . (period), and _ (underbar).
*3 If you specify 0, TCP port number 21 is used.
*4 You can use the following single-byte characters: A to Z, a to z, 0 to 9, - (hyphen), . (period), and _ (underbar).
You can also use \ and @ for a CPU Unit with unit version 1.16 or later.
*5 The NULL character at the end must be counted in the number of bytes.
*6 For CPU Units with unit version 1.08, specify a text string of one character or more. An error will occur if you
specify a text string that contains only the final NULL character.
The data type of SortOrder is enumerated type _eFILE_SORT_ORDER. The meanings of the
enumerators are as follows:
Enumerator
_NAME_ASC
_NAME_DESC
_DATE_ASC
_DATE_DESC
The file details is stored in FileList[]. The number of files for which information was obtained is stored in
StoredNum.

NY-series Instructions Reference Manual (W560)

Meaning
Description
Connected
Setting parameters for
FTP server
the connected FTP
settings
server
IP address or host
Address
*1
name
TCP port number of FTP
Port number
server control
connection
User name on FTP
User name
server
Password
FTP server password
Meaning
Ascending order of names
Descending order of names
Ascending order of last modified dates
Descending order of last modified dates
2 Instruction Descriptions
Data type
Valid range
_sFTP_CONN
---
ECT_SVR
STRING
1 to 200 bytes
UINT
*3
0 to 65535
33 bytes
STRING
*4*5*6
max.
33 bytes
STRING
*4*5*6
max.
Unit
Default
2
---
---
*2
---
---
2-1105

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents