Uploading and Downloading Files
53
HInthe Modbus command tothe bridge,performaregisterwritetoregister8
inthe bridge.Writethe hostURL asdataintothatregister.
The URLcan be inthe absoluteIPaddress form:
205.167.7.0/<filename>
oritcan be inthe form:
//<host_name/domain/<filename>
where<filename> isthe name of the fileto be downloaded (SGATE.BIN
orRTE.CFG).Notethatyou specifyRTE.CFGhere,notRTE.TXT.
HWhen the download is complete, the download statuswill be contained inthe
MODICON.LOG file:
//<host_machine>/<http_root_directory>/cgi-bin/modicon.log
The newcontentswill be appended to an existing MODICON.LOG file.
Notethat the MODICON.LOG filecan growlarge asnewdataisappended.
It isthe usersresponsibilityto delete oredit the file asrequired.
HThe bridge will automaticallybegin using the newdownloaded configuration.
5.3.3DownloadExample
Hereisan example of the contentsofamessage to download the fileRTE.TXT
fromthe hostpath: //username.modicon.com/WebShare/wwwroot.
The following contentswouldbewritten intoregister8inthe bridge:
//username.modicon.com/WebShare/wwwroot/rte.cfg