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
适逢中国农历新年,RAKsmart也发布了2月促销活动,裸机云、云服务器、VPS主机全场7折优惠,新用户注册送10美元,独立服务器每天限量秒杀最低30.62美元/月起,美国洛杉矶/圣何塞、日本、香港站群服务器大量补货,1-10Gbps大带宽、高IO等特色服务器抄底价格,机器可选大陆优化、国际BGP、精品网及CN2等线路,感兴趣的朋友可以持续关注下。裸机云新品7折,秒杀产品5台/天优惠码:Bare-...
快云科技怎么样?快云科技是一家成立于2020年的新起国内主机商,资质齐全 持有IDC ICP ISP等正规商家。云服务器网(yuntue.com)小编之前已经介绍过很多快云科技的香港及美国云服务器了,这次再介绍一下新的优惠方案。目前,香港云沙田CN2云服务器低至29元/月起;美国超防弹性云/洛杉矶CUVIP低至33.6元/月起。快云科技的云主机架构采用KVM虚拟化技术,全盘SSD硬盘,RAID10...
racknerd怎么样?racknerd商家最近促销三款美国便宜vps,最低只需要9.49美元,可以选择美国圣何塞、西雅图、纽约和芝加哥机房。RackNerd是一家成立于2019年的美国高性价比服务器商家,主要从事美国和荷兰数据中心的便宜vps、独立服务器销售!支持中文工单、支持支付宝和微信以及PayPal付款购买!点击直达:racknerd官方网站INTEL系列可选机房:加利福尼亚州圣何塞、芝加...
filezillaclient为你推荐
brandoff国际大牌包包都有哪些呐?openeuleropen opening opens opened有什么区别硬盘工作原理高人指点:电子存储器(U盘,储存卡,硬盘等)的工作原理firetrap流言终结者 中的银幕神偷 和开保险柜 的流言是 取材与 那几部电影的丑福晋八阿哥胤禩有几个福晋 都叫啥名儿呀777k7.com怎么在这几个网站上下载图片啊www.777mu.com www.gangguan23.com51sese.com谁有免费电影网站www.kanav001.com翻译为日文: 主人,请你收养我一天吧. 带上罗马音标会更好wwwbbs2.99nets.com西安论坛、西安茶馆网、西安社区、西安bbs 的网址是多少?www.henhenlu.com有一个两位数,十位数字是个位数字的二分之一,将十位数字与个位数字对调,新的两位数比原来大36,这个两位数
北京租服务器 vps教程 免费申请域名 主机屋 softlayer 韩国俄罗斯 ix主机 googleapps 哈喽图床 国内加速器 数字域名 新家坡 卡巴斯基免费试用版 西安服务器托管 我的世界服务器ip 论坛主机 湖南idc 秒杀品 摩尔庄园注册 酸酸乳 更多