Detailed instructions for use are in the User's Guide.
[. . . ] Some states/countries do not allow limitations on duration of an implied warranty, so the above limitation may not apply to you. AMX Corporation's entire liability and your exclusive remedy shall be, at AMX Corporation's option, either (a) return of the price paid, or (b) repair or replacement of the SOFTWARE that does not meet AMX Corporation's Limited Warranty and which is returned to AMX Corporation. This Limited Warranty is void if failure of the SOFTWARE or hardware has resulted from accident, abuse, or misapplication. [. . . ] 3
Channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Send_Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Example Code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Troubleshooting i!-FTPSender . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Learning More . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
i!-FTPSender
i
Table of Contents
ii
i!-FTPSender
Introduction
Introduction
The i!-FTPSenderTM allows you to copy a file from one FTP server to another from NetLinxTM code. This is useful to copy files to the NetLinx Master from another FTP server or to copy files from the NetLinx Master's disc on chip to another FTP server. This module will work between any two FTP servers; it is not limited to copying files to and from a NetLinx Master.
Supported Operating Systems
Windows 95®/98® (with at least 48 MB of installed memory) Windows NT 4. 0® Workstation or Server (service pack 6 B or greater, with at least 64 MB of installed memory) Windows 2000® Professional or Server (running on a Pentium 233 MHz processor (minimum requirement); 300 MHz or faster recommended, with 96 MB of installed memory. ) Windows ME® (running on a Pentium 233 MHz processor (minimum requirement); 300 MHz or faster recommended, with 96 MB of installed memory. )
Minimum PC Requirements
Windows-compatible mouse (or other pointing device) At least 5 MB of free disk space (150 MB recommended) VGA monitor, with a minimum screen resolution of 800 x 600 A Network adapter
Installing i!-FTPSender
1. In Explorer, double-click i!-FTPSenderSetup. exe from the directory window where you downloaded the i!-Email install program. After reading the License Agreement, select I Agree and Next to proceed. The Welcome To i!-FTPSender Setup dialog appears, reminding you to close all Windows programs before going any further. In the Select i!-FTPSender Install Location dialog, use the Browse button to navigate to a directory other than the default install directory, if desired. In the i!-FTPSender Shortcut Creation dialog, select Install Shortcut Icons for the installed components on your desktop, if desired. Click Next in the Start i!-FTPSender Installation dialog to install the selected components. The program prompts you to restart your system to complete the installation.
i!-FTPSender
1
Introduction
2
i!-FTPSender
Running i!-FTPSender
Running i!-FTPSender
Programming
i!-FTPSender is a NetLinx module you can add to any program. You interact with the module through a virtual device supporting: Channels Strings Send_Commands Channels The following table lists the channels supported by i!-FTPSender. i!-FTPSender Channels
Channel 250 251 255 Description Channel turns on when the module is communicating with the source server. [. . . ] *) SEND_COMMAND vdvFTPDiag, "'COPY-', cSFileName, ';', cDFileName" cButtonPressed = 2 } CASE 3: { (* File *) cSFileName = 'dir1\ftptest1. txt' cDFileName = 'ftptest1. txt'
// filename to copy // filename to copy
(* This will cause the file to be copied!*) SEND_COMMAND vdvFTPDiag, "'COPY-', cSFileName, ';', cDFileName" cButtonPressed = 3 } CASE 4: { (* File *) cSFileName = 'dir1\ftptest1. txt' cDFileName = 'dir2\ftptest. txt'
// filename to copy // filename to copy
(* This will cause the file to be copied!*) SEND_COMMAND vdvFTPDiag, "'COPY-', cSFileName, ';', cDFileName" cButtonPressed = 4 } } } } (* FTP Activity *) DATA_EVENT[vdvFTPDiag] { STRING: SEND_STRING 0, "'From FTPModule: ', DATA. TEXT" } (***********************************************************) (* THE ACTUAL PROGRAM GOES BELOW *)
Continued
i!-FTPSender
5
Running i!-FTPSender
(***********************************************************) DEFINE_PROGRAM (* Feedback *) [dcFTPCopy[1]]=(([vdvFTPDiag, FTPSServerBusy] && (cButtonPressed = 1)) [dcFTPCopy[2]]=(([vdvFTPDiag, FTPSServerBusy] && (cButtonPressed = 2)) [dcFTPCopy[3]]=(([vdvFTPDiag, FTPSServerBusy] && (cButtonPressed = 3)) [dcFTPCopy[4]]=(([vdvFTPDiag, FTPSServerBusy] && (cButtonPressed = 4))
|| [vdvFTPDiag, FTPDServerBusy]) || [vdvFTPDiag, FTPDServerBusy]) || [vdvFTPDiag, FTPDServerBusy]) || [vdvFTPDiag, FTPDServerBusy])
(***********************************************************) (* END OF PROGRAM *) (* DO NOT PUT ANY CODE BELOW THIS COMMENT *) (***********************************************************)
Troubleshooting i!-FTPSender
All interaction with the FTP servers is provided as a string from the virtual device. [. . . ]