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

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

Advertisement

2 Instruction Descriptions
ST
Internal
Vari-
Variable
ables
R_TRIG_instance
UP_Q
FTPGetFile_in-
stance
FTPGetFileL-
ist_instance
FTPFileList
FTPStoredNum
DoFTPTrigger
FTPAddr
GetResult
Stage
Trigger
// Prepare connected FTP server settings.
IF P_First_RunMode THEN
FTPAddr.Adr
FTPAddr.PortNo
FTPAddr.UserName := 'FtpUser';
FTPAddr.Password := '12345678';
END_IF;
Accept trigger.
R_TRIG_instance(Trigger, UP_Q);
IF ( (UP_Q = TRUE) AND (FTPGetFileList_instance.Busy = FALSE) AND
(FTPGetFile_instance.Busy = FALSE) ) THEN
DoFTPTrigger := TRUE;
Stage := INT#1;
FTPGetFileList_instance( // Initialize instance.
Execute
ConnectSvr := FTPAddr,
SvrDirName := '/Recipe',
GetFileNum := UINT#1000,
FileList
StoredNum
FTPGetFile_instance(
Execute
ConnectSvr
SvrDirName
LocalDirName
FileName
GetFileResult := GetResult) ;
END_IF;
2-1118
Data type
R_TRIG
BOOL
FALSE
FTPGetFile
FTPGetFileList
[1000((Name := '', Modified-
ARRAY[0..999] OF
Date := DT#1970-01-01-
_sFTP_FILE_DE-
00:00:00, Size := 0, ReadOnly
TAIL
:= False, Folder := False))]
UINT
0
BOOL
FALSE
_sFTP_CON-
(Adr := '', PortNo := 0, User-
NECT_SVR
Name := '', Password := '')
ARRAY[0..0] OF
[(Name := '', TxError := False,
_sFTP_FILE_RE-
RemoveError := False,
SULT
Reserved := [4(16#0)])]
UINT
0
BOOL
FALSE
:= '192.168.250.2'; // Address
:= UINT#21;
:= FALSE,
:= FTPFileList,
=> FTPStoredNum) ;
// Initialize instance.
:= FALSE,
:= FTPAddr,
:= '/Recipe',
:= '/',
:= '',
Initial value
// Port number
// User name
// Password

NY-series Instructions Reference Manual (W560)

Comment
Instance of R_TRIG
instruction
Trigger output
Instance of FTPGetFile
instruction
Instance of FTPGetFileL-
ist instruction
File details
Number of files obtained
in file list
Execution condition for
FTPGetFileList and FTP-
GetFile
Connected FTP server
settings
Downloaded file results
Instruction execution
stage
Execution condition

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents