EasyManua.ls Logo

APART PM1122-INT - Page 25

APART PM1122-INT
25 pages
Print Icon
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PM1122-INT DIGITAL INTERFACE REMOTE
WWW.APART-AUDIO.COM / INFO@APART-AUDIO.COM
Onepossibilitytohandlethis,isthefoll owing:
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,azoneanda
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
wanttoknowthecurrentsettingswithoutchangingthem,usethe“GETINFO”command.
25