Synaccess-networks NP-0801DTM Instrukcja Użytkownika Strona 271

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 330
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 270
EASYSCRIPTEXTENSIONPYTHONINTERPRETER,ATCOMMANDS
271 HSPA+ATCommandsReferenceGuide
Usingthehiddenattribute,youcanprotectyourfilesfrombeingviewedandcopied.Only thefilenamecanbe
viewed,itscontentishiddenevenifthefileisstillbeingruncorrectly.Ensureyoumaintainknowledgeabout
whatthefilecontains.
It’srecommendedtousetheextension.pyonlyfortextualscriptfilesandtheextension.pyoonlyforpre
compiledexecutablescriptfiles.
Examples
AT#WSCRIPT="First.py ",54,0
>>>herereceivetheprompt;thentypeorsendthetextualscript,sized54bytes.
OK
Textualscripthasbeenstored.
SelectActiveScript#ESCRIPT
Setcommandselectseither:
ThenameofthetextualscriptfilethatiscompiledandexecutedbytheEasyScript®compileratstartup
accordingtolast#STARTMODESCRsetting,or
Thenameofthepreco mpiledexecutablefilethatisexecutedatstartupaccordingtolast#STARTMODESCR
setting.
Thisfile,eithertextualorprecompiled,iscalledthecurrentscript.
Readcommandreportsasaquotedstringthefilenameofthecurrentscript.
TestcommandreturnsOKresultcode.
Syntax
Command Commandtype
AT#ESCRIPT=[<script_name>] Set
AT#ESCRIPT? Read
AT#ESCRIPT=? Test
ParametersandValues
<script_name> Stringtype,filename.Maximum16characters,casesensitive.
Notes
Alltextualscriptfilesmusthave.pyextension.Allprecompiledexecutablefilesmusthave.pyoextension.
<script_name>mustmatchtothenameofafilewrittenby#WSCRIPTtohaveitrun.
Thecommanddoesnotcheckwhetheratextualscriptnamed<script_name>doesexistornotintheEasyScript
relatednonvolatilememory.Ifthefile<script_name>isnotpresentatstartupthenthecompilerdoesnot
execute.
ScriptExecutionStartMode#STARTMODES CR
Setcommandsetsthecurrentscript(see#ESCRIPT)executionstartmode.
Readcommandreportsthecurrentscriptstartmodeandthecurrentscriptstarttimeout,intheformat:
Przeglądanie stron 270
1 2 ... 266 267 268 269 270 271 272 273 274 275 276 ... 329 330

Komentarze do niniejszej Instrukcji

Brak uwag