APART PM1122-INT Dokumentacja Strona 25

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 25
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 24
PM1122-INT DIGITAL INTERFACE REMOTE
WWW.APART-AUDIO.COM / INFO@APART-AUDIO.COM
Onepossibilitytohandlethis,isthefollowing:
Aglobalstring“rest_string”mustbedefined.Atstartup,it’sanemptystring.Further,following
proceduresareused:
instr(1
st
_string,2
nd
_string):thisprocedurereturnsthepositionatwhichthesecondstring
occursinthefirststringor0incasethere’snomatch.
Left(string,integer):thisprocedurereturnsthebytheintegerspecifiednumbersof
charactersfromthespecifiedstring,startingfromtheleft.
Right(string,integer):this proceduredoesthesamebutstartingfromtherightside.
Interpret(string):thisprocedureinterpretsastringwhichincludesaname,azoneand a
valueassendbythePM1122INT.
Receive_Handler(stringreceived_string):
{
rest_string=rest_string&received_string
while(instr(rest_string,”\r\n”)<>0)
{
Dimfirst_stringasstring
first_string=left(rest_string,instr(rest_string,”\r\n”)1)
rest_string=right(rest_string,len(rest_stringinstr(rest_string,”\r\n”)1)
CallInterpret(first_string)
}
}
WhenyouwouldliketocontrolthePM1122withmorethanRS232only(e.g.alsowiththewireless
wallcontrolsofthepresetrecallbycontacts),it’swisetokeepTXandRXstrictlyseparated.Asinthe
picturebelow,makeyourapplicationcontroltheP M1122bytheTXportandupdateyourdisplay
onlywiththeinformationcomingfromyourapplicationsRX.Thisway,thedisplaywillalwaysbein
syncwiththePM1122,evenifastatushaschangedbecauseofwirelesscontrolorrecalledpresets
Remark:with“VALFB”seton,thePM1122INTonlysendsastringwhenavariableischanged.Ifyou
wanttoknowthecurrent settingswithoutchangingthem,usethe“GETINFO”command.
25
Przeglądanie stron 24
1 2 ... 20 21 22 23 24 25

Komentarze do niniejszej Instrukcji

Brak uwag