Uploading and Downloading Files
52
5.3Downloading Files totheBridge
Beforeinitiating yourfirstdownload:
HInstall an HTTPserveron the hostmachine and configureitasdescribed in
Section 5.1.
HCopythe programDWNLD.EXE fromthe hostsoftware diskettetothe HTTP
cgi--bindirectory you haveconfigured on the hostmachine:
<drive:>\<http_root_directory>\cgi-bin
5.3.1DownloadOverview
Youcan download a newversion of the bridgesapplication SGATE.BINfile or
mapping RTE.TXTfiletothebridge.To download a file,writethe hostURL and
filename asdatatoregister8inthe bridge.Afterthe download, the statusof the
download will be stored inthe fileMODICON.LOG inthe hostcgi--bindirectory.
SGATE.BIN
When the download is complete and the bridge isrestarted, the bridge will copy
SGATE.BINtoitsapplicationprogramSGATE.EXE. It willbeginrunning thisasits
newapplication.
RTE.TXT
The bridgesmappingtablesarestored withinthe bridge inthe fileRTE.CFG.
Before downloading newmapping,you mustplaceitinafile named RTE.TXT.
If you have previouslyuploaded RTE.CFG,the files contentsare appended into
the MODICON.LOG fileinyourcgi--bindirectory.Youcan copythoseRTE.CFG
contentsfrom MODICON.LOG and pastethemintoanRTE.TXTfile.Thenyou
can download the RTE.TXT.
The RTE.TXTdownloadwill write a new RTE.CFGfileinthe bridge.When the
download is complete and the bridge isrestarted, the bridge will usethisfiles
contentsasitsnewmapping tablesbetween TCPand ModbusPlus.
5.3.2Initiating aDownload
Toinitiatea download:
HPut the fileto be downloaded (SGATE.BIN orRTE.TXT)intothe
<http_root_directory> of the hostmachine.