AppendixAExtendedFileSystemEXTENDEDFILESYSTEMFORFMDANDNANO-10PLCBeforeyoubegin,pleasedownloadasampleI-TRiLOGIprogramthatwillbereferredtothroughoutthismanualfromourwebsite:http://www.
tri-plc.
com/trilogi/ExtendedFileSystem.
zipA.
1IntroductionFMDandNano-10PLCswithr77orlaterfirmwaremaybeusedwithanewmodule:FRAM-RTC-256,which,asidefromadding11KwordsofFRAMandabattery-backedRTCmodule(likesitspredecessor:FRAM-RTC),alsoadds256KbytesofextendedfilespacetothePLC.
WithouttheFRAM-RTC-256,theFMDPLConlyhas60KbytesoffilememorytobeusedforstoringcontrolwebpagesasdescribedinChapter2.
9intheNano-10andFMDPLC'sUserManual.
(NotethedefaultfilespaceonFMDandNano-10PLCbeforefirmwarer77was64Kbytes,butithasbeenreducedto60Ktomakespaceforthenewr77firmware).
FRAM-RTC-256addsanadditional256KbytesoffilespacetothePLC.
Youcanusetheextendedfilespaceforstoringadditionalwebpages.
Butmoreimportantly,aPLCwithanewr77firmwarecanopenalocaldatafileinthisfilespaceandwrite/appenddatatoit.
ThePLCcanthereforelogalargeamountofdataintooneormoredatafiles,whichcanberetrievedforanalysis.
TherearetwowaystoretrievethestoreddatafilesfromthePLC:1.
DownloadthefilefromthePLC'sbuilt-inwebserver:ThefilecreatedbythePLCcanbedownloadedfromthePLC'sbuilt-inwebserverusinganywebbrowser.
Thisallowstheusertoaccessthedatafileatanytimeoftheday.
2.
AutomaticFTPuploadfromthePLCtoanexternalweb-server:YoucanprogramtheFMDorNano-10PLCtomakeanFTPclientconnectiontoanywebserveronthelocalnetworkorontheInternet/Cloudanduploadthedatafileithascreatedtotheweb-serverusinganyfilename.
ImaginewhattheFMDPLCorNano-10PLCcandowiththisnewuploadingcapability!
TheabilitytologdatalocallyandautomaticallyuploadthedatatoawebservertransformstheFMDPLCintoapotentdata-logger!
ThePLCcanbeprogrammedtocapturedaily,weeklyormonthlydataandthenperiodicallyuploadthedatafiletoanInternetwebserverwithaunique,time-stampedfilename(E.
g.
"temperaturelog2012-01-01.
xls").
ThisallowsthePLCtologdatacompletelyunattended.
AppendixAExtendedFileSystemThedatauploadedbythePLCtotheexternalwebservercanthereforebeviewedordownloadedintoaPCusinganywebbrowser,anywhereintheworld.
ThisallowsyoutocarryoutanalysisofpastloggeddatafileforperformanceordiagnosticanalysisatanytimewithouthavingtophysicallyaccessthePLCtoretrievetheloggeddata.
AdvantageofDataUploadingAlthoughitispossibletodirectlyaccessthePLC'sinternalwebservertodownloadthedatafileithascreated,thisrequireactiveactionbytheuserandtoensurethatthedataareretrievedbeforethefileisfullandhastobedeletedbythePLCtocreatespacetolognewdata.
ByprogrammingthePLCtouploadthedataperiodicallythePLCcandeletethefileafterithassuccessfullyuploadedthedatafiletofreeupspacetoacceptnewdata.
InotherwordsthePLCwillneverrunoutofdataspacetologdatasinceitcanstoretheloggedfilesonanyserverincludingtheCloud!
TodirectlyaccessthefilestoredonthePLCfromoutsideoftheLAN,youwillneedtosetuptherouterorfirewallto"forward"thePLC'sserverport(e.
g.
9080)tothePLC.
IfyouhavemultiplePLCsloggingdata,theneachPLCwillneedtohaveadifferentportnumberinordertoproperlyforwardthedata.
Thisnotonlycomplicatesthesetup,butalsoisoftenfrownuponbySystemAdministratorandmaynotevenbepermittedbythecorporatenetworksecuritypolicy.
ThePLCisdesignedtouploaddatatoanywebserverviaFTPpassivemodebyprovidingtheloginusernameandpassword.
UsingFTPpassivemodeallowsthePLCtoopenanetworkconnectiontoanexternalweb-servertouploadafileandthenclosetheconnectionimmediately.
ItdoesnotrequireopeningaportonyourroutertopermitexternalaccesstothePLCfromtheInternet.
Hencethereisnocomplicatedroutersetupinvolvedasthereisnoportforwardingrequired.
ItalsoeliminatesthesecurityriskfromsomeonetryingtotakecontrolofthePLCfromoutsideofyourLANandisgenerallymuchmoreacceptabletotheSystemAdministrator.
IfyouhavemultiplePLCsinuse,youcanprogrameachPLCtouploaddatatoadifferentdirectoryorappendadifferentfilenameprefix,ortodifferentservers,andonceprogrammedallPLCswillhappilylogdataunattendedindefinitely!
A.
2FileStructureandFileNamingofTheExtendedFileSystemAlloftheinformationinchapters2.
9and2.
10oftheNano-10andFMDUser'sManualregardingthebuilt-in60Kbytesofwebserverspacewillapplytotheextended256KbytesofdatafilestorageontheFRAM-RTC-256,withexceptiononthenamingschemewhichwillbeexplainedbelow:AppendixAExtendedFileSystem1.
AllfilesintheExtendedFilespacecanonlyusethefilename"Zxxx.
yyy".
2.
Thexxxpartofthebeginningofthefilenameisa3digitdecimalnumberwhichcanbeanynumberfrom000to127.
3.
The'yyy'partofthefilenameisthe"extension",andonlythefollowingMIMEextensionareacceptedbythePLC:HTM,JPG,GIF,CSS,JS,BIN,TXT,JAR,ZIP,XLSAnyotherextensionnameswillbereplacedwith"".
TheMIMEextensionarerespectedbythewebbrowserwhenyoudownloadafilefromthebuilt-inwebserversoyoushouldalwaysonlystorefileswithoneoftheaboveextension.
4.
Thefilespaceisdividedinto128"slots"witheach"slot"occupying2Kbytes.
Thefile"Z000.
yyy"occupiesthefirstslot,"Z001.
yyy"occupiesthe2ndslot.
.
,andthefile"Z127.
yyy"thelast2Kslot.
5.
Anyfilemayoccupymorethan1slotsoyoucanspecify"Z000.
yyy"tooccupytheentire256Kbytesofthefilespace.
Oryoucanconfigure"Z000.
yyy"tooccupythefirst5slots(10Ktotal)andthenextvalidfileshouldstartfromZ005.
yyywhichcanoccupythenext10slots(20Kbytestotal).
i.
e.
Ifyouwanttoallocate10KbytesoffilespacetofileZ000.
yyyyoucannotnotusenameanyfileZ001,Z002,Z003andZ004,otherwisethesefilewillcorruptthefilespaceofZ000.
yyy6.
Thismeansthattheprogrammerwillhavetodesignthefilespacecarefullyanddeterminehowtobestusethefilestructuretoprovidetherightbalancebetweenthenumberofdatafilesandtheamountofdataspaceallocatedtoeachdatafile.
Note:ThefilenamerestrictiononlyappliestofilesstoredonthePLC'sinternalfilespace.
WhenyouusetheFTPuploadfunctiondescribedlater,youcanspecifyanydestinationfilenameaslongastheyareacceptabletotheexternalFTPserver.
A.
3TransferringFilesToThePLC'sWebServerIfyouareonlyusingtheextendedfilespaceforthepurposeofstoringadditionalwebpagesonthebuilt-inwebserver,thenyoucanusetheFTPclientsoftwaresuchasFileZillaclienttotransfertheprogramtothePLC.
Section2.
9ofthePLCUser'sManualdescribesindetailshowtoconfiguretheFileZillaclienttocommunicatewiththePLC.
Pleasetakenotethatfilesthatarename0.
yyy,1.
yyy……toT.
yyyareonlystoredonthePLC'sonchipflashmemory.
OnlyfilesthatarenamedZ000.
yyy,Z001.
yyy….
Z127.
yyyarestoredontheFRAM-RTC-256asexplainedinthelastsection.
AppendixAExtendedFileSystemA.
4AccessingTheExtendedDataFilesUsingTBASICFMDandNano-10PLCwithr77firmwarecanaccesstheextendeddatafilespace(i.
e.
onlyfilenamesfromZ000.
yyytoZ128.
yyy)fromwithinTBASIC.
ThePLCcanopenanewfileforwritingnewdata(essentiallydeletingtheoldfilecontent),oropenanexistingfileandappenddatatotheendofthefile.
ItcanalsoopenafileandreaddatafromthefileasASCIIstrings.
ItcanachievethisbyusingthePRINT#8andINPUT$(8)functions,whichwillbedescribedindetailsinthefollowingsections.
A.
4.
1OpenAFileForWritingNewDataSyntax:PRINT#8""where"Zxxx.
yyy"isthefilename.
Ifsuccessfullyexecuted,the""commandwillopenthefileandsetthefilepointertothebeginningofthefile.
ThereafterthePLCcanstartwritingASCIIdatatothefileusingthePRINT#8command.
[Note:thePRINT#8commandautomaticallyappendsacarriagereturntotheendofthestringdataunlessthestringdataisterminatedwithasemi-colon(';')].
WhenthePLChascompletedwritingdata,itmustclosethefilebyexecutingthecommand:PRINT#8"".
E.
g.
PRINT#8""PRINT#8"ThecurrentGreenwichMeanTimeis"PRINT#8STR$(TIME[1]);":";STR$(TIME[2]);":";"00"PRINT#8""TheCPUshouldusetheSTATUS(2)commandtocheckwhetherthehasbeensuccessfullyexecutedbeforebeginwritingdatatoit.
STATUS(2)commandreturnsa1if""operationissuccessfulandreturnsa'0'iftheoperationfailed.
Thefollowingaresomepossiblereasonsthatcouldcausethe""commandtofail:a)ApreviouslyopenedFilewasnotclosed.
TheCPUcanonlywritetoasinglefileatatimesoanyopenedfilemustbeclosedbythePRINT#8""commandbeforeanotherfilecanbeopenedforwriting.
b)TheFRAM-RTC-256isnotinstalled.
ThePLCcanonlywritedatatotheextendeddatafilespace(i.
e.
filenameZxxx.
yyy)whichareonlyavailableifanFRAM-RTC-256isinstalled.
AppendixAExtendedFileSystemA.
4.
2OpenAFileForAppendingDataToTheEndOfTheFileSyntax:PRINT#8""where"Zxxx.
yyy"isthefilename.
Ifsuccessfullyexecuted,the""commandwillopenthefileandsetthefilepointertotheendofthefile.
ThereafteranystringdatafollowingaPRINT#8commandwillbeapendedtotheendofthefile.
WhenthePLChascompletedappendingdata,itmustclosethefilebyexecutingthecommand:PRINT#8"".
Asperthe""command,theCPUshouldalsousetheSTATUS(2)commandtocheckwhetherthecommandhasbeensuccessfullyexecutedbeforebeginwritingdatatoit.
Sincethesamereasonsthatcouldcausea""commandtofailwouldalsocausethe""commandtofail,pleaserefertothelastsectiononalistofpossiblecausesoffailure.
ExamplePRINT#8""S=STATUS(2)'Status(2)returns1ifsuccessful.
IFS1RETURN:ENDIFFORI=1to100PRINT#8STR$(I,4)+":ThisistheAppendedfirstline"PRINT#8STR$(I,4)+":ThisistheAppendedsecondline"SETLCD1,1,"Append#"+STR$(I,4)NEXTPRINT#8""'closethefileA.
4.
3DeleteAFileSyntax:PRINT#8""where"Zxxx.
yyy"isthefilenameofthefiletobedeleted.
Thereisnoneedtocloseadeletedfile.
A.
4.
4OpenAFileForReadingSyntax:PRINT#8""where"Zxxx.
yyy"isthefilenameofthefiletobeopenedforreading.
IfthefilehasbeensuccessfullyopenedforreadingafterexecutionofthePRINT#8""command,thePLCcanstarttoretrieveASCIIdatafromthefileline-AppendixAExtendedFileSystemby-lineusingtheINPUT$(8)command.
AlineiseitherastringthatisterminatedwithaCarriageReturncharacter(ASCII13),orisa70-characterlongstring(whichisthemaximumlengthofanystringvariablesA$toZ$)withoutcarriagereturn.
IneithercasethereturnstringdoesnotcontaintheCRcharacteritself.
ThePLCcancheckifafilehasbeensuccessfullyopenedforreadingusingtheSTATUS(2)functionAFTERexecutingthePRINT#8""command.
STATUS(2)willonlyreturna1ifafilehasbeensuccessfullyopened.
ThePLCcandetermineiftheEnd-of-File(EOF)hasbeenreachedusingtheSTATUS(2)functionaftereveryINPUT$(8)commandhasbeenexecuted.
STATUS(2)returnsa255iftheEOFhasbeenreached.
ThePLCshouldthenclosethefilebyexecutingthe"PRINT#8""command.
A$=""S=STATUS(2)IFS0SETLCD1,1,"FailedtoOpenFile"GOTO@100ENDIFC=0PRINT#8A$SETLCD1,1,A$WHILE1A$=INPUT$(8)S=STATUS(2)IFS=255EXIT:ENDIF'S=255meansEOFSETLCD2,1,A$DELAY50'Sothatreadercanreadfromthescreen.
C=C+1ENDWHILESETLCD1,1,"Read"+STR$(C)+"lines"@100PRINT#8""'closetheopenedfileAppendixAExtendedFileSystemA.
5SettingUpTheFileZillaFTPServerOneimportantcapabilityofthenewPLCwithr77firmwareistheabilitytouploadfilecreatedbythePLCtoanexternalserveronalocalareanetworkorontheInternetviatheFTPprotocol.
IfyouhaveaccesstoanFTPusernameandpasswordonyourcompany'sserver(oriftheSysAdminisauthorizedtosetupanaccountforyou)youcancertainlyuseyourownaccountfortesting.
Ifnot,youcandownloadthefreeFilezillaFTPServerandsetitupfortesting.
The"ExtendedFileSystem.
PC6"hasanFTPuploaddemoanditwasconfiguredtoworkwithaFileZillaFTPserver.
UsingFilezillahastheadvantagethatyoucanseetheloginsequenceperformedbythePLCwhenitattemptstoconnecttotheFTPServersothatitiseasiertotroubleshootconnectionproblem.
(Forprofessionalgradetroubleshooting,onehandyprogramtohaveisthe"Wireshark"programwhichisaTCP/IPpacketsnifferthatallowsyoutolookattheactualTCP/IPpacketssentbetweenyourPCandthePLC).
However,itisimportanttosetuptheFilezillaserverprogramproperlytominimizeconnectiontrouble.
A.
5.
1DownloadandSetupFTPServer1.
FirstdownloadtheFileZillaserverinstallerfromthefollowingwebsite:http://filezilla-project.
org/download.
phptype=server2.
Runthe"FileZillaServerInterface"programwhichismeantformanagingtheFTPServersettings.
3.
IftheFileZillaServerisrunningonthesamePCthatyouarerunningtheFileZillaServerInterfaceprogramthenyoucanusethelocalhostIPaddresswhichis127.
0.
0.
1–thePortcanbeanythingsincethisisaclientportthattheInterfaceAppendixAExtendedFileSystemprogramisusingtointeractwiththeFTPServer(don'tbeconfusedwiththeFTPServerlisteningportwhichisbydefault=21).
4.
IfthisisthefirsttimeyouruntheprogramaftersettingupFilezillaFTPServertherewillbenoAdministrationpasswordsoyoucanleaveitblank.
ClickOKtoconnect.
5.
Click"Edit->Settings"andthen"GeneralSettings->Welcomemessage"–leaveonlyonelineofwelcomemessagesothatthePLChaslessworktodo.
ThenclickOKtoacceptthechange.
6.
Click"Edit–>Users"inordertosetupausernameandpasswordforyourtest.
The"ExtendedFileSystem.
PC6"programusesausername="PLC"andpassword="1234"soforaquicktestyoumayliketosetupthesameusernameandpassword:7.
Atthe"General"pageofthesetupscreen,click"Add"buttonatthe"Users"panetoaddausername"PLC".
Sincenogrouphasbeendefinedsimplyleavethedefaultas""inthesecondtextboxasshowninthefollowingdiagram.
AppendixAExtendedFileSystem8.
Nextclick"Sharedfolders"pageandyoumustsetupafolderthatistobeusedtoreceiveuploadedfile.
Click"Add"atthe"Directories"panetoaddthefolder.
YoucanchooseanyfolderonyourPCtobeusedfortheFTPuploadandyoujusthavetorememberthelocationsothatyoucanlookfortheuploadedfilelaterinthetest.
However,makesurethatyoucheckallthecheckboxesfor"Read","Write","Append"etcasshowninthediagram.
9.
Click"OK"tocompletethesetup.
TheFTPservershouldnowbewaitingforconnection.
A.
5.
2TestingConnectionToTheFTPServerUsingTelnetYoucannowtesttheFTPServerusingtheFileZillaclientasmentionedinChapter2.
9ofthePLCUser'sManual.
AppendixAExtendedFileSystemButabetterwaytotestistousethe"Telnet"programonyourPC(ifyouarerunningWindowsVistaorWindows7youmayneedtoenabletheTelnetprogramsinceitisdisabledbydefault–doaquickGooglesearchonhowtoenabletheTelnetclientsoftwareonyourPC).
AlsoyoumaywanttofindouttheIPaddressofyourPCthatisrunningtheFileZillaServer.
IfyouhaveTLServerrunningonyourPCyourIPaddressisreportedontheTLServer'sfrontpanel.
YoucanalsogettheIPaddressfromtheWindows"NetworkConnectionStatus"asshownbelow.
OurtestPChasanIPaddress=192.
168.
1.
168whichwillbeusedinthefollowingtestsaswellasusedinthePLCprogramtoconnecttotheFTPServer.
1.
Firstopenacommandpromptwindowandthentype"telnet192.
168.
1.
16821"-thiswillopenatelnetconnectiontotheFTPserveronourtestPCwithIPaddress192.
168.
1.
168andlisteningatport21.
PleasereplacetheIPaddresswiththeactualIPaddressofyourPC.
Thefollowingscreenshotcapturesthetestsequence.
Notethatthesamecommand/responsesequencewiththeserverisalsoshownontheFileZillaServerInterfaceprogramfrontpanel:AppendixAExtendedFileSystemUSERPLCPASS12342.
Onceyougetthe"230LoggedOn"messageyouknowthattheFTPsetupisdonecorrectly.
NotethatthewelcomemessagefromtheFTPServershowsonlyoneline"220FileZillaServerVersionx.
xx"whichiswhatwehavesetituptobe.
YoucannowdisconnectfromtheFTPserverbytyping"Quit"atthecommandprompt.
3.
ThereisonemorethingsyouneedtodobeforeyouproceedtotesttheFTPuploadfeaturesofthePLCtoavoidconnectionproblem–thatistotemporarilyTURNOFFtheWindowsFirewallandanysoftwarefirewallsetupbyanti-virussoftwareduringyourtest.
Youcanalwaysre-enableyoursoftwarefirewall(s)afterthetestifyouwish.
PCoperatingsystemaredesignedtorunclientprogramnormallyinsteadofactingasaserversoWindowsFirewallbydefaultistoblockallincomingconnectionstotheFTPServer.
ThusitcangiveyoualotofheadachewhenyouaretryingtoconnecttotheFTPserveroperatingbehindtheWindowsFirewall.
Notes:a)ThemainpurposeofWindowsFirewallistoprotectyourPCwhenyouareconnectedtosayapublicwi-finetwork.
ButifyourPCisconnectedtotheInternetviaarouteratworkorathome,therouterhardwareitselfwouldactasafirewalltoisolateyourPCsandasoftwareFirewallisactuallyredundant.
(IfahackertriedtoconnecttoaporttoyourpublicInternetIPaddresswhathereachedwouldbetheportontherouterandhewouldnotbeabletoreachyourPCunlessyouhavespecificallysetuptoforwardallTCP/IPmessagessenttothatporttoaspecificPC).
AppendixAExtendedFileSystemb)IfyoureallywanttousetheFilezillaFTPServerasapermanentserveronaPCtoreceivefiles,andstillwanttohavetheWindowsFirewallenabled,youcanrefertothelastsectioninthischapterwhichdescribeshowtodoit.
AppendixAExtendedFileSystemA.
6UploadingFileFromPLCtoFileZillaFTPServerDirectoryA.
6.
1OverviewofTheFTPProtocolTheFTPprotocolrequirestwosocket-connectionsbetweenthedevicesperformingthefiletransfer.
Oneconnectionisthe"command"channelwhereFTPcommandssuchasSTORorDELEandtheresponsesaresentasplainASCIItextstringsbetweentheFTPclientandtheFTPserver.
Thesecondconnectionisthe"data"channelwhereonlythefilecontentorthefiledirectorydataarebeingtransferred.
Therearetwotransfermodes:"Active"modeand"Passive"mode.
Activemoderequiresthattheserverestablishadataconnectionbacktotheclient.
Passivemodeontheotherhand,requiresthattheclientalsobetheonetoestablishthedataconnection.
i.
e.
Forpassivemode,boththecommandandthedataconnectionsareperformedbytheclient(thePLCinthiscase).
ThePLChasbeendesignedtouseonlypassivemodetotransferfiletotheFTPserver.
PassivemodeispreferredbecausethatistheonlywaytotransferfileiftheFTPServerislocatedontheInternet.
ThealternativeactivemodetransferrequirestheservertomakeadataconnectionbacktothePLCthatissittingbehindarouterfirewall,andthatcanbeproblematicunlesstherouterisspecificallyconfiguredtoforwardthedataporttothePLC.
A.
6.
2PLCFTPUploadProcedureInordertouploadfiletotheFTPServer,thePLCwouldusethePRINT#4""commandtagtoconnecttotheFTPserverport21toestablishthe"command"connectiontotheFTPServer.
ThePLCusesitsPRINT#4tosendandINPUT$(4)toreceiveASCIItextstringsfromtheFTPserverviathecommandchannel.
ThePLCwouldthensendthecommand"PASV"toinformtheFTPserverthatitwantstotransferafileinpassivemode.
AtthispointyoucanusethePRINT#4commandtosendanyvalidFTPcommandtotheserver,includingchangingdirectory(CWDcommand–makesurethedirectoryexist),deletingafile(DELEcommand–bewareofwhatyouaredeleting!
)etc.
WhenthePLCisreadytostartafiletransfertotheFTPserver,theserverwillinturnprovidethePLCwiththeportnumberthatithasopenedforthePLCtoconnecttoestablishadataconnection.
UponreceivingthisportnumberthePLCwillmakeasecondTCPconnectiontothegivenportandthentheactualfiletransferwillbegin.
Anew,networkservicecommandtagnamed"FTPUPLD"handlesthenegotiationbetweentheFTPServerandthePLCaswellashandlingofthedatatransferfromthePLCtotheFTPserver.
Thefollowingisthesyntax:PRINT#4""AppendixAExtendedFileSystemWhere:Zxxx.
yyyisthefilenameoftheextendedfilethatthePLChasaccessto.
The[destinationfilename]canbeanylegalnameacceptabletotheserversoyoucanattachadateortimestamptothefilenameforeasyidentifications.
Whentheabovecommandisrun,thePLCwillsendtheactual"STOR"commandinthebackgroundtotheFTPserverandthenobtaintheportnumberfromtheserveranditwillthenmakeadataconnectiontoit,andfiletransfercanthenbegin.
A.
6.
3MonitoringTheFTPUploadProgressOncethefiletransferbeginsthePLCfirmwarewillhandletherestofthefiletransferuntileitherthefilehasbeencompletelytransferredorthetransferisabortedduetoanetworkorservertrouble.
YoucanmonitortheprogressofthefiletransferusingeithertheSTATUS(4)orSTATUS(20)functions.
STATUS(4)=0:FTPclientwasidleorlastFTPfailed1:FTPdatatransferjuststarted2:1stFTPsegmenttransferred,nowtransferringtherest3:FTPdatatransfercompleted.
STATUS(20)>0:NumberofbytesuploadedtoFTPServer.
Transferisinprogress.
<0:Totalnumberofbytesuploaded.
Transfercompleted.
Forexample,If2,345byteshasbeenuploadedtotheserverandthetransferhasended,STATUS(20)willreturnthenumber=–2345.
Sincefiletransfercantakesubstantialamountoftimetocomplete,itisnotwisetorunalooptowaitforthefiletransfertocompletesincethiswillblockthePLCfromprocessinganyotherpartoftheprogram.
Thedemo"ExtendedFileSystem.
PC6"showsyouhowtosetupamonitoringfunctiontoperiodicallymonitortheprogressofthefiletransferandreportthetransferstatusontheLCDdisplay.
Pleaserefertothecommentsinthecustomfunction"fnConnFTP"and"fnMonFTP"ofthe"ExtendedFileSystem.
PC6"programformoredetaileddescriptionsofeachcommandinvolvedintheFTPfiletransfer.
AppendixAExtendedFileSystemA.
7SettingUpAFTPServerBehindaWindowsFirewall.
PleaserefertothefollowingMicrosoftdocumentdescribingissuesandsolutionsrelatedtoFTPserverbehindtheWindowsFirewall.
http://technet.
microsoft.
com/en-us/library/dd421710(WS.
10).
aspxMicrosoftfocusesmainlyontheFTPserverintheirIISserver(forobviousreasons)insteadofFilezilla.
IfyouaresettingFilezillaasapermanentFTPserverbehindasoftwarefirewallyoucantrytomakethefollowingconfigurationsetup:1)YoumustspecificallysetuparangeofportnumberforPassivemodeuse.
ThesearetheportnumberthatFilezillawillassigntothePLCtomakeadatachannelconnectionwhenitattemptstotransferafileusingpassivemode.
ThefollowingisanexamplewheretwoportnumbersareassignedsothattwoPLCsmayconnecttotheFilezillasimultaneously.
YoucanaddalargerportrangeifmorePLCsmayconnecttotheFTPServersimultaneously.
Next,openupWindowsFirewallandaddtotheExceptionlisttheport21(commandport)andports41000to41001(orwhateverrangelimityouhavesettointheFileZillaSetupscreen).
ThisshouldallowtheFTPServertoreceiveconnectionfromtheseportsthatthePLCwillbeusingtomakethecommandanddataconnections.
AppendixAExtendedFileSystem
老薛主机,虽然是第一次分享这个商家的信息,但是这个商家实际上也有存在有一些年头。看到商家有在进行夏季促销,比如我们很多网友可能有需要的香港VPS主机季度及以上可以半价优惠,如果有在选择不同主机商的香港机房的可以看看老薛主机商家的香港VPS。如果没有记错的话,早年这个商家是主营个人网站虚拟主机业务的,还算不错在异常激烈的市场中生存到现在,应该算是在众多商家中早期积累到一定的用户群的,主打小众个人网站...
易探云服务器怎么样?易探云是国内一家云计算服务商家,致力香港云服务器、美国云服务器、国内外服务器租用及托管等互联网业务,目前主要地区为运作香港BGP、香港CN2、广东、北京、深圳等地区。目前,易探云推出的国内云服务器优惠活动,国内云服务器2核2G5M云服务器低至330元/年起;成都4核8G/200G硬盘/15M带宽,仅1888元/3年起!易探云便宜vps服务器配置推荐:易探云vps云主机,入门型云...
A400互联是一家成立于2020年的商家,本次给大家带来的是,全新上线的香港节点,cmi+cn2线路,全场香港产品7折优惠,优惠码0711,A400互联,只为给你提供更快,更稳,更实惠的套餐。目前,商家推出香港cn2节点+cmi线路云主机,1H/1G/10M/300G流量,37.8元/季,云上日子,你我共享。A400互联优惠码:七折优惠码:0711A400互联优惠方案:适合建站,个人开发爱好者配置...
filezillaclient为你推荐
蓝瘦香菇被抢注“蓝瘦香菇”是什么梗mathplayer比较word,TeX,MathML中的数学公式处理方式的异同点,尽量详细哦,分数不是问题,谢谢哈,会加分的。www.20ren.com有什么好看的电影吗?来几个…同ip站点同IP网站具体是什么意思,能换独立的吗mole.61.com摩尔庄园RK的秘密是什么?www.hyyan.comDOTA6.51新手选什么英雄为好,请详细讲述出装备顺序,加点顺序,以及注意事项。谢谢javlibrary.comImage Library Sell Photos Digital Photos Photo Sharing Photo Restoration Digital Photos Photo Albums机器蜘蛛求一个美国的科幻电影名!里面有大型的机械蜘蛛。www.28.cn351234网址导航好不好?两朝太岁冲犯太岁什么意思
汉邦高科域名注册 骨干网 enom edis 国外服务器 20g硬盘 华为云主机 国外免费空间 php免费空间 卡巴斯基试用版 美国网站服务器 如何用qq邮箱发邮件 卡巴斯基破解版 服务器硬件防火墙 多线空间 美国独立日 域名dns 空间登入 lamp是什么意思 阵亡将士纪念日 更多